eh_returnjump_p takes an rtx_insn
[official-gcc.git] / gcc / ChangeLog
blobe65a69faa00fa008121457fc332e567646d17c94
1 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
3         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
4         rtx_insn *.
6         * rtl.h (eh_returnjump_p): Likewise.
8 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
10         * Makefile.in (TAGS): Handle constructs in timevar.def.
12 2014-09-04  Guozhi Wei  <carrot@google.com>
14         PR target/62040
15         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
16         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
17         it into two patterns.
18         (move_lo_quad_internal_be_<mode>): Likewise.
20 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22         * doc/options.texi: Document that Var and Init are required if CPP
23         is given.
24         * optc-gen.awk: Require Var and Init if CPP is given.
25         * common.opt (Wpedantic): Use Init.
27 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29         * config/rs6000/rs6000.c (special_handling_values): Add
30         SH_EXTRACT.
31         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
32         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
33         as swappable with special handling SH_EXTRACT.  Remove
34         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
35         optimization.
36         (adjust_extract): New function.
37         (handle_special_swappables): Add default to case statement; add
38         case for SH_EXTRACT that calls adjust_extract.
39         (dump_swap_insn_table): Handle SH_EXTRACT.
41 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
43         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
44         selection of 0th memory doubleword, regardless of endianness.
46 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
48         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
50 2014-09-04  Alan Modra  <amodra@gmail.com>
52         PR debug/60655
53         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
54         can't be output.
56 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
58         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
59         * targhooks.c (default_dwarf_frame_reg_mode): New function.
60         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
61         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
62         * doc/tm.texi: Regenerate.
63         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
64         selection logic to default_dwarf_frame_reg_mode.
66 2014-09-03  Marek Polacek  <polacek@redhat.com>
68         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
69         by -Wall.
71 2014-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
73         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
74         the automodified register.
76 2014-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
78         * output.h (get_some_local_dynamic_name): Declare.
79         * final.c (some_local_dynamic_name): New variable.
80         (get_some_local_dynamic_name): New function.
81         (final_end_function): Clear some_local_dynamic_name.
82         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
83         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
84         (print_operand): Report an error if '%&' is used inappropriately.
85         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
86         (get_some_local_dynamic_name_1): Delete.
87         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
88         (rs6000_get_some_local_dynamic_name): Delete.
89         (rs6000_get_some_local_dynamic_name_1): Delete.
90         (print_operand): Report an error if '%&' is used inappropriately.
91         * config/s390/s390.c (machine_function): Remove some_ld_name.
92         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
93         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
94         * config/sparc/sparc.c: Include rtl-iter.h.
95         (machine_function): Remove some_ld_name.
96         (sparc_print_operand): Report an error if '%&' is used inappropriately.
97         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
99 2014-09-03  Richard Henderson  <rth@redhat.com>
101         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
102         (aarch64_popwb_pair_reg): Remove.
103         (aarch64_set_frame_expr): Remove.
104         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
105         the restore ops performed by the insns generated.
106         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
107         insn.  Perform the calls_eh_return addition later; do not attempt to
108         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
109         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
110         special markup at all.  Load cfun->machine->frame.hard_fp_offset
111         into a local variable.
112         (aarch64_frame_pointer_required): Don't check calls_alloca.
114 2014-09-03  Richard Biener  <rguenther@suse.de>
116         * opts.c (default_options_optimization): Adjust
117         max-combine-insns to 2 for -Og.
119 2014-09-03  Martin Jambor  <mjambor@suse.cz>
121         PR ipa/62015
122         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
123         pass-trough jump functions correctly.
125 2014-09-03  Martin Jambor  <mjambor@suse.cz>
127         PR ipa/61986
128         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
129         created replacements in ascending order of offsets.
130         (known_aggs_to_agg_replacement_list): Likewise.
132 2014-09-03  Martin Liska  <mliska@suse.cz>
134         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
135         is set to set uninitialized value for vnresult.
137 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
139         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
140         for TARGET_MUST_PASS_IN_STACK.
142 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
144         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
145         for TARGET_ARG_PARTIAL_BYTES.
147 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
149         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
150         instructions for varargs implementation.
151         (nds32_expand_epilogue): Emit stack adjustment instructions for
152         varargs implementation.
154 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
156         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
157         optimization detection.
159 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
161         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
162         arguments.
163         (nds32_function_arg_advance): Deal with nameless arguments.
164         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
165         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
166         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
168 2014-09-03  Richard Biener  <rguenther@suse.de>
170         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
171         (struct bb_bitmap_sets): Remove deferred member.
172         (BB_DEFERRED): Remove.
173         (defer_or_phi_translate_block): Remove.
174         (compute_antic_aux): Remove deferring of blocks, assert
175         proper iteration order.
176         (compute_antic): Do not set BB_DEFERRED.
177         (eliminate): Allocate el_avail of proper size initially.
179 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
181         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
182         according to the value of crtl->args.pretend_args_size.
184 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
186         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
187         varargs information.
189 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
191         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
192         implementation for TARGET_SETUP_INCOMING_VARARGS.
193         (nds32_strict_argument_naming): Refine comment.
194         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
195         Define for future implementation.
197 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
199         * config/i386/adxintrin.h (_subborrow_u32): New.
200         (_addcarry_u32): Ditto.
201         (_subborrow_u64): Ditto.
202         (_addcarry_u64): Ditto.
203         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
204         IX86_BUILTIN_SBB64.
205         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
206         __builtin_ia32_sbb_u64
208 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
210         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
211         GPR-specific stuff.
212         (nds32_function_arg_advance): Likewise.
213         (nds32_init_cumulative_args): Likewise.
214         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
215         (NDS32_FIRST_GPR_REGNUM): Define.
216         (NDS32_LAST_GPR_REGNUM): Define.
217         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
218         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
219         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
220         (machine_function): Use GRP-specific stuff.
222 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
224         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
225         (nds32_expand_epilogue): Likewise.
226         (nds32_expand_prologue_v3push): Likewise.
227         (nds32_expand_epilogue_v3pop): Likewise.
229 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
231         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
232         v3push/v3pop for variadic function.
233         * config/nds32/nds32.md (prologue, epilogue): Likewise.
235 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
237         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
238         Check rtx for varargs implementation.
239         (nds32_output_stack_pop): Likewise.
240         * config/nds32/nds32-protos.h: Have a rtx argument for
241         nds32_output_stack_push and nds32_output_stack_pop.
242         * config/nds32/nds32.md: Likewise.
244 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
246         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
247         to check if FUNC is an interrupt service routine.
248         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
250 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
252         * config/nds32/nds32.h (machine_function): Add some fields for variadic
253         arguments implementation.
255 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
257         * config/nds32/nds32-predicates.c
258         (nds32_valid_stack_push_pop): Rename to ...
259         (nds32_valid_stack_push_pop_p): ... this.
260         * config/nds32/nds32-protos.h: Likewise.
261         * config/nds32/predicates.md: Likewise.
263 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
265         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
266         (nds32_emit_stack_v3push): ... this.
267         (nds32_gen_stack_v3pop): Rename to ...
268         (nds32_emit_stack_v3pop): ... this and consider CFA restore
269         information.
271 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
273         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
274         (nds32_emit_stack_push_multiple): ... this.
275         (nds32_gen_stack_pop_multiple): Rename to ...
276         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
277         information.
279 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
281         PR target/61078
282         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
283         and add a second splitter to handle the remaining cases.
285 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
287         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
289 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
291         * cfgexpand.c (label_rtx_for_bb): Change type to
292         hash_map<basic_block, rtx_code_label *> *.
293         (expand_gimple_basic_block): Adjust.
294         (pass_expand::execute): Likewise.
296 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
298         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
299         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
300         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
301         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
302         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
303         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
304         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
305         of rtx.
307 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
309         * alloc-pool.c: Include coretypes.h.
310         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
311         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
312         hash_set instead of htab.
313         * ggc-page.c (in_gc): New variable.
314         (ggc_free): Do nothing if a collection is taking place.
315         (ggc_collect): Set in_gc appropriately.
316         * ggc.h (gt_ggc_mx(const char *)): New function.
317         (gt_pch_nx(const char *)): Likewise.
318         (gt_ggc_mx(int)): Likewise.
319         (gt_pch_nx(int)): Likewise.
320         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
321         (hash_map::hash_entry::pch_nx): Likewise.
322         (hash_map::hash_entry::pch_nx_helper): Likewise.
323 (hash_map::hash_map): Adjust.
324 (hash_map::create_ggc): New function.
325 (gt_ggc_mx): Likewise.
326 (gt_pch_nx): Likewise.
327         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
328 (default_hashset_traits::pch_nx): Likewise.
329 (hash_set::hash_entry::ggc_mx): Likewise.
330 (hash_set::hash_entry::pch_nx): Likewise.
331 (hash_set::hash_entry::pch_nx_helper): Likewise.
332 (hash_set::hash_set): Adjust.
333 (hash_set::create_ggc): New function.
334 (hash_set::elements): Likewise.
335 (gt_ggc_mx): Likewise.
336 (gt_pch_nx): Likewise.
337         * hash-table.h (hash_table::hash_table): Adjust.
338 (hash_table::m_ggc): New member.
339         (hash_table::~hash_table): Adjust.
340         (hash_table::expand): Likewise.
341         (hash_table::empty): Likewise.
342 (gt_ggc_mx): New function.
343         (hashtab_entry_note_pointers): Likewise.
344 (gt_pch_nx): Likewise.
346 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
348         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
349         built-in definition.
350         (XVCVUXDDP_SCALE): Likewise.
351         (XVCVDPSXDS_SCALE): Likewise.
352         (XVCVDPUXDS_SCALE): Likewise.
353         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
354         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
355         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
356         VSX_BUILTIN_XVCVDPUXDS_SCALE.
357         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
358         prototype.
359         * config/rs6000/rs6000.c (real.h): New include.
360         (rs6000_scale_v2df): New function.
361         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
362         (UNSPEC_VSX_XVCVUXDDP): Likewise.
363         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
364         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
365         (vsx_xvcvsxddp_scale): New define_expand.
366         (vsx_xvcvsxddp): New define_insn.
367         (vsx_xvcvuxddp_scale): New define_expand.
368         (vsx_xvcvuxddp): New define_insn.
369         (vsx_xvcvdpsxds_scale): New define_expand.
370         (vsx_xvcvdpsxds): New define_insn.
371         (vsx_xvcvdpuxds_scale): New define_expand.
372         (vsx_xvcvdpuxds): New define_insn.
373         * doc/extend.texi (vec_ctf): Add new prototypes.
374         (vec_cts): Likewise.
375         (vec_ctu): Likewise.
376         (vec_splat): Likewise.
377         (vec_div): Likewise.
378         (vec_mul): Likewise.
380 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
382         PR target/62275
383         * config/arm/neon.md
384         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
385         <v_cmp_result>): New pattern.
386         * config/arm/iterators.md (NEON_VCVT): New int iterator.
387         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
388         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
389         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
390         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
391         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
393 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
395         PR target/62275
396         * config/arm/iterators.md (FIXUORS): New code iterator.
397         (VCVT): New int iterator.
398         (su_optab): New code attribute.
399         (su): Likewise.
400         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
402 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
404         * config/aarch64/predicates.md (aarch64_comparison_operation):
405         New special predicate.
406         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
407         aarch64_comparison_operation instead of matching an operator.
408         Update operand numbers.
409         (csinc3<mode>_insn): Likewise.
410         (*csinv3<mode>_insn): Likewise.
411         (*csneg3<mode>_insn): Likewise.
412         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
413         * config/aarch64/aarch64.c (aarch64_get_condition_code):
414         Return -1 instead of aborting on invalid condition codes.
415         (aarch64_print_operand): Update aarch64_get_condition_code callsites
416         to assert that the returned condition code is valid.
417         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
419 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
421         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
422         tree.def, and gimple.def
424 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
425             Balaji V. Iyer  <balaji.v.iyer@intel.com>
426             Igor Zamyatin  <igor.zamyatin@intel.com>
428         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
429         (__cilkrts_cilk_for_64): Likewise.
430         * cilk-common.c (declare_cilk_for_builtin): New function.
431         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
432         __cilkrts_cilk_for_64 bultins.
433         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
434         CILK_TI_F_LOOP_64.
435         (cilk_for_32_fndecl): New define.
436         (cilk_for_64_fndecl): Likewise.
437         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
438         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
439         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
440         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
441         GF_OMP_FOR_COMBINED_INTO.
442         * gimplify.c (gimplify_scan_omp_clauses): Added
443         OMP_CLAUSE__CILK_FOR_COUNT_ case.
444         (gimplify_adjust_omp_clauses): Ditto.
445         (gimplify_omp_for): Added CILK_FOR case.
446         (gimplify_expr): Ditto.
447         * omp-low.c: Include cilk.h.
448         (extract_omp_for_data): Set appropriate kind for
449         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
450         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
451         (create_omp_child_function_name): Added second argument to handle
452         cilk_for case.
453         (cilk_for_check_loop_diff_type): New function.
454         (expand_cilk_for_call): Likewise.
455         (expand_cilk_for): Likewise.
456         (create_omp_child_function): Set cilk_for_count; handle the cases when
457         it is true; call create_omp_child_function_name with second argument.
458         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
459         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
460         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
461         * tree-nested.c (convert_nonlocal_omp_clauses): Added
462         OMP_CLAUSE__CILK_FOR_COUNT_ case.
463         (convert_local_omp_clauses): Ditto.
464         * tree-pretty-print.c (dump_omp_clause): Added
465         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
466         (dump_generic_node): Added CILK_FOR case.
467         * tree.c (omp_clause_num_ops): New element
468         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
469         (omp_clause_code_name): New element _Cilk_for_count_.
470         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
471         * tree.def: Add tree code for CILK_FOR.
473 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
475         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
476         (ppc403-compare): Add "exts with dot" case.
477         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
478         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
479         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
480         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
481         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
482         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
483         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
484         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
485         cell-cmp-microcoded): Similarly.
486         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
487         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
488         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
489         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
490         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
491         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
492         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
493         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
494         (power6-compare): Add "exts with dot" case.
495         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
496         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
497         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
499         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
500         if avoiding Cell microcode.
501         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
502         (is_cracked_insn): Ditto.
503         (insn_must_be_first_in_group): Ditto.
504         * config/rs6000/rs6000.md (dot): Adjust comment.
505         (cell_micro): Handle exts+dot.
506         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
507         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
508         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
509         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
510         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
511         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
512         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
514 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
516         * config/rs6000/rs6000.md (QHSI): Delete.
517         (EXTQI, EXTHI, EXTSI): New mode iterators.
518         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
519         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
520         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
521         9 anonymous instructions, and 8 splitters): Delete.
522         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
523         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
524         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
525         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
526         *zero_extendsi<mode>2_dot2): New.
528 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
530         * config/rs6000/rs6000.md (any_extend): New code iterator.
531         (u, su): New code attributes.
532         (dmode, DMODE): New mode attributes.
533         (<su>mul<mode>3_highpart): New.
534         (*<su>mul<mode>3_highpart): New.
535         (<su>mulsi3_highpart_le): New.
536         (<su>muldi3_highpart_le): New.
537         (<su>mulsi3_highpart_64): New.
538         (<u>mul<mode><dmode>3): New.
539         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
540         splitters): Delete.
541         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
542         splitters): Delete.
544 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
546         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
547         *mulsi3_internal2, and two splitters): Delete.
548         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
549         Delete.
550         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
552 2014-09-02  Richard Biener  <rguenther@suse.de>
554         PR tree-optimization/62695
555         * tree-ssa-structalias.c (find_func_clobbers): Add missing
556         vector truncate.
558 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
560         PR target/62312
561         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
563 2014-09-01  Andi Kleen  <ak@linux.intel.com>
565         * file-find.c (add_prefix_begin): Add.
566         (do_add_prefix): Rename from add_prefix with first argument.
567         (add_prefix): Add new wrapper.
568         * file-find.h (add_prefix_begin): Add.
569         * gcc-ar.c (main): Support -B option.
571 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
573         * genemit.c: Include dumpfile.h.
574         (gen_split): Print name of splitter function to dump file.
576 2014-09-01  Richard Biener  <rguenther@suse.de>
578         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
579         Use stack auto_vecs for constraint expressions.
580         (find_func_aliases_for_call): Likewise.
581         (find_func_aliases): Likewise.
582         (find_func_clobbers): Likewise.
584 2014-09-01  Richard Biener  <rguenther@suse.de>
586         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
587         operands vector in most cases.  Remove redundant code.
589 2014-09-01  Olivier Hainque  <hainque@adacore.com>
591         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
592         $WIND_BASE instead of designating a harcoded arbitrary home dir.
593         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
595 2014-09-01  Richard Biener  <rguenther@suse.de>
597         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
598         copy_reference_ops_from_call, vn_nary_op_compute_hash,
599         vn_reference_compute_hash, vn_reference_insert): Remove.
600         (vn_reference_lookup_call): New function.
601         * tree-ssa-sccvn.c (vn_reference_compute_hash,
602         copy_reference_ops_from_ref, copy_reference_ops_from_call,
603         vn_reference_insert, vn_nary_op_compute_hash): Make static.
604         (create_reference_ops_from_call): Remove.
605         (vn_reference_lookup_3): Properly update shared_lookup_references.
606         (vn_reference_lookup_pieces): Assert that we updated
607         shared_lookup_references properly.
608         (vn_reference_lookup): Likewise.
609         (vn_reference_lookup_call): New function.
610         (visit_reference_op_call): Use it.  Avoid re-building the
611         reference ops.
612         (visit_reference_op_load): Remove redundant lookup.
613         (visit_reference_op_store): Perform special tail-merging work
614         only when possibly doing tail-merging.
615         (visit_use): Likewise.
616         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
618 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
620         PR target/62025
621         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
622         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
623         (find_inc): Revert 2014-08-13 change.
625 2014-09-01  Marek Polacek  <polacek@redhat.com>
627         PR middle-end/61903
628         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
629         Change the type of V to unsigned HOST_WIDE_INT.
631 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
633         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
634         the size of byte markers.
635         (do_shift_rotate): Fix confusion between host, target and marker byte
636         size.
637         (verify_symbolic_number_p): Likewise.
638         (find_bswap_or_nop_1): Likewise.
639         (find_bswap_or_nop): Likewise.
641 2014-09-01  Olivier Hainque  <hainque@adacore.com>
643         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
644         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
646 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
648         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
649         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
650         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
652 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
654         PR sanitizer/61897
655         PR sanitizer/62140
656         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
657         (build_check_stmt): Likewise.
658         (instrument_strlen_call): Likewise.
659         (asan_expand_check_ifn): Likewise and fix types.
660         (maybe_cast_to_ptrmode): New function.
662 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
664         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
666 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
668         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
670 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
672         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
673         prefix to function labels when generating fast indirect calls.
675 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
677         PR bootstrap/62304
679         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
680         param back from rtx_insn * to rtx.  Rename param from "label" to
681         "label_or_return", reintroducing "label" as an rtx_insn * after
682         we've ensured it's not a RETURN.
683         (first_active_target_insn): Likewise for return type and param;
684         add a checked cast to rtx_insn * once we've ensured "insn" is not
685         a RETURN.
686         (steal_delay_list_from_target): Convert param "pnew_thread" back
687         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
688         with JUMP_LABEL.
689         (own_thread_p): Convert param "thread" back from an rtx_insn * to
690         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
691         cast once we've established we're not dealing with a RETURN,
692         renaming subsequent uses of "thread" to "thread_insn".
693         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
694         to JUMP_LABEL.
695         (follow_jumps): Convert return type and param "label" from
696         rtx_insn * back to rtx.  Move initialization of "value" to after
697         the handling for ANY_RETURN_P, adding a checked cast there to
698         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
699         rename to "this_label_or_return", reintroducing "this_label" as
700         an rtx_insn * once we've handled the case where it could be an
701         ANY_RETURN_P.
702         (fill_slots_from_thread): Rename param "thread" to
703         "thread_or_return", converting from an rtx_insn * back to an rtx.
704         Reintroduce name "thread" as an rtx_insn * local with a checked
705         cast once we've handled the case of it being an ANY_RETURN_P.
706         Convert local "new_thread" from an rtx_insn * back to an rtx.
707         Add a checked cast when assigning to "trial" from "new_thread".
708         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
709         checked cast to rtx_insn * from "new_thread" when invoking
710         get_label_before.
711         (fill_eager_delay_slots): Convert locals "target_label",
712         "insn_at_target" from rtx_insn * back to rtx.
713         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
714         (relax_delay_slots): Convert locals "trial", "target_label" from
715         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
716         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
717         invoking update_block.
718         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
719         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
721         * resource.h (mark_target_live_regs): Undo erroneous conversion
722         of second param of r214693, converting it back from rtx_insn * to
723         rtx, since it could be a RETURN.
725         * resource.c (find_dead_or_set_registers): Similarly, convert
726         param "jump_target" back from an rtx_insn ** to an rtx *, as we
727         could be writing back a RETURN.  Rename local rtx_insn * "next" to
728         "next_insn", and introduce "lab_or_return" as a local rtx,
729         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
730         (mark_target_live_regs): Undo erroneous conversion
731         of second param of r214693, converting it back from rtx_insn * to
732         rtx, since it could be a RETURN.  Rename it from "target" to
733         "target_maybe_return", reintroducing the name "target" as a local
734         rtx_insn * with a checked cast, after we've handled the case of
735         ANY_RETURN_P.
737 2014-08-29  DJ Delorie  <dj@redhat.com>
739         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
740         pointer size up to a power of two.
741         * defaults.h (DWARF2_ADDR_SIZE): Round up.
742         (POINTER_SIZE_UNITS): New, rounded up value.
743         * dwarf2asm.c (size_of_encoded_value): Use it.
744         (dw2_output_indirect_constant_1): Likewise.
745         * expmed.c (init_expmed_one_conv): We now know the sizes of
746         partial int modes.
747         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
748         * optabs.c (expand_float): Use precision, not size.
749         (expand_fix): Likewise.
750         * simplify-rtx (simplify_unary_operation_1): Likewise.
751         * tree-dfa.c (get_ref_base_and_extent): Likewise.
752         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
753         (default_assemble_integer) Likewise.
754         (dump_tm_clone_pairs): Likewise.
755         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
756         * var-tracking.c (adjust_mems): Allow partial-int modes also.
757         (prepare_call_arguments): Likewise.
758         * stor-layout.c (finalize_type_size): Preserve precision.
759         (layout_type): Use precision, not size.
761         * expr.c (convert_move): If the target has an explicit converter,
762         use it.
764 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
766         * gdbinit.in: Skip various inline functions in rtl.h when
767         stepping.
769 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
771         PR bootstrap/62301
772         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
774 2014-08-29  Richard Biener  <rguenther@suse.de>
776         PR tree-optimization/62291
777         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
778         exactly the vector size needed and use quick_push.
779         (phi_translate_1): Adjust comment.
780         (valid_in_sets): Remove block argument and remove pointless
781         checking of NAMEs.
782         (dependent_clean): Adjust for removal of block argument.
783         (clean): Likewise.
784         (compute_antic_aux): Likewise.
785         (compute_partial_antic_aux): Likewise.
787 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
788             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
789             Anna Tikhonova  <anna.tikhonova@intel.com>
790             Ilya Tocar  <ilya.tocar@intel.com>
791             Andrey Turetskiy  <andrey.turetskiy@intel.com>
792             Ilya Verbin  <ilya.verbin@intel.com>
793             Kirill Yukhin  <kirill.yukhin@intel.com>
794             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
796         * config/i386/sse.md
797         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
798         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
799         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
800         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
802 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
803             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
804             Anna Tikhonova  <anna.tikhonova@intel.com>
805             Ilya Tocar  <ilya.tocar@intel.com>
806             Andrey Turetskiy  <andrey.turetskiy@intel.com>
807             Ilya Verbin  <ilya.verbin@intel.com>
808             Kirill Yukhin  <kirill.yukhin@intel.com>
809             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
811         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
812         * config/i386/sse.md
813         (define_mode_iterator VI4_128_8_256): New.
814         (define_mode_iterator VI2_128_4_256): Ditto.
815         (define_mode_iterator PMOV_DST_MODE): Rename into
816         (define_mode_iterator PMOV_DST_MODE_1): this.
817         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
818         Use PMOV_DST_MODE_1 mode iterator.
819         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
820         Ditto.
821         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
822         Ditto.
823         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
824         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
825         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
826         (define_mode_iterator PMOV_DST_MODE_2): New.
827         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
828         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
829         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
830         Ditto.
831         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
832         (define_mode_attr pmov_dst_3): Ditto.
833         (define_mode_attr pmov_dst_zeroed_3): Ditto.
834         (define_mode_attr pmov_suff_3): Ditto.
835         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
836         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
837         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
838         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
839         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
840         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
841         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
842         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
843         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
844         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
845         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
846         (define_mode_attr pmov_dst_4): Ditto.
847         (define_mode_attr pmov_dst_zeroed_4): Ditto.
848         (define_mode_attr pmov_suff_4): Ditto.
849         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
850         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
851         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
852         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
853         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
854         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
855         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
856         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
857         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
858         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
859         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
861 2014-08-29  Richard Biener  <rguenther@suse.de>
863         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
864         NON_LVALUE_EXPR in gimple.
866 2014-08-29  Richard Biener  <rguenther@suse.de>
868         PR middle-end/62292
869         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
870         from previous refactoring.
871         (gimple_fold_builtin_strncpy): Likewise.
873 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
875         PR bootstrap/62300
876         * function.c (assign_parm_setup_reg): Remove erroneous checked
877         cast to rtx_insn * on result of gen_extend_insn in favor of
878         introducing a new local rtx "pat".
880 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
882         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
883         to silence warning.
884         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
886 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
888         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
889         (next_insn): Likewise.
890         * emit-rtl.c (next_insn): Likewise.
891         (previous_insn): Likewise.
892         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
893         "insn" and "next" from rtx to rtx_insn *.
894         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
895         "insn", "insn1", "vliw_start",  "prologue_end_note",
896         "last_insn_in_packet".
898 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
900         * shrink-wrap.h (active_insn_between): Strengthen both params from
901         rtx to rtx_insn *.
902         * function.c (active_insn_between): Likewise.
904 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
906         * genattr.c (main): When writing out insn-attr.h, strengthen param
907         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
908         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
909         writing out the definition of dfa_clear_single_insn_cache to the
910         generated insn-automata.c
912 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
914         * resource.h (clear_hashed_info_for_insn): Strengthen param from
915         rtx to rtx_insn *.
916         (incr_ticks_for_insn): Likewise.
917         (init_resource_info): Likewise.
919         * resource.c (init_resource_info): Likewise.
920         (clear_hashed_info_for_insn): Likewise.
921         (incr_ticks_for_insn): Likewise.
923         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
924         rtx to rtx_insn *.
925         (steal_delay_list_from_target): Use methods of "seq".
926         (try_merge_delay_insns): Use methods of "merged_insns".
927         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
928         (reorg_redirect_jump): Likewise for param "jump".
930 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
932         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
933         rtx to rtx_insn *.
934         * config/s390/s390.c (s390_split_branches): Eliminate top-level
935         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
936         "set_insn".
937         (s390_mainpool_finish): In three places, split out a local rtx
938         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
939         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
940          and split another local rtx "insn" out into rtx "pat" and
941         rtx_insn * "insn".
942         * config/sh/sh.c (output_branchy_insn): Rather than working
943         directly on operands[9], introduce local rtx_code_label *
944         variables named "lab" in two places, working on them, and then
945         assigning them to operands[9], so that the intervening operations
946         are known by the type system to be on insns.
948 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
950         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
951         const rtx_insn *.
953         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
954         in invocation of INSN_HAS_LOCATION.
956 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
958         * config/rs6000/altivec.h (vec_xl): New #define.
959         (vec_xst): Likewise.
960         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
961         (XXSPLTD_V2DI): Likewise.
962         (DIV_V2DI): Likewise.
963         (UDIV_V2DI): Likewise.
964         (MUL_V2DI): Likewise.
965         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
966         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
967         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
968         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
969         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
970         (UNSPEC_VSX_DIVSD): Likewise.
971         (UNSPEC_VSX_DIVUD): Likewise.
972         (UNSPEC_VSX_MULSD): Likewise.
973         (vsx_mul_v2di): New insn-and-split.
974         (vsx_div_v2di): Likewise.
975         (vsx_udiv_v2di): Likewise.
976         (vsx_xxspltd_<mode>): New insn.
978 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
980         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
981         NEXT_INSN.
982         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
983         (NEXT_INSN): Likewise.
984         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
985         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
986         const rtx_insn *.
987         (no_labels_between_p): Likewise for both params.
989         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
990         cast when using NEXT_INSN on operands[2].
991         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
992         "insn" from rtx to rtx_insn *, adding a checked cast.
993         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
994         rtx_insn *.
995         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
996         for third param.
997         (arc_text_label): Likewise for param "insn".
998         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
999         "insn".
1000         (arc_ccfsm_record_condition): Likewise for param "jump".
1001         (arc_text_label): Likewise for local "label".
1002         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
1003         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
1004         a method for typesafety.  Add a checked cast.
1005         * config/arc/constraints.md (Clb): Add a checked cast when getting
1006         the CODE_LABEL from a LABEL_REF.
1007         * config/arm/arm.c (require_pic_register): Strengthen locals
1008         "seq", "insn" from rtx to rtx_insn *.
1009         (create_fix_barrier): Likewise for locals "selected", "next".
1010         (thumb1_reorg): Likewise for locals "prev", "insn".
1011         (arm_expand_prologue): Likewise for local "last".
1012         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
1013         operands[0].
1014         (thumb2_output_casesi): Likewise for operands[2].
1015         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
1016         strengthen local "insn" from rtx to rtx_insn *.
1017         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
1018         type and param "insn".
1019         (find_prev_insn_start): Likewise.
1020         (hwloop_optimize): Likewise for locals "insn", "last_insn",
1021         "prev".
1022         (gen_one_bundle): Likewise for loal "t".
1023         (find_load): Likewise for param "insn".
1024         (workaround_speculation): Likewise for locals "insn", "next",
1025         "target", "next_tgt".
1026         * config/c6x/c6x.c (assign_reservations): Likewise for both params
1027         and for locals "insn", "within", "last".
1028         (count_unit_reqs): Likewise for params "head", "tail" and local
1029         "insn".
1030         (try_rename_operands): Likewise for params "head", "tail".
1031         (reshuffle_units): Likewise for locals "head", "tail", "insn".
1032         (struct c6x_sched_context): Likewise for fields
1033         "last_scheduled_insn", "last_scheduled_iter0".
1034         (init_sched_state): Replace NULL_RTX with NULL.
1035         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
1036         to rtx_insn *.
1037         (undo_split_delayed_nonbranch): Likewise for param and for local
1038         "prev".
1039         (conditionalize_after_sched): Likewise for local "insn".
1040         (bb_earliest_end_cycle): Likewise.
1041         (filter_insns_above): Likewise for locals "insn", "next".
1042         (hwloop_optimize): Remove redundant checked cast.
1043         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
1044         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
1045         NULL_RTX with NULL.
1046         (cris_simple_epilogue): Likewise.
1047         (cris_expand_prologue): Likewise.
1048         (cris_expand_epilogue): Likewise.
1049         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
1050         local "insn" from rtx to rtx_insn *.
1051         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
1052         (struct frv_packet_group): Likewise for the elements within array
1053         fields "insns", "sorted", and for field "nop".
1054         (frv_packet): Likewise for the elements within array field
1055         "insns".
1056         (frv_add_insn_to_packet): Likewise for param "insn".
1057         (frv_insert_nop_in_packet): Likewise for param "insn" and local
1058         "last".
1059         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
1060         (frv_sort_insn_group_1): Likewise for local "insn".
1061         (frv_optimize_membar_local): Likewise.
1062         (frv_align_label): Likewise for locals "x", "last", "barrier",
1063         "label".
1064         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
1065         local.
1066         (ia64_sched_init): Likewise for local "insn".
1067         (scheduled_good_insn): Likewise for param "last".
1068         (struct _ia64_sched_context): Likewise for field
1069         "last_scheduled_insn".
1070         (ia64_init_sched_context): Replace NULL_RTX with NULL.
1071         (struct bundle_state): Likewise for field "insn".
1072         (issue_nops_and_insn): Likewise for param "insn".
1073         (get_next_important_insn): Likewise for return type and both
1074         params.
1075         (ia64_add_bundle_selector_before): Likewise for param "insn".
1076         (bundling): Likewise for params "prev_head_insn", "tail" and
1077         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
1078         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
1079         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
1080         Strengthen final param from rtx to rtx_insn *.
1081         (iq2000_move_1word): Likewise for second param.
1082         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
1083         param "cur_insn" and local "next_insn".
1084         (iq2000_move_1word): Likewise for param "insn".
1085         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
1086         casts when using NEXT_INSN on operands[1].
1087         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
1088         "insn" from rtx to rtx_insn *.
1089         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
1090         "x", introducing local rtx_insn * "insn" for when working with the
1091         CODE_LABEL of the LABEL_REF.
1092         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
1093         rtx_insn *.
1094         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
1095         param.
1096         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
1097         type.
1098         (conditionalize_block): Likewise for return type and param.
1099         (mcore_is_dead): Likewise for param "first" and local "insn".
1100         (emit_new_cond_insn): Likewise for return type.
1101         (conditionalize_block): Likewise for return type, param, and
1102         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
1103         "newinsn".
1104         (conditionalize_optimization): Likewise for local "insn".
1105         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
1106         using NEXT_INSN.
1107         * config/microblaze/microblaze.md: Add checked casts when using
1108         NEXT_INSN.
1109         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
1110         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
1111         and rtx_insn * "insn".
1112         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
1113         checked cast when using NEXT_INSN on operands[2].
1114         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
1115         local "insn" from rtx to rtx_insn *.
1116         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
1117         Likewise.
1118         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
1119         Add a checked cast when using NEXT_INSN on operands[1].
1120         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
1121         rtx to rtx_insn *.
1122         (pa_output_cbranch): Likewise for final param.
1123         (pa_output_lbranch): Likewise for second param.
1124         (pa_output_bb): Likewise for third param.
1125         (pa_output_bvb): Likewise.
1126         (pa_output_dbra): Likewise for second param.
1127         (pa_output_movb): Likewise.
1128         (pa_output_parallel_movb): Likewise.
1129         (pa_output_parallel_addb): Likewise.
1130         (pa_output_millicode_call): Likewise for first param.
1131         (pa_output_mul_insn): Likewise for second param.
1132         (pa_output_div_insn): Likewise for third param.
1133         (pa_output_mod_insn): Likewise for second param.
1134         (pa_jump_in_call_delay): Likewise for param.
1135         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
1136         (pa_output_div_insn): Likewise.
1137         (pa_output_mod_insn): Likewise.
1138         (pa_output_cbranch): Likewise.
1139         (pa_output_lbranch): Likewise.
1140         (pa_output_bb): Likewise.
1141         (pa_output_bvb): Likewise.
1142         (pa_output_dbra): Likewise.
1143         (pa_output_movb): Likewise.
1144         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
1145         to simplify and for typesafety.
1146         (pa_output_call): Use method of rtx_sequence *.
1147         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
1148         (pa_jump_in_call_delay): Likewise.
1149         (pa_output_parallel_movb): Likewise.
1150         (pa_output_parallel_addb): Likewise.
1151         (pa_following_call): Likewise.
1152         (pa_combine_instructions): Likewise for locals "anchor",
1153         "floater".
1154         (pa_can_combine_p): Likewise for params "anchor", "floater" and
1155         locals "start", "end".
1156         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
1157         param "insn" and local "local_insn".
1158         (picochip_final_prescan_insn): Likewise for local "local_insn".
1159         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
1160         local "insn".
1161         (uses_TOC): Likewise.
1162         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
1163         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
1164         splitting out to more tightly-scoped locals, 3 as rtx and one as
1165         rtx_insn *.
1166         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
1167         to rtx_insn *.
1168         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
1169         where needed.
1170         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
1171         to rtx_insn *.
1172         (fixup_addr_diff_vecs): Likewise.
1173         (reg_unused_after): Likewise for param 2.
1174         (sh_can_redirect_branch): Likewise for both params.
1175         (check_use_sfunc_addr): Likewise for param 1.
1176         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
1177         (find_barrier): Likewise for local "last_got".
1178         (gen_block_redirect): Likewise for return type, param "jump" and
1179         locals "prev", "scan", "next", "insn".
1180         (struct far_branch): Likewise for fields "near_label",
1181         "insert_place", "far_label".
1182         (gen_far_branch): Likewise for local "jump".
1183         (fixup_addr_diff_vecs): Likewise for param "first" and locals
1184         "insn", "prev".
1185         (barrier_align): Likewise for param and for locals "prev", "x".
1186         Introduce local rtx_sequence * "prev_seq" and use insn method for
1187         typesafety and clarity.
1188         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
1189         (get_dest_uid): Likewise for local "dest".
1190         (split_branches): Likewise for locals "next", "beyond", "label",
1191         "block", "far_label".  Add checked casts when assigning to
1192         bp->far_label and "far_label".
1193         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
1194         (sequence_insn_p): Likewise.
1195         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
1196         more loop-scoped rtx "insn" when walking LABEL_REFS.
1197         (sh_can_redirect_branch): Strengthen both params from rtx to
1198         rtx_insn *.
1199         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
1200         new local rtx_sequence * "seq" via a dyn_cast, and use a method
1201         for clarity and typesafety.
1202         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
1203         "insn" from rtx to rtx_insn *.
1204         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
1205         when using NEXT_INSN on the CODE_LABEL in operands[2].
1206         (define_insn "casesi_worker_2"): Likewise.
1207         (define_insn "casesi_shift_media"): Likewise.
1208         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
1209         operands[3].
1210         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
1211         Strengthen field "insn" from rtx to rtx_insn *.
1212         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
1213         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
1214         param "start_insn" and local "start_insn".
1215         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
1216         field "insn".
1217         (find_set_of_reg_bb): Likewise for param "insn".
1218         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
1219         (trace_reg_uses): Likewise for param "start_insn".
1220         (sh_treg_combine::cbranch_trace): Likewise for field
1221         "cbranch_insn".
1222         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
1223         param "insn".
1224         (sh_treg_combine::record_set_of_reg): Likewise for param
1225         "start_insn" and local "i".
1226         (sh_treg_combine::can_remove_cstore): Likewise for local
1227         "prev_insn".
1228         (sh_treg_combine::try_optimize_cbranch): Likewise for param
1229         "insn".
1230         (sh_treg_combine::execute): Likewise for local "i".
1231         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
1232         param.
1233         (sparc_check_64): Likewise for second param.
1234         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1235         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
1236         dyn_cast, using its insn method for typesafety and clarity.
1237         (empty_delay_slot): Strengthen param "insn" from rtx to
1238         rtx_insn *.
1239         (set_extends): Likewise.
1240         (sparc_check_64): Likewise.
1241         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
1242         for locals "seq", "last_insn".
1243         (combine_bnp): Likewise for param "insn".
1244         (xstormy16_reorg): Likewise for local "insn".
1245         * config/v850/v850.c (substitute_ep_register): Likewise for params
1246         "first_insn", "last_insn" and local "insn".
1247         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
1248         elements of "regs" array, and local "insn".
1249         * except.c (emit_note_eh_region_end): Likewise for param "insn".
1250         * final.c (final_sequence): Strengthen this global from rtx to
1251         rtx_sequence *.
1252         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
1253         rtx_insn *.
1254         (final_scan_insn): Update assignment to "final_sequence" to be
1255         from "seq", the cast version of "body", for type-safety.
1256         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
1257         "insns" from rtx to rtx_insn *.
1258         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
1259         * genattr.c (main): When writing out generated insn-attr.h,
1260         strengthen params 1 and 3 of eligible_for_delay,
1261         eligible_for_annul_true, eligible_for_annul_false from rtx to
1262         rtx_insn *.
1263         * genattrtab.c (write_eligible_delay): Likewise when writing out
1264         generated insn-attrtab.c; also local "insn" the generated
1265         functions.
1266         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
1267         to rtx_insn *.
1268         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
1269         "start_label" from rtx to rtx_insn *.
1270         * ira.c (decrease_live_ranges_number): Likewise for local "p".
1271         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
1272         "insns" and local "insn".
1273         (validate_equiv_mem): Likewise for param "start" and local "insn".
1274         (memref_used_between_p): Likewise for params "start", "end" and
1275         local "insn".
1276         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
1277         final param.
1278         * loop-doloop.c (doloop_optimize): Within region guarded by
1279         INSN_P (doloop_pat), introduce a new local rtx_insn *
1280         "doloop_insn" via a checked cast, and use it for typesafety,
1281         eventually writing the value back into doloop_pat.
1282         * output.h (final_sequence): Strengthen this global from rtx to
1283         rtx_sequence *.
1284         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
1285         reintroducing "insn" as an rtx_insn * via a checked cast.
1286         Strengthen param "attempt" and local "new_insn"from rtx to
1287         rtx_insn *.
1288         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
1289         to rtx_insn *.
1290         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
1291         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
1292         "p" in favor of more tightly-scoped replacements, sometimes rtx
1293         and sometimes rtx_insn *, as appropriate.
1294         (delete_output_reload): Eliminate top-level rtx "i1", splitting
1295         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
1296         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
1297         local "trial" from rtx to rtx_insn *.
1298         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
1299         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
1300         rtx_sequence * and use methods for clarity and typesafety.
1301         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
1302         rtx to rtx_insn *.  Strenghten local "li" from rtx to
1303         rtx_insn_list * and use its methods for clarity and typesafety.
1304         (steal_delay_list_from_target): Strengthen param "insn" from rtx
1305         to rtx_insn *.
1306         (steal_delay_list_from_fallthrough): Likewise.
1307         (try_merge_delay_insns): Likewise for param "thread" and locals
1308         "trial", "next_trial", "delay_insn".
1309         (redundant_insn): Likewise for param "target" and local "trial".
1310         (own_thread_p): Likewise for param "thread" and locals
1311         "active_insn", "insn".
1312         (get_label_before): Likewise for param "insn".
1313         (fill_simple_delay_slots): Likewise for local "new_label"; use
1314         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
1315         (label_before_next_insn): Strengthen return type and local "insn"
1316         from rtx to rtx_insn *.
1317         (relax_delay_slots): Likewise for locals "other", "tmp".
1318         (make_return_insns): Likewise for param "first" and locals "insn",
1319         "jump_insn", "prev".  Move declaration of "pat" to its assignment
1320         and strengthen from rtx to rtx_sequence *.  Use its methods for
1321         clarity and typesafety.
1322         * rtlanal.c (no_labels_between_p): Strengthen params from
1323         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
1324         rtx_insn *.
1325         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
1326         from const_rtx to const rtx_insn *.
1327         (reg_set_between_p): Rename param "from_insn" to
1328         "uncast_from_insn", and reintroduce "from_insn" as a
1329         const rtx_insn * via a checked cast.
1330         (modified_between_p): Likewise for param "start" as "uncast_start".
1331         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
1332         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
1333         "tmp", head" from rtx to rtx_insn *.
1334         (recompute_rev_top_order): Likewise for local "insn".
1335         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
1336         * store-motion.c (build_store_vectors): Likewise for local "insn".
1337         Strengthen local "st" from rtx to rtx_insn_list * and use methods
1338         for clarity and typesafety.
1339         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
1340         rtx to rtx_insn *.
1341         (computation_cost): Likewise for local "seq".
1342         (get_address_cost): Likewise.
1344 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1346         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
1347         const rtx_insn *.
1348         (label_is_jump_target_p): Likewise for second param.
1350         * rtlanal.c (tablejump_p): Likewise for param "insn".
1351         (label_is_jump_target_p): Likewise for param "jump_insn".
1353 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1355         * rtl.h (find_first_parameter_load): Strengthen return type and
1356         both params from rtx to rtx_insn *.
1357         * rtlanal.c (find_first_parameter_load): Strengthen return type,
1358         both params and locals "before", "first_set" from rtx to
1359         rtx_insn *.  Remove now-redundant cast.
1360         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
1362 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1364         * rtl.h (find_last_value): Delete.
1365         * rtlanal.c (find_last_value): Delete.
1367 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1369         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
1370         from rtx to rtx_insn *.
1371         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
1372         rtx "note" with new local rtx_insn * "new_head" when calculating
1373         head insn of new basic block.
1374         * combine.c (combine_split_insns): Strengthen return type and local
1375         "ret" from rtx to rtx_insn *.
1376         (likely_spilled_retval_p): Likewise for locals "use" and "p".
1377         (try_combine): Eliminate local "m_split", splitting into new
1378         locals "m_split_insn" and "m_split_pat".
1379         (find_split_point): Strengthen local "seq" from rtx into
1380         rtx_insn *.
1381         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
1382         locals "label", "branch".
1383         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
1384         for local "insn".
1385         (define_expand "umulsi3_highpart"): Likewise for local "insn".
1386         * dse.c (note_add_store_info): Likewise for fields "first",
1387         "current".
1388         (note_add_store): Likewise for local "insn".
1389         (emit_inc_dec_insn_before): Likewise for locals "insn",
1390         "new_insn", "cur".
1391         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
1392         (replace_read): Likewise for locals "insns", "this_insn".
1393         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
1394         (notice_eh_throw): Likewise for param "insn".
1395         (before_next_cfi_note): Likewise for return type, param, and local
1396         "prev".
1397         (connect_traces): Likewise for local "note".
1398         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
1399         (verify_rtl_sharing): Likewise.
1400         (unshare_all_rtl_in_chain): Likewise for param "insn".
1401         (get_first_nonnote_insn): Likewise for local "insn".
1402         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
1403         "seq" and use its methods to clarify things.
1404         (next_insn): Strengthen return type from rtx to rtx_insn *.
1405         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
1406         local rtx_insn * using a checked cast, dropping a checked cast
1407         made redundant by this change.  Use a cast to and method of
1408         rtx_sequence to clarify the code.
1409         (previous_insn): Rename param "insn" to "uncast_insn" and
1410         reintroduce "insn" as a local rtx_insn * using a checked cast,
1411         dropping a checked cast made redundant by this change.  Use a cast
1412         to and method of rtx_sequence to clarify the code.
1413         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
1414         reintroduce "insn" as a local rtx_insn * using a checked cast,
1415         dropping a checked cast made redundant by this change.
1416         (next_nonnote_insn_bb): Likewise.
1417         (prev_nonnote_insn): Likewise.
1418         (prev_nonnote_insn_bb): Likewise.
1419         (next_nondebug_insn): Likewise.
1420         (prev_nondebug_insn): Likewise.
1421         (next_nonnote_nondebug_insn): Likewise.
1422         (prev_nonnote_nondebug_insn): Likewise.
1423         (next_real_insn): Likewise.
1424         (prev_real_insn): Likewise.
1425         (next_active_insn): Likewise.
1426         (prev_active_insn): Likewise.
1427         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
1428         clarity.
1429         (prev_cc0_setter): Likewise.
1430         (try_split): Rename param "trial" to "uncast_trial" and
1431         reintroduce "insn" as a local rtx_insn * using a checked cast,
1432         dropping checked casts made redundant by this change.
1433         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
1434         rtx to rtx_insn *.
1435         (remove_insn): Rename param "insn" to "uncast_insn" and
1436         reintroduce "insn" as a local rtx_insn * using a checked cast.
1437         (emit_pattern_after_setloc): Likewise for param "after", as
1438         "uncast_after".
1439         (emit_pattern_after): Likewise.  Strengthen local "prev" from
1440         rtx to rtx_insn *.
1441         (emit_pattern_before_setloc): Rename param "before" to
1442         "uncast_before" and reintroduce "before" as a local rtx_insn *
1443         using a checked cast.  Strengthen locals "first", "last" from
1444         rtx to rtx_insn *.
1445         (emit_pattern_before): Likewise rename/cast param "before" to
1446         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
1447         * except.c (copy_reg_eh_region_note_forward): Strengthen param
1448         "first" and local "insn" from rtx to rtx_insn *.
1449         (copy_reg_eh_region_note_backward): Likewise for param "last"
1450         and local "insn".
1451         * expr.c (fixup_args_size_notes): Rename param "last" to
1452         "uncast_last" and reintroduce "last" as a local rtx_insn *
1453         using a checked cast.  Strengthen local "insn" from rtx to
1454         rtx_insn *.
1455         * function.c (set_insn_locations): Strengthen param "insn" from
1456         rtx to rtx_insn *.
1457         (record_insns): Likewise for param "insns" and local "tmp".
1458         (active_insn_between): Rename param "tail" to
1459         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
1460         using a checked cast.
1461         (thread_prologue_and_epilogue_insns): Split out top-level local
1462         rtx "seq" into three different rtx_insn * locals.  Strengthen
1463         local "prologue_seq" from rtx to rtx_insn *.
1464         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
1465         from rtx to rtx_insn *.
1466         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
1467         (priority): Likewise for locals "prev_first", "twin".
1468         (setup_insn_max_reg_pressure): Likewise for param "after".
1469         (sched_setup_bb_reg_pressure_info): Likewise.
1470         (no_real_insns_p): Strengthen params from const_rtx to
1471         const rtx_insn *.
1472         (schedule_block): Strengthen local "next_tail" from rtx to
1473         rtx_insn *.
1474         * ifcvt.c (find_active_insn_before): Strengthen return type and
1475         param "insn" from rtx to rtx_insn *.
1476         (find_active_insn_after): Likewise.
1477         (cond_exec_process_insns): Likewise for param "start" and local "insn".
1478         (cond_exec_process_if_block): Likewise for locals "then_start",
1479         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
1480         (noce_process_if_block): Likewise for local "jump".
1481         (merge_if_block): Likewise for two locals named "end".
1482         (cond_exec_find_if_block): Likewise for local "last_insn".
1483         * jump.c (delete_related_insns): Rename param "insn" to
1484         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
1485         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
1486         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
1487         NULL.
1488         (split_reg): Likewise.
1489         * lra.c (lra_process_new_insns): Likewise.
1490         * modulo-sched.c (permute_partial_schedule): Strengthen param
1491         "last" from rtx to rtx_insn *.
1492         * optabs.c (add_equal_note): Likewise for param "insns" and local
1493         "last_insn".
1494         (expand_binop_directly): Add checked casts to rtx_insn * within
1495         NEXT_INSN (pat) uses.
1496         (expand_unop_direct): Likewise.
1497         (maybe_emit_unop_insn): Likewise.
1498         * recog.c (peep2_attempt): Strengthen locals "last",
1499         "before_try", "x" from rtx to rtx_insn *.
1500         * reorg.c (optimize_skip): Strengthen return type and local
1501         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
1502         and locals "trial", "next_trial" from rtx to rtx_insn *.
1503         * resource.c (next_insn_no_annul): Strengthen return type and
1504         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
1505         rtx_sequence to clarify the code.
1506         (mark_referenced_resources): Add a checked cast to rtx_insn *
1507         within PREV_INSN (x).
1508         (find_dead_or_set_registers): Strengthen return type, param
1509         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
1510         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
1511         to rtx_insn **.
1512         (mark_target_live_regs): Strengthen params "insns" and "target",
1513         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
1514         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
1515         the code.
1516         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
1517         from rtx to rtx_insn *.
1518         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
1519         from rtx to rtx_insn *.
1520         (copy_reg_eh_region_note_backward): Likewise.
1521         (unshare_all_rtl_in_chain): Likewise for sole param.
1522         (dump_rtl_slim): Strengthen second and third params from const_rtx
1523         to const rtx_insn *.
1524         * sched-deps.c (sched_free_deps): Strengthen params "head" and
1525         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
1526         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
1527         "next_tail" from rtx to rtx_insn *.
1528         (begin_move_insn): Likewise for local "next".
1529         * sched-int.h (sched_free_deps): Likewise for first and second
1530         params.
1531         (no_real_insns_p): Strengthen both params from const_rtx to
1532         const rtx_insn *.
1533         (sched_setup_bb_reg_pressure_info): Strengthen second params from
1534         rtx to rtx_insn *.
1535         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
1536         "next_tail".
1537         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
1538         and locals "insn", "tail" from const_rtx to const rtx_insn *.
1539         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
1540         rtx_insn *.
1541         (debug_rtl_slim): Strengthen params "first" and "last" from
1542         const_rtx to const rtx_insn *.
1543         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
1544         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
1545         (convert_to_simple_return): Likewise for param "returnjump".
1546         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
1547         "prologue_seq".
1548         (convert_to_simple_return): Likewise for param "returnjump".
1549         * valtrack.c (propagate_for_debug): Likewise for params
1550         "insn", "last".
1551         * valtrack.h (propagate_for_debug): Likewise for second param.
1553 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1555         * output.h (insn_current_reference_address): Strengthen param
1556         from rtx to rtx_insn *.
1557         * final.c (insn_current_reference_address): Likewise.
1559 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1561         * basic-block.h (inside_basic_block_p): Strengthen param from
1562         const_rtx to const rtx_insn *.
1563         * cfgbuild.c (inside_basic_block_p): Likewise.
1565 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1567         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
1568         rtx_insn *.
1569         (get_trace_info): Likewise for param "insn".
1570         (save_point_p): Likewise.
1571         (maybe_record_trace_start): Likewise for both params.
1572         (maybe_record_trace_start_abnormal): Likewise.
1573         (create_trace_edges): Likewise for sole param and for three of the
1574         locals named "lab".
1575         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
1576         to rtx_insn *, and update a call to pat->element to pat->insn.
1578 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1580         * function.h (struct expr_status): Convert field "x_forced_labels"
1581         from rtx_expr_list * to rtx_insn_list *.
1583         * cfgbuild.c (make_edges): Convert local "x" from an
1584         rtx_expr_list * to an rtx_insn_list *, replacing use of
1585         "element" method with "insn" method.
1586         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1587         * except.c (sjlj_emit_dispatch_table): Replace use of
1588         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
1589         forced_labels.
1590         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
1591         rtx_expr_list * to an rtx_insn_list *, replacing use of
1592         "element" method with "insn" method.
1593         * reload1.c (set_initial_label_offsets): Likewise for local "x".
1594         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
1595         rtx_insn *, adding a checked cast.  Replace use of
1596         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
1597         forced_labels.
1598         (expand_label): Likewise for local "label_r".
1600 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1602         * function.h (struct rtl_data): Convert field
1603         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
1604         rtx_insn_list *.
1605         * rtl.h (remove_node_from_insn_list): New prototype.
1607         * builtins.c (expand_builtin): When prepending to
1608         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
1609         gen_rtx_EXPR_LIST.
1610         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
1611         to rtx_insn_list *, and use its "insn" method rather than
1612         "element" method.
1613         * cfgrtl.c (delete_insn): Use new function
1614         remove_node_from_insn_list rather than
1615         remove_node_from_expr_list.
1616         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
1617         to rtx_insn_list *, and use its "insn" method rather than
1618         "element" method.
1619         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1620         * reload1.c (set_initial_label_offsets): Likewise for local "x".
1621         * rtlanal.c (remove_node_from_insn_list): New function, adapted
1622         from remove_node_from_expr_list.
1623         * stmt.c (expand_label): When prepending to
1624         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
1625         gen_rtx_EXPR_LIST.
1627 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1629         * function.h (struct rtl_data): Strengthen fields "x_return_label"
1630         and "x_naked_return_label" from rtx to rtx_code_label *.
1632 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1634         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
1635         (SET_NEXT_INSN): Likewise.
1636         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
1638         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
1639         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
1640         to split out the SEQUENCE from local "bundle", strengthening the
1641         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
1642         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
1643         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
1644         and the type of the elements of the "slot" array from rtx to
1645         rtx_insn *.
1646         (reorg_split_calls): Likewise for locals "insn" and "next", and
1647         the type of the elements of the "slot" array.
1649         * config/frv/frv.c (frv_nops): Likewise for the elements of this
1650         array.
1651         (frv_function_prologue): Likewise for locals "insn", "next",
1652         "last_call".
1653         (frv_register_nop): Introduce a local "nop_insn" to be the
1654         rtx_insn * containing rtx "nop".
1656         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
1657         used as an insn and sometimes as a pattern, so rename it to
1658         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
1659         using it where dealing with the core insn.
1661         * config/picochip/picochip.c (reorder_var_tracking_notes):
1662         Strengthen locals "insn", "next", "last_insn", "queue",
1663         "next_queue", "prev" from rtx to rtx_insn *.
1665         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
1666         the second param is an rtx_insn ** rather than an rtx **.
1667         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
1668         from rtx to rtx_sequence *, and introduce local named "sequence",
1669         using methods of rtx_sequence to clarify the code.
1670         (remove_insn): Introduce local rtx_sequence * named "sequence" and
1671         use its methods.
1672         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
1673         Rename param "after" to "uncast_after", reintroducing "after" as a
1674         local rtx_insn * with a checked cast.
1675         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
1676         reintroducing "after" as a local rtx_insn * with a checked cast.
1677         Strengthen local "last" from rtx to rtx_insn * and remove the
1678         now-redundant checked casts.
1679         (copy_delay_slot_insn): Strengthen return type and param from rtx
1680         to rtx_insn *.
1682         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
1683         "last" from rtx to rtx_insn *.
1685 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1687         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
1688         param from rtx to rtx_insn *.
1690         * emit-rtl.c (copy_delay_slot_insn): Likewise.
1692         * reorg.c (skip_consecutive_labels): Strengthen return type, param
1693         and local "insn" from rtx to rtx_insn *.
1694         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
1695         (unfilled_slots_next): Likewise.
1696         (function_return_label): Strengthen from rtx to rtx_code_label *.
1697         (function_simple_return_label): Likewise.
1698         (first_active_target_insn): Strengthen return type and param from
1699         rtx to rtx_insn *.
1700         (find_end_label): Strengthen return type from rtx to
1701         rtx_code_label *; strengthen locals as appropriate.
1702         (emit_delay_sequence): Strengthen return type, param "insn" and
1703         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
1704         and local "li" from rtx to rtx_insn_list *, using methods of
1705         rtx_insn_list for clarity and typesafety.
1706         (add_to_delay_list): Strengthen return type and param "insn" from
1707         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
1708         rtx_insn_list * and use methods of rtx_insn_list.
1709         (delete_from_delay_slot): Strengthen return type, param "insn",
1710         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
1711         Strengthen local "seq" from rtx to rtx_sequence *, and local
1712         "delay_list" from rtx to rtx_insn_list *, using methods of
1713         rtx_sequence for clarity and type-safety.
1714         (delete_scheduled_jump): Add checked cast when invoking
1715         delete_from_delay_slot.  Strengthen local "trial" from rtx to
1716         rtx_insn *.
1717         (optimize_skip): Strengthen return type and local "delay_list"
1718         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
1719         rtx_insn *.
1720         (steal_delay_list_from_target): Strengthen return type, param
1721         "delay_list" and local "new_delay_list" from rtx to
1722         rtx_insn_list *.  Strengthen param "seq" from rtx to
1723         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
1724         rtx_insn **.
1725         Split out local "temp" into multiple more-tightly scoped locals:
1726         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
1727         of rtx_insn_list and rtx_sequence for clarity and typesafety.
1728         Strengthen locals named "trial" from rtx to rtx_insn *.
1729         (steal_delay_list_from_fallthrough): Strengthen return type and
1730         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
1731         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
1732         Strengthen local "trial" from rtx to rtx_insn *.
1733         (try_merge_delay_insns): Strength local "merged_insns" from rtx
1734         to rtx_insn_list * and use its methods.  Strengthen local "pat"
1735         from rtx to rtx_sequence * and use its methods.  Strengthen locals
1736         "dtrial" and "new_rtx" from rtx to rtx_insn *.
1737         (get_label_before): Strengthen return type and local "label" from
1738         rtx to rtx_insn *.
1739         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
1740         "next_trial", "next", prev".  Strengthen local "delay_list" from
1741         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
1742         rtx_insn **.
1743         (follow_jumps): Strengthen return type, param "label" and locals
1744         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
1745         (fill_slots_from_thread): Strengthen return type, param
1746         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
1747         "insn", "thread", "opposite_thread" and locals "new_thread",
1748         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
1749         "sequence" from a checked cast to rtx_sequence so that we can call
1750         steal_delay_list_from_target and steal_delay_list_from_fallthrough
1751         with an rtx_sequence *.
1752         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
1753         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
1754         Strengthen local "delay_list" from rtx to rtx_insn_list *.
1755         (relax_delay_slots): Strengthen param "first" and locals "insn",
1756         "next", "trial", "delay_insn", "target_label" from rtx to
1757         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
1758         Introduce a local "trial_seq" for PATTERN (trial) of type
1759         rtx_sequence *, in both cases using methods of rtx_sequence.
1760         (dbr_schedule): Strengthen param "first" and locals "insn",
1761         "next", "epilogue_insn" from rtx to rtx_insn *.
1763 2014-08-28  Richard Biener  <rguenther@suse.de>
1765         PR tree-optimization/62283
1766         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1767         Do not peel loops for alignment where the vector loop likely
1768         doesn't run at least VF times.
1770 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
1772         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
1773         important_candidates.  Consider all important candidates if
1774         IVS doesn't give any result.  Remove check on ivs->upto.
1775         (try_add_cand_for): Call iv_ca_add_use only once.
1777 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1778             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1779             Anna Tikhonova  <anna.tikhonova@intel.com>
1780             Ilya Tocar  <ilya.tocar@intel.com>
1781             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1782             Ilya Verbin  <ilya.verbin@intel.com>
1783             Kirill Yukhin  <kirill.yukhin@intel.com>
1784             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1786         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
1787         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
1788         masking.
1789         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
1790         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1791         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1792         (define_insn "*mul<mode>3"): Add EVEX version.
1794 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1795             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1796             Anna Tikhonova  <anna.tikhonova@intel.com>
1797             Ilya Tocar  <ilya.tocar@intel.com>
1798             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1799             Ilya Verbin  <ilya.verbin@intel.com>
1800             Kirill Yukhin  <kirill.yukhin@intel.com>
1801             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1803         * config/i386/sse.md
1804         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
1805         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
1806         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
1807         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
1808         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
1809         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
1810         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
1811         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
1812         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
1813         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
1814         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
1815         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
1816         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
1817         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
1818         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
1819         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
1821 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1822             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1823             Anna Tikhonova  <anna.tikhonova@intel.com>
1824             Ilya Tocar  <ilya.tocar@intel.com>
1825             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1826             Ilya Verbin  <ilya.verbin@intel.com>
1827             Kirill Yukhin  <kirill.yukhin@intel.com>
1828             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1830         * config/i386/sse.md
1831         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
1832         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
1833         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
1835 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1836             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1837             Anna Tikhonova  <anna.tikhonova@intel.com>
1838             Ilya Tocar  <ilya.tocar@intel.com>
1839             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1840             Ilya Verbin  <ilya.verbin@intel.com>
1841             Kirill Yukhin  <kirill.yukhin@intel.com>
1842             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1844         * config/i386/sse.md
1845         (define_mode_iterator VI128_256): New.
1846         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1848 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1849             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1850             Anna Tikhonova  <anna.tikhonova@intel.com>
1851             Ilya Tocar  <ilya.tocar@intel.com>
1852             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1853             Ilya Verbin  <ilya.verbin@intel.com>
1854             Kirill Yukhin  <kirill.yukhin@intel.com>
1855             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1857         * config/i386/sse.md
1858         (define_mode_iterator VI8_256_512): New.
1859         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
1860         Ditto.
1861         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
1862         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
1863         Ditto.
1864         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
1866 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1868         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
1869         pointer to the cumulative reloc value and return the value for
1870         this reloc instead.
1871         (compute_reloc_for_rtx): Take a const_rtx.  Call
1872         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
1873         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
1874         for_each_rtx for the CONST case.
1876 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1878         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
1879         (mark_constants_in_pattern): ...this new function to iterate over
1880         all the subrtxes.
1881         (mark_constants): Update accordingly.
1883 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1885         * varasm.c: Include rtl-iter.h.
1886         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
1887         Remove the pointer to the cumulative hashval_t and just return
1888         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
1889         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1890         Accumulate the hashval_ts here instead of const_rtx_hash_1.
1892 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1894         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
1895         Give real type of data parameter.  Remove return value.
1896         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
1897         to iterate over subrtxes.
1899 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1901         * var-tracking.c (use_narrower_mode_test): Turn from being a
1902         for_each_rtx callback to being a function that examines each
1903         subrtx itself.
1904         (adjust_mems): Update accordingly.
1906 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1908         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
1909         callback to being a function that examines each subrtx itself.
1910         Remove handling of null rtxes.
1911         (add_uses): Update accordingly.
1913 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1915         * var-tracking.c: Include rtl-iter.h.
1916         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
1917         to being a function that examines each subrtx itself.
1918         (use_type): Update accordingly.
1920 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1922         * store-motion.c: Include rtl-iter.h.
1923         (extract_mentioned_regs_1): Delete.
1924         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
1925         for_each_rtx to iterate over subrtxes.
1927 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1929         * sel-sched.c: Include rtl-iter.h
1930         (count_occurrences_1): Delete.
1931         (count_occurrences_equiv): Turn rtxes into const_rtxes.
1932         Use FOR_EACH_SUBRTX rather than for_each_rtx.
1934 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1936         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
1937         * rtlanal.c (tls_referenced_p_1): Delete.
1938         (tls_referenced_p): Take a const_rtx rather than an rtx.
1939         Use FOR_EACH_SUBRTX rather than for_each_rtx.
1941 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1943         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
1944         (for_each_inc_dec): Take an rtx rather than an rtx *.
1945         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
1946         (cselib_record_sets): Likewise.
1947         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
1948         (check_for_inc_dec): Likewise.
1949         * rtlanal.c (for_each_inc_dec_ops): Delete.
1950         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
1951         rather than a pointer to the memory address.  Replace
1952         for_each_inc_dec_ops argument with separate function and data
1953         arguments.  Abort on non-autoinc addresses.
1954         (for_each_inc_dec_find_mem): Delete.
1955         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
1956         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
1958 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1960         * rtl.h (find_all_hard_regs): Declare.
1961         * rtlanal.c (find_all_hard_regs): New function.
1962         (record_hard_reg_uses_1): Delete.
1963         (record_hard_reg_uses): Use find_all_hard_regs.
1965 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1967         * rtl.h (replace_label_data): Delete.
1968         (replace_label): Take the old label, new label and update-nuses flag
1969         as direct arguments.  Return void.
1970         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
1971         * rtlanal.c (replace_label): Update interface as above.  Handle
1972         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
1973         iterator.  Use FOR_EACH_SUBRTX_PTR.
1975 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1977         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
1978         with const_rtx parameters.
1979         * varasm.c (get_pool_constant): Likewise.
1980         * rtlanal.c (rtx_referenced_p_1): Delete.
1981         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1982         Assert that the rtx we're looking for is nonnull.  Allow searches
1983         for constant pool SYMBOL_REFs.
1985 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1987         * reload1.c: Include rtl-iter.h.
1988         (note_reg_elim_costly): Turn from being a for_each_rtx callback
1989         to being a function that examines each subrtx itself.
1990         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
1992 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1994         * regcprop.c (cprop_find_used_regs_1): Delete.
1995         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1997 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1999         * regcprop.c: Include rtl-iter.h.
2000         (kill_value): Take a const_rtx.
2001         (kill_autoinc_value): Turn from being a for_each_rtx callback
2002         to being a function that examines each subrtx itself.
2003         (copyprop_hardreg_forward_1): Update accordingly.
2005 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2007         * reg-stack.c: Include rtl-iter.h.
2008         (subst_stack_regs_in_debug_insn): Delete.
2009         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
2010         instead of for_each_rtx.
2012 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2014         * lower-subreg.c (find_decomposable_subregs): Turn from being
2015         a for_each_rtx callback to being a function that examines each
2016         subrtx itself.  Remove handling of null rtxes.
2017         (decompose_multiword_subregs): Update accordingly.
2019 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2021         * lower-subreg.c (adjust_decomposed_uses): Delete.
2022         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
2023         Remove handling of null rtxes.
2025 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2027         * lower-subreg.c: Include rtl-iter.h.
2028         (resolve_subreg_use): Turn from being a for_each_rtx callback
2029         to being a function that examines each subrtx itself.  Remove
2030         handling of null rtxes.
2031         (resolve_reg_notes, resolve_simple_move): Update accordingly.
2032         (decompose_multiword_subregs): Likewise.
2034 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2036         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
2037         to being a function that examines each subrtx itself.
2038         (simplify_using_condition, simplify_using_initial_values): Update
2039         accordingly.
2041 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2043         * loop-iv.c: Include rtl-iter.h.
2044         (find_single_def_src): New function.
2045         (replace_single_def_regs): Turn from being a for_each_rtx callback
2046         to being a function that examines each subrtx itself.
2047         (replace_in_expr, simplify_using_initial_values): Update accordingly.
2049 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2051         * jump.c (eh_returnjump_p_1): Delete.
2052         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2053         Remove handling of null rtxes.
2055 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2057         * jump.c: Include rtl-iter.h.
2058         (returnjump_p_1): Delete.
2059         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2060         Remove handling of null rtxes.
2062 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2064         * ira.c: Include rtl-iter.h.
2065         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
2066         to being a function that examines each subrtx itself.  Remove
2067         handling of null rtxes.
2068         (update_equiv_regs): Update call accordingly.
2070 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2072         * fwprop.c: Include rtl-iter.h.
2073         (varying_mem_p): Turn from being a for_each_rtx callback to being
2074         a function that examines each subrtx itself.
2075         (propagate_rtx): Update accordingly.
2077 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2079         * function.c: Include rtl-iter.h
2080         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
2081         callback to being a function that examines each subrtx itself.
2082         Return the changed flag.
2083         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
2084         (instantiate_virtual_regs): Update calls accordingly.
2086 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2088         * final.c: Include rtl-iter.h.
2089         (mark_symbol_ref_as_used): Delete.
2090         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
2091         for_each_rtx.
2093 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2095         * emit-rtl.c: Include rtl-iter.h.
2096         (find_auto_inc): Turn from being a for_each_rtx callback to being
2097         a function that examines each subrtx itself.  Assume the first operand
2098         to an RTX_AUTOINC is the automodified register.
2099         (try_split): Update call accordingly.
2101 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2103         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
2104         Return a bool, inverting the result so that 0/false means "not ok".
2105         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
2106         subrtxes of a CONST.
2107         (mem_loc_descriptor, add_const_value_attribute)
2108         (resolve_addr_in_expr): Update calls accordingly.
2110 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2112         * dwarf2out.c: Include rtl-iter.h.
2113         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
2114         Remove unused data parameter.  Return a bool, inverting the result
2115         so that 0/false means "not ok".
2116         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
2117         instead of for_each_rtx.
2119 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2121         * dse.c: Include rtl-iter.h.
2122         (check_mem_read_rtx): Change void * parameter to real type.
2123         Remove return value.
2124         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
2125         for_each_rtx.  Don't handle null rtxes.
2127 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2129         * df-problems.c: Include rtl-iter.h.
2130         (find_memory): Turn from being a for_each_rtx callback to being
2131         a function that examines each subrtx itself.  Continue to look for
2132         volatile references even after a nonvolatile one has been found.
2133         (can_move_insns_across): Update calls accordingly.
2135 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2137         * ddg.c (walk_mems_2, walk_mems_1): Delete.
2138         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
2139         to iterate over subrtxes.  Return a bool rather than an int.
2141 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2143         * ddg.c: Include rtl-iter.h.
2144         (mark_mem_use_1): Rename to...
2145         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
2146         instead of for_each_rtx.
2147         (mem_read_insn_p): Update accordingly.
2149 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2151         * cse.c (change_cc_mode_args): Delete.
2152         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
2153         a function that examines each subrtx itself.  Take the fields of
2154         change_cc_mode_args as argument and return void.
2155         (cse_change_cc_mode_insn): Update calls accordingly.
2157 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2159         * cse.c (is_dead_reg): Change argument to const_rtx.
2160         (dead_debug_insn_data): Delete.
2161         (is_dead_debug_insn): Expand commentary.  Turn from being a
2162         for_each_rtx callback to being a function that examines
2163         each subrtx itself.  Take the fields of dead_debug_insn_data
2164         as argument.
2165         (delete_trivially_dead_insns): Update call accordingly.
2167 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2169         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
2170         being a for_each_rtx callback to being a function that examines
2171         each subrtx itself.
2172         (cse_extended_basic_block): Update call accordingly.
2174 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2176         * cse.c (check_dependence_data): Delete.
2177         (check_dependence): Change from being a for_each_rtx callback to being
2178         a function that examines all subrtxes itself.  Don't handle null rtxes.
2179         (invalidate): Update call accordingly.
2181 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2183         * cse.c: Include rtl-iter.h.
2184         (approx_reg_cost_1): Delete.
2185         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2186         Don't handle null rtxes.
2188 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2190         * cfgcleanup.c: Include rtl-iter.h.
2191         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
2192         to being a function that examines each subrtx itself.
2193         (thread_jump): Update accordingly.
2195 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2197         * combine-stack-adj.c: Include rtl-iter.h.
2198         (record_stack_refs_data): Delete.
2199         (record_stack_refs): Turn from being a for_each_rtx callback
2200         to being a function that examines each subrtx itself.
2201         Take a pointer to the reflist.  Invert sense of return value
2202         so that true means success and false means failure.  Don't
2203         handle null rtxes.
2204         (combine_stack_adjustments_for_block): Update accordingly.
2206 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2208         * combine.c (record_truncated_value): Turn from being a for_each_rtx
2209         callback to a function that takes an rtx and returns a bool
2210         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
2211         for_each_rtx.
2213 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2215         * combine.c: Include rtl-iter.h.
2216         (unmentioned_reg_p_1): Delete.
2217         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2218         Don't handle null rtxes.
2220 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2222         * calls.c: Include rtl-iter.h.
2223         (internal_arg_pointer_based_exp_1): Delete.
2224         (internal_arg_pointer_based_exp): Take a const_rtx.
2225         Use FOR_EACH_SUBRTX to iterate over subrtxes.
2227 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2229         * caller-save.c: Include rtl-iter.h.
2230         (add_used_regs_1): Delete.
2231         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
2232         to iterate over subrtxes.  Assert that any remaining pseudos
2233         have been spilled.
2235 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2237         * bt-load.c: Include rtl-iter.h.
2238         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
2239         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
2240         to iterate over subrtxes.
2241         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
2242         find_btr_use rather than btr_referenced_p.
2244 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2246         * alias.c: Include rtl-iter.h.
2247         (refs_newer_value_cb): Delete.
2248         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2250 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2252         * rtl-iter.h: New file.
2253         * rtlanal.c: Include it.
2254         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
2255         (generic_subrtx_iterator <T>::add_single_to_queue)
2256         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
2257         (generic_subrtx_iterator <T>::free_array): New functions.
2258         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
2259         (generic_subrtx_iterator <const_rtx_accessor>)
2260         (generic_subrtx_iterator <rtx_var_accessor>
2261         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
2262         (setup_reg_subrtx_bounds): New function.
2263         (init_rtlanal): Call it.
2265 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
2267         PR target/62261
2268         * config/sh/sh.md (ashlsi3): Handle negative shift count for
2269         TARGET_SHMEDIA.
2270         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
2272 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
2274         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
2276 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2278         * rtl.h (JUMP_LABEL_AS_INSN): New.
2280 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2282         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
2283         rtx_expr_list **.
2284         (alloc_EXPR_LIST): Strengthen return type from rtx to
2285         rtx_expr_list *.
2286         (remove_free_EXPR_LIST_node): Likewise for param.
2287         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
2288         from rtx to rtx_expr_list *.
2289         * sched-int.h (struct deps_desc): Strengthen fields
2290         "pending_read_mems" and "pending_write_mems" from rtx to
2291         rtx_expr_list *.
2293         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
2294         rtx to rtx_expr_list *.
2295         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
2296         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
2297         rtx_expr_list **.
2298         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
2299         from rtx to rtx_expr_list *.
2300         * loop-iv.c (simplify_using_initial_values): Strengthen local
2301         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
2302         "pnote_next" from rtx * to rtx_expr_list **.
2303         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
2304         param "exprp" from rtx * to rtx_expr_list **.
2305         (add_insn_mem_dependence): Strengthen local "mem_list" from
2306         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
2307         to rtx_expr_list *.
2308         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
2309         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
2310         param "old_mems_p" from rtx * to rtx_expr_list **.
2311         * var-tracking.c (struct adjust_mem_data): Strengthen field
2312         "side_effects" from rtx to rtx_expr_list *.
2313         (adjust_insn): Replace NULL_RTX with NULL when assigning to
2314         rtx_expr_list *.
2315         (prepare_call_arguments): Likewise.
2317 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2319         * function.h (struct rtl_data): Strengthen field
2320         "x_stack_slot_list" from rtx to rtx_expr_list *.
2322         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
2323         when assigning to stack_slot_list.
2325 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2327         * function.h (struct rtl_data): Strengthen field
2328         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
2329         * rtl.h (remove_node_from_expr_list): Strengthen second param from
2330         rtx * to rtx_expr_list **.
2332         * cfgbuild.c (make_edges): In loop over
2333         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
2334         rtx_expr_list *, and use methods of the latter class to clarify
2335         the code.
2336         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
2337         rtx_expr_list *, and use methods of the latter class to clarify
2338         the code.
2339         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2340         * reload1.c (set_initial_label_offsets): Likewise for local "x".
2341         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
2342         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
2343         to rtx_expr_list *.  Use methods of the latter class to clarify
2344         the code.
2346 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2348         * function.h (struct expr_status): Strengthen field
2349         "x_forced_labels" from rtx to rtx_expr_list *.
2351         * cfgbuild.c (make_edges): Split local "x" into two locals,
2352         strengthening one from rtx to rtx_expr_list *, and using methods
2353         of said class.
2354         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
2355         loop over forced_labels, introduce strengthen it from rtx to
2356         rtx_expr_list *, using methods to clarify the code.
2357         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
2358         to rtx_expr_list *, using methods of said class to clarify the
2359         code.
2360         * reload1.c (set_initial_label_offsets): Split local "x" into two
2361         per-loop variables, strengthening the first from rtx to
2362         rtx_expr_list * and using methods.
2364 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2366         * coretypes.h (class rtx_expr_list): Add forward declaration.
2367         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
2368         * gengenrtl.c (special_rtx): Add EXPR_LIST.
2369         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
2370         invariant: GET_CODE (X) == EXPR_LIST.
2371         (is_a_helper <rtx_expr_list *>::test): New.
2372         (rtx_expr_list::next): New.
2373         (rtx_expr_list::element): New.
2374         (gen_rtx_EXPR_LIST): New.
2376 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2378         * varasm.c (mark_constants): Convert a GET_CODE check into a
2379         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
2380         Use methods of rtx_sequence to clarify the code.
2382 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2384         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
2385         local "seq" via a checked cast, and use methods of rtx_sequence
2386         to simplify the code.
2388 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2390         * resource.c (mark_referenced_resources): Strengthen local
2391         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
2392         using methods of rtx_sequence to clarify the code.
2393         (find_dead_or_set_registers): Within the switch statement, convert
2394         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
2395         the JUMP_P handling, introduce another local "seq", adding a
2396         checked cast to rtx_sequence *.  In both cases, use methods of
2397         rtx_sequence to clarify the code.
2398         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
2399         via a checked cast, and use methods of rtx_sequence to simplify
2400         the code.
2402 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2404         * reorg.c (redundant_insn): In two places in the function, replace
2405         a check of GET_CODE with a dyn_cast, introducing local "seq", and
2406         usings methods of rtx_sequence to clarify the code.
2408 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2410         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
2411         local "seq" with a checked cast, and use methods of rtx_sequence
2412         to clarify the code.
2414 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2416         * function.c (contains): Introduce local "seq" for PATTERN (insn),
2417         with a checked cast, in the region for where we know it's a
2418         SEQUENCE.  Use methods of rtx_sequence.
2420 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2422         * final.c (get_attr_length_1): Replace GET_CODE check with a
2423         dyn_cast, introducing local "seq" and the use of methods of
2424         rtx_sequence.
2425         (shorten_branches): Likewise, introducing local "body_seq".
2426         Strengthen local "inner_insn" from rtx to rtx_insn *.
2427         (reemit_insn_block_notes): Replace GET_CODE check with a
2428         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
2429         Use methods of rtx_sequence.
2430         (final_scan_insn): Likewise, introducing local "seq" for when
2431         "body" is known to be a SEQUENCE, using its methods.
2433 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2435         * except.c (can_throw_external): Strengthen local "seq" from rtx
2436         to rtx_sequence *.  Use methods of rtx_sequence.
2437         (insn_nothrow_p): Likewise.
2439 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2441         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
2442         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
2443         Use methods of rtx_sequence.
2444         (scan_trace): Likewise for local "pat".
2446 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2448         * coretypes.h (class rtx_sequence): Add forward declaration.
2449         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
2450         invariant: GET_CODE (X) == SEQUENCE.
2451         (is_a_helper <rtx_sequence *>::test): New.
2452         (is_a_helper <const rtx_sequence *>::test): New.
2453         (rtx_sequence::len): New.
2454         (rtx_sequence::element): New.
2455         (rtx_sequence::insn): New.
2457 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2459         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
2460         rtx_insn_list **.
2461         (alloc_INSN_LIST): Strengthen return type from rtx to
2462         rtx_insn_list *.
2463         (copy_INSN_LIST): Likewise for return type and param.
2464         (concat_INSN_LIST): Likewise for both params and return type.
2465         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
2466         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
2467         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
2468         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
2470         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
2471         "implicit_sets", "control_uses", "clobbers" from rtx to
2472         rtx_insn_list *.
2473         (struct deps_desc): Likewise for fields "pending_read_insns",
2474         "pending_write_insns", "pending_jump_insns",
2475         "last_pending_memory_flush", "last_function_call",
2476         "last_function_call_may_noreturn", "sched_before_next_call",
2477         "sched_before_next_jump".
2478         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
2479         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
2481         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
2482         from rtx to rtx_insn_list *.
2483         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
2484         rtx_insn_list *.
2486         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
2487         to rtx_insn_list **.
2488         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
2489         rtx_insn_list *.
2490         (queue_insn): Likewise for local "link".
2491         (struct haifa_saved_data): Strengthen field "insn_queue" from
2492         rtx * to rtx_insn_list **.
2493         (save_backtrack_point): Update allocation of save->insn_queue to
2494         reflect the strengthening of elements from rtx to rtx_insn_list *.
2495         (queue_to_ready): Strengthen local "link" from rtx to
2496         rtx_insn_list *; use methods "next" and "insn" when traversing the
2497         list.
2498         (early_queue_to_ready): Likewise for locals "link", "next_link",
2499         "prev_link".
2500         (schedule_block): Update allocation of insn_queue to reflect the
2501         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
2502         local "link" from rtx to rtx_insn_list *, and use methods when
2503         working it.
2504         (add_to_speculative_block): Strengthen locals "twins" and
2505         "next_node" from rtx to rtx_insn_list *, and use methods when
2506         working with them.  Strengthen local "twin" from rtx to
2507         rtx_insn *, eliminating a checked cast.
2508         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
2509         from rtx to rtx_insn_list *, and use methods when working with
2510         them.
2512         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
2513         from rtx to rtx_insn_list *, adding a checked cast.
2514         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
2515         rtx_insn_list **.
2516         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
2517         "newlink" from rtx to rtx_insn_list *.  Strengthen local
2518         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
2519         from rtx to rtx_insn *.
2520         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
2521         from rtx to rtx_insn_list *.  Use methods of the latter class.
2522         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
2523         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
2524         (remove_free_INSN_LIST_node): Strengthen return type and local
2525         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
2526         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
2527         rtx_insn_list *, using "insn" method.
2529         * sched-deps.c (add_dependence_list):  Strengthen param "list"
2530         from rtx to rtx_insn_list *, and use methods when working with it.
2531         (add_dependence_list_and_free):  Strengthen param "listp" from
2532         rtx * to rtx_insn_list **.
2533         (remove_from_dependence_list): Strenghten param "listp" from rtx *
2534         to rtx_insn_list **, and use methods when working with *listp.
2535         (remove_from_both_dependence_lists): Strengthen param "listp" from
2536         rtx * to rtx_insn_list **
2537         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
2538         to rtx_insn_list **.  Eliminate local "link", in favor of two new
2539         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
2540         respectively.
2541         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
2542         by introducing local "cond_deps".
2543         (remove_from_deps): Strengthen param "insn" from rtx to
2544         rtx_insn *.
2546         * sched-rgn.c (concat_insn_mem_list): Strengthen param
2547         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
2548         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
2549         Use methods of rtx_insn_list.
2551         * store-motion.c (struct st_expr): Strengthen fields
2552         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
2553         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
2554         rtx_insn_list *.
2555         (find_moveable_store): Split out "tmp" into multiple more-tightly
2556         scoped locals.  Use methods of rtx_insn_list *.
2557         (compute_store_table): Strengthen local "tmp" from rtx to
2558         rtx_insn *.  Use methods of rtx_insn_list *.
2560 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2562         * coretypes.h (class rtx_insn_list): Add forward declaration.
2563         * rtl.h (class rtx_insn_list): New subclass of rtx_def
2564         (is_a_helper <rtx_insn_list *>::test): New.
2565         (rtx_insn_list::next): New.
2566         (rtx_insn_list::insn): New.
2567         (gen_rtx_INSN_LIST): Add prototype.
2568         * emit-rtl.c (gen_rtx_INSN_LIST): New.
2569         * gengenrtl.c (special_rtx): Add INSN_LIST.
2571 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2573         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
2574         "prev" from rtx to rtx_insn *.
2576 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2578         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
2579         functions.  Require merely an rtx for now, not an rtx_insn *.
2580         (BLOCK_FOR_INSN): Likewise.
2581         (INSN_LOCATION): Likewise.
2582         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
2584 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2586         * rtl.h (PATTERN): Convert this macro into a pair of inline
2587         functions, for now, requiring const_rtx and rtx.
2589 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2591         * target.def (unwind_emit): Strengthen param "insn" from rtx to
2592         rtx_insn *.
2593         (final_postscan_insn): Likewise.
2594         (adjust_cost): Likewise.
2595         (adjust_priority): Likewise.
2596         (variable_issue): Likewise.
2597         (macro_fusion_pair_p): Likewise.
2598         (dfa_post_cycle_insn): Likewise.
2599         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
2600         (first_cycle_multipass_issue): Likewise.
2601         (dfa_new_cycle): Likewise.
2602         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
2603         (speculate_insn): Likewise for param "insn".
2604         (gen_spec_check): Likewise for params "insn" and "label".
2605         (get_insn_spec_ds): Likewise for param "insn".
2606         (get_insn_checked_ds): Likewise.
2607         (dispatch_do): Likewise.
2608         (dispatch): Likewise.
2609         (cannot_copy_insn_p): Likewise.
2610         (invalid_within_doloop): Likewise.
2611         (legitimate_combined_insn): Likewise.
2612         (needed): Likewise.
2613         (after): Likewise.
2615         * doc/tm.texi: Automatically updated to reflect changes to
2616         target.def.
2618         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
2619         working with insn.
2620         (schedule_block): Likewise.
2621         (sched_init): Likewise.
2622         (sched_speculate_insn): Strengthen param "insn" from rtx to
2623         rtx_insn *.
2624         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
2625         working with insn.
2626         * hooks.c (hook_bool_rtx_true): Rename to...
2627         hook_bool_rtx_insn_true): ...this, and strengthen first param from
2628         rtx to rtx_insn *.
2629         (hook_constcharptr_const_rtx_null): Rename to...
2630         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2631         first param from const_rtx to const rtx_insn *.
2632         (hook_bool_rtx_int_false): Rename to...
2633         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2634         param from rtx to rtx_insn *.
2635         (hook_void_rtx_int): Rename to...
2636         (hook_void_rtx_insn_int): ...this, and strengthen first param from
2637         rtx to rtx_insn *.
2639         * hooks.h (hook_bool_rtx_true): Rename to...
2640         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
2641         rtx to rtx_insn *.
2642         (hook_bool_rtx_int_false): Rename to...
2643         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2644         param from rtx to rtx_insn *.
2645         (hook_void_rtx_int): Rename to...
2646         (hook_void_rtx_insn_int): ...this, and strengthen first param from
2647         rtx to rtx_insn *.
2648         (hook_constcharptr_const_rtx_null): Rename to...
2649         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2650         first param from const_rtx to const rtx_insn *.
2652         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
2653         and local "prev" from rtx to rtx_insn *.
2655         * sched-int.h (sched_speculate_insn): Strengthen first param from
2656         rtx to rtx_insn *.
2658         * sel-sched.c (create_speculation_check): Likewise for local "label".
2659         * targhooks.c (default_invalid_within_doloop): Strengthen param
2660         "insn" from const_rtx to const rtx_insn *.
2661         * targhooks.h (default_invalid_within_doloop): Strengthen param
2662         from const_rtx to const rtx_insn *.
2664         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
2665         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
2667         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
2668         "insn".
2669         (arc_invalid_within_doloop): Likewise, with const.
2671         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
2672         (arm_cannot_copy_insn_p): Likewise for param "insn".
2673         (arm_unwind_emit): Likewise.
2675         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
2676         "dep_insn".
2678         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
2679         (c6x_variable_issue): Likewise.  Removed now-redundant checked
2680         cast.
2681         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
2683         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
2684         Likewise for param "insn".
2685         (epiphany_mode_after): Likewise.
2686         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
2687         params "insn", "dep_insn".
2688         (epiphany_mode_needed): Likewise for param "insn".
2689         (epiphany_mode_after): Likewise.
2691         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
2692         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2693         (ix86_avx_u128_mode_needed): Likewise.
2694         (ix86_i387_mode_needed): Likewise.
2695         (ix86_mode_needed): Likewise.
2696         (ix86_avx_u128_mode_after): Likewise.
2697         (ix86_mode_after): Likewise.
2698         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
2699         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
2700         (ix86_adjust_priority): Likewise for param "insn".
2701         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
2702         (do_dispatch): Likewise.
2703         (has_dispatch): Likewise.
2704         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
2706         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
2707         reflect renaming of default hook implementation from
2708         hook_constcharptr_const_rtx_null to
2709         hook_constcharptr_const_rtx_insn_null.
2710         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
2711         rtx to rtx_insn *.
2712         (ia64_variable_issue): Likewise for param "insn".
2713         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
2714         (ia64_dfa_new_cycle): Likewise.
2715         (ia64_get_insn_spec_ds): Likewise.
2716         (ia64_get_insn_checked_ds): Likewise.
2717         (ia64_speculate_insn): Likewise.
2718         (ia64_gen_spec_check): Likewise for params "insn", "label".
2719         (ia64_asm_unwind_emit): Likewise for param "insn".
2721         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
2723         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
2724         "insn", "def_insn".
2725         (m68k_sched_variable_issue): Likewise for param "insn".
2727         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
2728         "def_insn".
2730         * config/microblaze/microblaze.c (microblaze_adjust_cost):
2731         Likewise for params "insn", "dep".
2733         * config/mips/mips.c (mips_adjust_cost): Likewise.
2734         (mips_variable_issue): Likewise for param "insn".
2735         (mips_final_postscan_insn): Likewise.
2737         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
2738         for params "insn", "dep".
2740         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
2741         "dep_insn".
2742         (pa_adjust_priority): Likewise for param "insn".
2744         * config/picochip/picochip.c (picochip_sched_adjust_cost):
2745         Likewise for params "insn", "dep_insn".
2747         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
2748         param "insn".
2749         (rs6000_variable_issue): Likewise.
2750         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
2751         (rs6000_debug_adjust_cost): Likewise.
2752         (rs6000_adjust_priority): Likewise for param "insn".
2753         (rs6000_use_sched_lookahead_guard): Likewise.
2754         (get_next_active_insn): Likewise for return type and both params.
2755         (redefine_groups): Likewise for params "prev_head_insn", "tail"
2756         and locals "insn", "next_insn".
2757         (pad_groups): Likewise.
2759         * config/s390/s390.c (s390_adjust_priority): Likewise for param
2760         "insn".
2761         (s390_cannot_copy_insn_p): Likewise.
2762         (s390_sched_variable_issue): Likewise for third param, eliminating
2763         checked cast.
2764         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
2765         default hook implementation from hook_constcharptr_const_rtx_null
2766         to hook_constcharptr_const_rtx_insn_null.
2768         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
2769         from rtx to rtx_insn *.
2770         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
2771         (sh_variable_issue): Likewise for param "insn".
2772         (sh_dfa_new_cycle): Likewise.
2773         (sh_mode_needed): Likewise.
2774         (sh_mode_after): Likewise.
2776         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
2777         params "insn", "dep_insn".
2778         (hypersparc_adjust_cost): Likewise.
2779         (sparc_adjust_cost): Likewise.
2781         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
2782         param, eliminated checked cast.
2783         (spu_sched_adjust_cost): Likewise for first and third params.
2785         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
2786         params "insn" and "dep_insn" from rtx to rtx_insn *.
2788         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
2790 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2792         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
2793         (set_is_load_p): ...this, updating to work on a SET pattern rather
2794         than an insn.
2795         (is_store_insn): Rename to...
2796         (set_is_store_p): ...this, updating to work on a SET pattern
2797         rather than an insn.
2798         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
2799         top of function to where it is needed.  Rewrite the bogus
2800         condition that checks for "insn" and "dep" being PARALLEL to
2801         instead use single_set, introducing locals "insn_set" and
2802         "dep_set".  Given that we only ever returned "cost" for a non-pair
2803         of SETs, bail out early if we don't have a pair of SET.
2804         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
2805         use the new locals "insn_set" and "dep_set", and update calls to
2806         is_load_insn and is_store_insn to be calls to set_is_load_p and
2807         set_is_store_p.
2809 2014-08-27  Guozhi Wei  <carrot@google.com>
2811         PR target/62262
2812         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
2813         amount before using it.
2815 2014-08-27  Richard Biener  <rguenther@suse.de>
2817         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
2818         get_maxval_strlen inside a more useful API.
2819         (gimple_fold_builtin_with_strlen): Remove and fold into ...
2820         (gimple_fold_builtin): ... caller.
2821         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
2822         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
2823         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
2824         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
2825         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
2826         gimple_fold_builtin_sprintf): Adjust to compute maxval
2827         themselves.
2829 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
2831         PR other/62248
2832         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
2834 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2835             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2836             Anna Tikhonova  <anna.tikhonova@intel.com>
2837             Ilya Tocar  <ilya.tocar@intel.com>
2838             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2839             Ilya Verbin  <ilya.verbin@intel.com>
2840             Kirill Yukhin  <kirill.yukhin@intel.com>
2841             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2843         * config/i386/sse.md
2844         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
2845         Use `concat_tg_mode' attribute to determine asm register size.
2847 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2848             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2849             Anna Tikhonova  <anna.tikhonova@intel.com>
2850             Ilya Tocar  <ilya.tocar@intel.com>
2851             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2852             Ilya Verbin  <ilya.verbin@intel.com>
2853             Kirill Yukhin  <kirill.yukhin@intel.com>
2854             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2856         * config/i386/sse.md
2857         (define_mode_iterator VI48_AVX512VL): New.
2858         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
2859         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
2860         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
2861         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2862         with VI1): Change mode iterator.
2863         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2864         with VI_ULOADSTORE_BW_AVX512VL): New.
2865         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2866         with VI_ULOADSTORE_F_AVX512VL): Ditto.
2867         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2868         with VI1): Change mode iterator.
2869         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2870         with VI_ULOADSTORE_BW_AVX512VL): New.
2871         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2872         with VI_ULOADSTORE_F_AVX512VL): Ditto.
2873         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2874         with VI1): Change mode iterator.
2875         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2876         with VI_ULOADSTORE_BW_AVX512VL): New.
2877         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2878         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
2879         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
2880         (define_insn "<avx512>_storedqu<mode>_mask" with
2881         VI48_AVX512VL): New.
2882         (define_insn "<avx512>_storedqu<mode>_mask" with
2883         VI12_AVX512VL): Ditto.
2885 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2886             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2887             Anna Tikhonova  <anna.tikhonova@intel.com>
2888             Ilya Tocar  <ilya.tocar@intel.com>
2889             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2890             Ilya Verbin  <ilya.verbin@intel.com>
2891             Kirill Yukhin  <kirill.yukhin@intel.com>
2892             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2894         * config/i386/sse.md
2895         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
2896         (define_mode_iterator VI48_AVX512BW): New.
2897         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
2898         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2899         with VI48_AVX2_48_AVX512F): New.
2900         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2901         with VI2_AVX512VL): Ditto.
2903 2014-08-27  Richard Biener  <rguenther@suse.de>
2905         PR middle-end/62239
2906         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
2907         (fold_builtin_3): Do not fold strcat_chk here.
2908         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
2909         from builtins.c.
2910         (gimple_fold_builtin): Fold strcat_chk here.
2912 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
2914         * dwarf2out.h (dwarf2out_decl): Remove prototype.
2915         * dwarf2out.c (dwarf2out_decl): Make static.
2917 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
2919         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
2921 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2923         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
2924         from rtx to rtx_insn *.
2925         (cselib_lookup_from_insn): Likewise for final param.
2926         (cselib_subst_to_values_from_insn): Likewise.
2927         (cselib_add_permanent_equiv): Likewise.
2929         * cselib.c (cselib_current_insn): Likewise for this variable.
2930         (cselib_subst_to_values_from_insn): Likewise for param "insn".
2931         (cselib_lookup_from_insn): Likewise.
2932         (cselib_add_permanent_equiv): Likewise for param "insn" and local
2933         "save_cselib_current_insn".
2934         (cselib_process_insn): Replace use of NULL_RTX with NULL.
2936         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
2937         from rtx to rtx_insn *.
2939 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2941         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
2942         rtx_insn *.
2944 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2946         * df.h (df_dump_insn_problem_function): Strengthen first param of
2947         this callback from const_rtx to const rtx_insn *.
2948         (struct df_insn_info): Strengthen field "insn" from rtx to
2949         rtx_insn *.
2950         (DF_REF_INSN): Eliminate this function, reinstating the older
2951         macro definition.
2952         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
2953         (df_reg_defined): Likewise.
2954         (df_find_use): Likewise.
2955         (df_reg_used): Likewise.
2956         (df_dump_insn_top): Strengthen param 1 from const_rtx to
2957         const rtx_insn *.
2958         (df_dump_insn_bottom): Likewise.
2959         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
2960         (df_insn_debug_regno): Likewise.
2961         (debug_df_insn): Likewise.
2962         (df_rd_simulate_one_insn): Likewise for param 2.
2963         (df_word_lr_simulate_defs): Likewise for param 1.
2964         (df_word_lr_simulate_uses): Likewise.
2965         (df_md_simulate_one_insn): Likewise for param 2.
2966         (df_simulate_find_noclobber_defs): Likewise for param 1.
2967         (df_simulate_find_defs): Likewise.
2968         (df_simulate_defs): Likewise.
2969         (df_simulate_uses): Likewise.
2970         (df_simulate_one_insn_backwards): Likewise for param 2.
2971         (df_simulate_one_insn_forwards): Likewise.
2972         (df_uses_create): Likewise for param 2.
2973         (df_insn_create_insn_record): Likewise for param 1.
2974         (df_insn_delete): Likewise.
2975         (df_insn_rescan): Likewise.
2976         (df_insn_rescan_debug_internal): Likewise.
2977         (df_insn_change_bb): Likewise.
2978         (df_notes_rescan): Likewise.
2979         * rtl.h (remove_death): Likewise for param 2.
2980         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
2981         const rtx_insn *.
2982         * sched-int.h (reemit_notes): Strengthen param from rtx to
2983         rtx_insn *.
2984         * valtrack.h (propagate_for_debug): Likewise for param 1.
2986         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
2987         local "tmp_rtx" from const_rtx to const rtx_insn *.
2988         * combine.c (remove_death): Strengthen param "insn" from rtx to
2989         rtx_insn *.
2990         (move_deaths): Likewise for local "where_dead".
2991         * cse.c (delete_trivially_dead_insns): Introduce local
2992         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
2993         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
2994         rtx_insn *.
2995         (df_reg_defined): Likewise.
2996         (df_find_use): Likewise.
2997         (df_reg_used): Likewise.
2998         (df_dump_insn_problem_data): Strengthen param "insn" from
2999         const_rtx to const rtx_insn *.
3000         (df_dump_insn_top): Likewise.
3001         (df_dump_insn_bottom): Likewise.
3002         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
3003         (df_insn_debug_regno): Likewise.
3004         (debug_df_insn): Likewise.
3005         (DF_REF_INSN): Delete.
3006         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
3007         from rtx to rtx_insn *.
3008         (df_chain_insn_top_dump): Strengthen param "insn" from
3009         const_rtx to const rtx_insn *.
3010         (df_chain_insn_bottom_dump): Likewise.
3011         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
3012         rtx_insn *.
3013         (df_word_lr_simulate_uses): Likewise.
3014         (df_print_note): Likewise.
3015         (df_remove_dead_and_unused_notes): Likewise.
3016         (df_set_unused_notes_for_mw): Likewise.
3017         (df_set_dead_notes_for_mw): Likewise.
3018         (df_create_unused_note): Likewise.
3019         (df_simulate_find_defs): Likewise.
3020         (df_simulate_find_uses): Likewise.
3021         (df_simulate_find_noclobber_defs): Likewise.
3022         (df_simulate_defs): Likewise.
3023         (df_simulate_uses): Likewise.
3024         (df_simulate_one_insn_backwards): Likewise.
3025         (df_simulate_one_insn_forwards): Likewise.
3026         (df_md_simulate_one_insn): Likewise.
3027         * df-scan.c (df_uses_create): Likewise.
3028         (df_insn_create_insn_record): Likewise.
3029         (df_insn_delete): Likewise.
3030         (df_insn_rescan): Likewise.
3031         (df_insn_rescan_debug_internal): Likewise.
3032         (df_insn_change_bb): Likewise.
3033         (df_notes_rescan): Likewise.
3034         (df_refs_add_to_chains): Likewise.
3035         (df_insn_refs_verify): Likewise.
3036         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
3037         when invoking df_insn_delete.
3038         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
3039         (set_unique_reg_note): Add checked cast.
3040         * final.c (cleanup_subreg_operands): Likewise.
3041         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
3042         "insn" from rtx to rtx_insn *.
3043         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
3044         "last" from rtx to rtx_insn *.
3045         * ira-emit.c (change_regs_in_insn): New function.
3046         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
3047         Invoke change_regs_in_insn rather than change_regs.
3048         * ira.c (update_equiv_regs): Strengthen locals "insn",
3049         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
3050         for_each_rtx_in_insn rather than for_each_rtx.
3051         * recog.c (confirm_change_group): Add checked casts.
3052         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
3053         Add checked cast.
3054         (peep2_fill_buffer): Add checked cast.
3055         * rtlanal.c (remove_note): Likewise.
3056         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
3057         locals "next" "end" from rtx to rtx_insn *.
3059 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3061         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
3062         to rtx_insn *.
3063         (struct reg_use_data): Likewise for field "insn".
3064         (insn_cost): Likewise for param.
3065         (real_insn_for_shadow): Likewise for return type and param.
3066         (increase_insn_priority): Likewise for param 1.
3067         (debug_dependencies): Likewise for both params.
3069         * haifa-sched.c (insn_delay): Likewise for param "insn".
3070         (real_insn_for_shadow): Likewise for return type and param "insn".
3071         (update_insn_after_change): Likewise for param "insn".
3072         (recompute_todo_spec): Likewise for param "next" and locals "pro",
3073         "other".
3074         (insn_cost): Likewise for param "insn".
3075         (increase_insn_priority): Likewise.
3076         (calculate_reg_deaths): Likewise.
3077         (setup_insn_reg_pressure_info): Likewise.
3078         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
3079         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
3080         (model_recompute): Likewise.
3081         (must_restore_pattern_p): Likewise for param "next".
3082         (model_excess_cost): Likewise for param "insn".
3083         (queue_remove): Likewise.
3084         (adjust_priority): Likewise for param "prev".
3085         (update_register_pressure): Likewise for param "insn".
3086         (setup_insn_max_reg_pressure): Likewise for local "insn".
3087         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
3088         (model_add_to_schedule): Likewise.
3089         (model_reset_queue_indices): Likewise for local "insn".
3090         (unschedule_insns_until): Strengthen local "recompute_vec" from
3091         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
3092         "con" from rtx to rtx_insn *.
3093         (restore_last_backtrack_point): Likewise for both locals "x". Add
3094         checked casts.
3095         (estimate_insn_tick): Likewise for param "insn".
3096         (commit_schedule): Likewise for params "prev_head", "tail" and
3097         local "x".
3098         (verify_shadows): Likewise for locals "i1", "i2".
3099         (dump_insn_stream): Likewise for params "head", "tail" and locals
3100         "next_tail", "insn".
3101         (schedule_block): Likewise for locals "insn", "x".  Add a checked
3102         cast.
3103         (fix_inter_tick): Likewise for params "head", "tail".
3104         (create_check_block_twin): Likewise for local "jump".
3105         (haifa_change_pattern): Likewise for param "insn".
3106         (haifa_speculate_insn): Likewise.
3107         (dump_new_block_header): Likewise for params "head", "tail".
3108         (fix_jump_move): Likewise for param "jump".
3109         (move_block_after_check): Likewise.
3110         (sched_init_insn_luid): Likewise for param "insn".
3111         (sched_init_luids): Likewise for local "insn".
3112         (insn_luid): Likewise for param "insn".
3113         (init_h_i_d): Likewise.
3114         (haifa_init_h_i_d): Likewise for local "insn".
3115         (haifa_init_insn): Likewise for param "insn".
3116         * sched-deps.c (add_dependence): Likewise for local "real_pro",
3117         "other".
3118         (create_insn_reg_use): Likewise for param "insn".
3119         (setup_insn_reg_uses): Likewise.  Add a checked cast.
3120         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
3121         "tail" from rtx to rtx_insn *.
3122         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
3123         "insn", "next_tail".
3125 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3127         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
3128         from rtx to rtx_insn *.
3129         (model_add_to_schedule): Likewise for locals "start", "end",
3130         "iter".
3132 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3134         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
3135         rtx_insn *.
3136         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
3137         "to" and locals "insn", "next", "copy".  Remove now-redundant
3138         checked cast.
3140 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3142         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
3143         rtx_insn * and param 4 from rtx * to rtx_insn **.
3144         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
3145         param 2 from rtx * to rtx_insn **.
3147         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
3148         rtx_insn * and final param from rtx * to rtx_insn **.
3150         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
3151         from rtx to rtx_insn *.
3152         (try_head_merge_bb): Likewise for both locals named "move_upto".
3153         * df-problems.c (can_move_insns_across): Likewise for params
3154         "from", "to", "across_from", "across_to" and locals "insn",
3155         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
3156         rtx_insn **.
3157         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
3158         from rtx to rtx_insn *.
3159         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
3160         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
3161         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
3162         rtx_insn *.
3163         (noce_try_abs): Likewise.
3164         (noce_get_condition): Likewise for param "jump".  Strengthen param
3165         "earliest" from rtx * to rtx_insn **.
3166         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
3167         rtx_insn *.
3168         (find_cond_trap): Likewise.
3169         (dead_or_predicable): Likewise for local "earliest".
3170         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
3171         checked cast.
3172         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
3173         and local "prev".  Strengthen param "earliest" from rtx * to
3174         rtx_insn **.
3175         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
3176         Strengthen param "earliest" from rtx * to rtx_insn **.
3178 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3180         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
3181         "to" and local "insn" from rtx to rtx_insn *.
3183 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3185         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
3186         from rtx to rtx_insn *.
3187         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
3188         (code_motion_path_driver): Likewise for local "last_insn".
3189         (simplify_changed_insns): Likewise for local "insn".
3191 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3193         * rtl.h (push_to_sequence): Strengthen param from rtx to
3194         rtx_insn *.
3195         (push_to_sequence2): Likewise for both params.
3196         (delete_insns_since): Likewise for param.
3197         (reorder_insns_nobb): Likewise for all three params.
3198         (set_new_first_and_last_insn): Likewise for both params.
3200         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
3201         rtx_insn *.  Remove now-redundant cast.
3202         (set_last_insn): Likewise.
3204         * builtins.c (expand_builtin_return): Strengthen local
3205         "call_fusage" from rtx to rtx_insn *.
3206         * cfgrtl.c (create_basic_block_structure): Likewise for local
3207         "after".
3208         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
3209         "first", "last" and local "insn".
3210         (delete_insns_since): Likewise for param "from".
3211         (reorder_insns_nobb): Likewise for params "from", "to", "after"
3212         and local "x".
3213         (push_to_sequence): Likewise for param "first" and local "last".
3214         (push_to_sequence2): Likewise for params "first" and "last".
3215         * lra.c (emit_add3_insn): Likewise for local "last".
3216         (lra_emit_add): Likewise.
3217         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
3218         "last_insn".
3219         (process_address_1): Likewise for locals "insn", last".
3220         * modulo-sched.c (ps_first_note): Likewise for return type.
3221         * optabs.c (expand_binop_directly): Likewise for param "last".
3223 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3225         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
3226         to rtx_insn*.
3227         * emit-rtl.c (get_last_insn_anywhere): Likewise.
3229 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3231         * function.h (struct sequence_stack): Strengthen fields "first"
3232         and "last" from rtx to rtx_insn *.
3233         (struct emit_status): Likewise for fields "x_first_insn" and
3234         "x_last_insn".
3236         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
3237         (set_first_insn): Add checked cast.
3238         (get_last_insn): Remove now-redundant checked cast.
3239         (set_last_insn): Add checked cast.
3241         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
3242         "saved_first" and "saved_last" from rtx to rtx_insn *.
3244 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3246         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
3247         (unlink_insn_chain): Strengthen both params from rtx to
3248         rtx_insn *.
3250         * cfgrtl.c (cfg_layout_function_header): Likewise for this
3251         variable.
3252         (unlink_insn_chain): Likewise for params "first" and "last".
3253         Remove now-redundant checked cast.
3254         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
3255         (fixup_reorder_chain): Strengthen local "insn" from rtx to
3256         rtx_insn *.
3257         * emit-rtl.c (link_insn_into_chain): Likewise for all three
3258         params.
3259         (add_insn): Likewise for param "insn" and local "prev".
3260         (add_insn_after_nobb): Likewise for both params and local "next".
3261         (add_insn_before_nobb): Likewise for both params and local "prev".
3262         (add_insn_after): Rename param "after" to "uncast_after",
3263         introducing local "after" with another checked cast.
3264         (add_insn_before): Rename params "insn" and "before", giving them
3265         "uncast_" prefixes, adding the old names back using checked casts.
3266         (emit_note_after): Likewise for param "after".
3267         (emit_note_before): Likewise for param "before".
3268         (emit_label): Add a checked cast.
3270 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3272         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
3273         "insn" from rtx to rtx_insn *.
3275         * cselib.c (cselib_record_sets_hook): Likewise.
3277         * var-tracking.c (add_with_sets): Likewise, renaming back from
3278         "uncast_insn" to "insn" and eliminating the checked cast from rtx
3279         to rtx_insn *.
3281 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3283         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
3284         and "header_" from rtx to rtx_insn *.
3285         (struct basic_block_d): Likewise for field "head_" within "x"
3286         field of union basic_block_il_dependent.
3287         (BB_HEAD): Drop function...
3288         (SET_BB_HEAD): ...and this function in favor of...
3289         (BB_HEAD): ...reinstate macro.
3290         (BB_END): Drop function...
3291         (SET_BB_END): ...and this function in favor of...
3292         (BB_END): ...reinstate macro.
3293         (BB_HEADER): Drop function...
3294         (SET_BB_HEADER): ...and this function in favor of...
3295         (BB_HEADER): ...reinstate macro.
3297         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
3298         (fix_crossing_unconditional_branches): Likewise.
3299         * caller-save.c (save_call_clobbered_regs): Likewise.
3300         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
3301         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
3302         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
3303         (merge_blocks_move_successor_nojumps): Likewise.
3304         (outgoing_edges_match): Update use of for_each_rtx to
3305         for_each_rtx_in_insn.
3306         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
3307         (expand_gimple_cond): Likewise.
3308         (expand_gimple_tailcall): Likewise.
3309         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
3310         SET_BB_END.
3311         (construct_exit_block): Drop use of SET_BB_END.
3312         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
3313         rtx_insn *.
3314         (delete_insn): Rename param "insn" to "uncast_insn", introducing
3315         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
3316         SET_BB_HEAD and SET_BB_END.
3317         (create_basic_block_structure): Drop use of SET_BB_HEAD and
3318         SET_BB_END.
3319         (rtl_delete_block): Drop use of SET_BB_HEAD.
3320         (rtl_split_block): Drop use of SET_BB_END.
3321         (emit_nop_for_unique_locus_between): Likewise.
3322         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
3323         (block_label): Drop use of SET_BB_HEAD.
3324         (fixup_abnormal_edges): Drop use of SET_BB_END.
3325         (record_effective_endpoints): Drop use of SET_BB_HEADER.
3326         (relink_block_chain): Likewise.
3327         (fixup_reorder_chain): Drop use of SET_BB_END.
3328         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
3329         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
3330         rtx_insn **.  Drop use of SET_BB_HEADER.
3331         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
3332         SET_BB_HEAD.
3333         (BB_HEAD): Delete this function.
3334         (SET_BB_HEAD): Likewise.
3335         (BB_END): Likewise.
3336         (SET_BB_END): Likewise.
3337         (BB_HEADER): Likewise.
3338         (SET_BB_HEADER): Likewise.
3339         * emit-rtl.c (add_insn_after):  Rename param "insn" to
3340         "uncast_insn", adding a new local "insn" and a checked cast to
3341         rtx_insn *.  Drop use of SET_BB_END.
3342         (remove_insn): Strengthen locals "next" and "prev" from rtx to
3343         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
3344         (reorder_insns): Drop use of SET_BB_END.
3345         (emit_insn_after_1): Strengthen param "first" and locals "last",
3346         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
3347         (emit_pattern_after_noloc): Add checked cast.
3348         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
3349         (restore_other_notes): Likewise.
3350         (move_insn): Likewise.
3351         (sched_extend_bb): Likewise.
3352         (fix_jump_move): Likewise.
3353         * ifcvt.c (noce_process_if_block): Likewise.
3354         (dead_or_predicable): Likewise.
3355         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
3356         * reg-stack.c (change_stack): Drop use of SET_BB_END.
3357         * sel-sched-ir.c (sel_move_insn): Likewise.
3358         * sel-sched.c (move_nop_to_previous_block): Likewise.
3360         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
3361         SET_BB_END.
3362         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
3364 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3366         * basic-block.h (create_basic_block_structure): Strengthen params
3367         1 "head" and 2 "end" from rtx to rtx_insn *.
3368         * cfgrtl.c (create_basic_block_structure): Likewise.
3369         (rtl_create_basic_block): Update casts from void * to rtx to
3370         rtx_insn *, so that we can pass them as rtx_insn * to
3371         create_basic_block_structure.
3372         * sel-sched-ir.c (sel_create_basic_block): Likewise.
3374 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3376         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
3377         rtx_insn **.
3378         (check_for_inc_dec): Strengthen param "insn" from rtx to
3379         rtx_insn *.
3381         * cselib.h (cselib_process_insn): Likewise.
3383         * cselib.c (cselib_record_sets): Likewise.
3384         (cselib_process_insn): Likewise.
3386         * dse.c (struct insn_info): Likewise for field "insn".
3387         (check_for_inc_dec_1): Likewise for local "insn".
3388         (check_for_inc_dec): Likewise for param "insn".
3389         (scan_insn): Likewise.
3390         (dse_step1): Likewise for local "insn".
3392         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
3393         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
3395 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3397         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
3398         from rtx to rtx_insn *.
3399         (DEP_PRO): Delete this function and...
3400         (SET_DEP_PRO): ...this function in favor of...
3401         (DEP_PRO): ...reinstate this macro.
3402         (DEP_CON): Delete this function and...
3403         (SET_DEP_CON): ...this function in favor of...
3404         (DEP_CON): ...reinstate this old macro.
3405         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
3406         (init_dep): Likewise.
3407         (set_priorities): Likewise for both params.
3408         (sd_copy_back_deps): Likewise for params 1 and 2.
3410         * haifa-sched.c (priority): Likewise for param "insn" and local
3411         "next".
3412         (set_priorities): Likewise for params "head" and "tail" and local
3413         "insn".
3414         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
3415         local "consumer".
3416         (add_to_speculative_block): Add a checked cast.
3417         (create_check_block_twin): Drop use of SET_DEP_CON.
3418         (add_jump_dependencies): Strengthen params "insn" and "jump" from
3419         rtx to rtx_insn *.
3421         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
3422         Drop use of SET_DEP_PRO
3423         (init_dep): Strengthen params "pro" and "con" from rtx to
3424         rtx_insn *.
3425         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
3426         use of SET_DEP_CON.
3427         (DEP_PRO): Delete.
3428         (DEP_CON): Delete.
3429         (SET_DEP_PRO): Delete.
3430         (SET_DEP_CON): Delete.
3432 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3434         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
3435         from rtx to rtx_insn *.
3436         (VINSN_INSN_RTX): Eliminate rvalue function and...
3437         (SET_VINSN_INSN): ...lvalue function in favor of...
3438         (VINSN_INSN_RTX): reinstate this old macro.
3440         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
3441         in favor of VINSN_INSN_RTX.
3442         (VINSN_INSN_RTX): Delete this function.
3443         (SET_VINSN_INSN_RTX): Likewise.
3445 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3447         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
3448         (BND_TO): Delete this function and...
3449         (SET_BND_TO): ...this functions in favor of...
3450         (BND_TO): ...reinstating this macro.
3451         (struct _fence): Strengthen field "executing_insns" from
3452         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
3453         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
3454         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
3455         and param "insn" from rtx to insn_t.
3456         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
3457         rtx_insn *.
3459         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
3460         vec<rtx_insn *> .
3461         (rtx_vec_t): Likewise.
3462         (struct sched_deps_info_def): Strengthen param of "start_insn"
3463         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
3464         "note_mem_dep" callback and first param of "note_dep" callback.
3466         * haifa-sched.c (add_to_speculative_block): Strengthen param
3467         "insn" from rtx to rtx_insn *.
3468         (clear_priorities): Likewise.
3469         (calc_priorities): Likewise for local "insn".
3471         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
3472         Remove redundant checked cast.
3473         (haifa_note_mem_dep): Likewise for param "pending_insn".
3474         (haifa_note_dep): Likewise for param "elem".
3475         (note_mem_dep): Likewise for param "e".
3476         (sched_analyze_1): Add checked casts.
3477         (sched_analyze_2): Likewise.
3479         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
3480         from rtx to rtx_insn *.
3481         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
3482         from vec<rtx> * to vec<rtx_insn *> *.
3484         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
3485         scaffolding.
3486         (flist_add): Strengthen param "executing_insns" from
3487         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
3488         (advance_deps_context): Remove now-redundant checked cast.
3489         (init_fences): Replace uses of NULL_RTX with NULL.
3490         (merge_fences): Strengthen params "last_scheduled_insn" and
3491         "sched_next" from rtx to rtx_insn * and "executing_insns" from
3492         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
3493         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
3494         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
3495         an instruction, rather than doing double-duty as a pattern.
3496         (return_nop_to_pool): Update for change of insn_t.
3497         (deps_init_id): Remove now-redundant checked cast.
3498         (struct sched_scan_info_def): Strengthen param of "init_insn"
3499         callback from rtx to insn_t.
3500         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
3501         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
3502         NULL.
3503         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
3504         "end" from rtx to rtx_insn *.
3505         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
3506         (rtx insn_rtx, bool force_unique_p)
3507         (BND_TO): Delete function.
3508         (SET_BND_TO): Delete function.
3510         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
3511         rtx to rtx_insn *.
3512         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
3513         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
3514         rtx to rtx_insn *.
3515         (undo_transformations): Likewise for param "insn".
3516         (update_liveness_on_insn): Likewise.
3517         (compute_live_below_insn): Likewise for param "insn" and local
3518         "succ".
3519         (update_data_sets): Likewise for param "insn".
3520         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
3521         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
3522         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
3523         rtx_insn *.
3524         (move_cond_jump): Likewise for param "insn".
3525         (move_cond_jump): Drop use of SET_BND_TO.
3526         (compute_av_set_on_boundaries): Likewise.
3527         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
3528         (update_and_record_unavailable_insns): Strengthen local "bb_end"
3529         from rtx to rtx_insn *.
3530         (maybe_emit_renaming_copy): Likewise for param "insn".
3531         (maybe_emit_speculative_check): Likewise.
3532         (handle_emitting_transformations): Likewise.
3533         (remove_insn_from_stream): Likewise.
3534         (code_motion_process_successors): Strengthen local "succ" from rtx
3535         to insn_t.
3537 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3539         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
3540         ilist_t, not _xlist_t;
3541         (ILIST_INSN): Define in terms of new union field "insn".
3542         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
3543         _XLIST_NEXT.
3544         (struct _list_node): Add new field "insn" to the union, of type
3545         insn_t.
3546         (ilist_add): Replace macro with an inline function, requiring an
3547         insn_t.
3548         (ilist_remove): Define this macro directly in terms of
3549         _list_remove, rather than indirectly via _xlist_remove.
3550         (ilist_clear): Likewise, in terms of _list_clear rather than
3551         _xlist_clear.
3552         (ilist_is_in_p): Replace macro with an inline function, requiring
3553         an insn_t.
3554         (_list_iter_cond_insn): New function.
3555         (ilist_iter_remove): Define this macro directly in terms of
3556         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
3557         (ilist_iterator): Define directly in terms of _list_iterator
3558         rather than indirectly through _xlist_iterator.
3559         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
3560         than in terms of _FOR_EACH_X.
3561         (FOR_EACH_INSN_1): Likewise.
3563 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
3565         PR target/60606
3566         PR target/61330
3567         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
3568         DECL_HARD_REGISTER and return for invalid register specifications.
3569         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
3570         DECL_HARD_REGISTER, call expand_one_error_var.
3571         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
3572         CC_REGNUM with non-MODE_CC modes.
3573         (arm_regno_class): Return NO_REGS for PC_REGNUM.
3575 2014-08-26  Marek Polacek  <polacek@redhat.com>
3577         PR c/61271
3578         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
3580 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
3582         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
3583         qi cost; add di cost.
3584         (cortexa57_addrcost_table): Likewise.
3586 2014-08-26  Marek Polacek  <polacek@redhat.com>
3588         PR c/61271
3589         * expr.c (is_aligning_offset): Remove logical not.
3591 2014-08-26  Marek Polacek  <polacek@redhat.com>
3593         PR c/61271
3594         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
3595         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
3597 2014-08-26  Richard Biener  <rguenther@suse.de>
3599         PR tree-optimization/62175
3600         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
3601         expand possibly trapping operations.
3603 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3605         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
3606         "insn" from rtx to rtx_insn *.
3607         (permute_load): Likewise for param "insn".
3608         (permute_store): Likewise.
3609         (handle_special_swappables): Likewise for local "insn".
3610         (replace_swap_with_copy): Likewise for locals "insn" and
3611         "new_insn".
3612         (rs6000_analyze_swaps): Likewise for local "insn".
3614 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3616         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
3617         to rtx_insn *.
3619 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3621         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
3622         "note_list" from rtx to rtx_insn *.
3623         (BB_NOTE_LIST): Replace this function and...
3624         (SET_BB_NOTE_LIST): ...this function with...
3625         (BB_NOTE_LIST): ...the former macro implementation.
3627         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
3628         local "from_start" from rtx to rtx_insn *.  Strengthen param
3629         "to_endp" from rtx * to rtx_insn **.
3631         * haifa-sched.c (concat_note_lists): Likewise.
3632         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
3633         BB_NOTE_LIST.
3634         (sel_restore_notes): Likewise.
3635         (move_bb_info): Likewise.
3636         (BB_NOTE_LIST): Delete this function.
3637         (SET_BB_NOTE_LIST): Delete this function.
3638         * sel-sched.c (create_block_for_bookkeeping): Eliminate
3639         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
3641 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3643         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
3644         from rtx * to rtx_insn **.
3645         (reorder2): Likewise.
3646         (dependencies_evaluation_hook): Strengthen params "head", "tail"
3647         from rtx to rtx_insn *.
3649         * doc/tm.texi: Update mechanically for above change to target.def.
3651         * sched-int.h (note_list): Strengthen this variable from rtx to
3652         rtx_insn *.
3653         (remove_notes): Likewise for both params.
3654         (restore_other_notes): Likewise for return type and first param.
3655         (struct ready_list): Strengthen field "vec" from rtx * to
3656         rtx_insn **.
3657         (struct dep_replacement): Strenghten field "insn" from rtx to
3658         rtx_insn *.
3659         (struct deps_desc): Likewise for fields "last_debug_insn",
3660         "last_args_size".
3661         (struct haifa_sched_info): Likewise for callback field
3662         "can_schedule_ready_p"'s param, for first param of "new_ready"
3663         callback field, for both params of "rank" callback field, for
3664         first field of "print_insn" callback field (with a const), for
3665         both params of "contributes_to_priority" callback, for param
3666         of "insn_finishes_block_p" callback, for fields "prev_head",
3667         "next_tail", "head", "tail", for first param of "add_remove_insn"
3668         callback, for first param of "begin_schedule_ready" callback, for
3669         both params of "begin_move_insn" callback, and for second param
3670         of "advance_target_bb" callback.
3671         (add_dependence): Likewise for params 1 and 2.
3672         (sched_analyze): Likewise for params 2 and 3.
3673         (deps_analyze_insn): Likewise for param 2.
3674         (ready_element): Likewise for return type.
3675         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3676         (try_ready): Strenghten param from rtx to rtx_insn *.
3677         (sched_emit_insn): Likewise for return type.
3678         (record_delay_slot_pair): Likewise for params 1 and 2.
3679         (add_delay_dependencies): Likewise for param.
3680         (contributes_to_priority): Likewise for both params.
3681         (find_modifiable_mems): Likewise.
3683         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
3684         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
3685         "first_older_only_insn" from rtx to rtx_insn *.
3686         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
3687         rtx_insn **.
3689         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
3690         "last_scheduled_iter0" from rtx to rtx_insn *.
3691         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
3692         (c6x_sched_reorder_1): Strengthen param "ready" and locals
3693         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
3694         "insn" from rtx to rtx_insn *.
3695         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
3696         rtx_insn **.
3697         (c6x_sched_reorder2): Strengthen param "ready" and locals
3698         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
3699         "insn" from rtx to rtx_insn *.
3700         (c6x_variable_issue):  Add a checked cast when assigning from insn
3701         to ss.last_scheduled_iter0.
3702         (split_delayed_branch): Strengthen param "insn" and local "i1"
3703         from rtx to rtx_insn *.
3704         (split_delayed_nonbranch): Likewise.
3705         (undo_split_delayed_nonbranch): Likewise for local "insn".
3706         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
3707         "entry_after", "end_packet", "head_insn", "tail_insn",
3708         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
3709         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
3710         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
3711         but add a checked cast on loop->start_label.  Consolidate calls to
3712         avoid assigning result of gen_spkernel to "insn", now an
3713         rtx_insn *.
3715         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
3716         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
3717         rtx to rtx_insn *.
3718         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
3719         rtx_insn **.  Strengthen locals "top", "next" from rtx to
3720         rtx_insn *.
3721         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
3722         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
3723         (add_parameter_dependencies): Strengthen params "call", "head" and
3724         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
3725         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
3726         (add_dependee_for_func_arg): Likewise for param "arg" and local
3727         "insn".
3728         (ix86_dependencies_evaluation_hook): Likewise for params "head",
3729         "tail" and locals "insn", "first_arg".
3731         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
3732         for params "head", "tail" and locals "insn", "next", "next_tail".
3733         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
3734         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
3735         "insn", "lowest", "highest" from rtx to rtx_insn *.
3736         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
3737         rtx_insn **.
3738         (ia64_sched_reorder2): Likewise.
3740         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
3741         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
3742         from rtx * to rtx_insn **.
3743         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
3744         rtx_insn **.
3745         (mep_print_sched_insn): Strengthen param "insn" from rtx to
3746         rtx_insn *.
3747         (mep_sched_reorder): Strengthen param "ready" from rtx * to
3748         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
3749         to rtx_insn *.
3751         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
3752         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
3753         to rtx_insn *.
3754         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
3755         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
3756         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
3757         rtx_insn **.
3758         (vr4130_reorder): Likewise.
3759         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
3760         rtx to rtx_insn *.
3761         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
3762         rtx_insn **.
3763         (mips_sched_reorder): Likewise.
3764         (mips_sched_reorder2): Likewise.
3766         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
3768         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
3769         Strengthen local "tmp" from rtx to rtx_insn *.
3770         (rs6000_sched_reorder2): Likewise.
3772         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
3773         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
3774         (s390_sched_reorder): Strengthen param "ready" from rtx * to
3775         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
3777         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
3778         "tmp2" from rtx to rtx_insn *.
3779         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
3780         Strengthen local "insn" from rtx to rtx_insn *.
3781         (ready_reorder): Strengthen param "ready" from rtx * to
3782         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
3783         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
3784         (sh_reorder2): Likewise.
3786         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
3787         local "insn" from rtx to rtx_insn *.
3789         * haifa-sched.c (note_list): Strengthen this variable from rtx to
3790         rtx_insn *.
3791         (scheduled_insns): Strengthen this variable from vec<rtx> to
3792         vec<rtx_insn *>.
3793         (set_modulo_params): Likewise for locals "i1", "i2".
3794         (record_delay_slot_pair): Likewise for params "i1", "i2".
3795         (add_delay_dependencies): Likewise for param "insn".
3796         (cond_clobbered_p): Likewise.
3797         (recompute_todo_spec): Likewise for local "prev".
3798         (last_scheduled_insn): Likewise for this variable.
3799         (nonscheduled_insns_begin): Likewise.
3800         (model_set_excess_costs): Strengthen param "insns" from rtx * to
3801         rtx_insn **.
3802         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
3803         rtx_insn *.
3804         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
3805         Strengthen local "insn" from rtx to rtx_insn *.
3806         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
3807         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3808         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
3809         (ready_remove_first): Likewise for return type and local "t".
3810         (ready_element): Likewise for return type.
3811         (ready_remove): Likewise for return type and local "t".
3812         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
3813         (check_clobbered_conditions): Strengthen local "x" from rtx to
3814         rtx_insn *, adding a checked cast.
3815         (schedule_insn): Likewise for param "insn".
3816         (remove_notes): Likewise for params "head", "tail" and locals
3817         "next_tail", "insn", "next".
3818         (struct haifa_saved_data): Likewise for fields
3819         "last_scheduled_insn", "nonscheduled_insns_begin".
3820         (save_backtrack_point): Update for change to field "vec" of
3821         struct ready_list.
3822         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
3823         rtx_insn **.
3824         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
3825         from rtx to rtx_insn *
3826         (resolve_dependencies): Strengthen param "insn" from rtx to
3827         rtx_insn *
3828         (restore_other_notes): Likewise for return type, for param "head"
3829         and local "note_head".
3830         (undo_all_replacements): Likewise for local "insn".
3831         (first_nonscheduled_insn): Likewise for return type and local "insn".
3832         (queue_to_ready): Likewise for local "insn", adding checked casts.
3833         (early_queue_to_ready): Likewise for local "insn".
3834         (debug_ready_list_1): Strengthen local "p" from rtx * to
3835         rtx_insn **.
3836         (move_insn): Strengthen param "insn" and local "note" from rtx to
3837         rtx_insn *
3838         (insn_finishes_cycle_p): Likewise for param "insn".
3839         (max_issue): Likewise for local "insn".
3840         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
3841         to rtx_insn **.
3842         (commit_schedule): Strengthen param "prev_head" and local "insn"
3843         from rtx to rtx_insn *
3844         (prune_ready_list): Likewise for local "insn".
3845         (schedule_block): Likewise for locals "prev_head", "head", "tail",
3846         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
3847         (set_priorities): Likewise for local "prev_head".
3848         (try_ready): Likewise for param "next".
3849         (fix_tick_ready): Likewise.
3850         (change_queue_index): Likewise.
3851         (sched_extend_ready_list): Update for change to field "vec" of
3852         struct ready_list.
3853         (generate_recovery_code): Strengthen param "insn" from rtx to
3854         rtx_insn *.
3855         (begin_speculative_block): Likewise.
3856         (create_check_block_twin): Likewise for param "insn" and locals
3857         "label", "check", "twin".  Introduce local "check_pat" to avoid
3858         "check" being used as a plain rtx before being used as an insn.
3859         (fix_recovery_deps): Add a checked cast to rtx_insn * when
3860         extracting elements from ready_list.
3861         (sched_remove_insn): Strengthen param "insn" from rtx to
3862         rtx_insn *.
3863         (sched_emit_insn): Likewise for return type.
3864         (ready_remove_first_dispatch): Likewise for return type and local
3865         "insn".
3867         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
3869         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
3870         const rtx_insn *.
3872         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
3873         from rtx to rtx_insn *.
3874         (add_dependence_list): Likewise for param "insn".  Add a checked
3875         cast.
3876         (add_dependence_list_and_free): Strengthen param "insn" from rtx
3877         to rtx_insn *.  Strengthen param "list_p" from rtx * to
3878         rtx_insn **.
3879         (chain_to_prev_insn): Strengthen param "insn" and locals
3880         "prec_nonnote", "i" from rtx to rtx_insn *.
3881         (flush_pending_lists): Likewise for param "insn".
3882         (cur_insn): Likewise for this variable.
3883         (haifa_start_insn): Add a checked cast.
3884         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
3885         (sched_analyze_reg): Likewise for param "insn".
3886         (sched_analyze_1): Likewise.
3887         (sched_analyze_2): Likewise.  Add checked casts.
3888         (sched_analyze_insn): Likewise.  Also for local "prev".
3889         (deps_analyze_insn): Likewise for param "insn".
3890         (sched_analyze): Likewise for params "head", "tail" and local "insn".
3891         (add_dependence_1): Likewise for params "insn", "elem".
3892         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
3893         (parse_add_or_inc): Likewise for param "insn".
3894         (find_inc): Likewise for local "inc_cand".
3895         (find_modifiable_mems): Likewise for params "head", "tail" and
3896         locals "insn", "next_tail".
3898         * sched-ebb.c (init_ready_list): Likewise for local "insn".
3899         (begin_schedule_ready): Likewise for param "insn".
3900         (begin_move_insn): Likewise for params "insn" and "last".
3901         (ebb_print_insn): Strengthen param "insn" from const_rtx to
3902         const rtx_insn *.
3903         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
3904         (ebb_contributes_to_priority): Likewise for params "next", "insn".
3905         (ebb_add_remove_insn): Likewise for param "insn".
3906         (advance_target_bb): Likewise.
3908         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
3909         "insn".
3910         (check_live): Likewise for param "insn".
3911         (init_ready_list): Likewise for local "insn".
3912         (can_schedule_ready_p): Likewise for param "insn".
3913         (begin_schedule_ready): Likewise.
3914         (new_ready): Likewise for param "next".
3915         (rgn_print_insn): Likewise for param "insn".
3916         (rgn_rank): Likewise for params "insn1", "insn2".
3917         (contributes_to_priority): Likewise for params "next", "insn".
3918         (rgn_insn_finishes_block_p): Likewise for param "insn".
3919         (add_branch_dependences): Likewise for params "head", "tail" and
3920         locals "insn", "last".
3921         (rgn_add_remove_insn): Likewise for param "insn".
3922         (advance_target_bb): Likewise.
3924         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
3925         const_rtx to const rtx_insn *.
3927         * sel-sched-dump.h (sel_print_insn): Likewise.
3929         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
3930         (deps_init_id): Likewise.
3932         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
3933         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
3934         rtx_insn **.
3936 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3938         * output.h (final_start_function): Strengthen param 1 from rtx to
3939         rtx_insn *.
3941         * final.c (final_start_function): Likewise, renaming back from
3942         "uncast_first" to "first", and dropping the checked cast from rtx
3943         to rtx_insn *.
3945 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3947         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
3948         * final.c (final): Likewise.  Rename param back from
3949         "uncast_first" to "first" and eliminate the checked cast from rtx
3950         to rtx_insn *.
3952 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3954         * output.h (shorten_branches): Strengthen param from rtx to
3955         rtx_insn *.
3957         * final.c (shorten_branches): Likewise, renaming param back from
3958         "uncast_first" to "first", and dropping the checked cast from rtx
3959         to rtx_insn *.
3961         * genattr.c (gen_attr): Likewise when writing out the prototype of
3962         shorten_branches.
3964 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3966         * sched-int.h (struct haifa_sched_info): Strengthen fields
3967         "prev_head" and "next_tail" from rtx to rtx_insn *.
3969 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3971         * rtl.h (rtx_jump_table_data::get_labels): New method.
3972         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
3973         with use of the new rtx_jump_table_data::get_labels method.
3974         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
3975         to rtx_jump_table_data *.  Simplify by using get_labels method.
3976         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
3977         a dyn_cast, introducing local "table", using it to replace
3978         label-lookup logic with a get_labels method call.
3979         (patch_jump_insn): Simplify using get_labels method.
3980         * dwarf2cfi.c (create_trace_edges): Likewise.
3981         * rtlanal.c (label_is_jump_target_p): Likewise.
3983 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3985         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
3986         to rtx_insn *.
3988         * emit-rtl.c (unshare_all_rtl_1): Likewise.
3989         (unshare_all_rtl_again): Likewise, also for local "p".
3991 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3993         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
3994         to rtx_insn *.
3995         * cfgrtl.c (delete_insn_and_edges): Likewise.
3997 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3999         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
4000         from rtx to rtx_insn *.
4002         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
4004 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4006         * function.c (thread_prologue_and_epilogue_insns): Likewise for
4007         locals "returnjump", "epilogue_end", "insn", "next".
4009         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
4010         "returnjump" from rtx * to rtx_insn **.
4011         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
4013 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4015         * basic-block.h (struct edge_def). Strengthen "r" within
4016         union edge_def_insns from rtx to rtx_insn *.
4018         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
4019         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
4020         rtx_insn *.
4021         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
4022         from rtx to rtx_insn *.
4023         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
4024         rtx_insn *.
4025         * postreload-gcse.c (reg_killed_on_edge): Likewise.
4026         (reg_used_on_edge): Likewise.
4027         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
4028         (gt_pch_nx): New overload for rtx_insn *&.
4029         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
4030         from rtx to rtx_insn *.
4032 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4034         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
4035         from rtx to rtx_insn *.
4036         (BB_FOOTER): Replace function with access macro.
4037         (SET_BB_FOOTER): Delete.
4039         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
4040         with BB_FOOTER.
4041         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4042         (emit_barrier_after_bb): Likewise.
4043         (record_effective_endpoints): Likewise.
4044         (relink_block_chain): Likewise.
4045         (fixup_fallthru_exit_predecessor): Likewise.
4046         (cfg_layout_duplicate_bb): Likewise.
4047         (cfg_layout_split_block): Likewise.
4048         (cfg_layout_delete_block): Likewise.
4049         (cfg_layout_merge_blocks): Likewise.
4050         (BB_FOOTER): Delete function.
4051         (SET_BB_FOOTER): Delete function.
4052         * combine.c (update_cfg_for_uncondjump): Replace uses of
4053         SET_BB_FOOTER with BB_FOOTER.
4055 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4057         * except.h (struct eh_landing_pad_d): Strengthen field
4058         "landing_pad" from rtx to rtx_code_label *.
4060         * except.c (sjlj_emit_dispatch_table): Likewise for param
4061         "dispatch_label"
4062         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
4064 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4066         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
4067         first param from rtx to rtx_insn *.
4068         * config/xtensa/xtensa.c (struct machine_function): Likewise for
4069         field "set_frame_ptr_insn".
4070         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
4071         "csend" from rtx to rtx_code_label *.
4072         (xtensa_expand_atomic): Likewise for local "csloop".
4073         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
4074         rtx_insn *.
4075         (xtensa_call_tls_desc): Likewise for return type and locals
4076         "call_insn", "insns".
4077         (xtensa_legitimize_tls_address): Likewise for local "insns".
4078         (xtensa_expand_prologue): Likewise for locals "insn", "first".
4080 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4082         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
4083         first param from rtx to rtx_insn *.
4084         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
4085         "insn".
4087 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4089         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
4090         Strengthen param 1 from rtx to rtx_insn *.
4091         (tilepro_output_cbranch): Likewise.
4092         (tilepro_adjust_insn_length): Likewise.
4093         (tilepro_final_prescan_insn): Likewise for sole param.
4095         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
4096         Likewise for local "last".
4097         (cbranch_predicted_p): Likewise for param "insn".
4098         (tilepro_output_simple_cbranch_with_opcode): Likewise.
4099         (tilepro_output_cbranch_with_opcode): Likewise.
4100         (tilepro_output_cbranch): Likewise.
4101         (frame_emit_load): Likewise for return type and locals "seq",
4102         "insn".
4103         (emit_sp_adjust): Likewise for return type and local "insn".
4104         (tilepro_expand_epilogue): Likewise for locals "last_insn",
4105         "insn".
4106         (tilepro_adjust_insn_length): Likewise for param "insn".
4107         (next_insn_to_bundle): Likewise for return type and params
4108         "r", "end".
4109         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
4110         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
4111         local "new_insns".
4112         (match_addli_pcrel): Likewise for param "insn".
4113         (replace_addli_pcrel): Likewise.
4114         (match_auli_pcrel): Likewise.
4115         (replace_auli_pcrel): Likewise.
4116         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
4117         "next_insn".
4118         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4119         "queue", "next_queue", "prev".
4120         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
4121         (tilepro_final_prescan_insn): Likewise for param "insn".
4123 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4125         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
4126         Strengthen param 1 from rtx to rtx_insn *.
4127         (tilegx_output_cbranch): Likewise.
4128         (tilegx_adjust_insn_length): Likewise.
4129         (tilegx_final_prescan_insn): Likewise for sole param.
4131         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
4132         or local "last".
4133         (cbranch_predicted_p): Likewise for param "insn".
4134         (tilegx_output_simple_cbranch_with_opcode): Likewise.
4135         (tilegx_output_cbranch_with_opcode): Likewise.
4136         (tilegx_output_cbranch): Likewise.
4137         (frame_emit_load): Likewise for return type.
4138         (set_frame_related_p): Likewise for locals "seq", "insn".
4139         (emit_sp_adjust): Likewise for return type, and for local "insn".
4140         Introduce local "pat" for use in place of "insn" where the latter
4141         isn't an instruction.
4142         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
4143         from rtx to rtx_insn *.
4144         (tilegx_adjust_insn_length): Likewise for param "insn".
4145         (next_insn_to_bundle): Likewise for return type and params "r" and
4146         "end".
4147         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
4148         "end".
4149         (replace_insns): Likewise for params "old_insn", "new_insns".
4150         (replace_mov_pcrel_step1): Likewise for param "insn" and local
4151         "new_insns".
4152         (replace_mov_pcrel_step2): Likewise.
4153         (replace_mov_pcrel_step3): Likewise.
4154         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
4155         "next_insn".
4156         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4157         "queue", "next_queue", "prev".
4158         (tilegx_output_mi_thunk): Likewise for local "insn".
4159         (tilegx_final_prescan_insn): Likewise for param "insn".
4161 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4163         * config/spu/spu.c (frame_emit_store): Strengthen return type from
4164         rtx to rtx_insn *.
4165         (frame_emit_load): Likewise.
4166         (frame_emit_add_imm): Likewise, also for local "insn".
4167         (spu_expand_prologue): Likewise for local "insn".
4168         (struct spu_bb_info): Likewise for field "prop_jump".
4169         (emit_nop_for_insn): Likewise for param "insn" and local
4170         "new_insn".
4171         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
4172         "hbr_insn".
4173         (spu_emit_branch_hint): Likewise for params "before", "branch" and
4174         locals "hint", "insn".
4175         (get_branch_target): Likewise for param "branch".
4176         (insn_clobbers_hbr): Likewise for param "insn".
4177         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
4178         locals "insn", "before_4", "before_16".
4179         (insert_hbrp): Likewise for local "insn".
4180         (spu_machine_dependent_reorg): Likewise for locals "branch",
4181         "insn", "next", "bbend".
4182         (uses_ls_unit): Likewise for param "insn".
4183         (get_pipe): Likewise.
4184         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
4185         introducing a checked cast.
4186         (spu_sched_adjust_cost): Likewise for params "insn" and
4187         "dep_insn".
4188         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
4189         (spu_sms_res_mii): Likewise.
4191 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4193         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
4194         from rtx to rtx_insn *.
4195         (output_cbranch): Likewise for param 6.
4196         (output_return): Likewise for param 1.
4197         (output_sibcall): Likewise.
4198         (output_v8plus_shift): Likewise.
4199         (output_v8plus_mult): Likewise.
4200         (output_v9branch): Likewise for param 7.
4201         (output_cbcond):  Likewise for param 3.
4203         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
4204         for local "insn".
4205         (sparc_legitimize_pic_address): Likewise.
4206         (sparc_emit_call_insn): Likewise.
4207         (emit_save_or_restore_regs): Likewise.
4208         (emit_window_save): Likewise for return type and local "insn".
4209         (sparc_expand_prologue): Likewise for local "insn".
4210         (sparc_flat_expand_prologue): Likewise.
4211         (output_return): Likewise for param "insn".
4212         (output_sibcall): Likewise for param "insn" and local "delay".
4213         (output_ubranch): Likewise for param "insn".
4214         (output_cbranch): Likewise.
4215         (output_cbcond): Likewise.
4216         (output_v9branch): Likewise.
4217         (output_v8plus_shift): Likewise.
4218         (sparc_output_mi_thunk): Likewise for local "insn".
4219         (get_some_local_dynamic_name): Likewise.
4220         (output_v8plus_mult): Likewise for param "insn".
4222 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4224         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
4225         from rtx to rtx_insn *.
4226         (output_branchy_insn): Likewise for param 3.
4227         (output_far_jump): Likewise for param 1.
4228         (final_prescan_insn): Likewise.
4229         (sh_insn_length_adjustment): Likewise for sole param.
4231         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
4232         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
4233         rtx_code_label *.
4234         (sh_emit_compare_and_set): Likewise for local "lab".
4235         (output_far_jump): Strengthen param "insn" and local "prev" from
4236         rtx to rtx_insn *.
4237         (output_branchy_insn): Likewise for param "insn" and local
4238         "next_insn".
4239         (output_ieee_ccmpeq): Likewise for param "insn".
4240         (struct label_ref_list_d): Strengthen field "label" from rtx to
4241         rtx_code_label *.
4242         (pool_node): Likewise.
4243         (pool_window_label): Likewise for this global.
4244         (add_constant): Likewise for return type and locals "lab", "new_rtx".
4245         (dump_table): Strengthen params "start", "barrier" and local
4246         "scan" from rtx to rtx_insn *.
4247         (broken_move): Likewise for param "insn".
4248         (untangle_mova): Likewise for params "first_mova" and "new_mova".
4249         Strengthen param "first_mova" from rtx * to rtx_insn **.
4250         (mova_p): Likewise for param "insn".
4251         (fixup_mova): Likewise for param "mova".
4252         (find_barrier): Likewise for return type, params "mova" and
4253         "from", and locals "barrier_before_mova", "found_barrier",
4254         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
4255         "label" from rtx to rtx_code_label *.
4256         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
4257         rtx to rtx_insn *.
4258         (sh_reorg): Likewise for locals "link", "scan", "barrier".
4259         (split_branches): Likewise for param "first" and local "insn".
4260         (final_prescan_insn): Likewise for param "insn".
4261         (sequence_insn_p): Likewise for locals "prev", "next".
4262         (sh_insn_length_adjustment): Likewise for param "insn".
4263         (sh_can_redirect_branch): Likewise for local "insn".
4264         (find_r0_life_regions): Likewise for locals "end", "insn".
4265         (sh_output_mi_thunk): Likewise for local "insns".
4267 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4269         * config/score/score.c (score_output_mi_thunk): Strengthen local
4270         "insn" from rtx to rtx_insn *.
4271         (score_prologue): Likewise.
4273 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4275         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
4276         1 from rtx to rtx_insn *.
4277         (s390_emit_jump): Likewise for return type.
4278         (s390_emit_call): Likewise.
4279         (s390_load_got): Likewise.
4281         * config/s390/s390.c (last_scheduled_insn): Likewise for this
4282         variable.
4283         (s390_match_ccmode): Likewise for param "insn".
4284         (s390_emit_jump): Likewise for return type.
4285         (s390_split_branches): Likewise for local "label".
4286         (struct constant): Strengthen field "label" from rtx to
4287         rtx_code_label *.
4288         (struct constant_pool): Likewise for field "label".  Strengthen
4289         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
4290         rtx_insn *.
4291         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
4292         insns.
4293         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
4294         (s390_end_pool): Likewise.
4295         (s390_dump_pool): Likewise for local "insn".
4296         (s390_mainpool_start): Likewise.
4297         (s390_chunkify_start): Likewise.
4298         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
4299         with insns.  Strengthen locals "label", "jump", "barrier", "next",
4300         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
4301         (s390_chunkify_finish): Strengthen local "insn" from rtx to
4302         rtx_insn *.
4303         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
4304         "jump", "label", "next_insn".
4305         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
4306         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
4307         "tbegin_insn".
4308         (s390_load_got): Likewise for return type and local "insns".
4309         (s390_save_gprs_to_fprs): Likewise for local "insn".
4310         (s390_restore_gprs_from_fprs): Likewise.
4311         (pass_s390_early_mach::execute): Likewise.
4312         (s390_emit_prologue): Likewise for local "insns".
4313         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
4314         rtx_code_label *.
4315         (s390_emit_call): Strengthen return type and local "insn" from
4316         rtx to rtx_insn *.
4317         (s390_emit_tpf_eh_return): Likewise for local "insn".
4318         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
4319         "next_insn", introducing locals "s_pat", "rpat" to allow this.
4320         (s390_fix_long_loop_prediction): Likewise for param "insn" and
4321         local "cur_insn".
4322         (s390_non_addr_reg_read_p): Likewise for param "insn".
4323         (find_cond_jump): Likewise for return type and param "insn".
4324         (s390_swap_cmp): Likewise for param "insn".
4325         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
4326         "prev_insn", "next_insn".
4327         (s390_reorg): Likewise for locals "insn", "target".
4328         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
4329         (s390_sched_variable_issue): For now, rename param "insn" to
4330         "uncast_insn", introducing a checked cast.
4331         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
4332         insn.
4333         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
4334         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
4336 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4338         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
4339         param from rtx to rtx_insn *.
4340         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
4342 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4344         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
4345         4 from rtx to rtx_insn *.
4346         (rs6000_final_prescan_insn): Likewise for first param.
4347         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
4348         local "insn".
4349         (rs6000_get_some_local_dynamic_name): Likewise.
4350         (output_cbranch): Likewise for param "insn".
4351         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
4352         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
4353         (rs6000_emit_allocate_stack): Likewise for local "insn".
4354         (load_cr_save): Likewise.
4355         (restore_saved_cr): Likewise.
4356         (restore_saved_lr): Likewise.
4357         (emit_cfa_restores): Likewise.
4358         (rs6000_output_function_epilogue): Likewise for locals "insn" and
4359         "deleted_debug_label".
4360         (rs6000_output_mi_thunk): Likewise for local "insn".
4361         (rs6000_final_prescan_insn): Likewise for param "insn".
4363 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4365         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
4366         Strengthen param "insn" from rtx to rtx_insn *.
4367         * config/picochip/picochip.c (picochip_current_prescan_insn):
4368         Likewise for this variable.
4369         (picochip_final_prescan_insn): Likewise for param "insn".
4371 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4373         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
4374         from rtx to rtx_insn *.
4375         (pa_output_indirect_call): Likewise.
4376         (pa_adjust_insn_length): Likewise.
4377         (pa_attr_length_millicode_call): Likewise.
4378         (pa_attr_length_call): Likewise.
4379         (pa_attr_length_indirect_call): Likewise.
4381         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
4382         "insn".
4383         (pa_attr_length_millicode_call): Likewise.
4384         (pa_attr_length_call): Likewise.
4385         (pa_output_call): Likewise.
4386         (pa_attr_length_indirect_call): Likewise.
4387         (pa_output_indirect_call): Likewise.
4389 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4391         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
4392         Strengthen first param from rtx to rtx_insn *.
4393         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
4394         param "insn".
4396 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4398         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
4399         type from rtx to rtx_insn *.
4400         (mips_expand_call): Likewise.
4401         (mips_adjust_insn_length): Likewise for first param.
4402         (mips_output_conditional_branch): Likewise.
4403         (mips_output_order_conditional_branch): Likewise.
4404         (mips_final_prescan_insn): Likewise.
4406         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
4407         rtx_insn * for the SEQUENCE case.
4408         (SEQ_END): Likewise.
4409         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
4410         (mips_emit_call_insn): Likewise, also for local "insn".
4411         (mips16_gp_pseudo_reg): Likewise for local "scan".
4412         (mips16_build_call_stub): Likewise for return type and for local
4413         "insn".  Introduce a new local "pattern" so that "insn" can indeed
4414         be an insn.
4415         (mips_expand_call): Strengthen return type and local "insn" from
4416         rtx to rtx_insn *.
4417         (mips_block_move_loop): Strengthen local "label" from rtx to
4418         rtx_code_label *.
4419         (mips_expand_synci_loop): Likewise for locals "label",
4420         "end_label".
4421         (mips_set_frame_expr): Strengthen local "insn" from rtx to
4422         rtx_insn *.
4423         (mips16e_collect_argument_saves): Likewise for locals "insn",
4424         "next".
4425         (mips_find_gp_ref): Likewise for param of callback for "pred"
4426         param, and for local "insn".
4427         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
4428         (mips_insn_has_flexible_gp_ref_p): Likewise.
4429         (mips_epilogue_emit_cfa_restores): Likewise for return type and
4430         local "insn".
4431         (mips_epilogue_set_cfa): Likewise for local "insn".
4432         (mips_expand_epilogue): Likewise.
4433         (mips_adjust_insn_length): Likewise for param "insn".
4434         (mips_output_conditional_branch): Likewise.
4435         (mips_output_order_conditional_branch): Likewise.
4436         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
4437         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
4438         "falu2_turn_enabled_insn".
4439         (mips_builtin_branch_and_move): Strengthen locals "true_label",
4440         "done_label" from rtx to rtx_code_label *.
4441         (struct mips16_constant): Likewise for field "label".
4442         (mips16_add_constant): Likewise for return type.
4443         (mips16_emit_constants_1): Strengthen return type and param "insn"
4444         from rtx to rtx_insn *.
4445         (mips16_emit_constants): Likewise for param "insn".
4446         (mips16_insn_length): Likewise.
4447         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
4448         to rtx_code_label *.
4449         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
4450         from rtx to rtx_insn *.
4451         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
4452         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
4453         (r10k_simplify_address): Strengthen param "insn" and local
4454         "def_insn" from rtx to rtx_insn *.
4455         (r10k_safe_address_p): Strengthen param "insn" from rtx to
4456         rtx_insn *.
4457         (r10k_needs_protection_p_1): Update target type of cast of data
4458         from to rtx to rtx_insn *.
4459         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
4460         rtx * to rtx_insn **.
4461         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
4462         rtx_insn *.
4463         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
4464         (mips_call_expr_from_insn): Likewise for param "insn".
4465         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
4466         (mips_find_pic_call_symbol): Likewise for param "insn".
4467         (mips_annotate_pic_calls): Likewise for local "insn".
4468         (mips_sim_insn): Likewise for this variable.
4469         (struct mips_sim): Likewise for field "insn" within elements of
4470         last_set array.
4471         (mips_sim_wait_reg): Likewise for param "insn".
4472         (mips_sim_wait_regs): Likewise.
4473         (mips_sim_wait_units): Likewise.
4474         (mips_sim_wait_insn): Likewise.
4475         (mips_sim_issue_insn): Likewise.
4476         (mips_sim_finish_insn): Likewise.
4477         (mips_seq_time): Likewise for param "seq" and local "insn".
4478         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
4479         locals "first", "second".
4480         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
4481         "last", "last2", "next".
4482         (mips_avoid_hazard): Likewise for params "after", "insn".
4483         (mips_reorg_process_insns): Likewise for locals "insn",
4484         "last_insn", "subinsn", "next_insn".
4485         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
4486         (mips16_split_long_branches): Likewise for locals "insn" "jump",
4487         "jump_sequence".
4488         (mips_output_mi_thunk): Likewise for local "insn".
4489         (mips_final_prescan_insn): Likewise for param "insn".
4491 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4493         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
4494         Strengthen return type and local "insns" from rtx to rtx_insn *.
4495         (microblaze_legitimize_tls_address): Likewise for local "insns".
4496         (microblaze_block_move_loop): Strengthen local "label" from rtx
4497         to rtx_code_label *.
4498         (microblaze_expand_prologue): Strengthen two locals named "insn"
4499         from rtx to rtx_insn *.
4500         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
4501         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
4502         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
4503         to rtx_code_label *.
4505 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4507         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
4508         param from rtx to rtx_insn *.
4509         (mep_reuse_lo): Likewise for third param.
4510         (mep_use_post_modify_p): Likewise for first param.
4511         (mep_core_address_length): Likewise.
4512         (mep_cop_address_length): Likewise.
4513         (mep_final_prescan_insn): Likewise.
4514         (mep_store_data_bypass_p): Likewise for both params.
4515         (mep_mul_hilo_bypass_p): Likewise.
4516         (mep_ipipe_ldc_p): Likewise for param.
4518         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
4519         (mep_rewrite_mult): Likewise.
4520         (mep_rewrite_mulsi3): Likewise.
4521         (mep_rewrite_maddsi3): Likewise.
4522         (mep_reuse_lo_p_1): Likewise.
4523         (mep_reuse_lo_p): Likewise.
4524         (mep_frame_expr): Likewise.
4525         (mep_make_parallel): Likewise for both params.
4526         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
4527         local "insn".
4528         (mep_use_post_modify_p): Likewise for param "insn".
4529         (mep_core_address_length): Likewise.
4530         (mep_cop_address_length): Likewise.
4531         (mep_reg_set_in_function): Likewise for local "insn".
4532         (mep_asm_without_operands_p): Likewise.
4533         (F): Likewise for return type and param "x".
4534         (add_constant): Likewise for local "insn".
4535         (maybe_dead_move): Likewise for return type and local "insn".
4536         (mep_expand_prologue): Likewise for local "insn".
4537         (mep_final_prescan_insn): Likewise for param "insn".
4538         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
4539         "next", "follow", "x".
4540         (mep_insert_repeat_label_last): Likewise for return type, param
4541         "last_insn", and locals "next", "prev".  Strengthen param "label"
4542         from rtx to rtx_code_label *.
4543         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
4544         rtx_insn *.
4545         (struct mep_doloop_end): Likewise for fields "insn" and
4546         "fallthrough".
4547         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
4548         Strengthen local "repeat_label" from rtx to rtx_code_label *.
4549         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
4550         rtx_insn *.
4551         (mep_invert_branch): Likewise for params "insn" and "after".
4552         (mep_reorg_erepeat): Likewise for param "insns" and locals
4553         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
4554         "l" from rtx to rtx_code_label *.
4555         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
4556         from rtx to rtx_insn *.
4557         (mep_reorg_addcombine): Likewise for param "insns" and locals
4558         "i", "n".
4559         (add_sp_insn_p): Likewise for param "insn".
4560         (mep_reorg_noframe): Likewise for param "insns" and locals
4561         "start_frame_insn", "end_frame_insn", "next".
4562         (mep_reorg): Likewise for local "insns".
4563         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
4564         cast.
4565         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
4566         (mep_mul_hilo_bypass_p): Likewise.
4567         (mep_ipipe_ldc_p): Likewise for param "insn".
4568         (mep_make_bundle): Likewise for return type, param "cop" and local
4569         "insn", splitting out the latter into a new local "seq" for when it
4570         is a SEQUENCE rather than an insn.
4571         (core_insn_p): Likewise for param "insn".
4572         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
4573         "last", "first", "note", "prev", "core_insn".
4575 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4577         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
4578         rtx to rtx_insn *.
4579         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
4580         (m68k_final_prescan_insn): Likewise for first param.
4582         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
4583         (m68k_set_frame_related): Likewise for param "insn".
4584         (output_btst): Likewise for param "insn".
4585         (m68k_final_prescan_insn): Likewise.
4586         (m68k_move_to_reg): Likewise for local "insn".
4587         (m68k_call_tls_get_addr): Likewise for local "insns".
4588         (m68k_call_m68k_read_tp): Likewise.
4589         (strict_low_part_peephole_ok): Likewise for param "first_insn".
4590         (m68k_output_mi_thunk): Likewise for local "insn".
4592 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4594         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
4595         first param from rtx to rtx_insn *.
4596         (iq2000_adjust_insn_length): Likewise.
4597         (iq2000_output_conditional_branch): Likewise.
4598         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
4599         "insn" and local "nop_insn".
4600         (iq2000_annotate_frame_insn): Likewise for param "insn".
4601         (iq2000_expand_prologue): Likewise for both locals "insn".
4602         (iq2000_adjust_insn_length): Likewise for param "insn".
4603         (iq2000_output_conditional_branch): Likewise.
4605 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4607         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
4608         "insns" from rtx to rtx_insn *.
4609         (ia64_emit_cond_move): Likewise for locals "insn", "first".
4610         (struct spill_fill_data): Likewise for field "init_after" and for
4611         elements of array field "prev_insn".
4612         (spill_restore_mem): Likewise for locals "insn", "first".
4613         (do_spill): Likewise for local "insn".
4614         (do_restore): Likewise.
4615         (ia64_expand_prologue): Likewise.
4616         (ia64_expand_epilogue): Likewise.
4617         (emit_insn_group_barriers): Likewise for locals "insn",
4618         "last_label".
4619         (emit_all_insn_group_barriers): Likewise for locals "insn",
4620         "last".
4621         (dfa_stop_insn): Likewise for this global.
4622         (dfa_pre_cycle_insn): Likewise.
4623         (ia64_nop): Likewise.
4624         (final_emit_insn_group_barriers): Likewise for locals "insn",
4625         "last".
4626         (emit_predicate_relation_info): Likewise for locals "head", "n",
4627         "insn", "b", "a".
4628         (ia64_reorg): Likewise for local "insn".
4629         (ia64_output_mi_thunk): Likewise.
4630         (expand_vec_perm_interleave_2): Likewise for local "seq".
4632 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4634         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
4635         param 1 "insn" from rtx to rtx_insn *.
4636         (ix86_use_lea_for_mov): Likewise.
4637         (ix86_avoid_lea_for_addr): Likewise.
4638         (ix86_split_lea_for_addr): Likewise.
4639         (ix86_lea_for_add_ok): Likewise.
4640         (ix86_output_call_insn): Likewise.
4642         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
4643         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
4644         (ix86_output_function_epilogue): Likewise for locals "insn",
4645         "deleted_debug_label".
4646         (legitimize_tls_address): Likewise for local "insn".
4647         (get_some_local_dynamic_name): Likewise.
4648         (increase_distance): Likewise for params "prev", "next".
4649         (distance_non_agu_define_in_bb): Likewise for params "insn",
4650         "start" and locals "prev", "next".
4651         (distance_non_agu_define): Likewise for param "insn".
4652         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
4653         locals "next", "prev".
4654         (distance_agu_use): Likewise for param "insn".
4655         (ix86_lea_outperforms): Likewise.
4656         (ix86_ok_to_clobber_flags): Likewise.
4657         (ix86_avoid_lea_for_add): Likewise.
4658         (ix86_use_lea_for_mov): Likewise.
4659         (ix86_avoid_lea_for_addr): Likewise.
4660         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
4661         (ix86_split_lea_for_addr): Likewise for param "insn".
4662         (ix86_lea_for_add_ok): Likewise for param "insn".
4663         (ix86_expand_carry_flag_compare): Likewise for local
4664         "compare_seq".
4665         (ix86_expand_int_movcc): Likewise.
4666         (ix86_output_call_insn): Likewise for param "insn".
4667         (ix86_output_call_insn): Likewise for local "i".
4668         (x86_output_mi_thunk): Introduce local "insn", using it in place
4669         of "tmp" when dealing with insns.
4670         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
4671         "start".
4672         (ix86_pad_returns): Likewise for locals "ret", "prev".
4673         (ix86_count_insn_bb): Likewise for local "insn".
4674         (ix86_pad_short_function): Likewise for locals "ret", "insn".
4675         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
4676         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
4677         (expand_vec_perm_interleave2): Likewise for local "seq".
4678         (expand_vec_perm_vperm2f128_vblend): Likewise.
4679         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
4680         call to for_each_rtx with for_each_rtx_in_insn.
4682 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4684         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
4685         "label" from rtx to rtx_code_label *.
4686         (ix86_expand_prologue): Likewise.
4687         (ix86_expand_split_stack_prologue): Likewise for locals "label",
4688         "varargs_label".
4689         (ix86_split_idivmod): Likewise for locals "end_label" and
4690         "qimode_label".
4691         (ix86_expand_branch): Likewise for local "label2".
4692         (ix86_expand_aligntest): Likewise for return type and local "label".
4693         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
4694         "top_label".
4695         (expand_movmem_epilogue): Likewise for the various locals named
4696         "label".
4697         (expand_setmem_epilogue): Likewise.
4698         (expand_small_movmem_or_setmem): Likewise for local "label".
4699         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4700         Strengthen param "done_label" from rtx * to rtx_code_label **.
4701         Strengthen locals "loop_label" and "label" from rtx to
4702         rtx_code_label *.
4703         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4704         Likewise for locals "loop_label", "label".
4705         (ix86_expand_set_or_movmem): Likewise for locals "label",
4706         "jump_around_label", "hot_label".
4707         (ix86_expand_strlensi_unroll_1): Likewise for locals
4708         "align_2_label", align_3_label", "align_4_label", "end_0_label",
4709         "end_2_label".
4710         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
4711         (void ix86_emit_i387_log1p): Likewise for locals "label1",
4712         "label2", "jump_label".
4713         (ix86_expand_sse_compare_and_jump): Likewise for return type and
4714         local "label".
4715         (ix86_expand_lfloorceil): Likewise for local "label".
4716         (ix86_expand_rint): Likewise.
4717         (ix86_expand_floorceildf_32): Likewise.
4718         (ix86_expand_floorceil): Likewise.
4719         (ix86_expand_rounddf_32): Likewise.
4720         (ix86_expand_trunc): Likewise.
4721         (ix86_expand_truncdf_32): Likewise.
4722         (ix86_expand_round): Likewise.
4724 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4726         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
4727         first param from rtx to rtx_insn *.
4728         (h8300_insn_length_from_table): Likewise.
4729         * config/h8300/h8300.c (F): Likewise for return type and param
4730         "x".
4731         (Fpa): Add a checked cast to rtx_insn *.
4732         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
4733         rtx_insn *.
4734         (final_prescan_insn): Likewise for param "insn".
4735         (h8300_binary_length): Likewise.
4736         (h8300_insn_length_from_table): Likewise.
4738 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4740         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
4741         Strengthen first param "insn" from rtx to rtx_insn *.
4743         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
4744         Likewise.
4745         (frame_insn): Likewise for return type.  Introduce local "insn"
4746         for use in place of local "x" for use as an rtx_insn *.
4747         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
4748         (epiphany_expand_prologue): Likewise for local "insn".
4749         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
4750         * config/epiphany/resolve-sw-modes.c
4751         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
4752         "seq".
4754 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4756         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
4757         param from rtx to rtx_insn *.
4758         (c6x_final_prescan_insn): Likewise for first param.
4760         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
4761         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
4762         (c6x_expand_compare): Strengthen local "insns" from rtx to
4763         rtx_insn *.
4764         (c6x_get_unit_specifier): Likewise for param "insn".
4765         (c6x_print_unit_specifier_field): Likewise.
4766         (c6x_final_prescan_insn): Likewise.
4767         (emit_add_sp_const): Likewise for local "insn".
4768         (c6x_expand_prologue): Likewise.
4770 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4772         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
4773         param 1 from rtx to rtx_insn *.
4774         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
4775         the various locals named "insn".
4776         (expand_epilogue_reg_restore): Likewise.
4777         (frame_related_constant_load): Likewise.
4778         (add_to_reg): Likewise.
4779         (emit_link_insn): Likewise.
4780         (do_link): Likewise.
4781         (expand_interrupt_handler_prologue): Likewise.
4782         (branch_dest): Likewise for param "branch".
4783         (asm_conditional_branch): Likewise for param "insn".
4784         (gen_one_bundle): Likewise for elements of param "slot" and local
4785         "t".
4786         (bfin_gen_bundles): Likewise for locals "insn", "next" and
4787         elements of local "slot".
4788         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4789         "queue", "next_queue", "prev".
4790         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
4791         (add_sched_insns_for_speculation): Likewise for local "insn".
4793 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4795         * config/avr/avr-protos.h (output_movqi): Strengthen first param
4796         from rtx to rtx_insn *.
4797         (output_movhi): Likewise.
4798         (output_movsisf): Likewise.
4799         (avr_out_tstsi): Likewise.
4800         (avr_out_tsthi): Likewise.
4801         (avr_out_tstpsi): Likewise.
4802         (avr_out_compare): Likewise.
4803         (avr_out_compare64): Likewise.
4804         (avr_out_movpsi): Likewise.
4805         (ashlqi3_out): Likewise.
4806         (ashlhi3_out): Likewise.
4807         (ashlsi3_out): Likewise.
4808         (ashrqi3_out): Likewise.
4809         (ashrhi3_out): Likewise.
4810         (ashrsi3_out): Likewise.
4811         (lshrqi3_out): Likewise.
4812         (lshrhi3_out): Likewise.
4813         (lshrsi3_out): Likewise.
4814         (avr_out_ashlpsi3): Likewise.
4815         (avr_out_ashrpsi3): Likewise.
4816         (avr_out_lshrpsi3): Likewise.
4817         (avr_out_fract): Likewise.
4818         (avr_out_sbxx_branch): Likewise.
4819         (avr_out_round): Likewise.
4820         (avr_out_xload): Likewise.
4821         (avr_out_movmem): Likewise.
4822         (adjust_insn_length): Likewise.
4823         (avr_out_lpm): Likewise.
4824         (reg_unused_after): Likewise.
4825         (_reg_unused_after): Likewise.
4826         (avr_jump_mode): Likewise for second param.
4827         (jump_over_one_insn): Likewise for first param.
4828         (avr_final_prescan_insn): Likewise.
4829         (out_shift_with_cnt): Likewise for second param.
4831         * config/avr/avr.c (get_sequence_length): Likewise for param
4832         "insns" and local "insn".
4833         (emit_push_byte): Likewise for local "insn".
4834         (emit_push_sfr): Likewise.
4835         (avr_prologue_setup_frame): Likewise for locals "insn",
4836         "fp_plus_insns", "sp_plus_insns".
4837         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
4838         "sp_plus_insns".
4839         (avr_jump_mode): Likewise for param "insn".
4840         (avr_final_prescan_insn): Likewise.
4841         (avr_find_unused_d_reg): Likewise.
4842         (avr_out_lpm_no_lpmx): Likewise.
4843         (avr_out_lpm): Likewise.
4844         (avr_out_xload): Likewise.
4845         (output_movqi): Likewise.
4846         (output_movhi): Likewise.
4847         (out_movqi_r_mr): Likewise.
4848         (out_movhi_r_mr): Likewise.
4849         (out_movsi_r_mr): Likewise.
4850         (out_movsi_mr_r): Likewise.
4851         (output_movsisf): Likewise.
4852         (avr_out_load_psi): Likewise.
4853         (avr_out_store_psi): Likewise.
4854         (avr_out_movpsi): Likewise.
4855         (out_movqi_mr_r): Likewise.
4856         (avr_out_movhi_mr_r_xmega): Likewise.
4857         (out_movhi_mr_r): Likewise.
4858         (compare_condition): Likewise for param "insn" and local "next".
4859         (compare_sign_p): Likewise for param "insn".
4860         (compare_diff_p): Likewise.
4861         (compare_eq_p): Likewise.
4862         (avr_out_compare): Likewise.
4863         (avr_out_compare64): Likewise.
4864         (avr_out_tsthi): Likewise.
4865         (avr_out_tstpsi): Likewise.
4866         (avr_out_tstsi): Likewise.
4867         (out_shift_with_cnt): Likewise.
4868         (ashlqi3_out): Likewise.
4869         (ashlhi3_out): Likewise.
4870         (avr_out_ashlpsi3): Likewise.
4871         (ashlsi3_out): Likewise.
4872         (ashrqi3_out): Likewise.
4873         (ashrhi3_out): Likewise.
4874         (avr_out_ashrpsi3): Likewise.
4875         (ashrsi3_out): Likewise.
4876         (lshrqi3_out): Likewise.
4877         (lshrhi3_out): Likewise.
4878         (avr_out_lshrpsi3): Likewise.
4879         (lshrsi3_out): Likewise.
4880         (avr_out_fract): Likewise.
4881         (avr_out_round): Likewise.
4882         (avr_adjust_insn_length): Likewise.
4883         (reg_unused_after): Likewise.
4884         (_reg_unused_after): Likewise.
4885         (avr_compare_pattern): Likewise.
4886         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
4887         and locals "branch1", "branch2", "insn2", "jump".
4888         (avr_reorg): Likewise for local "insn".
4889         (avr_2word_insn_p): Likewise for param "insn".
4890         (jump_over_one_insn_p): Likewise.
4891         (avr_out_sbxx_branch): Likewise.
4892         (avr_out_movmem): Likewise.
4894 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4896         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
4897         param from rtx to rtx_insn *.
4898         (thumb1_final_prescan_insn): Likewise.
4899         (thumb2_final_prescan_insn): Likewise.
4901         * config/arm/arm.c (emit_set_insn): Strengthen return type from
4902         rtx to rtx_insn *.
4903         (struct minipool_node): Likewise for field "insn".
4904         (dump_minipool): Likewise for param "scan".
4905         (create_fix_barrier): Likewise for local "from".  Strengthen local
4906         "label" from rtx to rtx_code_label *.
4907         (push_minipool_barrier): Strengthen param "insn" from rtx to
4908         rtx_insn *.
4909         (push_minipool_fix): Likewise.
4910         (note_invalid_constants): Likewise.
4911         (thumb2_reorg): Likewise for local "insn".
4912         (arm_reorg): Likewise.
4913         (thumb2_final_prescan_insn): Likewise for param
4914         "insn" and local "first_insn".
4915         (arm_final_prescan_insn): Likewise for param "insn" and locals
4916         "start_insn", "this_insn".
4917         (arm_debugger_arg_offset): Likewise for param "insn".
4918         (thumb1_emit_multi_reg_push): Likewise for return type and local
4919         "insn".
4920         (thumb1_final_prescan_insn): Likewise for param "insn".
4921         (thumb_far_jump_used_p): Likewise for local "insn".
4922         (thumb1_expand_prologue): Likewise.
4923         (arm_expand_epilogue_apcs_frame): Likewise.
4924         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
4925         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
4926         from rtx to rtx_code_label *.
4927         (arm_split_atomic_op): Likewise for local "label".
4928         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
4930 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4932         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
4933         first param from rtx to rtx_insn *.
4934         (arc_verify_short): Likewise.
4935         (arc_short_long): Likewise.
4936         (arc_need_delay): Likewise.
4938         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
4939         "target_insn".
4940         (arc_ccfsm_advance): Likewise for param "insn" and locals
4941         "start_insn", "this_insn".
4942         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
4943         (arc_ccfsm_post_advance): Likewise for param "insn".
4944         (arc_next_active_insn): Likewise for return type and param "insn".
4945         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
4946         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
4947         (output_short_suffix): Likewise for local "insn".
4948         (arc_final_prescan_insn): Likewise for param "insn".  Remove
4949         now-redundant checked cast.
4950         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
4951         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
4952         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
4953         for use where lc_set became an insn.
4954         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
4955         rtx to rtx_insn *.
4956         (arc_get_insn_variants): Likewise for local "prev".
4957         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
4958         "next".
4959         (arc_predicate_delay_insns): Likewise for local "insn".
4960         (arc_pad_return): Likewise for local "prev".  For now, add a
4961         checked cast when extracting the insn from "final_sequence".
4962         (arc_short_long): Likewise for param "insn".
4963         (arc_need_delay): Likewise for param "insn" and local "next".
4964         (arc_label_align): Likewise for locals "prev", "next".
4966 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4968         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
4969         "insn" from rtx to rtx_insn *.
4970         (alpha_gp_save_rtx): Likewise for local "seq".
4971         (alpha_instantiate_decls): Likewise for local "top".
4972         (get_some_local_dynamic_name): Likewise for local "insn".
4973         (alpha_does_function_need_gp): Likewise.
4974         (set_frame_related_p): Likewise for return type and for locals
4975         "seq" and "insn".
4976         (emit_frame_store_1): Likewise for local "insn".
4977         (alpha_expand_prologue): Likewise for locals "insn", "seq".
4978         (alpha_end_function): Likewise for local "insn".
4979         (alpha_output_mi_thunk_osf): Likewise.
4980         (alphaev4_insn_pipe): Likewise for param "insn".
4981         (alphaev5_insn_pipe): Likewise.
4982         (alphaev4_next_group): Likewise for return type and param 1
4983         "insn".
4984         (alphaev5_next_group): Likewise.
4985         (alpha_align_insns_1): Likewise for return type and param 1 of
4986         callback param "next_group", and for locals "i", "next", "prev",
4987         "where", "where2", "insn".
4989 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
4991         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
4992         rather than modifying the stmt.
4994 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4996         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
4997         cgraph_state conversion.
4999 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5001         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5002         Strengthen local "insns" from rtx to rtx_insn *.
5003         (aarch64_set_frame_expr): Likewise for local "insn".
5004         (aarch64_save_or_restore_fprs): Likewise.
5005         (aarch64_save_or_restore_callee_save_registers): Likewise.
5006         (aarch64_expand_prologue): Likewise.
5007         (aarch64_expand_epilogue): Likewise.
5008         (aarch64_output_mi_thunk): Likewise.
5009         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
5010         "label2" from rtx to rtx_code_label *.
5011         (aarch64_split_atomic_op): Likewise for local "label".
5013 2014-08-25  Martin Liska  <mliska@suse.cz>
5015         * cgraph.h (symtab_node):
5016         (bool needed_p (void)): created from decide_is_symbol_needed
5017         (bool referred_to_p (void)): created from referred_to_p
5018         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
5019         * cgraph.h (cgraph_node):
5020         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
5021         (void expand (void)): created from expand_function
5022         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
5023         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
5024         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
5025         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
5026         * cgraph.h (varpool_node):
5027         (static void add (tree decl): created from varpool_add_new_variable
5028         * cgraph.h (cgraph_edge):
5029         void remove (void);
5030         (void remove_caller (void)): created from cgraph_edge_remove_caller
5031         (void remove_callee (void)): created from cgraph_edge_remove_callee
5032         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
5033           created from cgraph_set_call_stmt
5034         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
5035         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
5036         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
5037           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
5038         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
5039           created from cgraph_speculative_call_info
5040         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
5041           int freq_scale, bool update_original)): created from cgraph_clone_edge
5042         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
5043         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
5044         (bool recursive_p (void)): created from cgraph_edge_recursive_p
5045         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
5046         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
5047         (static void rebuild_references (void)): created from cgraph_rebuild_references
5048         * cgraph.h (symbol_table):
5049         (create_reference): renamed from add_reference
5050         (maybe_create_reference): renamed from maybe_add_reference
5051         (void register_symbol (symtab_node *node)): new function
5052         (void clear_asm_symbols (void)): new function
5053         (void unregister (symtab_node *node)): new function
5054         (void release_symbol (cgraph_node *node, int uid)): new function
5055         (cgraph_node * allocate_cgraph_symbol (void)): new function
5056         (void initialize (void)): created from cgraph_init
5057         (symtab_node *first_symbol (void)):new function
5058         (asm_node *first_asm_symbol (void)):new function
5059         (symtab_node *first_defined_symbol (void)):new function
5060         (varpool_node *first_variable (void)):new function
5061         (varpool_node *next_variable (varpool_node *node)):new function
5062         (varpool_node *first_static_initializer (void)):new function
5063         (varpool_node *next_static_initializer (varpool_node *node)):new function
5064         (varpool_node *first_defined_variable (void)):new function
5065         (varpool_node *next_defined_variable (varpool_node *node)):new function
5066         (cgraph_node *first_defined_function (void)):new function
5067         (cgraph_node *next_defined_function (cgraph_node *node)):new function
5068         (cgraph_node *first_function (void)):new function
5069         (cgraph_node *next_function (cgraph_node *node)):new function
5070         (cgraph_node *first_function_with_gimple_body (void)):new function
5071         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
5072         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
5073           created from symtab_remove_unreachable_nodes
5074         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
5075         (void process_new_functions (void)): created from cgraph_process_new_functions
5076         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
5077         (bool output_variables (void)): created from varpool_node::output_variables
5078         (void output_asm_statements (void)): created from output_asm_statements
5079         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
5080         (void compile (void)): created from compile
5081         (void output_weakrefs (void)): created from output_weakrefs
5082         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
5083         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
5084           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
5085         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
5086         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
5087           created from cgraph_next_function_with_gimple_body
5088         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
5089           created from cgraph_remove_edge_removal_hook
5090         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
5091           created from cgraph_add_node_removal_hook
5092         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
5093           created from cgraph_remove_node_removal_hook
5094         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
5095           created from varpool_add_node_removal_hook
5096         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
5097           created from varpool_remove_node_removal_hook
5098         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
5099           created from cgraph_add_function_insertion_hook
5100         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
5101           created from cgraph_remove_function_insertion_hook
5102         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
5103           created from varpool_add_variable_insertion_hook
5104         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
5105           created from varpool_remove_variable_insertion_hook
5106         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
5107           created from cgraph_add_edge_duplication_hook
5108         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
5109           created from cgraph_remove_edge_duplication_hook
5110         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
5111           created from cgraph_add_node_duplication_hook
5112         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
5113           created from cgraph_remove_node_duplication_hook
5114         (void call_edge_removal_hooks (cgraph_edge *e)):
5115           created from cgraph_call_edge_removal_hooks
5116         (void call_cgraph_insertion_hooks (cgraph_node *node)):
5117           created from call_function_insertion_hooks 
5118         (void call_cgraph_removal_hooks (cgraph_node *node)):
5119           created from cgraph_call_node_removal_hooks 
5120         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
5121           created from cgraph_node::call_duplication_hooks 
5122         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
5123           created from cgraph_call_edge_duplication_hooks
5124         (void call_varpool_removal_hooks (varpool_node *node)):
5125           created from varpool_call_node_removal_hooks
5126         (void call_varpool_insertion_hooks (varpool_node *node)):
5127           created from varpool_call_variable_insertion_hooks
5128         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
5129           created from insert_to_assembler_name_hash
5130         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
5131           created from unlink_from_assembler_name_hash
5132         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
5133           created from symtab_prevail_in_asm_name_hash
5134         (void symtab_initialize_asm_name_hash (void)):
5135           created from symtab_initialize_asm_name_hash
5136         (void change_decl_assembler_name (tree decl, tree name)):
5137           created from change_decl_assembler_name
5138         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
5139         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
5140           created from decl_assembler_name_hash
5141         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
5142           created from decl_assembler_name_equal
5143         (static hashval_t hash_node_by_assembler_name (const void *p)):
5144           created from hash_node_by_assembler_name
5145         (static int eq_assembler_name (const void *p1, const void *p2)):
5146           created from eq_assembler_name
5148 2014-08-25  Marek Polacek  <polacek@redhat.com>
5150         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
5152 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
5154         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
5155         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
5156         SWI1248_AVX512BW mode iterator.
5158 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
5160         PR target/62111
5161         * config/sh/predicates.md (general_extend_operand): Disable
5162         TRUNCATE before reload completes.
5164 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
5166         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
5168 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
5170         PR target/61996
5171         * config/sh/sh.opt (musermode): Allow negative form.
5172         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
5173         targets that don't support it.
5174         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
5175         Document -mno-usermode option.
5177 2014-08-24  Kito Cheng  <kito@0xlab.org>
5179         * system.h (CALLER_SAVE_PROFITABLE): Poison.
5180         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
5181         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
5182         * doc/tm.texi: Regenerate.
5184 2014-08-24  Kito Cheng  <kito@0xlab.org>
5186         * ira.c: Fix typo in comment.
5188 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
5190         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
5191         Deprecate c++1y. Change language to reflect greater confidence in C++14.
5193 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
5195         PR target/62038
5196         * config/pa/pa.c (pa_output_function_epilogue): Don't set
5197         last_address when the current function is a thunk.
5198         (pa_asm_output_mi_thunk): When we don't have named sections or they
5199         are not being used, check that thunk can reach the stub table with a
5200         short branch.
5202 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5204         * web.c (union_match_dups): Strengthen param "insn" from rtx to
5205         rtx_insn *.
5206         (pass_web::execute): Likewise for local "insn".
5208 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5210         * var-tracking.c (struct micro_operation_def): Strengthen field
5211         "insn" from rtx to rtx_insn *.
5212         (struct emit_note_data_def): Likewise.
5213         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
5214         (vt_stack_adjustments): Likewise for local "insn".
5215         (adjust_insn): Likewise for param "insn".
5216         (val_store): Likewise.
5217         (val_resolve): Likewise.
5218         (struct count_use_info): Likewise for field "insn".
5219         (log_op_type): Likewise for param "insn".
5220         (reverse_op): Likewise.
5221         (prepare_call_arguments): Likewise.
5222         (add_with_sets):  The initial param takes an insn, but we can't
5223         yet strengthen it from rtx to rtx_insn * since it's used as a
5224         cselib_record_sets_hook callback.  For now rename initial param
5225         from "insn" to "uncast_insn", and introduce a local "insn" of
5226         the stronger rtx_insn * type, with a checked cast.
5227         (compute_bb_dataflow): Strengthen local "insn" from rtx to
5228         rtx_insn *.
5229         (emit_note_insn_var_location): Likewise.
5230         (emit_notes_for_changes): Likewise.
5231         (emit_notes_for_differences): Likewise.
5232         (next_non_note_insn_var_location): Likewise for return type and
5233         for param "insn".
5234         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
5235         (vt_initialize): Likewise for local "insn".
5236         (delete_debug_insns): Likewise for locals "insn" and "next".
5238 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5240         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
5241         rtx_insn *.
5242         (mark_constant_pool): Likewise for local "insn".
5244 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5246         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
5247         rtx to rtx_insn *.
5248         (dead_debug_promote_uses): Likewise.
5249         (dead_debug_insert_temp): Likewise.
5251 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5253         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
5254         from const_rtx to const rtx_insn *.
5255         (store_killed_after): Likewise.  Strengthen locals "last", "act"
5256         from rtx to rtx_insn *.
5257         (store_killed_before): Strengthen param "insn" from const_rtx to
5258         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
5259         (find_moveable_store): Strengthen param "insn" from rtx to
5260         rtx_insn *.
5261         (compute_store_table): Likewise for local "insn".
5262         (insert_insn_start_basic_block): Likewise for param "insn" and
5263         locals "prev", "before", "insn".
5264         (insert_store): For now, add a checked cast to rtx_insn * on the
5265         result of gen_move_insn.
5266         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
5267         to rtx_insn *.
5268         (replace_store_insn): Likewise.  For now, add a checked cast to
5269         rtx_insn * on the result of gen_move_insn.
5271 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5273         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
5274         rtx_insn *.
5275         (expand_sjlj_dispatch_table): Likewise.
5277 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5279         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
5280         "insn" from rtx to rtx_insn *.
5282 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5284         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
5285         "insn" from rtx to rtx_insn *.
5286         (dup_block_and_redirect): Likewise for param 3 "before".
5288         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
5289         from rtx to rtx_insn *.
5290         (move_insn_for_shrink_wrap): Likewise.
5291         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
5292         (dup_block_and_redirect): Likewise for param "before" and local
5293         "insn".
5294         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
5295         "end".
5296         (convert_to_simple_return): Likewise for local "start".
5298         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
5299         Strengthen local "insn" from rtx to rtx_insn *, for use when
5300         invoking requires_stack_frame_p.
5302 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5304         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
5305         rtx_insn *.
5306         (speculate_expr): Likewise for locals "orig_insn_rtx",
5307         "spec_insn_rtx".
5308         (eq_transformed_insns): Likewise for locals "i1", "i2".
5309         (check_for_new_jump): Likewise for return type and local "end".
5310         (find_new_jump): Likewise for return type and local "jump".
5311         (sel_split_edge): Likewise for local "jump".
5312         (sel_create_recovery_block): Likewise.
5313         (sel_redirect_edge_and_branch_force): Likewise.
5314         (sel_redirect_edge_and_branch): Likewise.
5316 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5318         * sel-sched.c (substitute_reg_in_expr): Strengthen local
5319         "new_insn" from rtx to rtx_insn *.
5320         (create_insn_rtx_with_rhs): Likewise for return type and for local
5321         "insn_rtx".
5322         (create_insn_rtx_with_lhs): Likewise.
5323         (create_speculation_check): Likewise for local "insn_rtx".
5324         (implicit_clobber_conflict_p): Likewise for local "insn".
5325         (get_expr_cost): Likewise.
5326         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
5327         (move_cond_jump): Likewise for locals "next", "prev", "link",
5328         "head", "from", "to".
5330 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5332         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
5333         "next" from rtx to rtx_insn *.
5334         (find_conditional_protection): Likewise for local "next".
5335         (is_conditionally_protected): Likewise for local "insn1".
5336         (is_pfree): Likewise for locals "insn1", "insn2".
5338 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5340         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
5341         from rtx to rtx_insn *.
5343         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
5344         locals "insn1", "insn2" from rtx to rtx_insn *.
5345         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
5346         locals "insn", "prev", "last_jump", "next_tail".
5347         (schedule_ebb): Likewise for params "head", "tail".
5348         (schedule_ebbs): Likewise for locals "tail", "head".
5350         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
5351         to rtx_insn on "last_insn" in one of the invocations of
5352         schedule_ebb.
5354 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5356         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
5357         "elem", "insn" from rtx to rtx_insn *.
5358         (change_spec_dep_to_hard): Likewise.
5359         (get_back_and_forw_lists): Likewise for local "con".
5360         (sd_add_dep): Likewise for locals "elem", "insn".
5361         (sd_resolve_dep): Likewise for locals "pro", "con".
5362         (sd_unresolve_dep): Likewise.
5363         (sd_delete_dep): Likewise.
5364         (chain_to_prev_insn): Likewise for local "pro".
5365         (find_inc): Likewise for locals "pro", "con".
5367 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5369         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
5370         to rtx_insn *.
5371         (reg_set_between_p): Strengthen local "insn" from const_rtx to
5372         const rtx_insn *.
5373         (modified_between_p): Strengthen local "insn" from rtx to
5374         rtx_insn *.
5375         (remove_reg_equal_equiv_notes_for_regno): Likewise.
5376         (keep_with_call_p): Strengthen local "i2" from const_rtx to
5377         const rtx_insn *.
5379 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5381         * resource.c (next_insn_no_annul): Strengthen local "next" from
5382         rtx to rtx_insn *.
5383         (mark_referenced_resources): Likewise for local "insn".
5385 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5387         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
5388         to rtx_insn *.
5389         (find_reloads): Likewise for param 1.
5390         (subst_reloads): Likewise for sole param.
5391         (find_equiv_reg): Likwise for param 2.
5392         (regno_clobbered_p): Likwise for param 2.
5393         (reload): Likewise for param 1.
5395         * caller-save.c (save_call_clobbered_regs): Strengthen local
5396         "insn" from rtx to rtx_insn *.
5397         (insert_one_insn): Likewise for local "insn".
5399         * reload.c (this_insn): Likewise for this global.
5400         (find_reloads): Likewise for param "insn".
5401         (find_reloads_toplev): Likewise.
5402         (find_reloads_address): Likewise.
5403         (subst_reg_equivs): Likewise.
5404         (update_auto_inc_notes): Likewise.
5405         (find_reloads_address_1): Likewise.
5406         (find_reloads_subreg_address): Likewise.
5407         (subst_reloads): Likewise.
5408         (find_equiv_reg): Likewise, also for local "p".
5409         (regno_clobbered_p): Likewise for param "insn".
5411         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
5412         array.
5413         (spill_reg_store): Likewise for the elements of this array.
5414         (remove_init_insns): Likewise for local "equiv_insn".
5415         (will_delete_init_insn_p): Likewise for param "insn".
5416         (reload): Likewise for param ""first" and local "insn".
5417         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
5418         rtx_insn *.
5419         (calculate_elim_costs_all_insns): Likewise.
5420         (delete_caller_save_insns): Likewise.
5421         (spill_failure): Likewise for param "insn".
5422         (delete_dead_insn): Likewise.
5423         (set_label_offsets): Likewise.
5424         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
5425         "prev_insn".
5426         (elimination_costs_in_insn): Likewise for param "insn".
5427         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
5428         when referring to an insn.
5429         (set_initial_label_offsets): Likewise.
5430         (set_offsets_for_label): Strengthen param "insn" from rtx to
5431         rtx_insn *.
5432         (init_eliminable_invariants): Likewise for param "first" and local
5433         "insn".
5434         (fixup_eh_region_note): Likewise for param "insn".
5435         (reload_as_needed): Likewise for locals "prev", "insn",
5436         "old_next", "old_prev", "next".
5437         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
5438         "last".
5439         (reload_inheritance_insn): Strengthen elements of this array from
5440         rtx to rtx_insn *.
5441         (failed_reload): Likewise for param "insn".
5442         (choose_reload_regs): Likewise for local "insn".  Replace use of
5443         NULL_RTX with NULL when referring to an insn.
5444         (input_reload_insns): Strengthen elements of this array from rtx
5445         to rtx_insn *.
5446         (other_input_address_reload_insns): Likewise for this global.
5447         (other_input_reload_insns): Likewise for this global.
5448         (input_address_reload_insns): Likwise for the elements of this
5449         array.
5450         (inpaddr_address_reload_insns): Likwise for the elements of this
5451         array.
5452         (output_reload_insns): Likewise for the elements of this array.
5453         (output_address_reload_insns): Likewise for the elements of this
5454         array.
5455         (outaddr_address_reload_insns): Likewise for the elements of this
5456         array.
5457         (operand_reload_insns): Likewise for this global.
5458         (other_operand_reload_insns): Likewise for this global.
5459         (other_output_reload_insns): Likewise for the elements of this
5460         array.
5461         (new_spill_reg_store): Likewise for the elements of this
5462         array.
5463         (emit_input_reload_insns): Likewise for locals "insn", "temp".
5464         Strengthen local "where" from rtx * to rtx_insn **.
5465         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
5466         from rtx to rtx_insn *.
5467         (do_input_reload): Likewise for local "insn".
5468         (do_output_reload): Likewise for local "insn".
5469         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
5470         (emit_insn_if_valid_for_reload): Likewise for return type and local
5471         "last".  Add checked cast to rtx_insn when returning "insn" since
5472         this has been through emit_insn.
5473         (gen_reload): Strengthen return type and locals "last", "insn", "set"
5474         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
5475         returning "insn" since it's been through
5476         emit_insn_if_valid_for_reload at this point.
5477         (delete_output_reload): Strengthen param "insn" and locals
5478         "output_reload_insn", "i2" from rtx to rtx_insn *.
5479         (delete_address_reloads): Likewise for params "dead_insn",
5480         "current_insn" and locals "prev", "next".
5481         (delete_address_reloads_1): Likewise for params "dead_insn",
5482         "current_insn" and locals "prev", "i2".
5483         (inc_for_reload): Likewise for locals "last", "add_insn".
5484         (add_auto_inc_notes): Strengthen param "insn" from rtx to
5485         rtx_insn *.
5487         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
5488         param of this duplicate of the prototype from reload.h
5490 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5492         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
5493         rtx to rtx_insn *.
5494         (regstat_bb_compute_calls_crossed): Likewise.
5496 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5498         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
5499         to rtx_insn *.
5500         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
5501         with an insn.
5502         (regrename_analyze): Strengthen local "insn" from rtx to
5503         rtx_insn *.
5504         (scan_rtx_reg): Likewise for param "insn".
5505         (scan_rtx_address): Likewise.
5506         (scan_rtx): Likewise.
5507         (restore_operands): Likewise.
5508         (record_out_operands): Likewise.
5509         (build_def_use): Likewise for local "insn".  Replace use of
5510         NULL_RTX with NULL when dealing with an insn.
5512 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5514         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
5515         * reginfo.c (reg_scan): Likewise, also for local "insn".
5516         (reg_scan_mark_refs): Likewise for param "insn".
5517         (init_subregs_of_mode): Likewise for local "insn".
5519 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5521         * regcprop.c (struct queued_debug_insn_change): Strengthen field
5522         "insn" from rtx to rtx_insn *.
5523         (replace_oldest_value_reg): Likewise for param "insn".
5524         (replace_oldest_value_addr): Likewise.
5525         (replace_oldest_value_mem): Likewise.
5526         (apply_debug_insn_changes): Likewise for local "last_insn".
5527         (copyprop_hardreg_forward_1): Likewise for local "insn".
5529 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5531         * reg-stack.c (next_flags_user): Strengthen return type and param
5532         "insn" from rtx to rtx_insn *.
5533         (straighten_stack): Likewise for param "insn".
5534         (check_asm_stack_operands): Likewise.
5535         (remove_regno_note): Likewise.
5536         (emit_pop_insn): Likewise for return type, param "insn", local
5537         "pop_insn".
5538         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
5539         "limit" from rtx to rtx_insn *.
5540         (swap_to_top): Likewise for param "insn".
5541         (move_for_stack_reg): Likewise.
5542         (move_nan_for_stack_reg): Likewise.
5543         (swap_rtx_condition): Likewise.
5544         (compare_for_stack_reg): Likewise.
5545         (subst_all_stack_regs_in_debug_insn): Likewise.
5546         (subst_stack_regs_pat): Likewise, and local "insn2".
5547         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
5548         rtx_insn *.
5549         (subst_stack_regs): Likewise.
5550         (change_stack): Likewise.
5551         (convert_regs_1): Likewise for locals "insn", "next".
5553 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5555         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
5556         rtx_insn *.
5557         (combine_set_extension): Likewise for param "curr_insn".
5558         (transform_ifelse): Likewise for param "def_insn".
5559         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
5560         from vec<rtx> * to vec<rtx_insn *> *.
5561         (is_cond_copy_insn): Likewise for param "insn".
5562         (struct ext_state): Strengthen the four vec fields from vec<rtx>
5563         to vec<rtx_insn *>.
5564         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
5565         local "def_insn" from rtx to rtx_insn *.
5566         (get_sub_rtx): Likewise for param "def_insn".
5567         (merge_def_and_ext): Likewise.
5568         (combine_reaching_defs): Likewise.
5569         (add_removable_extension): Likewise for param "insn".
5570         (find_removable_extensions): Likewise for local "insn".
5571         (find_and_remove_re): Likewise for locals "curr_insn" and
5572         "def_insn".  Strengthen locals "reinsn_del_list" and
5573         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
5575 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5577         * recog.c (split_insn): Strengthen param "insn" and locals
5578         "first", "last" from rtx to rtx_insn *.
5579         (split_all_insns): Likewise for locals "insn", "next".
5580         (split_all_insns_noflow): Likewise.
5582 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5584         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
5585         const rtx_insn *.
5586         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
5587         (debug_rtx_find): Likewise for param 1 "x".
5589         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
5590         const_rtx to const rtx_insn *.  Likewise for local "insn".
5591         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
5592         (debug_rtx_find): Likewise for param 1 "x".
5593         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
5594         from const_rtx to const rtx_insn * within the appropriate cases of
5595         the switch statement.
5597         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
5598         Strengthen local "insns" from rtx to rtx_insn * since this is
5599         passed to a call to debug_rtx_list.
5601 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5603         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
5604         to rtx_insn *.
5606         * function.c (stack_protect_epilogue): Add checked cast to
5607         rtx_insn for now when invoking predict_insn_def.
5609         * predict.c (predict_insn): Strengthen param "insn" from rtx to
5610         rtx_insn *.
5611         (predict_insn_def): Likewise.
5612         (rtl_predict_edge): Likewise for local "last_insn".
5613         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
5614         const rtx_insn *.
5615         (combine_predictions_for_insn): Strengthen param "insn" from rtx
5616         to rtx_insn *.
5617         (bb_estimate_probability_locally): Likewise for local "last_insn".
5618         (expensive_function_p): Likewise for local "insn".
5620         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
5621         local "jmp", since this is used when invoking predict_insn_def.
5623 2014-08-22  Marek Polacek  <polacek@redhat.com>
5625         PR c++/62199
5626         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
5628 2014-08-22  Marek Polacek  <polacek@redhat.com>
5630         PR c/61271
5631         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
5632         a comparison in parens.
5633         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
5634         in parens.
5636 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5638         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
5639         rtx_insn *.
5641         * cprop.c (fis_get_condition): Likewise.
5643         * postreload.c (reload_cse_regs): Likewise for param "first".
5644         (reload_cse_simplify): Likewise for param "insn".
5645         (reload_cse_regs_1): Likewise for local "insn".
5646         (reload_cse_simplify_set): Likewise for param "insn".
5647         (reload_cse_simplify_operands): Likewise.
5648         (struct reg_use): Likewise for field "insn".
5649         (reload_combine_purge_insn_uses): Likewise for param "insn".
5650         (fixup_debug_insns): Likewise for params "from", "to" and local
5651         "insn".
5652         (try_replace_in_use): Likewise for local "use_insn".
5653         (reload_combine_recognize_const_pattern): Likewise for param
5654         "insn" and locals "add_moved_after_insn", "use_insn".
5655         (reload_combine_recognize_pattern): Likewise for param "insn" and
5656         local "prev".
5657         (reload_combine): Likewise for locals "insn", "prev".
5658         (reload_combine_note_use): Likewise for param "insn".
5659         (move2add_use_add2_insn): Likewise.
5660         (move2add_use_add3_insn): Likewise.
5661         (reload_cse_move2add): Likewise, also for local "next".
5662         (move2add_note_store): Likewise for local "insn".
5664 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5666         * postreload-gcse.c (struct occr): Strengthen field "insn" from
5667         rtx to rtx_insn *.
5668         (struct unoccr): Likewise.
5669         (struct modifies_mem): Likewise.
5670         (alloc_mem): Likewise for local "insn".
5671         (insert_expr_in_table): Likewise for param "insn".
5672         (dump_expr_hash_table_entry): Likewise for local "insn".
5673         (oprs_unchanged_p): Likewise for param "insn".
5674         (load_killed_in_block_p): Likewise for local "setter".
5675         (record_last_reg_set_info): Likewise for param "insn".
5676         (record_last_reg_set_info_regno): Likewise.
5677         (record_last_mem_set_info): Likewise.
5678         (record_last_set_info): Likewise for local "last_set_insn".
5679         (record_opr_changes): Likewise for param "insn".
5680         (hash_scan_set): Likewise.
5681         (compute_hash_table): Likewise for local "insn".
5682         (get_avail_load_store_reg): Likewise for param "insn".
5683         (eliminate_partially_redundant_load): Likewise, also for locals
5684         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
5685         RTX for insns.
5686         (eliminate_partially_redundant_loads): Likewise for local "insn".
5688 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5690         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
5691         rtx to rtx_insn *.
5692         (expand_binop): Likewise for locals "entry_last", "last", "insns"
5693         (expand_twoval_unop): Likewise for locals entry_last", "last".
5694         (expand_twoval_binop): Likewise.
5695         (expand_twoval_binop_libfunc): Likewise for local "insns".
5696         (widen_leading): Likewise for local "last".
5697         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
5698         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
5699         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
5700         (expand_parity): Likewise for locals "last" and "seq".
5701         (expand_ffs): Likewise for local "seq".  Strengthen local
5702         "nonzero_label" from rtx to rtx_code_label *.
5703         (expand_absneg_bit): Strengthen local "insns" from rtx to
5704         rtx_insn *.
5705         (expand_unop_direct): Likewise for local "last".
5706         (expand_unop): Likewise for locals "last", "insns".
5707         (expand_abs_nojump): Likewise for local "last".
5708         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
5709         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
5710         rtx_insn *.
5711         (expand_copysign_absneg): Strengthen local "label" from rtx to
5712         rtx_code_label *.
5713         (expand_copysign_bit): Strengthen local "insns" from rtx to
5714         rtx_insn *.
5715         (struct no_conflict_data): Likewise for fields "first", "insn".
5716         (emit_libcall_block_1): Likewise for param "insns" and locals
5717         "next", "last", "insn".
5718         (emit_libcall_block): For now, add a checked cast to rtx_insn *
5719         on "insns" when invoking emit_libcall_block_1.  Ultimately we
5720         want to strengthen insns itself.
5721         (prepare_cmp_insn): Strengthen local "last" from rtx to
5722         rtx_insn *.
5723         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
5724         (prepare_float_lib_cmp): Likewise for local "insns".
5725         (emit_conditional_move): Likewise for local "last".
5726         (emit_conditional_add): Likewise.
5727         (have_sub2_insn): Likewise for local "seq".
5728         (expand_float): Likewise for local "insns".  Strengthen locals
5729         "label", "neglabel" from rtx to rtx_code_label *.
5730         (expand_fix): Likewise for locals "last", "insn", "insns" (to
5731         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
5732         (expand_fixed_convert): Likewise for local "insns" (to
5733         rtx_insn *).
5734         (expand_sfix_optab): Likewise for local "last".
5735         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
5736         to rtx_code_label *.
5737         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
5738         from rtx to rtx_insn *.
5739         (expand_atomic_fetch_op): Likewise for local "insn".
5740         (maybe_legitimize_operand_same_code): Likewise for local "last".
5741         (maybe_legitimize_operands): Likewise.
5743 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5745         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
5746         "insn" from rtx to rtx_insn *.
5747         (ps_rtl_insn): Likewise for return type.
5748         (doloop_register_get): Likewise for params "head", "tail" and
5749         locals "insn", "first_insn_not_to_check".
5750         (schedule_reg_move): Likewise for local "this_insn".
5751         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
5752         of gen_move_insn for now.
5753         (reset_sched_times): Strengthen local "insn" from rtx to
5754         rtx_insn *.
5755         (permute_partial_schedule): Likewise.
5756         (duplicate_insns_of_cycles): Likewise for local "u_insn".
5757         (dump_insn_location): Likewise for param "insn".
5758         (loop_canon_p): Likewise for local "insn".
5759         (sms_schedule): Likewise.
5760         (print_partial_schedule): Likewise.
5761         (ps_has_conflicts): Likewise.
5763 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5765         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
5766         "tailp" from rtx * to rtx_insn **.
5768         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
5769         from rtx to rtx_insn *.
5770         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
5771         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
5772         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
5773         rtx to rtx_insn *.
5774         * modulo-sched.c (const_iteration_count): Strengthen return type
5775         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
5776         use of NULL_RTX with NULL when working with insns.
5777         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
5778         to rtx_insn *.
5779         (sms_schedule): Likewise.
5780         * sched-rgn.c (init_ready_list): Likewise, also for locals
5781         "src_head" and "src_next_tail".
5782         (compute_block_dependences): Likewise.
5783         (free_block_dependencies): Likewise.
5784         (debug_rgn_dependencies): Likewise.
5785         (free_rgn_deps): Likewise.
5786         (compute_priorities): Likewise.
5787         (schedule_region): Likewise.
5788         * sel-sched.c (find_ebb_boundaries): Likewise.
5790         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
5791         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
5793 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5795         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
5796         from rtx to rtx_insn *.
5797         (new_seginfo): Likewise for param "insn".
5798         (create_pre_exit): Likewise for locals "last_insn",
5799         "before_return_copy", "return_copy".
5800         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
5801         "mode_set".
5803 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5805         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
5806         from rtx to rtx_insn *.
5807         (lra_push_insn): Likewise for 1st param.
5808         (lra_push_insn_and_update_insn_regno_info): Likewise.
5809         (lra_pop_insn): Likewise for return type.
5810         (lra_invalidate_insn_data): Likewise for 1st param.
5811         (lra_set_insn_deleted): Likewise.
5812         (lra_delete_dead_insn): Likewise.
5813         (lra_process_new_insns): Likewise for first 3 params.
5814         (lra_set_insn_recog_data): Likewise for 1st param.
5815         (lra_update_insn_recog_data): Likewise.
5816         (lra_set_used_insn_alternative): Likewise.
5817         (lra_invalidate_insn_regno_info): Likewise.
5818         (lra_update_insn_regno_info): Likewise.
5819         (lra_former_scratch_operand_p): Likewise.
5820         (lra_eliminate_regs_1): Likewise.
5821         (lra_get_insn_recog_data): Likewise.
5823         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
5824         rtx to rtx_insn *.
5826         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
5827         "mv1" and "mv2".
5828         (substitute_within_insn): New.
5829         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
5830         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
5831         Replace call to "substitute" with call to substitute_within_insn.
5833         * lra-constraints.c (curr_insn): Strengthen from rtx to
5834         rtx_insn *.
5835         (get_equiv_with_elimination): Likewise for param "insn".
5836         (match_reload): Strengthen params "before" and "after" from rtx *
5837         to rtx_insn **.
5838         (emit_spill_move): Likewise for return type.  Add a checked cast
5839         to rtx_insn * on result of gen_move_insn for now.
5840         (check_and_process_move): Likewise for local "before".  Replace
5841         NULL_RTX with NULL when referring to insns.
5842         (process_addr_reg): Strengthen params "before" and "after" from
5843         rtx * to rtx_insn **.
5844         (insert_move_for_subreg): Likewise.
5845         (simplify_operand_subreg): Strengthen locals "before" and "after"
5846         from rtx to rtx_insn *.
5847         (process_address_1): Strengthen params "before" and "after" from
5848         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
5849         rtx to rtx_insn *.
5850         (process_address): Strengthen params "before" and "after" from
5851         rtx * to rtx_insn **.
5852         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
5853         (curr_insn_transform): Strengthen locals "before" and "after"
5854         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
5855         to insns.
5856         (loc_equivalence_callback): Update cast of "data", changing
5857         resulting type from rtx to rtx_insn *.
5858         (substitute_pseudo_within_insn): New.
5859         (inherit_reload_reg): Strengthen param "insn" from rtx to
5860         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
5861         NULL when referring to insns.  Add a checked cast to rtx_insn *
5862         when using usage_insn to invoke lra_update_insn_regno_info.
5863         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
5864         likewise for locals "restore", "save".  Add checked casts to
5865         rtx_insn * when using usage_insn to invoke
5866         lra_update_insn_regno_info and lra_process_new_insns.  Replace
5867         NULL_RTX with NULL when referring to insns.
5868         (split_if_necessary): Strengthen param "insn" from rtx to
5869         rtx_insn *.
5870         (update_ebb_live_info): Likewise for params "head", "tail" and local
5871         "prev_insn".
5872         (get_last_insertion_point): Likewise for return type and local "insn".
5873         (get_live_on_other_edges): Likewise for local "last".
5874         (inherit_in_ebb): Likewise for params "head", "tail" and locals
5875         "prev_insn", "next_insn", "restore".
5876         (remove_inheritance_pseudos): Likewise for local "prev_insn".
5877         (undo_optional_reloads): Likewise for local "insn".
5879         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
5880         "insn".
5881         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
5882         insns.
5883         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
5884         rtx_insn *.
5885         (spill_pseudos): Likewise for local "insn".
5886         (init_elimination): Likewise.
5887         (process_insn_for_elimination): Likewise for param "insn".
5889         * lra-lives.c (curr_insn): Likewise.;
5891         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
5892         (remove_pseudos): Likewise for param "insn".
5893         (spill_pseudos): Likewise for local "insn".
5894         (lra_final_code_change): Likewise for locals "insn", "curr".
5896         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
5897         (lra_set_insn_deleted): Likewise.
5898         (lra_delete_dead_insn): Likewise, and for local "prev".
5899         (new_insn_reg): Likewise for param "insn".
5900         (lra_set_insn_recog_data): Likewise.
5901         (lra_update_insn_recog_data): Likewise.
5902         (lra_set_used_insn_alternative): Likewise.
5903         (get_insn_freq): Likewise.
5904         (invalidate_insn_data_regno_info): Likewise.
5905         (lra_invalidate_insn_regno_info): Likewise.
5906         (lra_update_insn_regno_info): Likewise.
5907         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
5908         vec<rtx_insn *>.
5909         (lra_push_insn_1): Strengthen param "insn" from rtx to
5910         rtx_insn *.
5911         (lra_push_insn): Likewise.
5912         (lra_push_insn_and_update_insn_regno_info): Likewise.
5913         (lra_pop_insn): Likewise for return type and local "insn".
5914         (push_insns): Likewise for params "from", "to", and local "insn".
5915         (setup_sp_offset): Likewise for params "from", "last" and locals
5916         "before", "insn".
5917         (lra_process_new_insns): Likewise for params "insn", "before",
5918         "after" and local "last".
5919         (struct sloc): Likewise for field "insn".
5920         (lra_former_scratch_operand_p): Likewise for param "insn".
5921         (remove_scratches): Likewise for locals "insn", "last".
5922         (check_rtl): Likewise for local "insn".
5923         (add_auto_inc_notes): Likewise for param "insn".
5924         (update_inc_notes): Likewise for local "insn".
5925         (lra): Replace NULL_RTX with NULL when referring to insn.
5927 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5929         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
5930         to rtx_insn *.
5931         (resolve_reg_notes): Likewise.
5932         (resolve_simple_move): Likewise for return type, param "insn", and
5933         locals "insns", "minsn".
5934         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
5935         (resolve_use): Likewise.
5936         (resolve_debug): Likewise.
5937         (find_decomposable_shift_zext): Likewise.
5938         (resolve_shift_zext): Likewise for return type, param "insn", and
5939         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
5940         (decompose_multiword_subregs): Likewise for local "insn",
5941         "orig_insn", "decomposed_shift", "end".
5943 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5945         * basic-block.h (basic_block split_edge_and_insert): Strengthen
5946         param "insns" from rtx to rtx_insn *.
5948         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
5949         rtx to rtx_insn *.
5950         (struct iv_to_split): Likewise.
5951         (loop_exit_at_end_p): Likewise for local "insn".
5952         (split_edge_and_insert): Likewise for param "insns".
5953         (compare_and_jump_seq): Likewise for return type, param "cinsn",
5954         and locals "seq", "jump".
5955         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
5956         "branch_code"; update invocations of compare_and_jump_seq to
5957         eliminate NULL_RTX in favor of NULL.
5958         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
5959         rtx to rtx_insn *.
5960         (reset_debug_uses_in_loop): Likewise.
5961         (analyze_insn_to_expand_var): Likewise for param "insn".
5962         (analyze_iv_to_split_insn): Likewise.
5963         (analyze_insns_in_loop): Likewise for local "insn".
5964         (insert_base_initialization): Likewise for param
5965         "insn" and local "seq".
5966         (split_iv): Likewise for param "insn" and local "seq".
5967         (expand_var_during_unrolling): Likewise for param "insn".
5968         (insert_var_expansion_initialization): Likewise for local "seq".
5969         (combine_var_copies_in_loop_exit): Likewise.
5970         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
5971         "insn".
5972         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
5973         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
5974         "next".
5976 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5978         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
5979         rtx_insn *.
5980         (iv_analyze_result): Likewise.
5981         (iv_analyze_expr): Likewise.
5982         (biv_p): Likewise.
5984         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
5985         local "def_insn" from rtx to rtx_insn *.
5986         (get_biv_step_1): Likewise for local "insn".
5987         (iv_analyze_expr): Likewise for param "insn".
5988         (iv_analyze_def): Likewise for local "insn".
5989         (iv_analyze_op): Likewise for param "insn".
5990         (iv_analyze): Likewise.
5991         (iv_analyze_result): Likewise.
5992         (biv_p): Likewise.
5993         (suitable_set_for_replacement): Likewise.
5994         (simplify_using_initial_values): Likewise for local "insn".
5995         (iv_number_of_iterations): Likewise for param "insn".
5996         (check_simple_exit): Add checked cast to rtx_insn when invoking
5997         iv_number_of_iterations for now (until get_condition is
5998         strengthened).
6000         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
6001         "insn" from rtx to rtx_insn *.
6002         (analyze_insns_in_loop): Likewise for local "insn".
6004 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6006         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
6007         to rtx_insn *.
6008         (struct invariant): Likewise.
6009         (hash_invariant_expr_1): Likewise for param "insn".
6010         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
6011         (find_exits): Likewise for local "insn".
6012         (create_new_invariant): Likewise for param "insn".
6013         (check_dependencies): Likewise.
6014         (find_invariant_insn): Likewise.
6015         (record_uses): Likewise.
6016         (find_invariants_insn): Likewise.
6017         (find_invariants_bb): Likewise for local "insn".
6018         (get_pressure_class_and_nregs): Likewise for param "insn".
6019         (calculate_loop_reg_pressure): Likewise for local "insn".
6021 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6023         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
6024         to rtx_insn *.
6025         (add_test): Likewise for locals "seq", "jump".
6026         (doloop_modify): Likewise for locals "sequence", "jump_insn".
6028 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6030         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
6031         rtx_insn *.
6032         (rebuild_jump_labels_chain): Likewise for param "chain".
6034         * cfgexpand.c (pass_expand::execute): Add checked cast to
6035         rtx_insn * when calling rebuild_jump_labels_chain in region where
6036         we know e->insns.r is non-NULL.
6038         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
6039         rtx_insn *.
6040         (rebuild_jump_labels): Likewise.
6041         (rebuild_jump_labels_chain): Likewise for param "chain".
6042         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
6043         (init_label_info): Likewise for param "f".
6044         (maybe_propagate_label_ref): Likewise for params "jump_insn",
6045         "prev_nonjump_insn".
6046         (mark_all_labels): Likewise for param "f" and locals "insn",
6047         "prev_nonjump_insn".
6049 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6051         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
6052         from rtx to rtx_insn *insn.
6053         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
6054         (ira_add_allocno_copy): Likewise.
6055         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
6056         rtx to rtx_insn *.
6057         (ira_create_copy): Likewise.
6058         (ira_add_allocno_copy): Likewise.
6059         (create_bb_allocnos): Likewise for local "insn".
6060         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
6061         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
6062         process_regs_for_copy for rtx_insn * param.
6063         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
6064         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
6065         process_regs_for_copy for rtx_insn * param.
6066         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
6067         * ira-costs.c (record_reg_classes): Likewise for param "insn".
6068         (record_operand_costs): Likewise.
6069         (scan_one_insn): Likewise for return type, and for param "insn".
6070         (process_bb_for_costs): Likewise for local "insn".
6071         (process_bb_node_for_hard_reg_moves): Likewise.
6072         * ira-emit.c (struct move): Likewise for field "insn".
6073         (create_move): Eliminate use of NULL_RTX when dealing with an
6074         rtx_insn *.
6075         (emit_move_list): Strengthen return type and locals "result",
6076         "insn" from rtx to rtx_insn *insn.
6077         (emit_moves): Likewise for locals "insns", "tmp".
6078         (ira_emit): Likewise for local "insn".
6079         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
6080         "insn".
6081         (find_call_crossed_cheap_reg): Likewise.
6082         (process_bb_node_lives): Likewise for local "insn".
6083         * ira.c (decrease_live_ranges_number): Likewise.
6084         (compute_regs_asm_clobbered): Likewise.
6085         (build_insn_chain): Likewise.
6086         (find_moveable_pseudos): Likewise, also locals "def_insn",
6087         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
6088         to rtx_insn **.  Add a checked cast when assigning from
6089         "closest_use" into closest_uses array in a region where we know
6090         it's a non-NULL insn.
6091         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
6092         to rtx_insn *.
6093         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
6094         "last_interesting_insn", "uin".
6095         (move_unallocated_pseudos): Likewise for locals "def_insn",
6096         "move_insn", "newinsn".
6098 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6100         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
6101         Strengthen locals "done_label", "do_error" from rtx to
6102         rtx_code_label *.
6103         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
6104         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
6105         rtx_code_label *.
6106         (ubsan_expand_si_overflow_neg_check): Likewise for locals
6107         "done_label", "do_error" to rtx_code_label * and local  "last" to
6108         rtx_insn *.
6109         (ubsan_expand_si_overflow_mul_check): Likewise for locals
6110         "done_label", "do_error", "large_op0", "small_op0_large_op1",
6111         "one_small_one_large", "both_ops_large", "after_hipart_neg",
6112         "after_lopart_neg", "do_overflow", "hipart_different"  to
6113         rtx_code_label * and local  "last" to rtx_insn *.
6115 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6117         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
6118         "insn" and "move_insn" from rtx to rtx_insn *.
6120 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6122         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
6123         rtx_insn *.
6124         (cheap_bb_rtx_cost_p): Likewise.
6125         (first_active_insn): Likewise for return type and local "insn".
6126         (last_active_insn):  Likewise for return type and locals "insn",
6127         "head".
6128         (struct noce_if_info): Likewise for fields "jump", "insn_a",
6129         "insn_b".
6130         (end_ifcvt_sequence): Likewise for return type and locals "insn",
6131         "seq".
6132         (noce_try_move): Likewise for local "seq".
6133         (noce_try_store_flag): Likewise.
6134         (noce_try_store_flag_constants): Likewise.
6135         (noce_try_addcc): Likewise.
6136         (noce_try_store_flag_mask): Likewise.
6137         (noce_try_cmove): Likewise.
6138         (noce_try_minmax): Likewise.
6139         (noce_try_abs): Likewise.
6140         (noce_try_sign_mask): Likewise.
6141         (noce_try_bitop): Likewise.
6142         (noce_can_store_speculate_p): Likewise for local "insn".
6143         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
6144         seq".
6145         (check_cond_move_block): Likewise for local "insn".
6146         (cond_move_convert_if_block): Likewise.
6147         (cond_move_process_if_block): Likewise for locals "seq",
6148         "loc_insn".
6149         (noce_find_if_block): Likewise for local "jump".
6150         (merge_if_block): Likewise for local "last".
6151         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
6152         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
6153         (block_has_only_trap): Likewise for return type and local "trap".
6154         (find_if_case_1): Likewise for local "jump".
6155         (dead_or_predicable): Likewise for locals "head", "end", "jump",
6156         "insn".
6158 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6160         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
6161         "last_insn", "loop_end" from rtx to rtx_insn *.
6163         * hw-doloop.c (scan_loop): Likewise for local "insn".
6164         (discover_loop): Likewise for param "tail_insn".
6165         (discover_loops): Likewise for local "tail".
6167         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
6168         cast to rtx_insn * when assigning from an rtx local to a
6169         hwloop_info's "last_insn" field.
6171 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6173         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
6174         (add_delay_dependencies): Strengthen local "pro" from rtx to
6175         rtx_insn *.
6176         (recompute_todo_spec): Likewise.
6177         (dep_cost_1): Likewise for locals "insn", "used".
6178         (schedule_insn): Likewise for local "dbg".
6179         (schedule_insn): Likewise for locals "pro", "next".
6180         (unschedule_insns_until): Likewise for local "con".
6181         (restore_pattern): Likewise for local "next".
6182         (estimate_insn_tick): Likewise for local "pro".
6183         (resolve_dependencies): Likewise for local "next".
6184         (fix_inter_tick): Likewise.
6185         (fix_tick_ready): Likewise for local "pro".
6186         (add_to_speculative_block): Likewise for locals "check", "twin",
6187         "pro".
6188         (sched_extend_bb): Likewise for locals "end", "insn".
6189         (init_before_recovery): Likewise for local "x".
6190         (sched_create_recovery_block): Likewise for local "barrier".
6191         (create_check_block_twin): Likewise for local "pro".
6192         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
6193         "consumer".
6194         (unlink_bb_notes): Update for change to type of bb_header.
6195         Strengthen locals "prev", "label", "note", "next" from rtx to
6196         rtx_insn *.
6197         (clear_priorities): Likewise for local "pro".
6199 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6201         * gcse.c (struct occr): Strengthen field "insn" from rtx to
6202         rtx_insn *.
6203         (test_insn): Likewise for this global.
6204         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
6205         const rtx_insn *.
6206         (oprs_anticipatable_p): Likewise.
6207         (oprs_available_p): Likewise.
6208         (insert_expr_in_table): Strengthen param "insn" from  rtx to
6209         rtx_insn *.
6210         (hash_scan_set): Likewise.
6211         (hash_scan_clobber): Likewise.
6212         (hash_scan_call): Likewise.
6213         (hash_scan_insn): Likewise.
6214         (compute_hash_table_work): Likewise for local "insn".
6215         (process_insert_insn): Likewise for return type and local "pat".
6216         (insert_insn_end_basic_block): Likewise for locals "new_insn",
6217         "pat", "pat_end", "maybe_cc0_setter".
6218         (pre_edge_insert): Likewise for local "insn".
6219         (pre_insert_copy_insn): Likewise for param "insn".
6220         (pre_insert_copies): Likewise for local "insn".
6221         (struct set_data): Likewise for field "insn".
6222         (single_set_gcse): Likewise for param "insn".
6223         (gcse_emit_move_after): Likewise.
6224         (pre_delete): Likewise for local "insn".
6225         (update_bb_reg_pressure): Likewise for param "from" and local
6226         "insn".
6227         (should_hoist_expr_to_dom): Likewise for param "from".
6228         (hoist_code): Likewise for local "insn".
6229         (get_pressure_class_and_nregs): Likewise for param "insn".
6230         (calculate_bb_reg_pressure): Likewise for local "insn".
6231         (compute_ld_motion_mems): Likewise.
6233 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6235         * genpeep.c (main): Rename param back from "uncast_ins1" to
6236         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
6237         checked cast.
6239         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
6241 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
6243         PR target/62195
6244         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
6245         documentation to state it is only for VSX operations.
6247         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
6248         constraint only active if VSX.
6250         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
6251         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
6252         (lfiwzx): Likewise.
6254 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6256         * fwprop.c (single_def_use_dom_walker::before_dom_children):
6257         Strengthen local "insn" from rtx to rtx_insn *.
6258         (use_killed_between): Likewise for param "target_insn".
6259         (all_uses_available_at): Likewise for param "target_insn" and
6260         local "next".
6261         (update_df_init): Likewise for params "def_insn", "insn".
6262         (update_df): Likewise for param "insn".
6263         (try_fwprop_subst): Likewise for param "def_insn" and local
6264         "insn".
6265         (free_load_extend): Likewise for param "insn".
6266         (forward_propagate_subreg): Likewise for param "def_insn" and
6267         local "use_insn".
6268         (forward_propagate_asm): Likewise for param "def_insn" and local
6269         "use_insn".
6270         (forward_propagate_and_simplify): Likewise for param "def_insn"
6271         and local "use_insn".
6272         (forward_propagate_into): Likewise for locals "def_insn" and
6273         "use_insn".
6275 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6277         * function.c (emit_initial_value_sets): Strengthen local "seq"
6278         from rtx to rtx_insn *.
6279         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
6280         local "seq".
6281         (instantiate_virtual_regs): Likewise for local "insn".
6282         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
6283         (reorder_blocks_1): Likewise for param "insns" and local "insn".
6284         (expand_function_end): Likewise for locals "insn" and "seq".
6285         (epilogue_done): Likewise for local "insn".
6286         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
6287         "last", "trial".
6288         (reposition_prologue_and_epilogue_notes): Likewise for locals
6289         "insn", "last", "note", "first".
6290         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
6291         (pass_match_asm_constraints::execute): Likewise for local "insn".
6293 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6295         * output.h (final_scan_insn): Strengthen return type from rtx to
6296         rtx_insn *.
6297         (final_forward_branch_p): Likewise for param.
6298         (current_output_insn): Likewise for this global.
6300         * final.c (rtx debug_insn): Likewise for this variable.
6301         (current_output_insn): Likewise.
6302         (get_attr_length_1): Rename param "insn" to "uncast_insn",
6303         adding "insn" back in as an rtx_insn * with a checked cast, so
6304         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
6305         first param.
6306         (compute_alignments): Strengthen local "label" from rtx to
6307         rtx_insn *.
6308         (shorten_branches): Rename param from "first" to "uncast_first",
6309         introducing a new local rtx_insn * "first" using a checked cast to
6310         effectively strengthen "first" from rtx to rtx_insn * without
6311         affecting the type signature.  Strengthen locals "insn", "seq",
6312         "next", "label" from rtx to rtx_insn *.
6313         (change_scope): Strengthen param "orig_insn" and local "insn" from
6314         rtx to rtx_insn *.
6315         (final_start_function): Rename param from "first" to "uncast_first",
6316         introducing a new local rtx_insn * "first" using a checked cast to
6317         effectively strengthen "first" from rtx to rtx_insn * without
6318         affecting the type signature.  Strengthen local "insn" from rtx to
6319         rtx_insn *.
6320         (dump_basic_block_info): Strengthen param "insn" from rtx to
6321         rtx_insn *.
6322         (final): Rename param from "first" to "uncast_first",
6323         introducing a new local rtx_insn * "first" using a checked cast to
6324         effectively strengthen "first" from rtx to rtx_insn * without
6325         affecting the type signature.  Strengthen locals "insn", "next"
6326         from rtx to rtx_insn *.
6327         (output_alternate_entry_point): Strengthen param "insn" from rtx to
6328         rtx_insn *.
6329         (call_from_call_insn): Strengthen param "insn" from rtx to
6330         rtx_call_insn *.
6331         (final_scan_insn): Rename param from "insn" to "uncast_insn",
6332         introducing a new local rtx_insn * "insn" using a checked cast to
6333         effectively strengthen "insn" from rtx to rtx_insn * without
6334         affecting the type signature.  Strengthen return type and locals
6335         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
6336         now-redundant checked cast to rtx_insn * from both invocations of
6337         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
6338         introducing a local "call_insn" for use when invoking
6339         call_from_call_insn.
6340         (notice_source_line): Strengthen param "insn" from rtx to
6341         rtx_insn *.
6342         (leaf_function_p): Likewise for local "insn".
6343         (final_forward_branch_p): Likewise.
6344         (leaf_renumber_regs): Likewise for param "first".
6345         (rest_of_clean_state): Likewise for locals "insn" and "next".
6346         (self_recursive_call_p): Likewise for param "insn".
6347         (collect_fn_hard_reg_usage): Likewise for local "insn".
6348         (get_call_fndecl): Likewise for param "insn".
6349         (get_call_cgraph_rtl_info): Likewise.
6350         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
6351         introducing a new local rtx_insn * "insn" using a checked cast to
6352         effectively strengthen "insn" from rtx to rtx_insn * without
6353         affecting the type signature.
6355         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
6356         cast when assigning from param "insn" to current_output_insn.
6357         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
6358         so that we can assign it back to current_output_insn.
6360 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6362         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
6363         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
6364         atmxt540s and atmxt540sreva devices.
6365         * config/avr/avr-tables.opt: Regenerate.
6366         * config/avr/t-multilib: Regenerate.
6367         * doc/avr-mmcu.texi: Regenerate.
6369 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6371         * expr.c (convert_move): Strengthen local "insns" from rtx to
6372         rtx_insn *.
6373         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
6374         "top_label" from rtx to rtx_code_label *.
6375         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
6376         rtx_insn *.
6377         (emit_single_push_insn): Likewise for locals "prev", "last".
6378         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
6379         to rtx_code_label *.
6380         (store_constructor): Likewise for locals "loop_start", "loop_end".
6381         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
6382         rtx_insn *.
6383         (expand_expr_real_2): Likewise.
6384         (expand_expr_real_1): Strengthen local "label" from rtx to
6385         rtx_code_label *.
6387 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6389         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
6390         from rtx to rtx_insn *.
6391         (store_bit_field_1): Likewise.
6392         (extract_bit_field_1): Likewise.
6393         (expand_mult_const): Likewise for local "insns".
6394         (expmed_mult_highpart): Strengthen local "label" from rtx to
6395         rtx_code_label *.
6396         (expand_smod_pow2): Likewise.
6397         (expand_sdiv_pow2): Likewise.
6398         (expand_divmod): Strengthen locals "last", "insn" from rtx to
6399         rtx_insn *.  Strengthen locals "label", "label1", "label2",
6400         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
6401         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
6402         (emit_store_flag): Likewise.
6403         (emit_store_flag_force): Strengthen local "label" from rtx to
6404         rtx_code_label *.
6405         (do_cmp_and_jump): Likewise for param "label".
6407 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6409         * explow.c (force_reg): Strengthen local "insn" from rtx to
6410         rtx_insn *.
6411         (adjust_stack_1): Likewise.
6412         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
6413         "final_label", "available_label", "space_available" from rtx to
6414         rtx_code_label *.
6415         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
6416         (anti_adjust_stack_and_probe): Likewise.
6418 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6420         * except.h (sjlj_emit_function_exit_after): Strengthen param
6421         "after" from rtx to rtx_insn *.  This is only called with
6422         result of get_last_insn (in function.c) so type-change should be
6423         self-contained.
6425         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
6426         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
6427         to rtx_insn *.  These fields are only used from except.c so this
6428         type-change should be self-contained to this patch.
6430         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
6431         local "last" from rtx to rtx_insn *.
6432         (dw2_build_landing_pads): Likewise for local "seq".
6433         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
6434         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
6435         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
6436         rtx to rtx_insn *.
6437         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
6438         to rtx_insn *.
6439         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
6440         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
6441         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
6442         referring to an insn.  Strengthen local "dispatch_label" from
6443         rtx to rtx_code_label *.
6444         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
6445         rtx_insn *.
6446         (expand_eh_return): Strengthen local "around_label" from
6447         rtx to rtx_code_label *.
6448         (convert_to_eh_region_ranges): Strengthen locals "iter",
6449         "last_action_insn", "first_no_action_insn",
6450         "first_no_action_insn_before_switch",
6451         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
6453 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6455         * dwarf2out.c (last_var_location_insn): Strengthen this variable
6456         from rtx to rtx_insn *.
6457         (cached_next_real_insn): Likewise.
6458         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
6459         working with insns.
6460         (dwarf2out_var_location): Strengthen locals "next_real",
6461         "next_note", "expected_next_loc_note", "last_start", "insn" from
6462         rtx to rtx_insn *.
6464 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6466         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
6467         from rtx to rtx_insn *.
6468         (create_pseudo_cfg): Likewise for local "insn".
6470 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6472         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
6473         from rtx to rtx_insn *.
6474         (df_bb_regno_last_def_find): Likewise.
6476         * df-problems.c (df_rd_bb_local_compute): Likewise.
6477         (df_lr_bb_local_compute): Likewise.
6478         (df_live_bb_local_compute): Likewise.
6479         (df_chain_remove_problem): Likewise.
6480         (df_chain_create_bb): Likewise.
6481         (df_word_lr_bb_local_compute): Likewise.
6482         (df_remove_dead_eq_notes): Likewise for param "insn".
6483         (df_note_bb_compute): Likewise for local "insn".
6484         (simulate_backwards_to_point): Likewise.
6485         (df_md_bb_local_compute): Likewise.
6487         * df-scan.c (df_scan_free_bb_info): Likewise.
6488         (df_scan_start_dump): Likewise.
6489         (df_scan_start_block): Likewise.
6490         (df_install_ref_incremental): Likewise for local "insn".
6491         (df_insn_rescan_all): Likewise.
6492         (df_reorganize_refs_by_reg_by_insn): Likewise.
6493         (df_reorganize_refs_by_insn_bb): Likewise.
6494         (df_recompute_luids): Likewise.
6495         (df_bb_refs_record): Likewise.
6496         (df_update_entry_exit_and_calls): Likewise.
6497         (df_bb_verify): Likewise.
6499 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6501         * ddg.h (struct ddg_node): Strengthen fields "insn" and
6502         "first_note" from rtx to rtx_insn *.
6503         (get_node_of_insn): Likewise for param 2 "insn".
6504         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
6506         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
6507         rtx_insn *.
6508         (mem_write_insn_p): Likewise.
6509         (mem_access_insn_p): Likewise.
6510         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
6511         (def_has_ccmode_p): Likewise for param "insn".
6512         (add_cross_iteration_register_deps): Likewise for locals
6513         "def_insn" and "use_insn".
6514         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
6515         (build_intra_loop_deps): Likewise for local "src_insn".
6516         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
6517         to rtx_insn *.
6518         (get_node_of_insn): Likewise for param "insn".
6520 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6522         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
6523         (deletable_insn_p): Strengthen param "insn" from rtx to
6524         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
6525         find_call_stack_args, since this is guarded by CALL_P (insn).
6526         (marked_insn_p): Strengthen param "insn" from rtx to
6527         rtx_insn *.
6528         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
6529         invoking find_call_stack_args, since this is guarded by
6530         CALL_P (insn).
6531         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
6532         rtx_insn *; we know this is an insn since this was called by
6533         mark_nonreg_stores.
6534         (mark_nonreg_stores_2): Likewise.
6535         (mark_nonreg_stores): Strengthen param "insn" from rtx to
6536         rtx_insn *.
6537         (find_call_stack_args): Strengthen param "call_insn" from rtx to
6538         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
6539         to rtx_insn *.
6540         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
6541         from rtx to rtx_insn *.
6542         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
6543         "next", "ref_insn".
6544         (delete_unmarked_insns): Likewise for locals "insn", "next".
6545         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
6546         (mark_reg_dependencies): Likewise for param "insn".
6547         (rest_of_handle_ud_dce): Likewise for local "insn".
6548         (word_dce_process_block): Likewise.
6549         (dce_process_block): Likewise.
6551 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6553         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
6554         from rtx to rtx_insn *.
6555         (struct change_cc_mode_args): Likewise for field "insn".
6556         (this_insn): Strengthen from rtx to rtx_insn *.
6557         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
6558         with insn.
6559         (validate_canon_reg): Strengthen param "insn" from rtx to
6560         rtx_insn *.
6561         (canon_reg): Likewise.
6562         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
6563         dealing with insn.
6564         (record_jump_equiv): Strengthen param "insn" from rtx to
6565         rtx_insn *.
6566         (try_back_substitute_reg): Likewise, also for locals "prev",
6567         "bb_head".
6568         (find_sets_in_insn): Likewise for param "insn".
6569         (canonicalize_insn): Likewise.
6570         (cse_insn): Likewise.  Add a checked cast.
6571         (invalidate_from_clobbers): Likewise for param "insn".
6572         (invalidate_from_sets_and_clobbers): Likewise.
6573         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
6574         dealing with insn.
6575         (cse_prescan_path): Strengthen local "insn" from rtx to
6576         rtx_insn *.
6577         (cse_extended_basic_block): Likewise for locals "insn" and
6578         "prev_insn".
6579         (cse_main): Likewise for param "f".
6580         (check_for_label_ref): Likewise for local "insn".
6581         (set_live_p): Likewise for second param ("insn").
6582         (insn_live_p): Likewise for first param ("insn") and for local
6583         "next".
6584         (cse_change_cc_mode_insn): Likewise for first param "insn".
6585         (cse_change_cc_mode_insns): Likewise for first and second params
6586         "start" and "end".
6587         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
6588         and "end".
6589         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
6590         "cc_src_insn".
6592 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6593             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6594             Anna Tikhonova  <anna.tikhonova@intel.com>
6595             Ilya Tocar  <ilya.tocar@intel.com>
6596             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6597             Ilya Verbin  <ilya.verbin@intel.com>
6598             Kirill Yukhin  <kirill.yukhin@intel.com>
6599             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6601         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
6602         New.
6603         * config/i386/sse.md
6604         (define_mode_iterator VI248_AVX2): Delete.
6605         (define_mode_iterator VI2_AVX2_AVX512BW): New.
6606         (define_mode_iterator VI48_AVX2): Ditto.
6607         (define_insn <shift_insn><mode>3): Delete.
6608         (define_insn "<shift_insn><mode>3<mask_name>" with
6609         VI2_AVX2_AVX512BW): New.
6610         (define_insn "<shift_insn><mode>3<mask_name>" with
6611         VI48_AVX2): Ditto.
6613 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6614             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6615             Anna Tikhonova  <anna.tikhonova@intel.com>
6616             Ilya Tocar  <ilya.tocar@intel.com>
6617             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6618             Ilya Verbin  <ilya.verbin@intel.com>
6619             Kirill Yukhin  <kirill.yukhin@intel.com>
6620             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6622         * config/i386/sse.md
6623         (define_mode_iterator VI4F_BRCST32x2): New.
6624         (define_mode_attr 64x2_mode): Ditto.
6625         (define_mode_attr 32x2mode): Ditto.
6626         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
6627         with VI4F_BRCST32x2): Ditto.
6628         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
6629         with V16FI mode iterator): Ditto.
6630         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
6631         with V16FI): Ditto.
6632         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
6633         with VI8F_BRCST64x2): Ditto.
6635 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6636             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6637             Anna Tikhonova  <anna.tikhonova@intel.com>
6638             Ilya Tocar  <ilya.tocar@intel.com>
6639             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6640             Ilya Verbin  <ilya.verbin@intel.com>
6641             Kirill Yukhin  <kirill.yukhin@intel.com>
6642             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6644         * config/i386/sse.md
6645         (define_mode_iterator VI8_AVX512VL): New.
6646         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
6648 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
6650         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
6651         (define_mode_iterator V48_AVX512VL): New.
6652         (define_mode_iterator V12_AVX512VL): Ditto.
6653         (define_insn <avx512>_load<mode>_mask): Split into two similar
6654         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
6655         Refactor output template.
6656         (define_insn "<avx512>_store<mode>_mask"): Ditto.
6658 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6660         * cprop.c (struct occr): Strengthen field "insn" from rtx to
6661         rtx_insn *.
6662         (reg_available_p): Likewise for param "insn".
6663         (insert_set_in_table): Likewise.
6664         (hash_scan_set): Likewise.
6665         (hash_scan_insn): Likewise.
6666         (make_set_regs_unavailable): Likewise.
6667         (compute_hash_table_work): Likewise for local "insn".
6668         (reg_not_set_p): Strengthen param "insn" from const_rtx to
6669         const rtx_insn *.
6670         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
6671         (try_replace_reg): Likewise.
6672         (find_avail_set): Likewise.
6673         (cprop_jump): Likewise for params "setcc", "jump".
6674         (constprop_register): Likewise for param "insn".
6675         (cprop_insn): Likewise.
6676         (do_local_cprop): Likewise.
6677         (local_cprop_pass): Likewise for local "insn".
6678         (bypass_block): Likewise for params "setcc" and "jump".
6679         (bypass_conditional_jumps): Likewise for locals "setcc" and
6680         "insn".
6681         (one_cprop_pass): Likewise for local "insn".
6683 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6685         * compare-elim.c (struct comparison_use): Strengthen field "insn"
6686         from rtx to rtx_insn *.
6687         (struct comparison): Likewise, also for field "prev_clobber".
6688         (conforming_compare): Likewise for param "insn".
6689         (arithmetic_flags_clobber_p): Likewise.
6690         (find_flags_uses_in_insn): Likewise.
6691         (find_comparison_dom_walker::before_dom_children): Likewise for
6692         locals "insn", "next", "last_clobber".
6693         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
6695 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6697         * combine-stack-adj.c (struct csa_reflist): Strengthen field
6698         "insn" from rtx to rtx_insn *.
6699         (single_set_for_csa): Likewise for param "insn".
6700         (record_one_stack_ref): Likewise.
6701         (try_apply_stack_adjustment): Likewise.
6702         (struct record_stack_refs_data): Likewise for field "insn".
6703         (maybe_move_args_size_note): Likewise for params "last" and "insn".
6704         (prev_active_insn_bb): Likewise for return type and param "insn".
6705         (next_active_insn_bb): Likewise.
6706         (force_move_args_size_note): Likewise for params "prev" and "last"
6707         and locals "test", "next_candidate", "prev_candidate".
6708         (combine_stack_adjustments_for_block): Strengthen locals
6709         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
6710         rtx_insn *.
6712 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6714         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
6715         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
6716         (subst_insn): Likewise for this variable.
6717         (added_links_insn): Likewise.
6718         (struct insn_link): Likewise for field "insn".
6719         (alloc_insn_link): Likewise for param "insn".
6720         (struct undobuf): Likewise for field "other_insn".
6721         (find_single_use): Likewise for param "insn" and local "next".
6722         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
6723         (delete_noop_moves): Likewise for locals "insn", "next".
6724         (create_log_links): Likewise for locals "insn", "use_insn".
6725         Strengthen local "next_use" from rtx * to rtx_insn **.
6726         (insn_a_feeds_b): Likewise for params "a", "b".
6727         (combine_instructions): Likewise for param "f" and locals "insn",
6728         "next", "prev", "first", "last_combined_insn", "link", "link1",
6729         "temp".  Replace use of NULL_RTX with NULL when referring to
6730         insns.
6731         (setup_incoming_promotions): Likewise for param "first"
6732         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
6733         (can_combine_p): Likewise for params "insn", "i3", "pred",
6734         "pred2", "succ", "succ2" and for local "p".
6735         (combinable_i3pat): Likewise for param "i3".
6736         (cant_combine_insn_p): Likewise for param "insn".
6737         (likely_spilled_retval_p): Likewise.
6738         (adjust_for_new_dest): Likewise.
6739         (update_cfg_for_uncondjump): Likewise, also for local "insn".
6740         (try_combine): Likewise for return type and for params "i3", "i2",
6741         "i1", "i0", "last_combined_insn", and for locals "insn",
6742         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
6743         "i0_insn".  Eliminate local "tem" in favor of new locals
6744         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
6745         checked cast for now to rtx_insn * on the return type of
6746         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
6747         insns.
6748         (find_split_point): Strengthen param "insn" from rtx to
6749         rtx_insn *.
6750         (simplify_set): Likewise for local "other_insn".
6751         (recog_for_combine): Likewise for param "insn".
6752         (record_value_for_reg): Likewise.
6753         (record_dead_and_set_regs_1): Likewise for local
6754         "record_dead_insn".
6755         (record_dead_and_set_regs): Likewise for param "insn".
6756         (record_promoted_value): Likewise.
6757         (check_promoted_subreg): Likewise.
6758         (get_last_value_validate): Likewise.
6759         (reg_dead_at_p): Likewise.
6760         (move_deaths): Likewise for param "to_insn".
6761         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
6762         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
6763         in favor of new locals "tem_note" and "tem_insn", the latter being
6764         an rtx_insn *.
6765         (distribute_links): Strengthen locals "place", "insn" from rtx to
6766         rtx_insn *.
6768 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6770         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
6771         than a const_rtx.
6772         (can_delete_label_p): Require a const rtx_code_label * rather than
6773         a const_rtx.
6774         (delete_insn): Add checked cast to rtx_code_label * when we know
6775         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
6776         rtx to rtx_insn *.
6777         (delete_insn_chain): Strengthen locals "prev" and "current" from
6778         rtx to rtx_insn *.  Add a checked cast when assigning from
6779         "finish" (strengthening the params will come later).  Add a
6780         checked cast to rtx_note * in region where we know
6781         NOTE_P (current).
6782         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
6783         rtx_insn *.
6784         (compute_bb_for_insn): Likewise.
6785         (free_bb_for_insn): Likewise for local "insn".
6786         (compute_bb_for_insn): Likewise.
6787         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
6788         local "insn" from rtx to rtx_insn *
6789         (flow_active_insn_p): Require a const rtx_insn * rather than a
6790         const_rtx.
6791         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
6792         rtx_insn *.
6793         (can_fallthru): Likewise for locals "insn" and "insn2".
6794         (bb_note): Likewise for local "note".
6795         (first_insn_after_basic_block_note): Likewise for local "note" and
6796         for return type.
6797         (rtl_split_block): Likewise for locals "insn" and "next".
6798         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
6799         "end".
6800         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
6801         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
6802         "prev", "tmp".
6803         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
6804         them), "kill_from", "barrier", "new_insn".
6805         (patch_jump_insn): Likewise for params "insn", "old_label".
6806         (redirect_branch_edge): Likewise for locals "old_label", "insn".
6807         (force_nonfallthru_and_redirect): Likewise for locals "insn",
6808         "old_label", "new_label".
6809         (rtl_tidy_fallthru_edge): Likewise for local "q".
6810         (rtl_split_edge): Likewise for locals "before", "last".
6811         (commit_one_edge_insertion): Likewise for locals "before",
6812         "after", "insns", "tmp", "last", adding a checked cast where
6813         currently necessary.
6814         (commit_edge_insertions): Likewise.
6815         (rtl_dump_bb): Likewise for locals "insn", "last".
6816         (print_rtl_with_bb): Likewise for local "x".
6817         (rtl_verify_bb_insns): Likewise for local "x".
6818         (rtl_verify_bb_pointers): Likewise for local "insn".
6819         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
6820         "head", "end".
6821         (rtl_verify_fallthru): Likewise for local "insn".
6822         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
6823         (purge_dead_edges): Likewise for local "insn".
6824         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
6825         (skip_insns_after_block): Likewise for return type and for locals
6826         "insn", "last_insn", "next_head", "prev".
6827         (record_effective_endpoints): Likewise for locals "next_insn",
6828         "insn", "end".
6829         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
6830         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
6831         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
6832         (duplicate_insn_chain): For now, add checked cast from rtx to
6833         rtx_insn * when returning insn.
6834         (cfg_layout_duplicate_bb): Likewise for local "insn".
6835         (cfg_layout_delete_block): Likewise for locals "insn", "next",
6836         "prev", "remaints".
6837         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
6838         (rtl_block_empty_p): Likewise.
6839         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
6840         "split_point", "last".
6841         (rtl_block_ends_with_call_p): Likewise for local "insn".
6842         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
6843         const rtx_insn *.
6844         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
6845         "split_at_insn" from rtx to rtx_insn *.
6846         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
6847         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
6848         to const rtx_insn *.
6849         (rtl_account_profile_record): Likewise.
6851 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6853         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
6854         rtx to rtx_insn *.
6855         (average_num_loop_insns): Likewise.
6856         (init_set_costs): Likewise for local "seq".
6857         (seq_cost): Likewise for param "seq", from const_rtx to const
6858         rtx_insn *.
6860 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6862         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
6863         rtx to rtx_insn *.
6865 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6867         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
6868         "f1" and "f2" from rtx * to rtx_insn **.
6869         (flow_find_head_matching_sequence): Likewise.
6871         * cfgcleanup.c (try_simplify_condjump): Strengthen local
6872         "cbranch_insn" from rtx to rtx_insn *.
6873         (thread_jump): Likewise for local "insn".
6874         (try_forward_edges): Likewise for local "last".
6875         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
6876         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
6877         "real_b_end".
6878         (can_replace_by): Likewise for params "i1", "i2".
6879         (old_insns_match_p): Likewise.
6880         (merge_notes): Likewise.
6881         (walk_to_nondebug_insn): Likewise for param "i1".
6882         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
6883         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
6884         "afterlast1", "afterlast2" from rtx to rtx_insn *.
6885         (flow_find_head_matching_sequence): Strengthen params "f1" and
6886         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
6887         "last1", "last2", "beforelast1", "beforelast2" from rtx to
6888         rtx_insn *.
6889         (outgoing_edges_match): Likewise for locals "last1", "last2".
6890         (try_crossjump_to_edge): Likewise for local "insn".
6891         Replace call to for_each_rtx with for_each_rtx_in_insn.
6893         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
6894         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
6895         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
6896         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
6897         (try_optimize_cfg): Strengthen local "last" from rtx to
6898         rtx_insn *.
6899         (delete_dead_jumptables): Likewise for locals "insn", "next",
6900         "label".
6902         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
6903         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
6904         "rtx else_first_tail", to reflect the basic-block.h changes above.
6906 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6908         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
6909         rtx_insn *.
6910         (purge_dead_tablejump_edges): Likewise.
6911         (find_bb_boundaries): Likewise for locals "insn", "end",
6912         "flow_transfer_insn".
6914 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6916         * caller-save.c (save_call_clobbered_regs): Strengthen locals
6917         "ins" and "prev" from rtx to rtx_insn *.
6919 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6921         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
6922         rtx_insn *.
6923         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
6924         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
6925         "scan_start".
6926         (load_register_parameters): Likewise for local "before_arg".
6927         (check_sibcall_argument_overlap): Likewise for param "insn".
6928         (expand_call): Likewise for locals "normal_call_insns",
6929         "tail_call_insns", "insns", "before_call", "after_args",
6930         "before_arg", "last", "prev".  Strengthen one of the "last" from
6931         rtx to rtx_call_insn *.
6932         (fixup_tail_calls): Strengthen local "insn" from rtx to
6933         rtx_insn *.
6934         (emit_library_call_value_1): Likewise for locals "before_call" and
6935         "last".
6937 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6939         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
6940         and "last" from rtx to rtx_insn *.
6941         (expand_builtin_nonlocal_goto): Likewise for local "insn".
6942         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
6943         rtx_call_insn *.
6944         (expand_errno_check): Strengthen local "lab" from rtx to
6945         rtx_code_label *.
6946         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
6947         rtx_insn *.
6948         (expand_builtin_mathfn_2): Likewise.
6949         (expand_builtin_mathfn_ternary): Likewise.
6950         (expand_builtin_mathfn_3): Likewise.
6951         (expand_builtin_interclass_mathfn): Likewise for local "last".
6952         (expand_builtin_int_roundingfn): Likewise for local "insns".
6953         (expand_builtin_int_roundingfn_2): Likewise.
6954         (expand_builtin_strlen): Likewise for local "before_strlen".
6955         (expand_builtin_strncmp): Likewise for local "seq".
6956         (expand_builtin_signbit): Likewise for local "last".
6957         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
6958         from rtx to rtx_code_label *.
6959         (expand_stack_restore):  Strengthen local "prev" from rtx to
6960         rtx_insn *.
6962 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6964         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
6965         to rtx_insn *.
6966         (struct btr_def_s): Likewise.
6967         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
6968         const rtx_insn *.
6969         (add_btr_def): Likewise.
6970         (new_btr_user): Likewise.
6971         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
6972         rtx to rtx_insn *.
6973         (link_btr_uses): Likewise.
6974         (move_btr_def): Likewise for locals "insp", "old_insn",
6975         "new_insn".  Add checked cast to rtx_insn * for now on result of
6976         gen_move_insn.
6977         (can_move_up): Strengthen param "insn" from const_rtx to
6978         const rtx_insn *.
6980 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6982         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
6983         rtx_insn *.
6984         (get_uncond_jump_length): Likewise for locals "label", "jump".
6985         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
6986         "jump", "insn".
6987         (add_labels_and_missing_jumps): Likewise for local "new_jump".
6988         (fix_up_fall_thru_edges): Likewise for local "old_jump".
6989         (find_jump_block): Likewise for local "insn".
6990         (fix_crossing_conditional_branches): Likewise for locals
6991         "old_jump", "new_jump".
6992         (fix_crossing_unconditional_branches): Likewise for locals
6993         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
6994         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
6996 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6998         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
6999         rtx to rtx_insn *.
7000         (struct mem_insn): Likewise for field "insn".
7001         (reg_next_use): Strengthen from rtx * to rtx_insn **.
7002         (reg_next_inc_use): Likewise.
7003         (reg_next_def): Likewise.
7004         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
7005         from rtx to rtx_insn *.
7006         (move_insn_before): Likewise for param "next_insn" and local "insns".
7007         (attempt_change): Likewise for local "mov_insn".
7008         (try_merge): Likewise for param "last_insn".
7009         (get_next_ref): Likewise for return type and local "insn".
7010         Strengthen param "next_array" from rtx * to rtx_insn **.
7011         (parse_add_or_inc): Strengthen param "insn" from rtx to
7012         rtx_insn *.
7013         (find_inc): Likewise for locals "insn" and "other_insn" (three of
7014         the latter).
7015         (merge_in_block): Likewise for locals "insn", "curr",
7016         "other_insn".
7017         (pass_inc_dec::execute): Update allocations of the arrays to
7018         reflect the stronger types.
7020 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7022         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
7023         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
7024         from rtx to rtx_code_label *.
7026 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7028         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
7029         to rtx_insn *.
7031 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7033         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
7034         generated a warning and prevented bootstrapping the compiler.
7036 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7038         * rtl.h (delete_related_insns): Strengthen return type from rtx to
7039         rtx_insn *.
7041         * jump.c (delete_related_insns): Likewise, also for locals "next"
7042         and "prev".
7044 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7046         * genautomata.c (output_internal_insn_latency_func): When writing
7047         the function "internal_insn_latency" to insn-automata.c,
7048         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
7049         allowing the optional guard function of (define_bypass) clauses to
7050         expect a pair of rtx_insn *, rather than a pair of rtx.
7051         (output_insn_latency_func): When writing the function
7052         "insn_latency", add an "uncast_" prefix to params "insn" and
7053         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
7054         using checked casts from the params, thus enabling the above
7055         change to the generated "internal_insn_latency" function.
7057 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
7059         PR tree-optimization/62091
7060         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
7061         handle correctly arrays.
7062         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
7063         inheritance binfos.
7064         (record_known_type): Walk into inner type.
7065         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
7066         condition on no type changes.
7068 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7070         * genattrtab.c (write_attr_get): Within the generated get_attr_
7071         functions, rename param "insn" to "uncast_insn" and reintroduce
7072         "insn" as an local rtx_insn * using a checked cast, so that "insn"
7073         is an rtx_insn * within insn-attrtab.c
7075 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7077         * output.h (peephole): Strengthen return type from rtx to
7078         rtx_insn *.
7079         * rtl.h (delete_for_peephole): Likewise for both params.
7080         * genpeep.c (main): In generated "peephole" function, strengthen
7081         return type and local "insn" from rtx to rtx_insn *.  For now,
7082         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
7083         rtx_insn *, with a checked cast.
7084         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
7085         locals "insn", "next", "prev" from rtx to rtx_insn *.
7087 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
7089         PR tree-optimization/62112
7090         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
7091         * gimple-iterator.h (gsi_replace): Return bool.
7092         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
7093         moved from ref_may_alias_global_p.
7094         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
7095         New overloads.
7096         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
7097         (stmt_kills_ref_p_1): Rename...
7098         (stmt_kills_ref_p): ... to this.
7099         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
7100         stmt_kills_ref_p): Declare.
7101         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
7102         Move the self-assignment case...
7103         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
7105 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7107         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
7109         * emit-rtl.c (try_split): Likewise, also for locals "before" and
7110         "after".  For now, don't strengthen param "trial", which requires
7111         adding checked casts when returning it.
7113 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7115         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
7116         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
7117         "var_location" hook from rtx to rtx_insn *.
7118         (debug_nothing_rtx): Delete in favor of...
7119         (debug_nothing_rtx_code_label): New prototype.
7120         (debug_nothing_rtx_rtx): Delete unused prototype.
7121         (debug_nothing_rtx_insn): New prototype.
7123         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
7124         invoking debug_hooks->var_location (in two places, one in a NOTE
7125         case of a switch statement, the other guarded by a CALL_P
7126         conditional.  Add checked cast to rtx_code_label * when invoking
7127         debug_hooks->label (within CODE_LABEL case of switch statement).
7129         * dbxout.c (dbx_debug_hooks): Update "label" hook from
7130         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
7131         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
7132         (xcoff_debug_hooks): Likewise.
7133         * debug.c (do_nothing_debug_hooks): Likewise.
7134         (debug_nothing_rtx): Delete in favor of...
7135         (debug_nothing_rtx_insn): New function.
7136         (debug_nothing_rtx_rtx): Delete unused function.
7137         (debug_nothing_rtx_code_label): New function.
7138         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
7139         debug_nothing_rtx to debug_nothing_rtx_code_label.
7140         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
7141         to rtx_insn *.
7142         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
7143         debug_nothing_rtx to debug_nothing_rtx_insn.
7144         (sdbout_label): Strengthen param "insn" from rtx to
7145         rtx_code_label *.
7146         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
7147         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
7148         "var_location" hook from debug_nothing_rtx to
7149         debug_nothing_rtx_insn.
7151 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7153         * recog.h (insn_output_fn): Update this function typedef to match
7154         the changes below to the generated output functions, strengthening
7155         the 2nd param from rtx to rtx_insn *.
7157         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
7158         insn when invoking an output function, to match the new signature
7159         of insn_output_fn with a stronger second param.
7161         * genconditions.c (write_header): In the generated code for
7162         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
7163         to match the other changes in this patch.
7165         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
7166         the generated "gen_" functions from rtx to rtx_insn * within their
7167         implementations.
7169         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
7170         the subfunctions within the generated "recog_", "split", "peephole2"
7171         function trees from rtx to rtx_insn *.  For now, the top-level
7172         generated functions ("recog", "split", "peephole2") continue to
7173         take a plain rtx for "insn", to avoid introducing dependencies on
7174         other patches.  Rename this 2nd param from "insn" to
7175         "uncast_insn", and reintroduce "insn" as a local variable of type
7176         rtx_insn *, initialized at the top of the generated function with
7177         a checked cast on "uncast_insn".
7178         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
7179         the generated "gen_" functions from rtx to rtx_insn * within their
7180         prototypes.
7182         * genoutput.c (process_template): Strengthen the 2nd param within
7183         the generated "output_" functions "insn" from rtx to rtx_insn *.
7185 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
7187         * tree-profile.c (tree_profiling): Skip external functions
7188         when doing coverage instrumentation.
7189         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
7191 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7193         * config/rs6000/altivec.h (vec_cpsgn): New #define.
7194         (vec_mergee): Likewise.
7195         (vec_mergeo): Likewise.
7196         (vec_cntlz): Likewise.
7197         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
7198         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
7199         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
7200         VMRGEW, and VMRGOW.
7201         * doc/extend.texi: Document various forms of vec_cpsgn,
7202         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
7203         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
7204         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
7205         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
7206         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
7208 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7210         * config/rs6000/rs6000.c (context.h): New include.
7211         (tree-pass.h): Likewise.
7212         (make_pass_analyze_swaps): New decl.
7213         (rs6000_option_override): Register pass_analyze_swaps.
7214         (swap_web_entry): New subsclass of web_entry_base (df.h).
7215         (special_handling_values): New enum.
7216         (union_defs): New function.
7217         (union_uses): Likewise.
7218         (insn_is_load_p): Likewise.
7219         (insn_is_store_p): Likewise.
7220         (insn_is_swap_p): Likewise.
7221         (rtx_is_swappable_p): Likewise.
7222         (insn_is_swappable_p): Likewise.
7223         (chain_purpose): New enum.
7224         (chain_contains_only_swaps): New function.
7225         (mark_swaps_for_removal): Likewise.
7226         (swap_const_vector_halves): Likewise.
7227         (adjust_subreg_index): Likewise.
7228         (permute_load): Likewise.
7229         (permute_store): Likewise.
7230         (handle_special_swappables): Likewise.
7231         (replace_swap_with_copy): Likewise.
7232         (dump_swap_insn_table): Likewise.
7233         (rs6000_analyze_swaps): Likewise.
7234         (pass_data_analyze_swaps): New pass_data.
7235         (pass_analyze_swaps): New rtl_opt_pass.
7236         (make_pass_analyze_swaps): New function.
7237         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
7239 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7241         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
7242         type from rtx to rtx_insn *.
7243         (create_copy_of_insn_rtx): Likewise.
7244         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
7245         (create_copy_of_insn_rtx): Likewise, also for local "res".
7247 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7249         * rtl.h (find_first_parameter_load): Strengthen return type from
7250         rtx to rtx_insn *.
7251         * rtlanal.c (find_first_parameter_load): Strengthen return type
7252         from rtx to rtx_insn *.  Add checked cast for now, to postpone
7253         strengthening the params.
7255 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7257         PR fortran/44054
7258         * diagnostic.c: Set default caret.
7259         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
7260         line is needed.
7261         * diagnostic.h (struct diagnostic_context):
7263 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7265         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
7266         (sel_bb_head): Strengthen return type insn_t (currently just an
7267         rtx) to rtx_insn *.
7268         (sel_bb_end): Likewise.
7270         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
7271         (sel_bb_head): Strengthen return type and local "head" from
7272         insn_t (currently just an rtx) to rtx_insn *.
7273         (sel_bb_end): Likewise for return type.
7274         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
7275         working with insn.
7277 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7279         * basic-block.h (get_last_bb_insn): Strengthen return type from
7280         rtx to rtx_insn *.
7281         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
7282         end".
7284 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7286         PR fortran/44054
7287         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
7288          to here ...
7289         (diagnostic_report_diagnostic): ... from here.
7290         * toplev.c (general_init): Move code to c-family.
7292 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7294         * df.h (web_entry_base): Replace existing struct web_entry with a
7295         new class web_entry_base with only the predecessor member.
7296         (unionfind_root): Remove declaration and move to class member.
7297         (unionfind_union): Remove declaration and move to friend
7298         function.
7299         (union_defs): Remove declaration.
7300         * web.c (web_entry_base::unionfind_root): Modify to be member
7301         function and adjust accessors.
7302         (unionfind_union): Modify to be friend function and adjust
7303         accessors.
7304         (web_entry): New subclass of web_entry_base containing the reg
7305         member.
7306         (union_match_dups): Modify for struct -> class changes.
7307         (union_defs): Likewise.
7308         (entry_register): Likewise.
7309         (pass_web::execute): Likewise.
7311 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
7313         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
7314         builtin define __VEC_ELEMENT_REG_ORDER__.
7316 2014-08-20  Martin Jambor  <mjambor@suse.cz>
7317             Wei Mi  <wmi@google.com>
7319         PR ipa/60449
7320         PR middle-end/61776
7321         * tree-ssa-operands.c (update_stmt_operands): Remove
7322         MODIFIED_NORETURN_CALLS.
7323         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
7324         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
7325         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
7326         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
7327         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
7328         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
7329         (gimple_call_set_ctrl_altering): New func.
7330         (gimple_call_ctrl_altering_p): Ditto.
7331         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
7332         (make_blocks): Use gimple_call_initialize_ctrl_altering.
7333         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
7334         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
7335         remove MODIFIED_NORETURN_CALLS.
7337 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
7339         * coverage.c (coverage_compute_profile_id): Return non-0;
7340         also handle symbols with unique name.
7341         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
7343 2014-08-20  Steve Ellcey  <sellcey@mips.com>
7345         PR middle-end/49191
7346         * doc/sourcebuild.texi (non_strict_align): New.
7348 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
7350         * cgraphunit.c (ipa_passes, compile): Reshedule
7351         symtab_remove_unreachable_nodes passes; update comments.
7352         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
7353         TODO_remove_functions before the pass; the functions ought to be
7354         already removed.
7355         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
7356         TODO_remove_functions.
7357         * passes.c (pass_data_early_local_passes): Do not schedule function
7358         removal.
7359         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
7361 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7363         PR c/59304
7364         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
7365         before setting the option.
7366         * diagnostic.c (diagnostic_classify_diagnostic): Record
7367         command-line status.
7369 2014-08-20  Richard Biener  <rguenther@suse.de>
7371         PR lto/62190
7372         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
7373         to build uint{16,32,64}_type_node.
7375 2014-08-20  Terry Guo  <terry.guo@arm.com>
7377         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
7378         with immediate_operand.
7380 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
7382         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
7383         "insn" from an as_a to a safe_as_a, for the case when "insn" is
7384         NULL.
7386 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7388         PR preprocessor/51303
7389         * incpath.c (remove_duplicates): Use cpp_warning.
7391 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7393         PR c/60975
7394         PR c/53063
7395         * doc/options.texi (CPP): Document it.
7396         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
7397         * optc-gen.awk: Handle CPP.
7398         * opth-gen.awk: Likewise.
7400 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7402         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
7403         rtx_insn *.
7404         (duplicate_insn_chain): Likewise.
7405         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
7406         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
7407         checked cast for now (until we can strengthen the params in the
7408         same way).
7409         (duplicate_insn_chain): Likewise.
7411 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7413         * rtl.h (next_cc0_user): Strengthen return type from rtx to
7414         rtx_insn *.
7415         (prev_cc0_setter): Likewise.
7417         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
7418         rtx_insn *, adding checked casts for now as necessary.
7419         (prev_cc0_setter): Likewise.
7421 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7423         * expr.h (emit_move_insn): Strengthen return type from rtx to
7424         rtx_insn *.
7425         (emit_move_insn_1): Likewise.
7426         (emit_move_complex_push): Likewise.
7427         (emit_move_complex_parts): Likewise.
7429         * expr.c (emit_move_via_integer): Strengthen return type from rtx
7430         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
7431         with insns.
7432         (emit_move_complex_push): Strengthen return type from rtx to
7433         rtx_insn *.
7434         (emit_move_complex): Likewise, also for local "ret".
7435         (emit_move_ccmode): Likewise.
7436         (emit_move_multi_word): Likewise for return type and locals
7437         "last_insn", "seq".
7438         (emit_move_insn_1): Likewise for return type and locals "result",
7439         "ret".
7440         (emit_move_insn): Likewise for return type and local "last_insn".
7441         (compress_float_constant): Likewise.
7443 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7445         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
7446         from rtx to rtx_insn *.
7448         * rtl.h (emit_insn_before): Likewise.
7449         (emit_insn_before_noloc): Likewise.
7450         (emit_insn_before_setloc): Likewise.
7451         (emit_jump_insn_before): Likewise.
7452         (emit_jump_insn_before_noloc): Likewise.
7453         (emit_jump_insn_before_setloc): Likewise.
7454         (emit_call_insn_before): Likewise.
7455         (emit_call_insn_before_noloc): Likewise.
7456         (emit_call_insn_before_setloc): Likewise.
7457         (emit_debug_insn_before): Likewise.
7458         (emit_debug_insn_before_noloc): Likewise.
7459         (emit_debug_insn_before_setloc): Likewise.
7460         (emit_label_before): Likewise.
7461         (emit_insn_after): Likewise.
7462         (emit_insn_after_noloc): Likewise.
7463         (emit_insn_after_setloc): Likewise.
7464         (emit_jump_insn_after): Likewise.
7465         (emit_jump_insn_after_noloc): Likewise.
7466         (emit_jump_insn_after_setloc): Likewise.
7467         (emit_call_insn_after): Likewise.
7468         (emit_call_insn_after_noloc): Likewise.
7469         (emit_call_insn_after_setloc): Likewise.
7470         (emit_debug_insn_after): Likewise.
7471         (emit_debug_insn_after_noloc): Likewise.
7472         (emit_debug_insn_after_setloc): Likewise.
7473         (emit_label_after): Likewise.
7474         (emit_insn): Likewise.
7475         (emit_debug_insn): Likewise.
7476         (emit_jump_insn): Likewise.
7477         (emit_call_insn): Likewise.
7478         (emit_label): Likewise.
7479         (gen_clobber): Likewise.
7480         (emit_clobber): Likewise.
7481         (gen_use): Likewise.
7482         (emit_use): Likewise.
7483         (emit): Likewise.
7485         (emit_barrier_before): Strengthen return type from rtx to
7486         rtx_barrier *.
7487         (emit_barrier_after): Likewise.
7488         (emit_barrier): Likewise.
7490         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
7491         from rtx to rtx_insn *.  Add checked casts for now when converting
7492         "last" from rtx to rtx_insn *.
7493         (emit_insn_before_noloc): Likewise for return type.
7494         (emit_jump_insn_before_noloc): Likewise.
7495         (emit_call_insn_before_noloc): Likewise.
7496         (emit_debug_insn_before_noloc): Likewise.
7497         (emit_barrier_before): Strengthen return type and local "insn"
7498         from rtx to rtx_barrier *.
7499         (emit_label_before): Strengthen return type from rtx to
7500         rtx_insn *.  Add checked cast for now when returning param
7501         (emit_pattern_after_noloc): Strengthen return type from rtx to
7502         rtx_insn *.  Add checked casts for now when converting "last" from
7503         rtx to rtx_insn *.
7504         (emit_insn_after_noloc): Strengthen return type from rtx to
7505         rtx_insn *.
7506         (emit_jump_insn_after_noloc): Likewise.
7507         (emit_call_insn_after_noloc): Likewise.
7508         (emit_debug_insn_after_noloc): Likewise.
7509         (emit_barrier_after): Strengthen return type from rtx to
7510         rtx_barrier *.
7511         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
7512         Add checked cast for now when converting "label" from rtx to
7513         rtx_insn *.
7514         (emit_pattern_after_setloc): Strengthen return type from rtx to
7515         rtx_insn *.  Add checked casts for now when converting "last" from
7516         rtx to rtx_insn *.
7517         (emit_pattern_after): Strengthen return type from rtx to
7518         rtx_insn *.
7519         (emit_insn_after_setloc): Likewise.
7520         (emit_insn_after): Likewise.
7521         (emit_jump_insn_after_setloc): Likewise.
7522         (emit_jump_insn_after): Likewise.
7523         (emit_call_insn_after_setloc): Likewise.
7524         (emit_call_insn_after): Likewise.
7525         (emit_debug_insn_after_setloc): Likewise.
7526         (emit_debug_insn_after): Likewise.
7527         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
7528         when converting "last" from rtx to rtx_insn *.
7529         (emit_pattern_before): Strengthen return type from rtx to
7530         rtx_insn *.
7531         (emit_insn_before_setloc): Likewise.
7532         (emit_insn_before): Likewise.
7533         (emit_jump_insn_before_setloc): Likewise.
7534         (emit_jump_insn_before): Likewise.
7535         (emit_call_insn_before_setloc): Likewise.
7536         (emit_call_insn_before): Likewise.
7537         (emit_debug_insn_before_setloc): Likewise.
7538         (emit_debug_insn_before): Likewise.
7539         (emit_insn): Strengthen return type and locals "last", "insn",
7540         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
7541         within cases where we know we have an insn.
7542         (emit_debug_insn): Likewise.
7543         (emit_jump_insn): Likewise.
7544         (emit_call_insn): Strengthen return type and local "insn" from rtx
7545         to rtx_insn *.
7546         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
7547         a checked cast to rtx_insn * for now on "label".
7548         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
7549         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
7550         (emit_use): Likewise.
7551         (gen_use): Likewise, also for local "seq".
7552         (emit): Likewise for return type and local "insn".
7553         (rtx_insn): Likewise for return type and local "new_rtx".
7555         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
7556         from rtx to rtx_barrier *.
7558         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
7559         changed return type from rtx to rtx_insn *, we must update
7560         "emit_fn" type, and this in turn means updating...
7561         (frame_insn): ...this.  Strengthen return type from rtx to
7562         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
7564 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7566         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
7567         rtx to rtx_jump_table_data *.  Also for local.
7568         * rtl.h (emit_jump_table_data): Likewise.
7570 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7572         * basic-block.h (create_basic_block_structure): Strengthen third
7573         param "bb_note" from rtx to rtx_note *.
7574         * rtl.h (emit_note_before): Strengthen return type from rtx to
7575         rtx_note *.
7576         (emit_note_after): Likewise.
7577         (emit_note): Likewise.
7578         (emit_note_copy): Likewise.  Also, strengthen param similarly.
7579         * function.h (struct rtl_data): Strengthen field
7580         "x_stack_check_probe_note" from rtx to rtx_note *.
7582         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
7583         from rtx to rtx_note *.
7584         * cfgrtl.c (create_basic_block_structure): Strengthen third param
7585         "bb_note" from rtx to rtx_note *.
7586         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
7587         when calling emit_note_copy.
7588         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
7589         rtx_note *.
7590         (emit_note_after): Likewise.
7591         (emit_note_before): Likewise.
7592         (emit_note_copy): Likewise.  Also, strengthen param similarly.
7593         (emit_note): Likewise.
7594         * except.c (emit_note_eh_region_end): Likewise for return type.
7595         Strengthen local "next" from rtx to rtx_insn *.
7596         (convert_to_eh_region_ranges): Strengthen local "note"
7597         from rtx to rtx_note *.
7598         * final.c (change_scope): Likewise.
7599         (reemit_insn_block_notes): Likewise, for both locals named "note".
7600         Also, strengthen local "insn" from rtx to rtx_insn *.
7601         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
7602         rtx to rtx_note *.
7603         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
7604         strengthen local "seq" from rtx to rtx_insn *.
7605         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
7606         to rtx_note *.
7607         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
7608         vec<rtx_note *>.
7609         (get_bb_note_from_pool): Strengthen return type from rtx to
7610         rtx_note *.
7611         (sel_create_basic_block): Strengthen local "new_bb_note" from
7612         insn_t to rtx_note *.
7613         * var-tracking.c (emit_note_insn_var_location): Strengthen local
7614         "note" from rtx to rtx_note *.
7615         (emit_notes_in_bb): Likewise.
7617 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7619         * function.h (struct rtl_data): Strengthen field
7620         "x_parm_birth_insn" from rtx to rtx_insn *.
7621         * function.c (struct assign_parm_data_all): Strengthen fields
7622         "first_conversion_insn" and "last_conversion_insn" from rtx to
7623         rtx_insn *.
7625 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7627         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
7628         to rtx_insn *; also for local "var_end_seq".
7629         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
7630         (maybe_cleanup_end_of_block): Likewise for param "last" and local
7631         "insn".
7632         (expand_gimple_cond): Likewise for locals "last2" and "last".
7633         (mark_transaction_restart_calls): Likewise for local "insn".
7634         (expand_gimple_stmt): Likewise for return type and locals "last"
7635         and "insn".
7636         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
7637         (avoid_complex_debug_insns): Likewise for param "insn".
7638         (expand_debug_locations): Likewise for locals "insn", "last",
7639         "prev_insn" and "insn2".
7640         (expand_gimple_basic_block): Likewise for local "last".
7641         (construct_exit_block): Likewise for locals "head", "end",
7642         "orig_end".
7643         (pass_expand::execute): Likewise for locals "var_seq",
7644         "var_ret_seq", "next".
7646 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7648         * asan.h (asan_emit_stack_protection): Strengthen return type from
7649         rtx to rtx_insn *.
7650         * asan.c (asan_emit_stack_protection): Likewise.  Add local
7651         "insns" to hold the return value.
7653 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7655         * basic-block.h (bb_note): Strengthen return type from rtx to
7656         rtx_note *.
7657         * sched-int.h (bb_note): Likewise.
7658         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
7660 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7662         * rtl.h (make_insn_raw): Strengthen return type from rtx to
7663         rtx_insn *.
7665         * emit-rtl.c (make_insn_raw): Strengthen return type and local
7666         "insn" from rtx to rtx_insn *.
7667         (make_debug_insn_raw): Strengthen return type from rtx to
7668         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
7669         (make_jump_insn_raw):  Strengthen return type from rtx to
7670         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
7671         (make_call_insn_raw):  Strengthen return type from rtx to
7672         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
7673         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
7674         callback from rtx to rtx_insn *; likewise for local "insn" and
7675         "next", adding a checked cast to rtx_insn in the relevant cases of
7676         the switch statement.
7677         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
7678         callback from rtx to rtx_insn *.
7679         (emit_pattern_after_setloc): Likewise.
7680         (emit_pattern_after): Likewise.
7681         (emit_pattern_before_setloc): Likewise.
7682         (emit_pattern_before): Likewise.
7684 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7686         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
7687         rtx_call_insn *.
7688         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
7689         accepting an rtx_insn *.
7690         (last_call_insn): Strengthen return type from rtx to
7691         rtx_call_insn *.
7693 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7695         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
7696         "insns" from rtx to rtx_insn *.
7697         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
7698         locals "insn" and "prev".
7700 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7702         * rtl.h (tablejump_p): Strengthen third param from rtx * to
7703         rtx_jump_table_data **.
7705         * cfgbuild.c (make_edges): Introduce local "table", using it in
7706         place of "tmp" for jump table data.
7707         (find_bb_boundaries): Strengthen local "table" from rtx to
7708         rtx_jump_table_data *.
7709         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7710         (outgoing_edges_match): Likewise for locals "table1" and "table2".
7711         (try_crossjump_to_edge): Likewise.
7712         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
7713         "table".
7714         (patch_jump_insn): Introduce local "table", using it in place of
7715         "tmp" for jump table data.
7716         (force_nonfallthru_and_redirect): Introduce local "table", so that
7717         call to tablejump_p can receive an rtx_jump_table_data **.  Update
7718         logic around the call to overwrite "note" appropriately if
7719         tablejump_p returns non-zero.
7720         (get_last_bb_insn): Introduce local "table", using it in place of
7721         "tmp" for jump table data.
7722         * dwarf2cfi.c (create_trace_edges): Likewise.
7724         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
7725         from rtx to rtx_jump_table_data *.
7726         (create_fix_barrier): Strengthen local "tmp" from rtx to
7727         rtx_jump_table_data *.
7728         (arm_reorg): Likewise for local "table".
7730         * config/s390/s390.c (s390_chunkify_start): Likewise.
7732         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
7734         * jump.c (delete_related_insns): Strengthen local "lab_next" from
7735         rtx to rtx_jump_table_data *.
7737         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
7738         rtx_jump_table_data **.  Add a checked cast when writing through
7739         the pointer: we know there that local "table" is non-NULL and that
7740         JUMP_TABLE_DATA_P (table) holds.
7741         (label_is_jump_target_p): Introduce local "table", using it in
7742         place of "tmp" for jump table data.
7744 2014-08-19  Marek Polacek  <polacek@redhat.com>
7746         PR c++/62153
7747         * doc/invoke.texi: Document -Wbool-compare.
7749 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7751         * rtl.h (entry_of_function): Strengthen return type from rtx to
7752         rtx_insn *.
7753         * cfgrtl.c (entry_of_function): Likewise.
7755 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7757         * emit-rtl.h (get_insns): Strengthen return type from rtx to
7758         rtx_insn *, adding a checked cast for now.
7759         (get_last_insn): Likewise.
7761 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7763         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
7764         rtx_code_label *.
7766         * emit-rtl.c (gen_label_rtx): Likewise.
7768 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7770         * rtl.h (previous_insn): Strengthen return type from rtx to
7771         rtx_insn *.
7772         (next_insn): Likewise.
7773         (prev_nonnote_insn): Likewise.
7774         (prev_nonnote_insn_bb): Likewise.
7775         (next_nonnote_insn): Likewise.
7776         (next_nonnote_insn_bb): Likewise.
7777         (prev_nondebug_insn): Likewise.
7778         (next_nondebug_insn): Likewise.
7779         (prev_nonnote_nondebug_insn): Likewise.
7780         (next_nonnote_nondebug_insn): Likewise.
7781         (prev_real_insn): Likewise.
7782         (next_real_insn): Likewise.
7783         (prev_active_insn): Likewise.
7784         (next_active_insn): Likewise.
7786         * emit-rtl.c (next_insn): Strengthen return type from rtx to
7787         rtx_insn *, adding a checked cast.
7788         (previous_insn): Likewise.
7789         (next_nonnote_insn): Likewise.
7790         (next_nonnote_insn_bb): Likewise.
7791         (prev_nonnote_insn): Likewise.
7792         (prev_nonnote_insn_bb): Likewise.
7793         (next_nondebug_insn): Likewise.
7794         (prev_nondebug_insn): Likewise.
7795         (next_nonnote_nondebug_insn): Likewise.
7796         (prev_nonnote_nondebug_insn): Likewise.
7797         (next_real_insn): Likewise.
7798         (prev_real_insn): Likewise.
7799         (next_active_insn): Likewise.
7800         (prev_active_insn): Likewise.
7802         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
7803         param "stepfunc" so that it returns an rtx_insn * rather than an
7804         rtx, to track the change to prev_nonnote_insn_bb, which is the
7805         only function this is called with.
7806         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
7808 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
7810         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
7811         assert.
7813 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7815         * coretypes.h (class rtx_debug_insn): Add forward declaration.
7816         (class rtx_nonjump_insn): Likewise.
7817         (class rtx_jump_insn): Likewise.
7818         (class rtx_call_insn): Likewise.
7819         (class rtx_jump_table_data): Likewise.
7820         (class rtx_barrier): Likewise.
7821         (class rtx_code_label): Likewise.
7822         (class rtx_note): Likewise.
7824         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
7825         adding the invariant DEBUG_INSN_P (X).
7826         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
7827         the invariant NONJUMP_INSN_P (X).
7828         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
7829         the invariant JUMP_P (X).
7830         (class rtx_call_insn): New, a subclass of rtx_insn, adding
7831         the invariant CALL_P (X).
7832         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
7833         invariant JUMP_TABLE_DATA_P (X).
7834         (class rtx_barrier): New, a subclass of rtx_insn, adding the
7835         invariant BARRIER_P (X).
7836         (class rtx_code_label): New, a subclass of rtx_insn, adding
7837         the invariant LABEL_P (X).
7838         (class rtx_note): New, a subclass of rtx_insn, adding
7839         the invariant NOTE_P(X).
7840         (is_a_helper <rtx_debug_insn *>::test): New.
7841         (is_a_helper <rtx_nonjump_insn *>::test): New.
7842         (is_a_helper <rtx_jump_insn *>::test): New.
7843         (is_a_helper <rtx_call_insn *>::test): New.
7844         (is_a_helper <rtx_jump_table_data *>::test): New functions,
7845         overloaded for both rtx and rtx_insn *.
7846         (is_a_helper <rtx_barrier *>::test): New.
7847         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
7848         for both rtx and rtx_insn *.
7849         (is_a_helper <rtx_note *>::test): New.
7851 2014-08-19  Marek Polacek  <polacek@redhat.com>
7853         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
7854         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
7855         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
7856         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
7858 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7860         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
7861         rtx_insn *.  To help with transition, for now, convert from an
7862         access macro into a pair of functions: BND_TO, returning an
7863         rtx_insn *, and...
7864         (SET_BND_TO): New function, for use where BND_TO is used as an
7865         lvalue.
7867         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
7868         SET_BND_TO.
7869         (BND_TO): New function, adding a checked cast.
7870         (SET_BND_TO): New function.
7872         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
7873         SET_BND_TO.
7874         (compute_av_set_on_boundaries): Likewise.
7876 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7878         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
7879         destination if it is used in source.
7880         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
7881         (*popcount<mode>2_falsedep_1): Likewise.
7883 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7885         PR other/62168
7886         * configure.ac: Set install_gold_as_default to no first.
7887         * configure: Regenerated.
7889 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7891         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
7892         "note_list" field will eventually be an rtx_insn *.  To help with
7893         transition, for now, convert from an access macro into a pair of
7894         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
7895         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
7896         used as an lvalue.
7898         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
7899         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
7901         * sel-sched-ir.c (init_bb): Likewise.
7902         (sel_restore_notes): Likewise.
7903         (move_bb_info): Likewise.
7904         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
7905         (SET_BB_NOTE_LIST): New function.
7907 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7909         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
7910         field will eventually be an rtx_insn *.  To help with transition,
7911         for now, convert from an access macro into a pair of functions:
7912         VINSN_INSN_RTX, returning an rtx_insn *, and...
7913         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
7914         is used as an lvalue.
7916         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
7917         SET_VINSN_INSN_RTX where it's used as an lvalue.
7918         (VINSN_INSN_RTX): New function.
7919         (SET_VINSN_INSN_RTX): New function.
7921 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7923         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
7924         eventually be rtx_insn *, but to help with transition, for now,
7925         convert from an access macro into a pair of functions: DEP_PRO
7926         returning an rtx_insn * and...
7927         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
7928         lvalue, returning an rtx&.
7929         (DEP_CON): Analogous changes to DEP_PRO above.
7930         (SET_DEP_CON): Likewise.
7932         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
7933         an lvalue to SET_DEP_CON.
7934         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
7935         (sd_copy_back_deps): Likewise for DEP_CON.
7936         (DEP_PRO): New function, adding a checked cast for now.
7937         (DEP_CON): Likewise.
7938         (SET_DEP_PRO): New function.
7939         (SET_DEP_CON): Likewise.
7941 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
7943         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
7944         (extra_options): Add i386/cygwin.opt.
7945         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
7946         (CPP_SPEC): Accept -pthread.
7947         (LINK_SPEC): Ditto.
7948         (GOMP_SELF_SPECS): Update comment.
7949         * config/i386/cygwin.opt: New file for -pthread flag.
7951 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7953         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
7954         * df.h (DF_REF_INSN): Convert from a macro to a function, so
7955         that we can return an rtx_insn *.
7957 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
7959         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
7960         when building executables, not DLLs.  Add --large-address-aware
7961         under the same conditions.
7962         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
7963         when building executables, not DLLs.  Add --large-address-aware
7964         under the same conditions when using -m32.
7966         * config/i386/cygwin-stdint.h: Throughout, make type
7967         definitions dependent on target architecture, not host.
7969 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7971         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
7972         the return type from rtx to rtx_insn *,  which will enable various
7973         conversions in followup patches.  For now this is is done by a
7974         checked cast.
7975         (NEXT_INSN): Likewise.
7976         (SET_PREV_INSN): Convert to an inline function.  This is intended
7977         for use as an lvalue, and so returns an rtx& to allow in-place
7978         modification.
7979         (SET_NEXT_INSN): Likewise.
7981 2014-07-08  Mark Wielaard  <mjw@redhat.com>
7983         PR debug/59051
7984         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
7986 2014-08-19  Marek Polacek  <polacek@redhat.com>
7988         PR c/61271
7989         * cgraphunit.c (handle_alias_pairs): Fix condition.
7991 2014-08-19  Richard Biener  <rguenther@suse.de>
7993         * gimple-fold.c (fold_gimple_assign): Properly build a
7994         null-pointer constant when devirtualizing addresses.
7996 2014-07-07  Mark Wielaard  <mjw@redhat.com>
7998         * dwarf2out.c (decl_quals): New function.
7999         (modified_type_die): Take one cv_quals argument instead of two,
8000         one for const and one for volatile.
8001         (add_type_attribute): Likewise.
8002         (generic_parameter_die): Call add_type_attribute with one modifier
8003         argument.
8004         (base_type_for_mode): Likewise.
8005         (add_bounds_info): Likewise.
8006         (add_subscript_info): Likewise.
8007         (gen_array_type_die): Likewise.
8008         (gen_descr_array_type_die): Likewise.
8009         (gen_entry_point_die): Likewise.
8010         (gen_enumeration_type_die): Likewise.
8011         (gen_formal_parameter_die): Likewise.
8012         (gen_subprogram_die): Likewise.
8013         (gen_variable_die): Likewise.
8014         (gen_const_die): Likewise.
8015         (gen_field_die): Likewise.
8016         (gen_pointer_type_die): Likewise.
8017         (gen_reference_type_die): Likewise.
8018         (gen_ptr_to_mbr_type_die): Likewise.
8019         (gen_inheritance_die): Likewise.
8020         (gen_subroutine_type_die): Likewise.
8021         (gen_typedef_die): Likewise.
8022         (force_type_die): Likewise.
8024 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8026         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
8027         if unset.
8028         * configure: Regenerate.
8030 2014-08-19  Richard Biener  <rguenther@suse.de>
8032         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
8033         DECL_EXTERNALs in BLOCKs as non-references.
8034         * tree-streamer-out.c (streamer_write_chain): Likewise.
8036 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8037             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8038             Anna Tikhonova  <anna.tikhonova@intel.com>
8039             Ilya Tocar  <ilya.tocar@intel.com>
8040             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8041             Ilya Verbin  <ilya.verbin@intel.com>
8042             Kirill Yukhin  <kirill.yukhin@intel.com>
8043             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8045         * config/i386/sse.md
8046         (define_mode_iterator VI48_AVX512F): Delete.
8047         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
8048         (define_mode_iterator VI2_AVX512VL): Ditto.
8049         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
8050         Delete.
8051         (define_insn
8052         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
8053         New.
8054         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
8055         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
8056         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8057         with VI48_AVX512F_AVX512VL): New.
8058         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8059         with VI2_AVX512VL): Ditto.
8061 2014-08-19  Marek Polacek  <polacek@redhat.com>
8063         * doc/invoke.texi: Document -Wc99-c11-compat.
8065 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8067         * rtl.h (PREV_INSN): Split macro in two: the existing one,
8068         for rvalues, and...
8069         (SET_PREV_INSN): New macro, for use as an lvalue.
8070         (NEXT_INSN, SET_NEXT_INSN): Likewise.
8072         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
8073         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
8074         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8075         (fixup_abnormal_edges): Likewise.
8076         (unlink_insn_chain): Likewise.
8077         (fixup_reorder_chain): Likewise.
8078         (cfg_layout_delete_block): Likewise.
8079         (cfg_layout_merge_blocks): Likewise.
8080         * combine.c (update_cfg_for_uncondjump): Likewise.
8081         * emit-rtl.c (link_insn_into_chain): Likewise.
8082         (remove_insn): Likewise.
8083         (delete_insns_since): Likewise.
8084         (reorder_insns_nobb): Likewise.
8085         (emit_insn_after_1): Likewise.
8086         * final.c (rest_of_clean_state): Likewise.
8087         (final_scan_insn): Likewise.
8088         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
8089         * haifa-sched.c (concat_note_lists): Likewise.
8090         (remove_notes): Likewise.
8091         (restore_other_notes): Likewise.
8092         (move_insn): Likewise.
8093         (unlink_bb_notes): Likewise.
8094         (restore_bb_notes): Likewise.
8095         * jump.c (delete_for_peephole): Likewise.
8096         * optabs.c (emit_libcall_block_1): Likewise.
8097         * reorg.c (emit_delay_sequence): Likewise.
8098         (fill_simple_delay_slots): Likewise.
8099         * sel-sched-ir.c (sel_move_insn): Likewise.
8100         (sel_remove_insn): Likewise.
8101         (get_bb_note_from_pool): Likewise.
8102         * sel-sched.c (move_nop_to_previous_block): Likewise.
8104         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
8105         * config/c6x/c6x.c (gen_one_bundle): Likewise.
8106         (c6x_gen_bundles): Likewise.
8107         (hwloop_optimize): Likewise.
8108         * config/frv/frv.c (frv_function_prologue): Likewise.
8109         (frv_register_nop): Likewise.
8110         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
8111         (ia64_reorg): Likewise.
8112         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
8113         (mep_make_bundle): Likewise.
8114         (mep_bundle_insns): Likewise.
8115         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
8116         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
8117         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
8119 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8121         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
8122         return type from rtx to rtx_insn *.
8123         (BB_END): Likewise.
8124         (BB_HEADER): Likewise.
8125         (BB_FOOTER): Likewise.
8126         (SET_BB_HEAD): Convert to a function.
8127         (SET_BB_END): Likewise.
8128         (SET_BB_HEADER): Likewise.
8129         (SET_BB_FOOTER): Likewise.
8131         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
8132         Strengthen the return type from rtx to rtx_insn *.  For now, this
8133         is done by adding a checked cast, but this will eventually
8134         become a field lookup.
8135         (BB_END): Likewise.
8136         (BB_HEADER): Likewise.
8137         (BB_FOOTER): Likewise.
8138         (SET_BB_HEAD): New function, from macro of same name.  This is
8139         intended for use as an lvalue, and so returns an rtx& to allow
8140         in-place modification.
8141         (SET_BB_END): Likewise.
8142         (SET_BB_HEADER): Likewise.
8143         (SET_BB_FOOTER): Likewise.
8145 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
8147         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
8148         for rvalues, and...
8149         (SET_BB_HEAD): New macro, for use as a lvalue.
8150         (BB_END, SET_BB_END): Likewise.
8151         (BB_HEADER, SET_BB_HEADER): Likewise.
8152         (BB_FOOTER, SET_BB_FOOTER): Likewise.
8154         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
8155         of BB_* macros into SET_BB_* macros.
8156         (fix_crossing_unconditional_branches): Likewise.
8157         * caller-save.c (save_call_clobbered_regs): Likewise.
8158         (insert_one_insn): Likewise.
8159         * cfgbuild.c (find_bb_boundaries): Likewise.
8160         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8161         (outgoing_edges_match): Likewise.
8162         (try_optimize_cfg): Likewise.
8163         * cfgexpand.c (expand_gimple_cond): Likewise.
8164         (expand_gimple_tailcall): Likewise.
8165         (expand_gimple_basic_block): Likewise.
8166         (construct_exit_block): Likewise.
8167         * cfgrtl.c (delete_insn): Likewise.
8168         (create_basic_block_structure): Likewise.
8169         (rtl_delete_block): Likewise.
8170         (rtl_split_block): Likewise.
8171         (emit_nop_for_unique_locus_between): Likewise.
8172         (rtl_merge_blocks): Likewise.
8173         (block_label): Likewise.
8174         (try_redirect_by_replacing_jump): Likewise.
8175         (emit_barrier_after_bb): Likewise.
8176         (fixup_abnormal_edges): Likewise.
8177         (record_effective_endpoints): Likewise.
8178         (relink_block_chain): Likewise.
8179         (fixup_reorder_chain): Likewise.
8180         (fixup_fallthru_exit_predecessor): Likewise.
8181         (cfg_layout_duplicate_bb): Likewise.
8182         (cfg_layout_split_block): Likewise.
8183         (cfg_layout_delete_block): Likewise.
8184         (cfg_layout_merge_blocks): Likewise.
8185         * combine.c (update_cfg_for_uncondjump): Likewise.
8186         * emit-rtl.c (add_insn_after): Likewise.
8187         (remove_insn): Likewise.
8188         (reorder_insns): Likewise.
8189         (emit_insn_after_1): Likewise.
8190         * haifa-sched.c (get_ebb_head_tail): Likewise.
8191         (restore_other_notes): Likewise.
8192         (move_insn): Likewise.
8193         (sched_extend_bb): Likewise.
8194         (fix_jump_move): Likewise.
8195         * ifcvt.c (noce_process_if_block): Likewise.
8196         (dead_or_predicable): Likewise.
8197         * ira.c (update_equiv_regs): Likewise.
8198         * reg-stack.c (change_stack): Likewise.
8199         * sel-sched-ir.c (sel_move_insn): Likewise.
8200         * sel-sched.c (move_nop_to_previous_block): Likewise.
8202         * config/c6x/c6x.c (hwloop_optimize): Likewise.
8203         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
8205 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
8207         * rtl.h (for_each_rtx_in_insn): New function.
8208         * rtlanal.c (for_each_rtx_in_insn): Likewise.
8210 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
8212         * coretypes.h (class rtx_insn): Add forward declaration.
8214         * rtl.h: Include is-a.h.
8215         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
8216         workaround to ensure gengtype knows inheritance is occurring,
8217         whilst continuing to use the pre-existing special-casing for
8218         rtx_def.
8219         (class rtx_insn): New subclass of rtx_def, adding the
8220         invariant that we're dealing with something we can sanely use
8221         INSN_UID, NEXT_INSN, PREV_INSN on.
8222         (is_a_helper <rtx_insn *>::test): New.
8223         (is_a_helper <const rtx_insn *>::test): New.
8225 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
8227         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
8229 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
8231         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
8232         comdats as extern.
8234 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
8236         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
8237         to BUILT_IN_UNREACHABLE.
8239 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
8241         PR target/62011
8242         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
8243         New tune flag.
8244         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
8245         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
8246         (ffs<mode>2): Do not expand with tzcnt for
8247         TARGET_AVOID_FALSE_DEP_FOR_BMI.
8248         (ffssi2_no_cmove): Ditto.
8249         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
8250         (ctz<mode>2): New expander.
8251         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
8252         (*ctz<mode>2_falsedep): New insn.
8253         (*ctz<mode>2): Rename from ctz<mode>2.
8254         (clz<mode>2_lzcnt): New expander.
8255         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
8256         (*clz<mode>2_lzcnt_falsedep): New insn.
8257         (*clz<mode>2): Rename from ctz<mode>2.
8258         (popcount<mode>2): New expander.
8259         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
8260         (*popcount<mode>2_falsedep): New insn.
8261         (*popcount<mode>2): Rename from ctz<mode>2.
8262         (*popcount<mode>2_cmp): Remove.
8263         (*popcountsi2_cmp_zext): Ditto.
8265 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
8267         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
8268         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
8269         * config/microblaze/microblaze.h
8270         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
8272 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8274         PR other/62168
8275         * configure.ac: Set install_gold_as_default to no for
8276          --enable-gold=no.
8277          * configure: Regenerated.
8279 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
8281         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
8282         * config.in: Add undef of HAVE_isl.
8283         * configure: Regenerate.
8284         * configure.ac: Add definition of HAVE_isl.
8285         * graphite-blocking.c: Add checking of HAVE_isl.
8286         * graphite-dependences.c: Likewise.
8287         * graphite-interchange.c: Likewise.
8288         * graphite-isl-ast-to-gimple.c: Likewise.
8289         * graphite-optimize-isl.c: Likewise.
8290         * graphite-poly.c: Likewise.
8291         * graphite-scop-detection.c: Likewise.
8292         * graphite-sese-to-poly.c: Likewise.
8293         * graphite.c: Likewise.
8294         * toplev.c: Replace the checking of HAVE_cloog with the checking
8295         of HAVE_isl.
8297 2014-08-18  Richard Biener  <rguenther@suse.de>
8299         PR tree-optimization/62090
8300         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
8301         (fold_builtin_3): Do not fold snprintf.
8302         (fold_builtin_4): Likewise.
8303         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
8304         moved from builtins.c.
8305         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
8306         (gimple_fold_builtin): Do not fold sprintf here.
8308 2014-08-18  Richard Biener  <rguenther@suse.de>
8310         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
8311         code to ...
8312         (maybe_canonicalize_mem_ref_addr): ... this function.
8313         (fold_stmt_1): Apply it here before all simplification.
8315 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
8317         PR ipa/61800
8318         * cgraph.h (cgraph_node::create_indirect_edge): Add
8319         compute_indirect_info param.
8320         * cgraph.c (cgraph_node::create_indirect_edge): Compute
8321         indirect_info only when it is required.
8322         * cgraphclones.c (cgraph_clone_edge): Do not recompute
8323         indirect_info fore cloned indirect edge.
8325 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8326             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8327             Anna Tikhonova  <anna.tikhonova@intel.com>
8328             Ilya Tocar  <ilya.tocar@intel.com>
8329             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8330             Ilya Verbin  <ilya.verbin@intel.com>
8331             Kirill Yukhin  <kirill.yukhin@intel.com>
8332             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8334         * config/i386/sse.md
8335         (define_mode_iterator VI8_AVX2_AVX512BW): New.
8336         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
8338 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8339             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8340             Anna Tikhonova  <anna.tikhonova@intel.com>
8341             Ilya Tocar  <ilya.tocar@intel.com>
8342             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8343             Ilya Verbin  <ilya.verbin@intel.com>
8344             Kirill Yukhin  <kirill.yukhin@intel.com>
8345             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8347         * config/i386/sse.md
8348         (define_mode_iterator VF1_AVX512VL): New.
8349         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
8350         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
8351         New.
8353 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8354             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8355             Anna Tikhonova  <anna.tikhonova@intel.com>
8356             Ilya Tocar  <ilya.tocar@intel.com>
8357             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8358             Ilya Verbin  <ilya.verbin@intel.com>
8359             Kirill Yukhin  <kirill.yukhin@intel.com>
8360             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8362         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
8363         * config/i386/i386.md
8364         (define_code_iterator any_float): New.
8365         (define_code_attr floatsuffix): New.
8366         * config/i386/sse.md
8367         (define_mode_iterator VF1_128_256VL): New.
8368         (define_mode_iterator VF2_512_256VL): New.
8369         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
8370         TARGET check.
8371         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
8372         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
8373         New.
8374         (define_mode_attr qq2pssuff): New.
8375         (define_mode_attr sselongvecmode): New.
8376         (define_mode_attr sselongvecmodelower): New.
8377         (define_mode_attr sseintvecmode3): New.
8378         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
8379         New.
8380         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
8381         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
8382         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
8383         (define_insn "ufloatv2siv2df2<mask_name>"): New.
8385 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8386             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8387             Anna Tikhonova  <anna.tikhonova@intel.com>
8388             Ilya Tocar  <ilya.tocar@intel.com>
8389             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8390             Ilya Verbin  <ilya.verbin@intel.com>
8391             Kirill Yukhin  <kirill.yukhin@intel.com>
8392             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8394         * config/i386/sse.md
8395         (define_mode_iterator VF2_AVX512VL): New.
8396         (define_mode_attr sseintvecmode2): New.
8397         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
8398         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
8399         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
8400         (define_insn
8401         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
8402         Ditto.
8403         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
8404         Ditto.
8405         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
8406         Ditto.
8408 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8409             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8410             Anna Tikhonova  <anna.tikhonova@intel.com>
8411             Ilya Tocar  <ilya.tocar@intel.com>
8412             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8413             Ilya Verbin  <ilya.verbin@intel.com>
8414             Kirill Yukhin  <kirill.yukhin@intel.com>
8415             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8417         * config/i386/i386.md
8418         (define_insn "*movoi_internal_avx"): Add evex version.
8419         (define_insn "*movti_internal"): Ditto.
8421 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8422             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8423             Anna Tikhonova  <anna.tikhonova@intel.com>
8424             Ilya Tocar  <ilya.tocar@intel.com>
8425             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8426             Ilya Verbin  <ilya.verbin@intel.com>
8427             Kirill Yukhin  <kirill.yukhin@intel.com>
8428             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8430         * config/i386/i386.md
8431         (define_attr "isa"): Add avx512dq, noavx512dq.
8432         (define_attr "enabled"): Ditto.
8433         * config/i386/sse.md
8434         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
8436 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8437             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8438             Anna Tikhonova  <anna.tikhonova@intel.com>
8439             Ilya Tocar  <ilya.tocar@intel.com>
8440             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8441             Ilya Verbin  <ilya.verbin@intel.com>
8442             Kirill Yukhin  <kirill.yukhin@intel.com>
8443             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8445         * config/i386/i386.c
8446         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
8447         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
8448         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
8449         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
8450         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
8451         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
8452         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
8453         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
8454         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
8455         * config/i386/sse.md
8456         (define_mode_iterator VMOVE): Allow V4TI mode.
8457         (define_mode_iterator V_AVX512VL): New.
8458         (define_mode_iterator V): New handling for AVX512VL.
8459         (define_insn "avx512f_load<mode>_mask"): Delete.
8460         (define_insn "<avx512>_load<mode>_mask"): New.
8461         (define_insn "avx512f_store<mode>_mask"): Delete.
8462         (define_insn "<avx512>_store<mode>_mask"): New.
8465 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
8467         PR sanitizer/62089
8468         * asan.c (instrument_derefs): Fix bitfield check.
8470 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
8472         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
8473         * config/rs6000/htm.md (ttest): Remove clobber.
8474         * config/rs6000/predicates.md (any_mask_operand): New predicate.
8475         (and_operand): Reformat.
8476         (and_2rld_operand): New predicate.
8477         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
8478         parameter.
8479         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
8480         parameter.  Handle AND directly.
8481         (rs6000_split_logical_di): Remove last parameter.
8482         (rs6000_split_logical): Remove last parameter.  Remove obsolete
8483         comment.
8484         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
8485         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
8486         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
8487         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
8488         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
8489         and 5 anonymous splitters):  Delete.
8490         (and<mode>3): New expander.
8491         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
8492         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
8493         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
8494         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
8495         (floatdisf2_internal1): Remove clobbers.
8496         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
8497         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
8498         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
8499         (and<mode>3 for BOOL_128): Remove clobber.
8500         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
8501         rs6000_split_logical.
8502         (*bool<mode>3_internal for BOOL_128): Adjust call of
8503         rs6000_split_logical.
8504         (*boolc<mode>3_internal1 for BOOL_128,
8505         *boolc<mode>3_internal2 for BOOL_128,
8506         *boolcc<mode>3_internal1 for BOOL_128,
8507         *boolcc<mode>3_internal2 for BOOL_128,
8508         *eqv<mode>3_internal1 for BOOL_128,
8509         *eqv<mode>3_internal2 for BOOL_128,
8510         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
8511         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
8512         clobber.
8513         (*vec_reload_and_reg_<mptrsize>): Delete.
8515 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
8517         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
8518         and split, *boolccsi3_internal3 and split): Delete.
8519         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
8520         *boolccdi3_internal3 and split): Delete.
8521         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
8522         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
8524 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
8526         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
8527         and split, *boolcsi3_internal3 and split): Delete.
8528         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
8529         *boolcdi3_internal3 and split): Delete.
8530         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
8532 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
8534         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
8535         <'u'>: Also support printing the low-order 16 bits.
8536         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
8537         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
8538         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
8539         *booldi3_internal3 and split): Delete.
8540         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
8541         *bool<mode>3_dot2): New.
8542         (two anonymous define_splits for non_logical_cint_operand): Merge.
8544 2014-08-17  Marek Polacek  <polacek@redhat.com>
8545             Manuel López-Ibáñez  <manu@gcc.gnu.org>
8547         PR c/62059
8548         * diagnostic.c (adjust_line): Add gcc_checking_assert.
8549         (diagnostic_show_locus): Don't print caret diagnostic
8550         if a column is larger than the line_width.
8552 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
8554         * common.opt: Make the ISL AST generator to be the main code generator
8555         of Graphite.
8557 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
8559         * wide-int.h (generic_wide_int): Declare as class instead of struct.
8561 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
8563         PR target/61641
8564         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
8565         Declare.
8566         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
8567         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
8568         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
8569         Define.
8570         * config/pa/pa.md (begin_brtab): Delete insn.
8571         (end_brtab): Likewise.
8573 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8575         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
8577 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
8579         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
8580         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
8581         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
8582         (get_dynamic_type): Remove.
8583         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
8584         (clear_speculation): Bring to ipa-deivrt.h
8585         (get_class_context): Rename to ...
8586         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
8587         (contains_type_p): Update.
8588         (get_dynamic_type): Rename to ...
8589         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
8590         (possible_polymorphic_call_targets): UPdate.
8591         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
8592         * ipa-prop.c (ipa_analyze_call_uses): Update.
8594 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
8596         * doc/invoke.texi (SH options): Document missing processor variant
8597         options.  Remove references to Hitachi.  Undocument deprecated mspace
8598         option.
8600 2014-08-15  Jason Merrill  <jason@redhat.com>
8602         * tree.c (type_hash_canon): Uncomment assert.
8604 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8606         * input.h (in_system_header_at): Add comment.
8608 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8610         PR fortran/44054
8611         * diagnostic.c (build_message_string): Make it extern.
8612         * diagnostic.h (build_message_string): Make it extern.
8614 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
8616         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
8617         load/store from/to non-floating class pseudo.
8619 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8621         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
8623 2014-08-15  Richard Biener  <rguenther@suse.de>
8625         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
8626         (get_constraint_for_ssa_var): Remove dead code.
8627         (get_constraint_for_1): Adjust.
8628         (find_what_var_points_to): Likewise.
8629         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
8631 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
8633         PR target/61878
8634         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
8635         (_mm512_mask_cmpge_epu32_mask): Ditto.
8636         (_mm512_cmpge_epu32_mask): Ditto.
8637         (_mm512_mask_cmpge_epi64_mask): Ditto.
8638         (_mm512_cmpge_epi64_mask): Ditto.
8639         (_mm512_mask_cmpge_epu64_mask): Ditto.
8640         (_mm512_cmpge_epu64_mask): Ditto.
8641         (_mm512_mask_cmple_epi32_mask): Ditto.
8642         (_mm512_cmple_epi32_mask): Ditto.
8643         (_mm512_mask_cmple_epu32_mask): Ditto.
8644         (_mm512_cmple_epu32_mask): Ditto.
8645         (_mm512_mask_cmple_epi64_mask): Ditto.
8646         (_mm512_cmple_epi64_mask): Ditto.
8647         (_mm512_mask_cmple_epu64_mask): Ditto.
8648         (_mm512_cmple_epu64_mask): Ditto.
8649         (_mm512_mask_cmplt_epi32_mask): Ditto.
8650         (_mm512_cmplt_epi32_mask): Ditto.
8651         (_mm512_mask_cmplt_epu32_mask): Ditto.
8652         (_mm512_cmplt_epu32_mask): Ditto.
8653         (_mm512_mask_cmplt_epi64_mask): Ditto.
8654         (_mm512_cmplt_epi64_mask): Ditto.
8655         (_mm512_mask_cmplt_epu64_mask): Ditto.
8656         (_mm512_cmplt_epu64_mask): Ditto.
8657         (_mm512_mask_cmpneq_epi32_mask): Ditto.
8658         (_mm512_mask_cmpneq_epu32_mask): Ditto.
8659         (_mm512_cmpneq_epu32_mask): Ditto.
8660         (_mm512_mask_cmpneq_epi64_mask): Ditto.
8661         (_mm512_cmpneq_epi64_mask): Ditto.
8662         (_mm512_mask_cmpneq_epu64_mask): Ditto.
8663         (_mm512_cmpneq_epu64_mask): Ditto.
8664         (_mm512_castpd_ps): Ditto.
8665         (_mm512_castpd_si512): Ditto.
8666         (_mm512_castps_pd): Ditto.
8667         (_mm512_castps_si512): Ditto.
8668         (_mm512_castsi512_ps): Ditto.
8669         (_mm512_castsi512_pd): Ditto.
8670         (_mm512_castpd512_pd128): Ditto.
8671         (_mm512_castps512_ps128): Ditto.
8672         (_mm512_castsi512_si128): Ditto.
8673         (_mm512_castpd512_pd256): Ditto.
8674         (_mm512_castps512_ps256): Ditto.
8675         (_mm512_castsi512_si256): Ditto.
8676         (_mm512_castpd128_pd512): Ditto.
8677         (_mm512_castps128_ps512): Ditto.
8678         (_mm512_castsi128_si512): Ditto.
8679         (_mm512_castpd256_pd512): Ditto.
8680         (_mm512_castps256_ps512): Ditto.
8681         (_mm512_castsi256_si512): Ditto.
8682         (_mm512_cmpeq_epu32_mask): Ditto.
8683         (_mm512_mask_cmpeq_epu32_mask): Ditto.
8684         (_mm512_mask_cmpeq_epu64_mask): Ditto.
8685         (_mm512_cmpeq_epu64_mask): Ditto.
8686         (_mm512_cmpgt_epu32_mask): Ditto.
8687         (_mm512_mask_cmpgt_epu32_mask): Ditto.
8688         (_mm512_mask_cmpgt_epu64_mask): Ditto.
8689         (_mm512_cmpgt_epu64_mask): Ditto.
8690         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
8691         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
8692         * config/i386/i386.c (enum ix86_builtins): Add
8693         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
8694         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
8695         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
8696         (bdesc_args): Add __builtin_ia32_si512_256si,
8697         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
8698         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
8699         __builtin_ia32_pd512_pd.
8700         (ix86_expand_args_builtin): Handle new FTYPEs.
8701         * config/i386/sse.md (castmode): Add 512-bit modes.
8702         (AVX512MODE2P): New.
8703         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
8704         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
8706 2014-08-15  Richard Biener  <rguenther@suse.de>
8708         * fold-const.c (tree_swap_operands_p): Put all constants
8709         last, also strip sign-changing NOPs when considering further
8710         canonicalization.  Canonicalize also when optimizing for size.
8712 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8714         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
8715         one_match > zero_match case to just before simple_sequence.
8717 2014-08-15  Richard Biener  <rguenther@suse.de>
8719         * data-streamer.h (streamer_string_index, string_for_index):
8720         Remove.
8721         * data-streamer-out.c (streamer_string_index): Make static.
8722         * data-streamer-in.c (string_for_index): Likewise.
8723         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
8724         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
8726 2014-08-15  Richard Biener  <rguenther@suse.de>
8728         PR tree-optimization/62031
8729         * tree-data-ref.c (dr_analyze_indices): Do not set
8730         DR_UNCONSTRAINED_BASE.
8731         (dr_may_alias_p): All indirect accesses have to go the
8732         formerly DR_UNCONSTRAINED_BASE path.
8733         * tree-data-ref.h (struct indices): Remove
8734         unconstrained_base member.
8735         (DR_UNCONSTRAINED_BASE): Remove.
8737 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
8739         PR middle-end/62092
8740         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
8741         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
8742         in OMP_CLAUSE_MAP in some outer target region.
8744 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
8746         * tree-ssa-loop-ivopts.c (ivopts_data): New field
8747         name_expansion_cache.
8748         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
8749         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
8750         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
8751         (difference_cannot_overflow_p): New parameter.  Use affine
8752         expansion for equality check.
8753         (iv_elimination_compare_lt): Pass new argument.
8755 2014-08-14  DJ Delorie  <dj@redhat.com>
8757         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
8758         variables to the accumulator.
8760         * config/rl78/predicates.md (rl78_near_mem_operand): New.
8761         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
8762         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
8763         with far-far moves.
8765         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
8766         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
8767         (umulqihi3_virt): Likewise.
8768         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
8769         (umulqihi3_real): Likewise.
8771         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
8773 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
8775         PR tree-optimization/62091
8776         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
8777         function_entry_reached.
8778         (walk_aliased_vdefs): Clear it here.
8779         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
8781 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
8783         * ipa-utils.h (compare_virtual_tables): Declare.
8784         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
8786 2014-08-14  Marek Polacek  <polacek@redhat.com>
8788         DR 458
8789         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
8790         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
8792 2014-08-14  Tom de Vries  <tom@codesourcery.com>
8794         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
8796 2014-08-14  Tom de Vries  <tom@codesourcery.com>
8798         PR rtl-optimization/62004
8799         PR rtl-optimization/62030
8800         * ifcvt.c (rtx_interchangeable_p): New function.
8801         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
8802         * emit-rtl.h (mem_attrs_eq_p): Declare.
8804 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
8806         * graphite-scop-detection.c:
8807         Add inclusion of cp-tree.h.
8808         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
8809         in case they are pointers to object types
8811 2014-08-14  Richard Biener  <rguenther@suse.de>
8813         * BASE-VER: Change to 5.0.0
8815 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8816             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8817             Anna Tikhonova  <anna.tikhonova@intel.com>
8818             Ilya Tocar  <ilya.tocar@intel.com>
8819             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8820             Ilya Verbin  <ilya.verbin@intel.com>
8821             Kirill Yukhin  <kirill.yukhin@intel.com>
8822             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8824         * config/i386/sse.md (define_mode_attr avx512): New.
8825         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
8826         V4DI modes.
8827         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
8828         (define_mode_attr ssse3_avx2): Ditto.
8829         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
8830         (define_mode_attr avx2_avx512bw): New.
8831         (define_mode_attr ssedoublemodelower): New.
8832         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
8833         V32HI, V64QI modes.
8834         (define_mode_attr ssebytemode): Allow V8DI modes.
8835         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
8836         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
8837         (define_mode_attr ssePSmode2): New.
8838         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
8839         V16HI, V32HI modes.
8840         (define_mode_attr dbpsadbwmode): New.
8841         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
8842         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
8843         (vi8_sse4_1_avx2_avx512): New.
8844         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
8845         mode attribute.
8846         (define_mode_attr blendbits): Move before its immediate use.
8848 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8849             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8850             Anna Tikhonova  <anna.tikhonova@intel.com>
8851             Ilya Tocar  <ilya.tocar@intel.com>
8852             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8853             Ilya Verbin  <ilya.verbin@intel.com>
8854             Kirill Yukhin  <kirill.yukhin@intel.com>
8855             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8857         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
8858         * config/i386/subst.md
8859         (define_mode_iterator SUBST_V): Update.
8860         (define_mode_iterator SUBST_A): Ditto.
8861         (define_subst_attr "mask_operand7"): New.
8862         (define_subst_attr "mask_operand10"): New.
8863         (define_subst_attr "mask_operand_arg34") : New.
8864         (define_subst_attr "mask_expand_op3"): New.
8865         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
8866         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
8867         (define_subst_attr "mask_avx512vl_condition"): New.
8868         (define_subst_attr "round_mask_operand4"): Ditto.
8869         (define_subst_attr "round_mask_scalar_op3"): Delete.
8870         (define_subst_attr "round_mask_op4"): New.
8871         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
8872         V16SImode.
8873         (define_subst_attr "round_modev8sf_condition"): New.
8874         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
8875         <MODE>mode.
8876         (define_subst_attr "round_saeonly_mask_operand4"): New.
8877         (define_subst_attr "round_saeonly_mask_op4"): New.
8878         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
8879         V8DImode, V16SImode.
8880         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
8881         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
8882         (define_subst_attr "mask_expand4_args"): New.
8883         (define_subst "mask_expand4"): New.
8885 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8886             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8887             Anna Tikhonova  <anna.tikhonova@intel.com>
8888             Ilya Tocar  <ilya.tocar@intel.com>
8889             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8890             Ilya Verbin  <ilya.verbin@intel.com>
8891             Kirill Yukhin  <kirill.yukhin@intel.com>
8892             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8894         * config/i386/i386.md
8895         (define_attr "isa"): Add avx512bw,noavx512bw.
8896         (define_attr "enabled"): Ditto.
8897         (define_split): Add 32/64-bit mask logic.
8898         (define_insn "*k<logic>qi"): New.
8899         (define_insn "*k<logic>hi"): New.
8900         (define_insn "*anddi_1"): Add mask version.
8901         (define_insn "*andsi_1"): Ditto.
8902         (define_insn "*<code><mode>_1"): Ditto.
8903         (define_insn "*<code>hi_1"): Ditto.
8904         (define_insn "kxnor<mode>"): New.
8905         (define_insn "kunpcksi"): New.
8906         (define_insn "kunpckdi"): New.
8907         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
8908         (define_insn "*one_cmplhi2_1"): Ditto.
8910 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8911             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8912             Anna Tikhonova  <anna.tikhonova@intel.com>
8913             Ilya Tocar  <ilya.tocar@intel.com>
8914             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8915             Ilya Verbin  <ilya.verbin@intel.com>
8916             Kirill Yukhin  <kirill.yukhin@intel.com>
8917             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8919         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
8920         V32HImode.
8922 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8923             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8924             Anna Tikhonova  <anna.tikhonova@intel.com>
8925             Ilya Tocar  <ilya.tocar@intel.com>
8926             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8927             Ilya Verbin  <ilya.verbin@intel.com>
8928             Kirill Yukhin  <kirill.yukhin@intel.com>
8929             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8931         * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
8932         registers.
8933         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
8934         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
8935         xmm/ymm16+ when availble.
8936         * config/i386/i386.h
8937         (HARD_REGNO_NREGS): Add mask regs.
8938         (VALID_AVX512F_REG_MODE): Ditto.
8939         (VALID_AVX512F_REG_MODE) : Define.
8940         (VALID_MASK_AVX512BW_MODE): Ditto.
8941         (reg_class) (MASK_REG_P(X)): Define.
8942         * config/i386/i386.md: Do not split long moves with mask register,
8943         use kmovb if avx512bw is availible.
8944         (movdi_internal): Handle mask registers.
8946 2014-08-14  Richard Biener  <rguenther@suse.de>
8948         PR tree-optimization/62081
8949         * tree-ssa-loop.c (pass_fix_loops): New pass.
8950         (pass_tree_loop::gate):  Do not fixup loops here.
8951         * tree-pass.h (make_pass_fix_loops): Declare.
8952         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
8954 2014-08-14  Richard Biener  <rguenther@suse.de>
8956         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
8957         (type_hash_canon): ... this and avoid 2nd lookup for the add.
8959 2014-08-14  Richard Biener  <rguenther@suse.de>
8961         PR tree-optimization/62090
8962         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
8963         (fold_builtin_2): Do not fold sprintf.
8964         (fold_builtin_3): Likewise.
8965         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
8966         moved from builtins.c.
8967         (gimple_fold_builtin): Fold sprintf.
8969 2014-08-14  Richard Biener  <rguenther@suse.de>
8971         PR rtl-optimization/62079
8972         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
8973         run cleanup_cfg.
8975 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
8977         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
8978         current_function_decl.
8980 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
8982         * cgraph.c (cgraph_node::function_symbol): Fix wrong
8983         cgraph_function_node to cgraph_node::function_symbol
8984         refactoring.
8986 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
8988         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
8989         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
8991 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
8993         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
8994         warning.
8996 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
8998         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
8999         generator.
9001 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
9003         PR target/62025
9004         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
9005         any registers that are used in mem_insn.
9007 2014-08-12  Steve Ellcey  <sellcey@mips.com>
9009         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
9011 2014-08-12  Steve Ellcey  <sellcey@mips.com>
9013         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
9014         (MULTILIB_DIRNAMES): Ditto.
9015         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
9016         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
9017         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
9018         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
9019         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
9020         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
9022 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9024         PR target/61413
9025         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
9026         of __ARM_SIZEOF_WCHAR_T.
9028 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9030         PR target/62098
9031         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
9032         Remove unnecessary attributes.
9034 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
9036         * internal-fn.c (init_internal_fns): Fix off-by-one.
9038 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9039             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9040             Anna Tikhonova  <anna.tikhonova@intel.com>
9041             Ilya Tocar  <ilya.tocar@intel.com>
9042             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9043             Ilya Verbin  <ilya.verbin@intel.com>
9044             Kirill Yukhin  <kirill.yukhin@intel.com>
9045             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9047         * config/i386/i386.c (standard_sse_constant_opcode): Use
9048         vpxord/vpternlog if avx512 is availible.
9050 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9052         PR middle-end/62103
9053         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
9054         bitfields, that is when size doesn't match the size of type or the
9055         size of the constructor.
9057 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
9059         * config/rs6000/constraints.md (wh constraint): New constraint,
9060         for FP registers if direct move is available.
9061         (wi constraint): New constraint, for VSX/FP registers that can
9062         handle 64-bit integers.
9063         (wj constraint): New constraint for VSX/FP registers that can
9064         handle 64-bit integers for direct moves.
9065         (wk constraint): New constraint for VSX/FP registers that can
9066         handle 64-bit doubles for direct moves.
9067         (wy constraint): Make documentation match implementation.
9069         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
9070         scalar_in_vmx_p field to simplify tests of whether SFmode or
9071         DFmode can go in the Altivec registers.
9072         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
9073         (rs6000_setup_reg_addr_masks): Likewise.
9074         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
9075         field, and wh/wi/wj/wk constraints.
9076         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
9077         the wh/wi/wj/wk constraints.
9078         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
9079         upper registers, prefer VSX registers unless the operation is a
9080         memory operation with REG+OFFSET addressing.
9082         * config/rs6000/vsx.md (VSr mode attribute): Add support for
9083         DImode.  Change SFmode to use ww constraint instead of d to allow
9084         SF registers in the upper registers.
9085         (VSr2): Likewise.
9086         (VSr3): Likewise.
9087         (VSr5): Fix thinko in comment.
9088         (VSa): New mode attribute that is an alternative to wa, that
9089         returns the VSX register class that a mode can go in, but may not
9090         be the preferred register class.
9091         (VS_64dm): New mode attribute for appropriate register classes for
9092         referencing 64-bit elements of vectors for direct moves and normal
9093         moves.
9094         (VS_64reg): Likewise.
9095         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
9096         register allocator to only registers the data type can handle.
9097         (vsx_le_perm_load_<mode>): Likewise.
9098         (vsx_le_perm_store_<mode>): Likewise.
9099         (vsx_xxpermdi2_le_<mode>): Likewise.
9100         (vsx_xxpermdi4_le_<mode>): Likewise.
9101         (vsx_lxvd2x2_le_<mode>): Likewise.
9102         (vsx_lxvd2x4_le_<mode>): Likewise.
9103         (vsx_stxvd2x2_le_<mode>): Likewise.
9104         (vsx_add<mode>3): Likewise.
9105         (vsx_sub<mode>3): Likewise.
9106         (vsx_mul<mode>3): Likewise.
9107         (vsx_div<mode>3): Likewise.
9108         (vsx_tdiv<mode>3_internal): Likewise.
9109         (vsx_fre<mode>2): Likewise.
9110         (vsx_neg<mode>2): Likewise.
9111         (vsx_abs<mode>2): Likewise.
9112         (vsx_nabs<mode>2): Likewise.
9113         (vsx_smax<mode>3): Likewise.
9114         (vsx_smin<mode>3): Likewise.
9115         (vsx_sqrt<mode>2): Likewise.
9116         (vsx_rsqrte<mode>2): Likewise.
9117         (vsx_tsqrt<mode>2_internal): Likewise.
9118         (vsx_fms<mode>4): Likewise.
9119         (vsx_nfma<mode>4): Likewise.
9120         (vsx_eq<mode>): Likewise.
9121         (vsx_gt<mode>): Likewise.
9122         (vsx_ge<mode>): Likewise.
9123         (vsx_eq<mode>_p): Likewise.
9124         (vsx_gt<mode>_p): Likewise.
9125         (vsx_ge<mode>_p): Likewise.
9126         (vsx_xxsel<mode>): Likewise.
9127         (vsx_xxsel<mode>_uns): Likewise.
9128         (vsx_copysign<mode>3): Likewise.
9129         (vsx_float<VSi><mode>2): Likewise.
9130         (vsx_floatuns<VSi><mode>2): Likewise.
9131         (vsx_fix_trunc<mode><VSi>2): Likewise.
9132         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
9133         (vsx_x<VSv>r<VSs>i): Likewise.
9134         (vsx_x<VSv>r<VSs>ic): Likewise.
9135         (vsx_btrunc<mode>2): Likewise.
9136         (vsx_b2trunc<mode>2): Likewise.
9137         (vsx_floor<mode>2): Likewise.
9138         (vsx_ceil<mode>2): Likewise.
9139         (vsx_<VS_spdp_insn>): Likewise.
9140         (vsx_xscvspdp): Likewise.
9141         (vsx_xvcvspuxds): Likewise.
9142         (vsx_float_fix_<mode>2): Likewise.
9143         (vsx_set_<mode>): Likewise.
9144         (vsx_extract_<mode>_internal1): Likewise.
9145         (vsx_extract_<mode>_internal2): Likewise.
9146         (vsx_extract_<mode>_load): Likewise.
9147         (vsx_extract_<mode>_store): Likewise.
9148         (vsx_splat_<mode>): Likewise.
9149         (vsx_xxspltw_<mode>): Likewise.
9150         (vsx_xxspltw_<mode>_direct): Likewise.
9151         (vsx_xxmrghw_<mode>): Likewise.
9152         (vsx_xxmrglw_<mode>): Likewise.
9153         (vsx_xxsldwi_<mode>): Likewise.
9154         (vsx_xscvdpspn): Tighten constraints to only use register classes
9155         the types use.
9156         (vsx_xscvspdpn): Likewise.
9157         (vsx_xscvdpspn_scalar): Likewise.
9159         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
9160         wj, and wk constraints.
9161         (GPR_REG_CLASS_P): New helper macro for register classes targeting
9162         general purpose registers.
9164         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
9165         direct moves.
9166         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
9167         DImode instead of wm.  Use wk constraint for direct move of DFmode
9168         instead of wm.
9169         (extendsidi2_lfiwax): Likewise.
9170         (lfiwax): Likewise.
9171         (lfiwzx): Likewise.
9172         (movdi_internal64): Likewise.
9174         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
9175         wk constraints. Make the wy constraint documentation match them
9176         implementation.
9178 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
9180         Replacement of isl_int by isl_val
9181         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
9182         (compute_bounds_for_param): use isl_val instead of isl_int
9183         (compute_bounds_for_loop): likewise
9184         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
9185         (build_linearized_memory_access): use isl_val instead of isl_int
9186         (pdr_stride_in_loop): likewise
9187         * graphite-optimize-isl.c:
9188         (getPrevectorMap): use isl_val instead of isl_int
9189         * graphite-poly.c:
9190         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
9191         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
9192         (extern the_isl_ctx): declare
9193         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
9194         (extract_affine_gmp): likewise
9195         (wrap): likewise
9196         (build_loop_iteration_domains): likewise
9197         (add_param_constraints): likewise
9199 2014-08-11  Richard Biener  <rguenther@suse.de>
9201         PR tree-optimization/62075
9202         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
9203         handle uses in patterns.
9205 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9206             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9207             Anna Tikhonova  <anna.tikhonova@intel.com>
9208             Ilya Tocar  <ilya.tocar@intel.com>
9209             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9210             Ilya Verbin  <ilya.verbin@intel.com>
9211             Kirill Yukhin  <kirill.yukhin@intel.com>
9212             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9214         * common/config/i386/i386-common.c
9215         (OPTION_MASK_ISA_AVX512VL_SET): Define.
9216         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
9217         (ix86_handle_option): Handle OPT_mavx512vl.
9218         * config/i386/cpuid.h (bit_AVX512VL): Define.
9219         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
9220         set -mavx512vl accordingly.
9221         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9222         OPTION_MASK_ISA_AVX512VL.
9223         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
9224         (ix86_option_override_internal): Define PTA_AVX512VL, handle
9225         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
9226         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
9227         * config/i386/i386.h (TARGET_AVX512VL): Define.
9228         (TARGET_AVX512VL_P(x)): Ditto.
9229         * config/i386/i386.opt: Add mavx512vl.
9231 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
9233         PR tree-optimization/62073
9234         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
9235         a basic block.
9237 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9238             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9239             Anna Tikhonova  <anna.tikhonova@intel.com>
9240             Ilya Tocar  <ilya.tocar@intel.com>
9241             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9242             Ilya Verbin  <ilya.verbin@intel.com>
9243             Kirill Yukhin  <kirill.yukhin@intel.com>
9244             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9246         * common/config/i386/i386-common.c
9247         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
9248         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
9249         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
9250         (ix86_handle_option): Handle OPT_mavx512bw.
9251         * config/i386/cpuid.h (bit_AVX512BW): Define.
9252         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
9253         set -mavx512bw accordingly.
9254         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9255         OPTION_MASK_ISA_AVX512BW.
9256         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
9257         (ix86_option_override_internal): Define PTA_AVX512BW, handle
9258         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
9259         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
9260         * config/i386/i386.h (TARGET_AVX512BW): Define.
9261         (TARGET_AVX512BW_P(x)): Ditto.
9262         * config/i386/i386.opt: Add mavx512bw.
9264 2014-08-11  Richard Biener  <rguenther@suse.de>
9266         PR tree-optimization/62070
9267         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
9268         Remove SSA checking.
9270 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
9272         * asan.c (asan_check_flags): New enum.
9273         (build_check_stmt_with_calls): Removed function.
9274         (build_check_stmt): Split inlining logic to
9275         asan_expand_check_ifn.
9276         (instrument_derefs): Rename parameter.
9277         (instrument_mem_region_access): Rename parameter.
9278         (instrument_strlen_call): Likewise.
9279         (asan_expand_check_ifn): New function.
9280         (asan_instrument): Remove old code.
9281         (pass_sanopt::execute): Change handling of
9282         asan-instrumentation-with-call-threshold.
9283         (asan_clear_shadow): Fix formatting.
9284         (asan_function_start): Likewise.
9285         (asan_emit_stack_protection): Likewise.
9286         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
9287         Update description.
9288         * internal-fn.c (expand_ASAN_CHECK): New function.
9289         * internal-fn.def (ASAN_CHECK): New internal function.
9290         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
9291         Update description.
9292         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
9293         * tree.c: Small comment fix.
9295 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
9297         * gimple.c (gimple_call_fnspec): Support internal functions.
9298         (gimple_call_return_flags): Use const.
9299         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
9300         * internal-fn.def: Add fnspec information.
9301         * internal-fn.h (internal_fn_fnspec): New function.
9302         (init_internal_fns): Declare new function.
9303         * internal-fn.c (internal_fn_fnspec_array): New global variable.
9304         (init_internal_fns): New function.
9305         * tree-core.h: Update macro call.
9306         * tree.c (build_common_builtin_nodes): Initialize internal fns.
9308 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
9310         * lto-streamer.h (struct output_block::symbol): Change from
9311         struct symtab_node to plain symtab_node.
9312         (referenced_from_this_partition_p): Change first parameter
9313         from struct symtab_node to plain symtab_node.
9315 2014-08-10  Marek Polacek  <polacek@redhat.com>
9317         PR c/51849
9318         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
9320 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
9322         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
9323         DECL correctly; do not give up on types in static storage.
9325 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
9327         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
9329 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
9331         * graphite-isl-ast-to-gimple.c:
9332         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
9334         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
9336 2014-08-08  Guozhi Wei  <carrot@google.com>
9338         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
9340 2014-08-08  Cary Coutant  <ccoutant@google.com>
9342         * dwarf2out.c (get_skeleton_type_unit): Remove.
9343         (output_skeleton_debug_sections): Remove skeleton type units.
9344         (output_comdat_type_unit): Likewise.
9345         (dwarf2out_finish): Likewise.
9347 2014-08-07  Yi Yang  <ahyangyi@google.com>
9349         * predict.c (expr_expected_value_1): Remove the redundant assignment.
9351 2014-08-08  Richard Biener  <rguenther@suse.de>
9353         * lto-streamer.h (struct lto_input_block): Make it a class
9354         with a constructor.
9355         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
9356         (struct lto_function_header, struct lto_simple_header,
9357         struct lto_simple_header_with_strings,
9358         struct lto_decl_header, struct lto_function_header): Make
9359         a simple inheritance hieararchy.  Remove unused fields.
9360         (struct lto_asm_header): Remove.
9361         * lto-streamer-out.c (produce_asm): Adjust.
9362         (lto_output_toplevel_asms): Likewise.
9363         (produce_asm_for_decls): Likewise.
9364         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
9365         * data-streamer-in.c (string_for_index): Likewise.
9366         * ipa-inline-analysis.c (inline_read_section): Likewise.
9367         * ipa-prop.c (ipa_prop_read_section): Likewise.
9368         (read_replacements_section): Likewise.
9369         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
9370         * lto-section-in.c (lto_create_simple_input_block): Likewise.
9371         (lto_destroy_simple_input_block): Likewise.
9372         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
9373         (lto_input_toplevel_asms): Likewise.
9375 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9376             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9377             Anna Tikhonova  <anna.tikhonova@intel.com>
9378             Ilya Tocar  <ilya.tocar@intel.com>
9379             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9380             Ilya Verbin  <ilya.verbin@intel.com>
9381             Kirill Yukhin  <kirill.yukhin@intel.com>
9382             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9384         * common/config/i386/i386-common.c
9385         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
9386         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
9387         (ix86_handle_option): Handle OPT_mavx512dq.
9388         * config/i386/cpuid.h (bit_AVX512DQ): Define.
9389         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
9390         set -mavx512dq accordingly.
9391         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9392         OPTION_MASK_ISA_AVX512DQ.
9393         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
9394         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
9395         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
9396         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
9397         * config/i386/i386.h (TARGET_AVX512DQ): Define.
9398         (TARGET_AVX512DQ_P(x)): Ditto.
9399         * config/i386/i386.opt: Add mavx512dq.
9401 2014-08-08  Richard Biener  <rguenther@suse.de>
9403         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
9404         target_percent, target_percent_s): Export.
9405         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
9406         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
9407         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
9408         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
9409         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
9410         Move to gimple-fold.c.
9411         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
9412         strcat and strcpy.
9413         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
9414         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
9415         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
9416         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
9417         (rewrite_call_expr_array): Remove.
9418         (fold_builtin_sprintf_chk): Likewise.
9419         (fold_builtin_snprintf_chk): Likewise.
9420         (fold_builtin_varargs): Remove handling of sprintf_chk,
9421         vsprintf_chk, snprintf_chk and vsnprintf_chk.
9422         (gimple_fold_builtin_sprintf_chk): Remove.
9423         (gimple_fold_builtin_snprintf_chk): Likewise.
9424         (gimple_fold_builtin_varargs): Likewise.
9425         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
9426         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
9427         * gimple.c (gimple_seq_add_seq_without_update): New function.
9428         * gimple.h (gimple_seq_add_seq_without_update): Declare.
9429         * gimple-fold.c: Include output.h.
9430         (gsi_replace_with_seq_vops): New function, split out from ...
9431         (gimplify_and_update_call_from_tree): ... here.
9432         (replace_call_with_value): New function.
9433         (replace_call_with_call_and_fold): Likewise.
9434         (var_decl_component_p): Moved from builtins.c.
9435         (gimple_fold_builtin_memory_op): Moved from builtins.c
9436         fold_builtin_memory_op and rewritten to GIMPLE.
9437         (gimple_fold_builtin_memset): Likewise.
9438         (gimple_fold_builtin_strcpy): Likewise.
9439         (gimple_fold_builtin_strncpy): Likewise.
9440         (gimple_fold_builtin_strcat): Likewise.
9441         (gimple_fold_builtin_fputs): Likewise.
9442         (gimple_fold_builtin_memory_chk): Likewise.
9443         (gimple_fold_builtin_stxcpy_chk): Likewise.
9444         (gimple_fold_builtin_stxncpy_chk): Likewise.
9445         (gimple_fold_builtin_snprintf_chk): Likewise.
9446         (gimple_fold_builtin_sprintf_chk): Likewise.
9447         (gimple_fold_builtin_strlen): New function.
9448         (gimple_fold_builtin_with_strlen): New function split out from
9449         gimple_fold_builtin.
9450         (gimple_fold_builtin): Change signature and handle
9451         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
9452         here.  Call gimple_fold_builtin_with_strlen.
9453         (gimple_fold_call): Adjust.
9455 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
9457         * calls.c (precompute_arguments): Check
9458          promoted_for_signed_and_unsigned_p and set the promoted mode.
9459         (promoted_for_signed_and_unsigned_p): New function.
9460         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
9461         and set the promoted mode.
9462         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
9463         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
9464         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
9467 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
9469         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
9470         instead of SUBREG_PROMOTED_UNSIGNED_SET.
9471         (expand_call): Likewise.
9472         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
9473         to get promoted mode.
9474         * combine.c (record_promoted_value): Skip > 0 comparison with
9475         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
9476         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
9477         of SUBREG_PROMOTED_UNSIGNED_P.
9478         (convert_modes): Likewise.
9479         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
9480         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
9481         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
9482         SUBREG_PROMOTED_UNSIGNED_SET.
9483         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
9484         instead of SUBREG_PROMOTED_UNSIGNED_SET.
9485         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
9486         SUBREG_PROMOTED_SET.
9487         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
9488         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
9489         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
9490         of SUBREG_PROMOTED_UNSIGNED_P.
9491         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
9492         (SUBREG_PROMOTED_SET): New define.
9493         (SUBREG_PROMOTED_GET): Likewise.
9494         (SUBREG_PROMOTED_SIGN): Likewise.
9495         (SUBREG_PROMOTED_SIGNED_P): Likewise.
9496         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
9497         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
9498         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
9499         instead of SUBREG_PROMOTED_UNSIGNED_GET.
9500         (nonzero_bits1): Skip > 0 comparison with the results as
9501         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
9502         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
9503         of !SUBREG_PROMOTED_UNSIGNED_P.
9504         * simplify-rtx.c (simplify_unary_operation_1): Use new
9505         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
9506         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
9507         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
9508         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
9510 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
9512         * ipa-devirt.c: Include gimple-pretty-print.h
9513         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
9514         further tests.
9515         (decl_maybe_in_construction_p): Fix conditional on cdtor check
9516         (get_polymorphic_call_info): Fix return value
9517         (type_change_info): New sturcture based on ipa-prop
9518         variant.
9519         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
9520         based on ipa-prop variant.
9521         (extr_type_from_vtbl_ptr_store): New function
9522         based on ipa-prop variant.
9523         (record_known_type): New function.
9524         (check_stmt_for_type_change): New function.
9525         (get_dynamic_type): New function.
9526         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
9527         * tree-ssa-pre.c: ipa-utils.h
9528         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
9529         machinery; sanity check with ipa-prop devirtualization.
9530         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
9531         polymorphic flag.
9533 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
9535         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
9536         * alias.c, cfgexpand.c, cgraphbuild.c,
9537         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
9538         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
9539         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
9540         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
9541         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
9542         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9543         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
9544         dse.c, except.c, gengtype.c, gimple-expr.c,
9545         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
9546         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
9547         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
9548         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
9549         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
9550         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
9551         pointer-set.h.
9552         * pointer-set.c: Remove file.
9553         * pointer-set.h: Remove file.
9555 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9557         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
9558         * config/arm/types.md (f_sels, f_seld): Delete.
9560 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9562         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
9563         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
9564         (aarch64_movdi_<mode>high): Likewise.
9565         (aarch64_mov<mode>high_di): Likewise.
9566         (aarch64_movdi_<mode>low): Likewise.
9567         (aarch64_mov<mode>low_di): Likewise.
9568         (aarch64_movtilow_tilow): Likewise.
9569         Add comment explaining usage of fp,simd attributes and of
9570         TARGET_FLOAT and TARGET_SIMD.
9572 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
9573             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9575         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
9576         Use MOVN when one of the half-words is 0xffff.
9578 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
9580         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
9582 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9584         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
9585         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
9586         (rfs_str): String corresponding to RFS_* constants.
9587         (rank_for_schedule_stats_t): New typedef.
9588         (rank_for_schedule_stats): New static variable.
9589         (rfs_result): New static function.
9590         (rank_for_schedule): Track statistics for deciding heuristics.
9591         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
9592         static functions.
9593         (ready_sort): Use them for debug printouts.
9594         (schedule_block): Init statistics state.  Print statistics on
9595         rank_for_schedule decisions.
9597 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9599         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
9601 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
9603         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
9604         constraint.
9606 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
9608         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
9609         function to not conflict.
9610         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
9611         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
9612         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
9613         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
9614         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
9615         of pointer_map.
9617 2014-08-07  Marek Polacek  <polacek@redhat.com>
9619         * fold-const.c (fold_binary_loc): Add folding of
9620         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
9622 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
9624         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
9625         instead of type size.
9626         (ASM_FINISH_DECLARE_OBJECT): Likewise.
9628 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
9630         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
9631         (*thumb1_movqi_insn): Likewise.
9632         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
9634 2014-08-07  Tom de Vries  <tom@codesourcery.com>
9636         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9637         (glibc_2_11_or_earlier): Remove effective-target keywords.
9639 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
9641         * config/arm/arm.c (bdesc_2arg): Fix typo.
9642         (arm_atomic_assign_expand_fenv): Remove The default implementation.
9644 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9646         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
9648 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
9650         PR debug/61923
9651         * haifa-sched.c (advance_one_cycle): Fix dump.
9652         (schedule_block): Don't advance cycle if we are already at the
9653         beginning of the cycle.
9655 2014-08-06  Martin Jambor  <mjambor@suse.cz>
9657         PR ipa/61393
9658         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
9660 2014-08-06  Richard Biener  <rguenther@suse.de>
9662         PR lto/62034
9663         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
9664         SCCs here.
9665         (lto_input_tree): Pop SCCs here.
9667 2014-08-06  Richard Biener  <rguenther@suse.de>
9669         PR tree-optimization/61320
9670         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
9671         handle misaligned loads.
9673 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
9675         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
9676         (aarch64_expand_vec_perm_const): Check for dup before zip.
9678 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9680         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
9681         CONST_INT_P instead of GET_CODE and compare.
9682         (aarch64_select_cc_mode): Likewise.
9683         (aarch64_print_operand): Likewise.
9684         (aarch64_rtx_costs): Likewise.
9685         (aarch64_simd_valid_immediate): Likewise.
9686         (aarch64_simd_check_vect_par_cnst_half): Likewise.
9687         (aarch64_simd_emit_pair_result_insn): Likewise.
9689 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
9691         * gdbhooks.py (find_gcc_source_dir): New helper function.
9692         (class PassNames): New class, locating and parsing passes.def.
9693         (class BreakOnPass): New command "break-on-pass".
9695 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
9697         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
9698         getting olde.
9700 2014-08-05  Richard Biener  <rguenther@suse.de>
9702         PR rtl-optimization/61672
9703         * emit-rtl.h (mem_attrs_eq_p): Declare.
9704         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
9705         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
9706         * cfgcleanup.c (merge_memattrs): Likewise.
9707         Include emit-rtl.h.
9709 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9711         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
9712         rather than singleton vectors.
9713         (vqdmlsls_lane_s32): Likewise.
9715 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9717         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
9718         Use VSDQ_HSI mode iterator.
9719         (aarch64_sqrdmulh_laneq<mode>): Likewise.
9720         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
9721         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
9722         Use BUILTIN_VDQHS macro.
9723         (sqrdmulh_laneq): Likewise.
9724         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
9725         (vqdmlals_laneq_s32): Likewise.
9726         (vqdmlslh_laneq_s16): Likewise.
9727         (vqdmlsls_laneq_s32): Likewise.
9728         (vqdmulhh_laneq_s16): Likewise.
9729         (vqdmulhs_laneq_s32): Likewise.
9730         (vqrdmulhh_laneq_s16): Likewise.
9731         (vqrdmulhs_laneq_s32): Likewise.
9733 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9735         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
9736         (vmuld_laneq_f64): Likewise.
9737         (vmuls_laneq_f32): Likewise.
9738         (vmul_n_f64): Likewise.
9739         (vmuld_lane_f64): Reimplement in C.
9740         (vmuls_lane_f32): Likewise.
9742 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9744         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
9745         to reservation.
9746         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
9748 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9750         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
9751         (rbitsi2): Likewise.
9752         (*arm_rev): Set predicable and predicable_short_it attributes.
9754 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9756         * convert.c (convert_to_integer): Guard transformation to lrint by
9757         -fno-math-errno.
9759 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
9761         * config/aarch64/aarch64-builtins.c
9762         (aarch64_simd_builtin_type_mode): Delete.
9763         (v8qi_UP): Remap to V8QImode.
9764         (v4hi_UP): Remap to V4HImode.
9765         (v2si_UP): Remap to V2SImode.
9766         (v2sf_UP): Remap to V2SFmode.
9767         (v1df_UP): Remap to V1DFmode.
9768         (di_UP): Remap to DImode.
9769         (df_UP): Remap to DFmode.
9770         (v16qi_UP):V16QImode.
9771         (v8hi_UP): Remap to V8HImode.
9772         (v4si_UP): Remap to V4SImode.
9773         (v4sf_UP): Remap to V4SFmode.
9774         (v2di_UP): Remap to V2DImode.
9775         (v2df_UP): Remap to V2DFmode.
9776         (ti_UP): Remap to TImode.
9777         (ei_UP): Remap to EImode.
9778         (oi_UP): Remap to OImode.
9779         (ci_UP): Map to CImode.
9780         (xi_UP): Remap to XImode.
9781         (si_UP): Remap to SImode.
9782         (sf_UP): Remap to SFmode.
9783         (hi_UP): Remap to HImode.
9784         (qi_UP): Remap to QImode.
9785         (aarch64_simd_builtin_datum): Make mode a machine_mode.
9786         (VAR1): Build builtin name.
9787         (aarch64_init_simd_builtins): Remove dead code.
9789 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
9791         * graphite-isl-ast-to-gimple.c:
9792         (set_options): New function.
9793         (scop_to_isl_ast): Add calling of set_options.
9795 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
9797         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
9798         (analyze_iv_to_split_insn): Don't initialize them.
9799         (get_ivts_expr): Removed.
9800         (allocate_basic_variable, insert_base_initialization): Use
9801         SET_SRC instead of *get_ivts_expr.
9802         (split_iv): Use &SET_SRC instead of get_ivts_expr.
9804 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
9806         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
9807         (translate_isl_ast_for_loop): Add checking of the
9808         flag_loop_parallelize_all.
9809         (ast_build_before_for): New function.
9810         (scop_to_isl_ast): Add checking of the
9811         flag_loop_parallelize_all.
9812         * graphite-dependences.c: Move the defenition of the
9813         scop_get_dependences from graphite-optimize-isl.c to this file.
9814         (apply_schedule_on_deps): Add checking of the ux's emptiness.
9815         (carries_deps): Add checking of the x's value.
9816         * graphite-optimize-isl.c: Move the defenition of the
9817         scop_get_dependences to graphite-dependences.c.
9818         * graphite-poly.h: Add declarations of scop_get_dependences
9819         and carries_deps.
9821 2014-08-04  Rohit  <rohitarulraj@freescale.com>
9823         PR target/60102
9824         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
9825         names.
9826         (alt_reg_names): Likewise.
9827         (rs6000_dwarf_register_span): For SPE high registers, replace
9828         dwarf register numbers with GCC hard register numbers.
9829         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
9830         (rs6000_dbx_register_number): For SPE high registers, return dwarf
9831         register number for the corresponding GCC hard register number.
9832         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
9833         newly added GCC hard register numbers for SPE high registers.
9834         (DWARF_FRAME_REGISTERS):  Likewise.
9835         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
9836         (DWARF_FRAME_REGNUM): Likewise.
9837         (FIXED_REGISTERS): Likewise.
9838         (CALL_USED_REGISTERS): Likewise.
9839         (CALL_REALLY_USED_REGISTERS): Likewise.
9840         (REG_ALLOC_ORDER): Likewise.
9841         (enum reg_class): Likewise.
9842         (REG_CLASS_NAMES): Likewise.
9843         (REG_CLASS_CONTENTS): Likewise.
9844         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
9846 2014-08-04  Richard Biener  <rguenther@suse.de>
9848         * gimple-fold.h (gimple_fold_builtin): Remove.
9849         * gimple-fold.c (gimple_fold_builtin): Make static.
9850         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
9851         fold_stmt, not gimple_fold_builtin.
9853 2014-08-04  Martin Liska <mliska@suse.cz>
9855         * cgraph.h (csi_end_p): Removed.
9856         (csi_next): Likewise.
9857         (csi_node): Likewise.
9858         (csi_start): Likewise.
9859         (cgraph_node_in_set_p): Likewise.
9860         (cgraph_node_set_size): Likewise.
9861         (vsi_end_p): Likewise.
9862         (vsi_next): Likewise.
9863         (vsi_node): Likewise.
9864         (vsi_start): Likewise.
9865         (varpool_node_set_size): Likewise.
9866         (cgraph_node_set_nonempty_p): Likewise.
9867         (varpool_node_set_nonempty_p): Likewise.
9868         * cgraphunit.c (cgraph_process_new_functions): vec replaces
9869         cgraph_node_set.
9870         * ipa-inline-transform.c: Likewise.
9871         * ipa-utils.c (cgraph_node_set_new): Removed.
9872         (cgraph_node_set_add): Likewise.
9873         (cgraph_node_set_remove): Likewise.
9874         (cgraph_node_set_find): Likewise.
9875         (dump_cgraph_node_set): Likewise.
9876         (debug_cgraph_node_set): Likewise.
9877         (free_cgraph_node_set): Likewise.
9878         (varpool_node_set_new): Likewise.
9879         (varpool_node_set_add): Likewise.
9880         (varpool_node_set_remove): Likewise.
9881         (varpool_node_set_find): Likewise.
9882         (dump_varpool_node_set): Likewise.
9883         (free_varpool_node_set): Likewise.
9884         (debug_varpool_node_set): Likewise.
9885         * tree-emutls.c (struct tls_var_data):
9886         (emutls_index): Removed.
9887         (emutls_decl): Likewise.
9888         (gen_emutls_addr): Function implementation uses newly added
9889         hash_map<varpool_node *, tls_var_data>.
9890         (clear_access_vars): Likewise.
9891         (create_emultls_var): Likewise.
9892         (ipa_lower_emutls): Likewise.
9893         (reset_access): New function.
9895 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9897         * config/i386/i386.c (ix86_option_override_internal): Add
9898         PTA_RDRND and PTA_MOVBE for bdver4.
9900 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9901             James Greenhalgh  <james.greenhalgh@arm.com>
9903         * doc/md.texi (clrsb): Document.
9904         (clz): Change reference to x into operand 1.
9905         (ctz): Likewise.
9906         (popcount): Likewise.
9908 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9910         PR target/61713
9911         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
9912         move to subtarget in serial version if result is ignored.
9914 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9915             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9917         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
9918         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
9919         (sched_analyze_insn): Update use of try_group_insn to
9920         sched_macro_fuse_insns.
9921         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
9922         arguments that are not conditional jumps.
9924 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9926         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
9927         family information. Handle BTVER2 cpu with cpuid family value.
9929 2014-08-04  Tom de Vries  <tom@codesourcery.com>
9931         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9932         (glibc_2_11_or_earlier): Document effective-target keywords.
9934 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
9936         * ipa-devirt.c (odr_type_warn_count): Add type.
9937         (possible_polymorphic_call_targets): Set it.
9938         (ipa_devirt): Use it.
9940 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
9942         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
9943         Document.
9944         * ipa-devirt.c: Include hash-map.h
9945         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
9946         (clear_speculation): Break out of ...
9947         (get_class_context): ... here; speed up handling obviously useless
9948         speculations.
9949         (odr_type_warn_count, decl_warn_count): New structures.
9950         (final_warning_record): New structure.
9951         (final_warning_records): New static variable.
9952         (possible_polymorphic_call_targets): Cleanup handling of
9953         speculative info; do not build speculation when user do not care;
9954         record info about warnings when asked for.
9955         (add_decl_warning): New function.
9956         (type_warning_cmp): New function.
9957         (decl_warning_cmp): New function.
9958         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
9959         (gate): Enable pass when warnings are requested.
9960         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
9961         options.
9963 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
9965         * hash-map.h (default_hashmap_traits::mark_key_deleted):
9966         Fix cast.
9967         (hash_map::remove): New method.
9968         (hash_map::traverse): New method.
9969         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
9970         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
9971         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
9972         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
9973         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
9974         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
9975         pointer_map.
9977 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
9979         * hash-set.h: new File.
9980         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
9981         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
9982         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
9983         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
9984         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
9985         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
9986         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
9987         varpool.c: Use hash_set instead of pointer_set.
9989 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
9991         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
9993 2014-08-01  Jiong Wang <jiong.wang@arm.com>
9995         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
9996         for frame access when strict_p is false.
9998 2014-08-01  Renlin Li <renlin.li@arm.com>
9999 2014-08-01  Jiong Wang <jiong.wang@arm.com>
10001         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
10002         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
10003         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
10004         Declaration.
10005         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
10006         predicate.
10007         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
10008         aarch64_mem_pair_offset.
10010 2014-08-01  Jiong Wang <jiong.wang@arm.com>
10012         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
10013         offset.
10014         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
10015         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
10017 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
10019         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
10021 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
10023         PR regression/61510
10024         * cgraphunit.c (analyze_functions): Use get_create rather than get
10025         for decls which are clones of abstract functions.
10027 2014-08-01  Martin Liska  <mliska@suse.cz>
10029         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
10030         * ipa-prop.h (count_formal_params): Global function created from static.
10031         * ipa-prop.c (count_formal_params): Likewise.
10032         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
10033         profiles for semantically equivalent functions.
10034         * passes.c (do_per_function): If we load body of a function
10035         during WPA, this condition should behave same.
10036         * varpool.c (ctor_for_folding): More tolerant assert for variable
10037         aliases created during WPA.
10039 2014-08-01  Martin Liska  <mliska@suse.cz>
10041         * doc/invoke.texi (Options That Control Optimization): Documentation
10042         for -foptimize-strlen introduced. Optimization levels default options
10043         fixed.
10045 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
10047         * opts.c (common_handle_option): Handle -fsanitize=alignment.
10048         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
10049         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
10050         type to bool.
10051         * stor-layout.h (min_align_of_type): New prototype.
10052         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
10053         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
10054         check.
10055         * ubsan.c: Include builtins.h.
10056         (ubsan_expand_bounds_ifn): Change return type to bool,
10057         always return true.
10058         (ubsan_expand_null_ifn): Change return type to bool, change
10059         argument to gimple_stmt_iterator *.  Handle both null and alignment
10060         sanitization, take type from ckind argument's type rather than
10061         first argument.
10062         (instrument_member_call): Removed.
10063         (instrument_mem_ref): Remove t argument, add mem and base arguments.
10064         Handle both null and alignment sanitization, don't say whole
10065         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
10066         call instead of 2 argument.
10067         (instrument_null): Adjust instrument_mem_ref caller.  Don't
10068         instrument calls here.
10069         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
10070         like SANITIZE_NULL.
10071         * stor-layout.c (min_align_of_type): New function.
10072         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
10073         Or it into SANITIZE_UNDEFINED.
10074         * doc/invoke.texi (-fsanitize=alignment): Document.
10076 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10078         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
10080 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10082         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
10083         inchash.
10084         (vn_reference_compute_hash): Dito.
10085         (vn_nary_op_compute_hash): Dito.
10086         (vn_phi_compute_hash): Dito.
10087         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
10089 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10091         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
10092         Rename to inchash:add_expr_commutative. Convert to inchash.
10093         (iterative_hash_hashable_expr): Rename to
10094         inchash:add_hashable_expr. Convert to inchash.
10095         (avail_expr_hash): Dito.
10097 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10099         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
10100         Convert to inchash.
10102 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10104         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
10106 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10108         * Makefile.in (OBJS): Add rtlhash.o
10109         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
10110         (loc_checksum): Dito.
10111         (loc_checksum_ordered): Dito.
10112         (hash_loc_operands): Dito.
10113         (hash_locs): Dito.
10114         (hash_loc_list): Dito.
10115         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
10116         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
10117         * rtlhash.c: New file.
10118         * rtlhash.h: New file.
10120 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10122         * inchash.h (inchash): Change inchash class to namespace.
10123         (class hash): ... Rename from inchash.
10124         (add_object): Move from macro to class template.
10125         * lto-streamer-out.c (hash_tree): Change inchash
10126         to inchash::hash.
10127         * tree.c (build_type_attribute_qual_variant): Dito.
10128         (type_hash_list): Dito.
10129         (attribute_hash_list): Dito.
10130         (iterative_hstate_expr): Rename to inchash::add_expr
10131         (build_range_type_1): Change inchash to inchash::hash
10132         and use hash::add_expr.
10133         (build_array_type_1): Dito.
10134         (build_function_type): Dito
10135         (build_method_type_directly): Dito.
10136         (build_offset_type): Dito.
10137         (build_complex_type): Dito.
10138         (make_vector_type): Dito.
10139         * tree.h (iterative_hash_expr): Dito.
10141 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
10143         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
10145 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
10147         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
10148         correct alphabetical position.
10149         (vpaddd_f64): Rewrite using builtins.
10150         (vpaddd_s64): Move to correct alphabetical position.
10151         (vpaddd_u64): New.
10153 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
10155         PR target/61844
10156         * config/sh/sh.c (sh_legitimate_address_p,
10157         sh_legitimize_reload_address): Handle reg+reg address modes when
10158         ALLOW_INDEXED_ADDRESS is false.
10159         * config/sh/predicates.md (general_movsrc_operand,
10160         general_movdst_operand): Likewise.
10162 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
10164         * config/aarch64/aarch64-builtins.c
10165         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
10166         BYTES_BIG_ENDIAN.
10168 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
10170         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
10171         the generated mask based on BYTES_BIG_ENDIAN.
10172         (aarch64_simd_check_vect_par_cnst_half): New.
10173         * config/aarch64/aarch64-protos.h
10174         (aarch64_simd_check_vect_par_cnst_half): New.
10175         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
10176         the check out to aarch64_simd_check_vect_par_cnst_half.
10177         (vect_par_cnst_lo_half): Likewise.
10178         * config/aarch64/aarch64-simd.md
10179         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
10180         (move_hi_quad_<mode>): Always generate a low mask.
10182 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10184         * doc/invoke.texi (AVR Options): Add documentation about
10185         __AVR_DEVICE_NAME__ built-in macro.
10187 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
10189         PR target/61948
10190         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
10191         constraints are satisfied.
10192         (<shift>di3_neon): Likewise.
10194 2014-07-31  Richard Biener  <rguenther@suse.de>
10196         PR tree-optimization/61964
10197         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
10198         by structural equality.
10200 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
10202         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
10203         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
10204         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
10205         New enums.
10206         * gcc.c (sanitize_spec_function): Support new option.
10207         (SANITIZER_SPEC): Remove now redundant check.
10208         * opts.c (common_handle_option): Support new option.
10209         (finish_options): Check for incompatibilities.
10210         * toplev.c (process_options): Split userspace-specific checks.
10212 2014-07-31  Richard Biener  <rguenther@suse.de>
10214         * lto-streamer.h (struct output_block): Remove global.
10215         (struct data_in): Remove labels, num_named_labels and
10216         num_unnamed_labels.
10217         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
10218         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
10220 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
10222         PR c++/60517
10223         * common.opt (-Wreturn-local-addr): Moved from c.opt.
10224         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
10225         (isolate_path): New argument to avoid inserting a trap.
10226         (find_implicit_erroneous_behaviour): Handle returning the address
10227         of a local variable.
10228         (find_explicit_erroneous_behaviour): Likewise.
10230 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
10232         PR lto/61868
10233         * toplev.c (init_random_seed): Move piece of code never called to
10234         set_random_seed.
10235         (set_random_seed): see above.
10237 2014-07-31  Tom de Vries  <tom@codesourcery.com>
10239         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
10241 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
10243         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
10244         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
10246 2014-07-31  Richard Biener  <rguenther@suse.de>
10248         * data-streamer.h (streamer_write_data_stream): Declare here,
10249         renamed from ...
10250         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
10251         * lto-cgraph.c (lto_output_node): Adjust.
10252         (lto_output_varpool_node): Likewise.
10253         * data-streamer-out.c (streamer_string_index): Likewise.
10254         (streamer_write_data_stream, lto_append_block): Move from ...
10255         * lto-section-out.c (lto_output_data_stream,
10256         lto_append_block): ... here.
10258 2014-07-30  Mike Stump  <mikestump@comcast.net>
10260         * configure.ac: Also check for popen.
10261         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
10262         * configure: Regenerate.
10263         * config.in:  Regenerate.
10265 2014-07-30  Martin Jambor  <mjambor@suse.cz>
10267         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
10268         parameter to gimple.
10270 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10272         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
10273         address as second parameter to __tpf_eh_return routine.
10275 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
10277         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
10278         Thumb2.
10280 2014-07-30  Tom Tromey  <tromey@redhat.com>
10282         PR c/59855
10283         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
10284         * doc/extend.texi (Type Attributes): Document designated_init
10285         attribute.
10287 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
10289         * graphite-isl-ast-to-gimple.c:
10290         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
10291         (gcc_expression_from_isl_expression): Pass type to
10292         gcc_expression_from_isl_ast_expr_id.
10294 2014-07-30  Richard Biener  <rguenther@suse.de>
10296         * lto-streamer.h (lto_write_data): New function.
10297         * langhooks.c (lhd_append_data): Do not free block.
10298         * lto-section-out.c (lto_write_data): New function writing
10299         raw data to the current section.
10300         (lto_write_stream): Adjust for langhook semantic change.
10301         (lto_destroy_simple_output_block): Write header directly.
10302         * lto-opts.c (lto_write_options): Write options directly.
10303         * lto-streamer-out.c (produce_asm): Write heaeder directly.
10304         (lto_output_toplevel_asms): Likewise.
10305         (copy_function_or_variable): Copy data directly.
10306         (write_global_references): Output index table directly.
10307         (lto_output_decl_state_refs): Likewise.
10308         (write_symbol): Write data directly.
10309         (produce_symtab): Adjust.
10310         (produce_asm_for_decls): Output header and refs directly.
10312 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
10314         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
10315         to speculative_targets
10316         (get_class_context): Fix handling of contextes without outer type;
10317         avoid matching non-polymorphic types in LTO.
10318         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
10319         parameter to speculative_targetsp; handle speculation.
10320         (dump_possible_polymorphic_call_targets): Update dumping.
10322 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
10324         * common.opt (Wodr): Enable by default.
10326 2014-07-29  Olivier Hainque  <hainque@adacore.com>
10328         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
10330 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
10332         PR bootstrap/61914
10333         * gengtype.c (strtoken): New function.
10334         (create_user_defined_type): Replace strtok with strtoken.
10336 2014-07-29  Nathan Sidwell  <nathan@acm.org>
10338         * gcov-io.c (gcov_var): Make hidden.
10339         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
10340         (gcov_do_dump): Declare.
10341         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
10343 2014-07-29  Martin Jambor  <mjambor@suse.cz>
10345         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
10346         parameter to gimple.
10347         (sra_modify_assign): Likewise.
10349 2014-07-29  Richard Biener  <rguenther@suse.de>
10351         PR middle-end/52478
10352         * expr.c (expand_expr_real_2): Revert last change.
10354 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
10356         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
10357         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
10358         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
10359         call.
10360         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
10361         (contains_type_p): Forward declare.
10362         (polymorphic_call_target_hasher::hash): Hash speculative info.
10363         (polymorphic_call_target_hasher::equal): Compare speculative info.
10364         (get_class_context): Handle speuclation.
10365         (contains_type_p): Update.
10366         (get_polymorphic_call_info_for_decl): Update.
10367         (walk_ssa_copies): Break out from ...
10368         (get_polymorphic_call_info): ... here; set speculative context
10369         before giving up.
10370         * ipa-prop.c (ipa_write_indirect_edge_info,
10371         ipa_read_indirect_edge_info): Stream speculative context.
10372         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
10373         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
10374         SPECULATIVE_MAYBE_DERIVED_TYPE).
10375         (possible_polymorphic_call_targets overriders): Update.
10376         (dump_possible_polymorphic_call_targets overriders): Update.
10377         (dump_possible_polymorphic_call_target_p overriders): Update.
10379 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
10381         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
10382         ipa-devirt path; fix thinko there.
10384 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
10386         * config/i386/i386.c (ix86_return_in_memory): Replace one
10387         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
10389 2014-07-28  Marek Polacek  <polacek@redhat.com>
10391         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
10393 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
10395         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
10396         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
10397         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
10398         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
10399         (USE_LD_AS_NEEDED): Likewise.
10400         (ASM_APP_ON): Likewise.
10401         (ASM_APP_OFF): Likewise.
10402         (TARGET_POSIX_IO): Likewise.
10403         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
10404         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
10405         (USE_LD_AS_NEEDED): Likewise.
10406         (ASM_APP_ON): Likewise.
10407         (ASM_APP_OFF): Likewise.
10408         (TARGET_POSIX_IO): Likewise.
10410 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
10412         PR middle-end/61734
10413         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
10414         operators other than the equality operators.
10416 2014-07-28  Richard Biener  <rguenther@suse.de>
10418         PR middle-end/52478
10419         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
10420         sure to register SImode ones, not only >= word_mode ones.
10421         * expr.c (expand_expr_real_2): When expanding -ftrapv
10422         binops do not use OPTAB_LIB_WIDEN.
10424 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
10426         PR middle-end/61919
10427         * tree-outof-ssa.c (insert_partition_copy_on_edge)
10428         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
10429         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
10430         inserting them in the insn stream.
10432 2014-07-28  Marek Polacek  <polacek@redhat.com>
10434         PR middle-end/61913
10435         * common.opt (Wodr): Add Var.
10437 2014-07-28  Richard Biener  <rguenther@suse.de>
10439         PR tree-optimization/61921
10440         * tree-ssa-structalias.c (create_variable_info_for_1): Check
10441         if there is a varpool node before dereferencing it.
10443 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
10445         * graphite-sese-to-poly.c:
10446         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
10447         id of the pbb), which contains pointer to the pbb1.
10449         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
10451 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
10453         * graphite-isl-ast-to-gimple.c:
10454         (graphite_create_new_guard): New function.
10455         (translate_isl_ast_node_if): New function.
10456         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
10458         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
10460 2014-07-27  Anthony Green  <green@moxielogic.com>
10462         * config.gcc: Add moxie-*-moxiebox* configuration.
10463         * config/moxie/moxiebox.h: New file.
10465 2014-07-26  Andrew Pinski  <apinski@cavium.com>
10467         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
10468         from the read only register.
10470 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
10472         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
10473         as the allocation class if it isn't likely to be spilled.
10475 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
10477         * rtl.h (tls_referenced_p): Declare.
10478         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
10479         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
10480         (mips_cannot_force_const_mem): Use tls_referenced_p.
10481         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
10482         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
10483         instead of pa_tls_referenced_p.
10484         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
10485         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
10486         (pa_legitimate_constant_p): Likewise.
10487         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
10488         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
10489         (rs6000_cannot_force_const_mem, rs6000_emit_move)
10490         (rs6000_address_for_altivec): Use tls_referenced_p instead of
10491         rs6000_tls_referenced_p.
10492         (rs6000_tls_symbol_ref_1): Delete.
10494 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
10496         PR target/44551
10497         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
10498         Optimize inverse of a VEC_CONCAT.
10500 2014-07-25  Xinliang David Li  <davidxl@google.com>
10502         * params.def: New parameter.
10503         * coverage.c (get_coverage_counts): Check new flag.
10504         (coverage_compute_profile_id): Check new flag.
10505         (coverage_begin_function): Check new flag.
10506         (coverage_end_function): Check new flag.
10507         * value-prof.c (coverage_node_map_initialized_p): New function.
10508         (init_node_map): Populate map with all functions.
10509         * doc/invoke.texi: Document new parameter.
10511 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
10512             Richard Biener <rguenther@suse.de>
10514         * lto-streamer-out.c (struct sccs): Turn to ...
10515         (class DFS): ... this one; refactor the DFS walk so it can
10516         be re-done on per-SCC basis.
10517         (DFS::DFS): New constructor.
10518         (DFS::~DFS): New destructor.
10519         (hash_tree): Add new MAP argument holding in-SCC hash values;
10520         remove POINTER_TYPE hashing hack.
10521         (scc_entry_compare): Rename to ...
10522         (DFS::scc_entry_compare): ... this one.
10523         (hash_scc): Rename to ...
10524         (DFS::hash_scc): ... this one; pass output_block instead
10525         of streamer_cache; work harder to get unique and stable SCC
10526         hashes.
10527         (DFS_write_tree): Rename to ...
10528         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
10529         (lto_output_tree): Update.
10531 2014-07-25  Andi Kleen  <ak@linux.intel.com>
10533         * lto-streamer-out.c (hash_tree): Convert to inchash.
10535 2014-07-25  Andi Kleen  <ak@linux.intel.com>
10537         * tree.c (build_type_attribute_qual_variant): Use inchash.
10538         (type_hash_list): Dito.
10539         (attribute_hash_list): Dito
10540         (iterative_hstate_expr): Dito.
10541         (iterative_hash_expr): Dito.
10542         (build_range_type_1): Dito.
10543         (build_array_type_1): Dito.
10544         (build_function_type): Dito.
10545         (build_method_type_directly): Dito.
10546         (build_offset_type): Dito.
10547         (build_complex_type): Dito.
10548         (make_vector_type): Dito.
10549         * tree.h (iterative_hash_expr): Add compat wrapper.
10550         (iterative_hstate_expr): Add.
10552 2014-07-25  Andi Kleen  <ak@linux.intel.com>
10554         * Makefile.in (OBJS): Add inchash.o.
10555         (PLUGIN_HEADERS): Add inchash.h.
10556         * ipa-devirt.c: Include inchash.h.
10557         * lto-streamer-out.c: Dito.
10558         * tree-ssa-dom.c: Dito.
10559         * tree-ssa-pre.c: Dito.
10560         * tree-ssa-sccvn.c: Dito.
10561         * tree-ssa-tail-merge.c: Dito.
10562         * asan.c: Dito.
10563         * tree.c (iterative_hash_hashval_t): Move to ...
10564         (iterative_hash_host_wide_int): Move to ...
10565         * inchash.c: Here. New file.
10566         * tree.h (iterative_hash_hashval_t): Move to ...
10567         (iterative_hash_host_wide_int): Move to ...
10568         * inchash.h: Here. New file.
10570 2014-07-25  Richard Biener  <rguenther@suse.de>
10572         PR middle-end/61762
10573         PR middle-end/61894
10574         * fold-const.c (native_encode_int): Add and handle offset
10575         parameter to do partial encodings of expr.
10576         (native_encode_fixed): Likewise.
10577         (native_encode_real): Likewise.
10578         (native_encode_complex): Likewise.
10579         (native_encode_vector): Likewise.
10580         (native_encode_string): Likewise.
10581         (native_encode_expr): Likewise.
10582         * fold-const.c (native_encode_expr): Add offset parameter
10583         defaulting to -1.
10584         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
10585         (fold_ctor_reference): Handle all reads from tcc_constant
10586         ctors.
10588 2014-07-25  Richard Biener  <rguenther@suse.de>
10590         * tree-inline.c (estimate_move_cost): Mark speed_p argument
10591         as possibly unused.
10593 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10595         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
10597 2014-07-24  Kyle McMartin  <kyle@redhat.com>
10599         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
10601 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10603         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
10604         Add prototype.
10605         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
10606         function.
10607         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
10608         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
10609         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
10611 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10613         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
10614         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
10615         aggregate types.  Instead, *all* aggregate types, except for single-
10616         element or homogeneous float/vector aggregates, are quadword-aligned
10617         if required by their type alignment.  Issue -Wpsabi note when a type
10618         is now treated differently than before.
10620 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10622         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
10623         does not fit fully into floating-point registers, and there is still
10624         space in the register parameter area, use GPRs to pass those parts
10625         of the argument.  Issue -Wpsabi note if any parameter is now treated
10626         differently than before.
10627         (rs6000_arg_partial_bytes): Update.
10629 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
10631         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
10633 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
10635         * rtl.h (target_rtl): Remove lang_dependent_initialized.
10636         * toplev.c (initialize_rtl): Don't use it.  Move previously
10637         "language-dependent" calls to...
10638         (backend_init): ...here.
10639         (lang_dependent_init_target): Don't set lang_dependent_initialized.
10640         Assert that RTL initialization hasn't happend yet.
10642 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
10644         PR rtl-optimization/61629
10645         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
10646         they have already been initialized.
10648 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
10650         PR middle-end/61268
10651         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
10652         DECL_INCOMING_RTL and entry_parm.
10653         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
10654         * calls.c (load_register_parameters): Likewise argument values.
10655         (emit_library_call_value_1, store_one_arg): Likewise argument
10656         save areas.
10657         * config/i386/i386.c (assign_386_stack_local): Likewise the local
10658         stack slot.
10659         * explow.c (validize_mem): Modify the argument in-place.
10661 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10663         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
10664         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
10666 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10668         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
10669         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
10671 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10673         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
10674         (aarch64_save_callee_saves): New parameter "skip_wb".
10675         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
10677 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10679         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
10680         "wb_candidate2".
10681         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
10683 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
10685         * graphite-isl-ast-to-gimple.c:
10686         (graphite_create_new_loop): Add calling of isl_id_free to properly
10687         decrement reference counts.
10689         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
10691 2014-07-24  Martin Liska  <mliska@suse.cz>
10692         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
10693         function used.
10694         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
10695         (rs6000_code_end): Likewise.
10697 2014-07-24  Martin Liska  <mliska@suse.cz>
10699         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
10700         symtab_node funtion used.
10701         (rs6000_xcoff_declare_object_name): Likewise.
10703 2014-07-24  Martin Liska  <mliska@suse.cz>
10705         * cgraphunit.c (compile): Correct function used.
10707 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
10709         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
10710         as non-indexable.
10712 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
10714         PR lto/61802
10715         * varasm.c (bss_initializer_p): Handle offlined ctors.
10716         (align_variable, get_variable_align): Likewise.
10717         (make_decl_one_only): Likewise.
10718         (default_binds_local_p_1): Likewise.
10719         (decl_binds_to_current_def_p): Likewise.
10720         (get_variable_section): Get constructor if it is offlined.
10721         (assemble_variable_contents): Sanity check that the caller
10722         streamed in the ctor in LTO.
10724 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
10726         * graphite-isl-ast-to-gimple.c:
10727         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
10728         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
10729         isl_ast_op_pdiv_r to the different case.
10731         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
10733 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10735         PR middle-end/61876
10736         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
10737         when flag_errno_math is on.
10739 2014-07-24  Martin Liska  <mliska@suse.cz>
10741         * cgraph.h (varpool_node):
10742         (availability get_availability (void)):
10743         created from cgraph_variable_initializer_availability
10744         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
10745         created from: cgraph_variable_initializer_availability
10746         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
10747         (void finalize_named_section_flags (void)):
10748         created from varpool_finalize_named_section_flags
10749         (bool assemble_decl (void)): created from varpool_assemble_decl
10750         (void analyze (void)): created from varpool_analyze_node
10751         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
10752         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
10753         (void remove_initializer (void)): created from varpool_remove_initializer
10754         (tree get_constructor (void)): created from varpool_get_constructor
10755         (bool externally_visible_p (void)): created from varpool_externally_visible_p
10756         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
10757         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
10758         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
10759         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
10760         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
10761         (static bool output_variables (void)): created from varpool_output_variables
10762         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
10763         created from varpool_extra_name_alias
10764         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
10765         (static void dump_varpool (FILE *f)): created from dump_varpool
10766         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
10767         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
10768         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
10769         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
10770         (void assemble_aliases (void)): created from assemble_aliases
10772 2014-07-24  Martin Liska  <mliska@suse.cz>
10774         * cgraph.h (symtab_node):
10775         (void register_symbol (void)): created from symtab_register_node
10776         (void remove (void)): created from symtab_remove_node
10777         (void dump (FILE *f)): created from dump_symtab_node
10778         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
10779         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
10780         (struct ipa_ref *add_reference (symtab_node *referred_node,
10781         enum ipa_ref_use use_type)): created from add_reference 
10782         (struct ipa_ref *add_reference (symtab_node *referred_node,
10783         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
10784         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
10785         gimple stmt)): created from maybe_add_reference
10786         (bool semantically_equivalent_p (symtab_node *target)): created from
10787         symtab_semantically_equivalent_p
10788         (void remove_from_same_comdat_group (void)): created from
10789         remove_from_same_comdat_group
10790         (void add_to_same_comdat_group (symtab_node *old_node)): created from
10791         symtab_add_to_same_comdat_group
10792         (void dissolve_same_comdat_group_list (void)): created from
10793         symtab_dissolve_same_comdat_group_list
10794         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
10795         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
10796         created from symtab_alias_ultimate_target
10797         (inline symtab_node *next_defined_symbol (void)): created from
10798         symtab_next_defined_symbol
10799         (bool resolve_alias (symtab_node *target)): created from
10800         symtab_resolve_alias
10801         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
10802         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
10803         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
10804         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
10805         (void set_section (const char *section)): created from set_section_1 
10806         (enum availability get_availability (void)): created from symtab_node_availability
10807         (void make_decl_local (void)): created from symtab_make_decl_local
10808         (bool real_symbol_p (void)): created from symtab_read_node
10809         (can_be_discarded_p (void)): created from symtab_can_be_discarded
10810         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
10811         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
10812         symtab_in_same_comdat_p;
10813         (bool address_taken_from_non_vtable_p (void)): created from
10814         address_taken_from_non_vtable_p
10815         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
10816         (static void dump_table (FILE *)): created from dump_symtab
10817         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
10818         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
10819         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
10820         symtab_used_from_object_file_p 
10821         (void dump_base (FILE *)): created from dump_symtab_base
10822         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
10823         (void unregister (void)): created from symtab_unregister_node
10824         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
10825         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
10826         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
10827         symtab_nonoverwritable_alias_1
10828         * cgraph.h (cgraph_node):
10829         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
10830         created from cgraph_remove_node_and_inline_clones
10831         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
10832         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
10833         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
10834         (cgraph_node *function_symbol (enum availability *avail = NULL)):
10835         created from cgraph_function_node
10836         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
10837         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
10838         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
10839         created from cgraph_create_clone 
10840         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
10841         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
10842         created from cgraph_create_virtual_clone
10843         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
10844         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
10845         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
10846         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
10847         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
10848         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
10849         created from cgraph_function_version_info
10850         (struct cgraph_function_version_info *insert_new_function_version (void)):
10851         created from insert_new_cgraph_node_version
10852         (struct cgraph_function_version_info *function_version (void)): created from
10853         get_cgraph_node_version
10854         (void analyze (void)): created from analyze_function
10855         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
10856         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
10857         tree real_alias) cgraph_add_thunk
10858         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
10859         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
10860         created from cgraph_function_or_thunk_node
10861         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
10862         created from expand_thunk
10863         (void reset (void)): created from cgraph_reset_node
10864         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
10865         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
10866         (void remove (void)): created from cgraph_remove_node
10867         (void dump (FILE *f)): created from dump_cgraph_node
10868         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
10869         (bool get_body (void)): created from cgraph_get_body
10870         (void release_body (void)): created from cgraph_release_function_body
10871         (void unnest (void)): created from cgraph_unnest_node
10872         (void make_local (void)): created from cgraph_make_node_local
10873         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
10874         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
10875         gcov_type count, int freq)): created from cgraph_create_edge
10876         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
10877         gcov_type count, int freq)): created from cgraph_create_indirect_edge
10878         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
10879         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
10880         created from cgraph_create_edge_including_clones
10881         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
10882         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
10883         (void remove_callers (void)): created from cgraph_node_remove_callers
10884         (void remove_callees (void)): created from cgraph_node_remove_callees
10885         (enum availability get_availability (void)): created from cgraph_function_body_availability
10886         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
10887         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
10888         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
10889         (void call_duplication_hooks (cgraph_node *node2)): created from
10890         cgraph_call_node_duplication_hooks
10891         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
10892         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
10893         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
10894         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
10895         (void call_function_insertion_hooks (void)):
10896         created from cgraph_call_function_insertion_hooks
10897         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
10898         (bool local_p (void)): created from cgraph_local_node
10899         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
10900         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
10901         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
10902         (inline bool only_called_directly_or_aliased_p (void)):
10903         created from cgraph_only_called_directly_or_aliased_p
10904         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
10905         created from cgraph_will_be_removed_from_program_if_no_direct_calls
10906         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
10907         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
10908         (bool can_remove_if_no_direct_calls_p (void)):
10909         created from cgraph_can_remove_if_no_direct_calls_p
10910         (inline bool has_gimple_body_p (void)):
10911         created from cgraph_function_with_gimple_body_p
10912         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
10913         (static void dump_cgraph (FILE *f)): created from dump_cgraph
10914         (static inline void debug_cgraph (void)): created from debug_cgraph
10915         (static void record_function_versions (tree decl1, tree decl2)):
10916         created from record_function_versions
10917         (static void delete_function_version (tree decl)):
10918         created from delete_function_version
10919         (static void add_new_function (tree fndecl, bool lowered)):
10920         created from cgraph_add_new_function
10921         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
10922         (static cgraph_node * create (tree decl)): created from cgraph_create_node
10923         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
10924         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
10925         (static cgraph_node *get_for_asmname (tree asmname)):
10926         created from cgraph_node_for_asm
10927         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
10928         created from cgraph_same_body_alias 
10929         (static bool used_from_object_file_p_worker (cgraph_node *node,
10930         void *): new function
10931         (static bool non_local_p (cgraph_node *node, void *)):
10932         created from cgraph_non_local_node_p_1
10933         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
10934         created from verify_cgraph
10935         (static bool make_local (cgraph_node *node, void *)):
10936         created from cgraph_make_node_local
10937         (static cgraph_node *create_alias (tree alias, tree target)):
10938         created from cgraph_create_function_alias
10939         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
10940         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
10941         created from cgraph_create_edge_1
10942         * cgraph.h (varpool_node):
10943         (void remove (void)): created from varpool_remove_node
10944         (void dump (FILE *f)): created from dump_varpool_node
10946 2014-07-24  Richard Biener  <rguenther@suse.de>
10948         PR ipa/61823
10949         * tree-ssa-structalias.c (create_variable_info_for_1):
10950         Use varpool_get_constructor.
10951         (create_variable_info_for): Likewise.
10953 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10955         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
10956         subtract outgoing area size when restoring stack_pointer_rtx.
10958 2014-07-24  Nick Clifton  <nickc@redhat.com>
10960         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
10961         that operations are taking place in parallel.
10962         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
10964 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
10966         * omp-low.c (extract_omp_for_data): Add missing break statement.
10968 2014-07-24  Richard Biener  <rguenther@suse.de>
10970         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
10971         * tree-inline.c (estimate_move_cost): Add speed_p parameter
10972         and adjust MOVE_RATIO query accordingly.
10973         (estimate_num_insns): Adjust callers.
10974         * ipa-prop.c (ipa_populate_param_decls): Likewise.
10975         * ipa-cp.c (gather_context_independent_values,
10976         estimate_local_effects): Likewise.
10977         * ipa-split.c (consider_split): Likewise.
10979 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
10981         * config/i386/driver-i386.c: Remove names of unused arguments and
10982         unnecessary unused attributes.
10983         * config/i386/host-mingw32.c: Likewise.
10984         * config/i386/i386.c: Likewise.
10985         * config/i386/winnt-stubs.c: Likewise.
10986         * config/i386/winnt.c: Likewise.
10988 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10990         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
10991         (aarch64_gen_loadwb_pair): New helper function.
10992         (aarch64_expand_epilogue): Simplify code using new helper functions.
10993         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
10995 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
10997         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
10998         (aarch64_gen_storewb_pair): New helper function.
10999         (aarch64_expand_prologue): Simplify code using new helper functions.
11000         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
11002 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11004         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
11005         Rename to aarch64_save_callee_saves, remove restore code.
11006         (aarch64_restore_callee_saves): New function.
11008 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11010         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
11011         (aarch64_save_callee_saves): New function to handle reg save
11012         for both core and vectore regs.
11014 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11016         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
11017         (aarch64_gen_store_pair): New helper function.
11018         (aarch64_save_or_restore_callee_save_registers)
11019         (aarch64_save_or_restore_fprs): Use new helper functions.
11021 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11023         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
11024         (aarch64_save_or_restore_callee_save_registers)
11025         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
11027 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11029         * config/aarch64/aarch64.c
11030         (aarch64_save_or_restore_callee_save_registers)
11031         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
11033 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11035         * config/aarch64/aarch64.c
11036         (aarch64_save_or_restore_callee_save_registers)
11037         (aarch64_save_or_restore_fprs): Remove 'increment'.
11039 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11041         * config/aarch64/aarch64.c
11042         (aarch64_save_or_restore_callee_save_registers)
11043         (aarch64_save_or_restore_fprs): Use register offset in
11044         cfun->machine->frame.reg_offset.
11046 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11048         * config/aarch64/aarch64.c
11049         (aarch64_save_or_restore_callee_save_registers)
11050         (aarch64_save_or_restore_fprs): Remove base_rtx.
11052 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11054         * config/aarch64/aarch64.c
11055         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
11056         to 'start_offset'.  Remove local variable 'start_offset'.
11058 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11060         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
11061         type to HOST_WIDE_INT.
11063 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11065         * config/aarch64/aarch64.c (aarch64_expand_prologue)
11066         (aarch64_save_or_restore_fprs)
11067         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
11069 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11071         * config/arm/t-rtems-eabi: Add
11072         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
11073         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
11074         mbig-endian/mthumb/march=armv7-r, and
11075         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
11076         multilibs.
11078 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11079             Chris Johns <chrisj@rtems.org>
11080             Joel Sherrill <joel.sherrill@oarcorp.com>
11082         * config.gcc: Add nios2-*-rtems*.
11083         * config/nios2/rtems.h: New file.
11084         * gcc/config/nios2/t-rtems: New file.
11086 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
11088         PR target/61396
11089         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
11090         constant numbers, not general constants.
11091         (rs6000_expand_vector_init): Ditto.
11093 2014-07-23  Nathan Sidwell  <nathan@acm.org>
11095         * gcov-tool.c (gcov_list): Declare here.
11096         (set_gcov_list): Remove.
11097         (gcov_output_files): Set gcov_list directly.
11099 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
11101         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
11103 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11105         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
11106         callee-saved registers are available for padding purpose
11107         and r3 is not mandatory, then prefer use those callee-saved
11108         instead of r3.
11110 2014-07-23  Richard Biener  <rguenther@suse.de>
11112         * params.def (PARAM_MAX_COMBINE_INSNS): New.
11113         * combine.c: Include statistics.h and params.h.
11114         (combine_instructions): Guard three and four insn combines
11115         with max-combine-insns value.  Record statistics for combines
11116         performed.
11117         * doc/invoke.texi (max-combine-insns): Document new param.
11119 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
11121         * graphite-isl-ast-to-gimple.c:
11122         (translate_isl_ast_node_block): New function.
11123         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
11125         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
11126         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
11128 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
11130         * graphite-isl-ast-to-gimple.c:
11131         (get_max_schedule_dimensions): New function.
11132         (extend_schedule): Likewise.
11133         (generate_isl_schedule): Add calling of extend_schedule and
11134         get_max_schedule_dimensions.
11136 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11138         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
11139         (case UNSPEC): Handle UNSPEC_RBIT.
11141 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11143         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
11144         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
11146 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11148         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
11150 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
11152         * graphite-isl-ast-to-gimple.c:
11153         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
11154         (ivs_params_clear):
11155         (build_iv_mapping): New function.
11156         (translate_isl_ast_node_user): Likewise.
11157         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
11159         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
11160         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
11161         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
11163 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
11165         PR target/55701
11166         * config/arm/arm.md (setmem): New pattern.
11167         * config/arm/arm-protos.h (struct tune_params): New fields.
11168         (arm_gen_setmem): New prototype.
11169         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
11170         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
11171         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
11172         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
11173         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
11174         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
11175         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
11176         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
11177         (arm_const_inline_cost): New function.
11178         (arm_block_set_max_insns): New function.
11179         (arm_block_set_non_vect_profit_p): New function.
11180         (arm_block_set_vect_profit_p): New function.
11181         (arm_block_set_unaligned_vect): New function.
11182         (arm_block_set_aligned_vect): New function.
11183         (arm_block_set_unaligned_non_vect): New function.
11184         (arm_block_set_aligned_non_vect): New function.
11185         (arm_block_set_vect, arm_gen_setmem): New functions.
11187 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
11189         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
11191 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
11193         PR target/61855
11194         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
11195         out of #ifdef __OPTIMIZE__.
11197 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
11199         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
11200         different trapping status if -fnon-call-exceptions is enabled.
11202 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
11204         * expr.c (store_field): Handle VOIDmode for calls that return values
11205         in multiple locations.
11207 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11209         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
11210         (altivec_vsldoi_<mode>): Likewise.
11212 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
11214         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
11215         to the number of characters in the line.
11217 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
11219         * graphite-isl-ast-to-gimple.c: Add using of
11220         build_nonstandard_integer_type instead of int128_integer_type_node.
11222 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
11224         * toplev.c (output_stack_usage): Adjust the location of the warning.
11226 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
11228         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
11229         (*membar_storeload): Disable for LEON3.
11231 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11233         PR rtl-optimization/61461
11234         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
11236 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
11238         PR target/61794
11239         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
11240         Fix instruction constraint.
11241         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
11243 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
11245         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
11247 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
11249         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
11250         GNU coding standards.
11251         (nds32_register_move_cost): Likewise.
11252         (nds32_memory_move_cost): Likewise.
11253         (nds32_address_cost): Likewise.
11255 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11257         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
11259 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
11261         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
11262         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
11263         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
11264         (HAVE_sync_compare_and_swapqi): Define.
11265         (HAVE_sync_compare_and_swaphi): Likewise.
11266         (HAVE_sync_compare_and_swapsi): Likewise.
11268 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
11270         * config/mips/p5600.md: Add missing cpu tests.
11272 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11274         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
11275         (vmla_f64): Likewise.
11276         (vfms_f64): Likewise.
11277         (vmls_f64): Likewise.
11279 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11281         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
11282         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
11284 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11286         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
11287         (vmlal_high_lane_s32): Likewise.
11288         (vmlal_high_lane_u16): Likewise.
11289         (vmlal_high_lane_u32): Likewise.
11290         (vmlsl_high_lane_s16): Likewise.
11291         (vmlsl_high_lane_s32): Likewise.
11292         (vmlsl_high_lane_u16): Likewise.
11293         (vmlsl_high_lane_u32): Likewise.
11295 2014-07-17  Terry Guo  <terry.guo@arm.com>
11297         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
11298         (alus_reg): Renamed to alus_sreg.
11299         * config/arm/arm-fixed.md: Change type of non-dsp instructions
11300         from alu_reg to alu_sreg.  Change type of dsp instructions from
11301         alu_reg to alu_dsp_reg.
11302         * config/arm/thumb1.md: Likewise.
11303         * config/arm/thumb2.md: Likewise.
11304         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
11305         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
11306         with alu_sreg and alus_sreg.
11307         * config/arm/arm1026ejs.md (alu_op): Likewise.
11308         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11309         * config/arm/arm926ejs.md (9_alu_op): Likewise.
11310         * config/arm/fa526.md (526_alu_op): Likewise.
11311         * config/arm/fa606te.md (606te_alu_op): Likewise.
11312         * config/arm/fa626te.md (626te_alu_op): Likewise.
11313         * config/arm/fa726te.md (726te_alu_op): Likewise.
11314         * config/arm/fmp626.md (mp626_alu_op): Likewise.
11315         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
11316         alu_sreg, alu_dsp_reg and alus_sreg.
11317         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11318         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11319         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11320         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
11321         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11322         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11323         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11324         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11325         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
11326         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
11327         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
11328         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
11329         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
11330         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
11331         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
11332         alus_reg to alus_sreg.
11334 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
11336         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
11337         infinity format.
11339 2014-07-17  Richard Biener  <rguenther@suse.de>
11341         PR rtl-optimization/61801
11342         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
11343         don't set reg_pending_barrier if it appears in a debug-insn.
11345 2014-07-16  DJ Delorie  <dj@redhat.com>
11347         * config/rx/rx.c (rx_option_override): Fix alignment values.
11348         (rx_align_for_label): Likewise.
11350 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
11352         PR target/61737.
11353         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
11354         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11355         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
11356         functions.
11357         (cris_print_index, cris_print_operand, cris_constant_index_p)
11358         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
11359         (cris_address_cost): Ditto last CONSTANT_P.
11360         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
11361         callers changed.  Yield cris_offsettable_symbol for non-PIC
11362         constant symbolic expressions including labels.  Yield cris_unspec
11363         for all unspecs.
11364         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
11365         target to pic_offset_table_rtx for calls that will likely go
11366         through PLT, const0_rtx when they can't.  All callers changed.
11367         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
11368         symbolic expressions to be PICified.  Remove second, redundant,
11369         assert on can_create_pseudo_p returning non-zero.  Use
11370         replace_equiv_address_nv, not replace_equiv_address, for final
11371         operand update.
11372         * config/cris/cris.md ("movsi"): Move variable t to pattern
11373         toplevel. Adjust assert for new cris_symbol_type member.  Use
11374         CONSTANT_P instead of CONSTANT_ADDRESS_P.
11375         ("*movsi_internal") <case 9>: Make check for valid unspec operands
11376         for lapc stricter.
11377         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
11378         ("call", "call_value"): Use second incoming operand as a marker
11379         for pic-offset-table-register being used.
11380         ("*expanded_call_non_v32", "*expanded_call_v32")
11381         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
11382         second incoming operand to CALL, match cris_call_type_marker.
11383         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
11384         ("*expanded_call_side"): Ditto.  Fix typo in comment.
11385         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
11386         CONSTANT_P.
11387         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
11388         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
11389         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
11390         users changed.  Add members cris_offsettable_symbol and cris_unspec.
11391         (cris_symbol_type): Rename from cris_pic_symbol_type.
11392         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
11393         just CONSTANT_P.
11394         * config/cris/cris-protos.h (cris_symbol_type_of,
11395         cris_expand_pic_call_address): Adjust prototypes.
11396         (cris_legitimate_constant_p): New prototype.
11398         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
11399         an existing tmake_file.  Don't add t-slibgcc and t-linux.
11401 2014-07-17  Jason Merrill  <jason@redhat.com>
11403         PR c++/61623
11404         * symtab.c (symtab_remove_from_same_comdat_group): Also
11405         set_comdat_group to NULL_TREE.
11406         (verify_symtab): Fix diagnostic.
11408 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
11410         PR target/61662
11411         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
11413 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
11415         Support location tracking for built-in macro tokens
11416         * input.h (is_location_from_builtin_token): New function declaration.
11417         * input.c (is_location_from_builtin_token): New function definition.
11418         * toplev.c (general_init): Tell libcpp what the pre-defined
11419         spelling location for built-in tokens is.
11421 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
11423         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
11424         on the FUNCTION_DECL.
11426 2014-07-16  Richard Biener  <rguenther@suse.de>
11428         PR other/61782
11429         * doc/extend.texi (always_inline): Clarify.
11431 2014-07-15  Eric Christopher  <echristo@gmail.com>
11433         * doc/invoke.texi (Link Options): Document -z option.
11435 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
11437         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
11438         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
11440 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
11442         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
11444 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
11446         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
11447         varpool_assemble_decl.
11448         * varpool.c (varpool_assemble_decl): Assert that node->definition is
11449         true.
11451 2014-07-15  Michael Matz  <matz@suse.de>
11453         PR rtl-optimization/61772
11454         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
11456 2014-07-15  Richard Biener  <rguenther@suse.de>
11458         * opts.c (default_options_table): Disable bit-ccp at -Og.
11460 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
11462         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
11464 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
11466         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
11467         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
11468         call langhook for unknown declaration.
11469         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
11470         * tree.h (DECL_ARGUMENTS): Update.
11471         * print-tree.c (print_node): Update.
11472         * tree-core.h (tree_decl_non_common): Remove arguments.
11473         (tree_function_decl): Add arguments.
11475 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
11477         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
11479 2014-07-14  Richard Biener  <rguenther@suse.de>
11481         PR tree-optimization/61779
11482         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
11483         simplifying a condition.
11485 2014-07-14  Richard Biener  <rguenther@suse.de>
11487         * builtins.c (c_strlen): Make only_value == 2 really only
11488         affect warning generation.
11490 2014-07-14  Richard Biener  <rguenther@suse.de>
11492         PR tree-optimization/61757
11493         PR tree-optimization/61783
11494         PR tree-optimization/61787
11495         * tree-ssa-dom.c (record_equality): Revert canonicalization
11496         change and add comment.
11497         (propagate_rhs_into_lhs): Revert previous fix, removing
11498         loop depth restriction again.
11500 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11502         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
11503         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11504         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11505         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
11506         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11507         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11508         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11510 2014-07-14  Richard Biener  <rguenther@suse.de>
11512         * cgraph.h (decl_in_symtab_p): Make inline.
11514 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
11516         PR middle-end/61294
11517         * doc/invoke.texi (-Wmemset-transposed-args): Document.
11519         PR target/61656
11520         * config/i386/i386.c (classify_argument): Don't merge classes above
11521         number of words.
11523 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
11525         * cgraph.h (symtab_node): Add nonzero_address.
11526         (decl_in_symtab_p): Break out from ...
11527         (symtab_get_node): ... here.
11528         * fold-const.c: Include cgraph.h
11529         (tree_single_nonzero_warnv_p): Use symtab to determine
11530         if symbol is non-zero.
11531         * symtab.c (symtab_node::nonzero_address): New method.
11533 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
11535         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
11536         forgotten in previous commit.
11538 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
11540         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
11541         on builtin types.
11542         * ipa-devirt.c: Include stor-layout.h and intl.h
11543         (odr_subtypes_equivalent_p): New function.
11544         (warn_odr): New function.
11545         (warn_type_mismatch): New function.
11546         (odr_types_equivalent_p): New function.
11547         (add_type_duplicate): Use it.
11548         * common.opt (Wodr): New flag.
11549         * doc/invoke.texi (Wodr): Document new warning.
11551 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
11553         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
11554         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
11555         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
11556         (varpool_get_constructor): Push CTORS_IN timevar.
11557         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
11559 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
11561         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
11562         Remove VOID_FTYPE_PUSHORT.
11563         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
11564         Change code to USHORT_FTYPE_VOID.
11565         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
11566         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
11567         (ix86_atomic_assign_expand_fenv): Update for
11568         __builtin_ia32_fnstsw changes.
11569         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
11570         (fnstsw): Change operand 0 to nonimmediate operand.
11572 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
11574         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
11575         (varpool_get_constructor): New function.
11576         (varpool_ctor_useable_for_folding_p): Break out from ...
11577         (ctor_for_folding): ... here; use varpool_get_constructor.
11578         (varpool_assemble_decl): Likewise.
11579         * lto-streamer.h (struct output_block): Turn cgraph_node
11580         to symbol filed.
11581         (lto_input_variable_constructor): Declare.
11582         * ipa-visibility.c (function_and_variable_visibility): Use
11583         varpool_get_constructor.
11584         * cgraph.h (varpool_get_constructor): Declare.
11585         (varpool_ctor_useable_for_folding_p): New function.
11586         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
11587         parameter; return error_mark_node for non-trivial constructors.
11588         (lto_write_tree_1, DFS_write_tree): Update use of
11589         get_symbol_initial_value.
11590         (output_function): Update initialization of symbol.
11591         (output_constructor): New function.
11592         (copy_function): Rename to ..
11593         (copy_function_or_variable): ... this one; handle vars too.
11594         (lto_output): Output variable sections.
11595         * lto-streamer-in.c (input_constructor): New function.
11596         (lto_read_body): Rename from ...
11597         (lto_read_body_or_constructor): ... this one; handle vars too.
11598         (lto_input_variable_constructor): New function.
11599         * ipa-prop.c (ipa_prop_write_jump_functions,
11600         ipa_prop_write_all_agg_replacement): Update.
11601         * lto-cgraph.c (compute_ltrans_boundary): Use it.
11602         (output_cgraph_opt_summary): Set symbol to NULL.
11604 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
11606         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
11607         non-polymorphic types.
11608         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
11609         * ipa-devirt.c (types_same_for_odr): Do not explode when one
11610         of types is not polymorphic.
11612 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
11614         * lra-constraints.c (remove_inheritance_pseudos): Process
11615         destination pseudo too.
11617 2014-07-11  Rong Xu  <xur@google.com>
11619         * gcov-tool.c (gcov_output_files): Fix build error introduced in
11620         commit r212448.
11622 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11624         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
11625         * config/avr/avr-devices.c (AVR_MCU): Same.
11626         (avr_mcu_types): add text start value to end of device list.
11627         * config/avr/avr-mcus.def: Add text section start for all devices.
11628         (ata5782): Add new avr5 device.
11629         (ata5831): Same.
11630         * config/avr/avr-tables.opt: Regenerate.
11631         * config/avr/avr.h: Add declaration for text section start handler.
11632         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
11633         SPEC functions.
11634         (LINK_SPEC): Include text section start handler to linker spec.
11635         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
11636         pass -Ttext option to linker if the text section start for the device
11637         is not zero.
11638         * config/avr/t-multilib: Regenerate.
11639         * doc/avr-mmcu.texi: Regenerate.
11641 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
11643         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
11644         * config/rs6000/aix52.h (LINK_SPEC): Same.
11645         * config/rs6000/aix53.h (LINK_SPEC): Same.
11646         * config/rs6000/aix61.h (LINK_SPEC): Same.
11647         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
11649 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
11651         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
11652         (graphite_verify): New function.
11653         (ivs_params_clear): New function.
11654         (gcc_expression_from_isl_ast_expr_id): New function.
11655         (gcc_expression_from_isl_expr_int): New function.
11656         (binary_op_to_tree): New function.
11657         (ternary_op_to_tree): New function.
11658         (unary_op_to_tree): New function.
11659         (nary_op_to_tree): New function.
11660         (gcc_expression_from_isl_expr_op): New function.
11661         (gcc_expression_from_isl_expression): New function.
11662         (graphite_create_new_loop): New function.
11663         (translate_isl_ast_for_loop): New function.
11664         (get_upper_bound): New function.
11665         (graphite_create_new_loop_guard): New function.
11666         (translate_isl_ast_node_for): New function.
11667         (translate_isl_ast): New function.
11668         (add_parameters_to_ivs_params): New function.
11669         (scop_to_isl_ast): New parameter ip.
11670         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
11672 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
11674         * config/xtensa/predicates.md (call expander): Update for
11675         DECL_SECTION_NAME being string.
11677 2014-07-11  Richard Biener  <rguenther@suse.de>
11679         PR middle-end/61473
11680         * builtins.c (fold_builtin_memory_op): Inline memory moves that
11681         can be implemented with a single load followed by a single store.
11682         (c_strlen): Only warn when only_value is not 2.
11684 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
11686         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
11688 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
11690         PR target/61561
11691         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
11692         (*movhi_bytes): Likewise.
11693         (*arm_movqi_insn): Likewise.
11695 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
11697         PR target/56858
11698         * config/alpha/alpha.c: Include tree-pass.h, context.h
11699         and pass_manager.h.
11700         (pass_data_handle_trap_shadows): New pass.
11701         (pass_handle_trap_shadows::gate): New pass gate function.
11702         (make_pass_handle_trap_shadows): New function.
11703         (rest_of_handle_trap_shadows): Ditto.
11705         (alpha_align_insns_1): Rename from alpha_align_insns.
11706         (pass_data_align_insns): New pass.
11707         (pass_align_insns::gate): New pass gate function.
11708         (make_pass_aling_insns): New function.
11709         (rest_of_align_insns): Ditto.
11710         (alpha_align_insns): Ditto.
11712         (alpha_option_override): Declare handle_trap_shadows info
11713         and align_insns_info.  Register handle_trap_shadows and align_insns
11714         passes here.
11715         (alpha_reorg): Do not call alpha_trap_shadows and
11716         alpha_align_insn from here.
11718         (alpha_pad_function_end): Do not skip BARRIERs.
11720 2014-07-10  Rong Xu  <xur@google.com>
11722         Add gcov-tool: an offline gcda profile processing tool support.
11723         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
11724         (gcov_is_error): Ditto.
11725         (gcov_read_string): Ditto.
11726         (gcov_read_sync): Ditto.
11727         * gcov-io.h: Move counter defines to gcov-counter.def.
11728         * gcov-dump.c (tag_counters): Use gcov-counter.def.
11729         * coverage.c: Ditto.
11730         * gcov-tool.c: Offline gcda profile processing tool.
11731         (unlink_gcda_file): Remove one gcda file.
11732         (unlink_profile_dir): Remove gcda files from the profile path.
11733         (gcov_output_files): Output gcda files to an output dir.
11734         (profile_merge): Merge two profiles in directory.
11735         (print_merge_usage_message): Print merge usage.
11736         (merge_usage): Print merge usage and exit.
11737         (do_merge): Driver for profile merge sub-command.
11738         (profile_rewrite): Rewrite profile.
11739         (print_rewrite_usage_message): Print rewrite usage.
11740         (rewrite_usage): Print rewrite usage and exit.
11741         (do_rewrite): Driver for profile rewrite sub-command.
11742         (print_usage): Print gcov-info usage and exit.
11743         (print_version): Print gcov-info version.
11744         (process_args): Process arguments.
11745         (main): Main routine for gcov-tool.
11746         * Makefile.in: Build and install gcov-tool.
11747         * gcov-counter.def: New file split from gcov-io.h.
11748         * doc/gcc.texi: Include gcov-tool.texi.
11749         * doc/gcov-tool.texi: Document for gcov-tool.
11751 2014-07-10  Richard Biener  <rguenther@suse.de>
11753         PR tree-optimization/61757
11754         * tree-ssa-dom.c (loop_depth_of_name): Restore.
11755         (propagate_rhs_into_lhs): Revert part of last change.
11757 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
11759         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
11760         FUNCTION_DECLs.
11762 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
11764         PR middle-end/53590
11765         * function.c (allocate_struct_function): Revert r188667 change.
11767         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
11769 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
11771         * doc/install.texi: Remove links to defunct package providers for
11772         Solaris.
11774 2014-07-09  Tom de Vries  <tom@codesourcery.com>
11776         * final.c (get_call_fndecl): Declare.
11777         (self_recursive_call_p): New function.
11778         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
11780 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11782         * ipa-devirt.c (record_node): Walk through aliases.
11784 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11786         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
11788 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11790         Revert:
11791         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
11793 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11795         * ipa-visibility.c (function_and_variable_visibility): Remove
11796         temporary hack disabling local aliases on AIX.
11798 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11800         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
11801         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
11803 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11805         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
11806         * rs6000/rs6000.c: Inline output of .set instruction.
11807         (declare_alias_data): New struct.
11808         (rs6000_declare_alias): New function.
11809         (rs6000_xcoff_declare_function_name): Use it.
11810         (rs6000_xcoff_declare_object_name): New function.
11811         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
11812         (ASM_OUTPUT_DEF): Turn to empty definition.
11814 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
11816         PR bootstrap/61679
11817         * hash-table.h: use hash_table::value_type instead of
11818         Descriptor::value_type in the return types of several methods.
11820 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
11822         * tree-pass.h (pass_data): Remove has_execute member.
11823         * passes.c (execute_one_pass): Don't check pass->has_execute.
11824         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
11825         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
11826         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
11827         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
11828         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
11829         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
11830         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
11831         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
11832         gimple-low.c, gimple-ssa-isolate-paths.c,
11833         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
11834         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
11835         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
11836         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
11837         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
11838         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
11839         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
11840         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
11841         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
11842         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
11843         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
11844         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11845         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11846         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11847         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
11848         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
11849         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
11850         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11851         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11852         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
11853         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
11854         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
11855         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
11856         web.c: Remove initializer for pass_data::has_execute.
11858 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
11860         * graphite-htab.h: Use hash_map instead of hash_table.
11861         * graphite-clast-to-gimple.c: Adjust.
11862         * passes.c: Use hash_map instead of hash_table.
11863         * sese.c: Likewise.
11864         * sese.h: Remove now unused code.
11866 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
11868         PR target/61599
11869         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
11870         than zero.
11872 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
11874         PR rtl-optimization/61673
11875         * combine.c (simplify_comparison): Test just mode's sign bit
11876         in tmode rather than the sign bit and any bits above it.
11878 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
11880         * graphite-isl-ast-to-gimple.c (generate_isl_context):
11881         Add __isl_give to the declaration.
11882         (generate_isl_schedule): Likewise.
11883         (scop_to_isl_ast): Likewise.
11885 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11887         * config/arm/arm.c (cortexa5_extra_costs): New table.
11888         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
11890 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
11892         PR tree-optimization/61725
11893         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
11894         range, use range_includes_zerop_p instead of integer_zerop on
11895         vr0->min, only use log2 of max if min is not negative.
11897 2014-07-08  Richard Biener  <rguenther@suse.de>
11899         * tree-ssa-dom.h (loop_depth_of_name): Remove.
11900         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
11901         restriction on loop depth difference.
11902         (record_equality): Likewise.
11903         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
11904         (loop_depth_of_name): Remove.
11905         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
11906         restriction on loop depth difference.
11907         (init_copy_prop): Likewise.
11909 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11911         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
11912         parameter.
11913         (walk_aliased_vdefs): Likewise.
11914         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
11915         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
11916         (detect_type_change_from_memory_writes): Check if entry was reached.
11918 2014-07-08  Richard Biener  <rguenther@suse.de>
11920         PR tree-optimization/61681
11921         * tree-ssa-structalias.c (find_what_var_points_to): Expand
11922         NONLOCAL inside ESCAPED.
11924 2014-07-08  Richard Biener  <rguenther@suse.de>
11926         PR tree-optimization/61680
11927         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11928         Handle properly all read-write dependences with group accesses.
11930 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
11932         PR tree-optimization/61576
11933         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
11934         block containing reduction statement is predecessor of phi basi block.
11936 2014-07-08  Marek Polacek  <polacek@redhat.com>
11938         PR c/60226
11939         * fold-const.c (round_up_loc): Change the parameter type.
11940         Remove assert.
11941         * fold-const.h (round_up_loc): Adjust declaration.
11942         * stor-layout.c (finalize_record_size): Check for too large types.
11944 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
11946         * symtab.c: Include calls.h.
11947         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
11949 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
11951         * config/rs6000/rs6000.c (output_vec_const_move): Handle
11952         little-endian code generation.
11953         * config/rs6000/spe.md (spe_evmergehi): Rename to...
11954         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
11955         (spe_evmergehilo): Rename to...
11956         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
11957         (spe_evmergelo): Rename to...
11958         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
11959         (spe_evmergelohi): Rename to...
11960         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
11961         (spe_evmergehi, spe_evmergehilo): New expanders.
11962         (spe_evmergelo, spe_evmergelohi): Likewise.
11963         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
11964         (*frob_tf_ti): Likewise.
11965         (*frob_<mode>_di_2): Likewise.
11966         (*frob_tf_di_8_2): Likewise.
11967         (*frob_di_<mode>): Likewise.
11968         (*frob_ti_tf): Likewise.
11969         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
11970         (*frob_ti_<mode>_8_2): Likewise.
11971         (*frob_ti_tf_2): Likewise.
11972         (mov_si<mode>_e500_subreg0): Rename to...
11973         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
11974         endianness only.
11975         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
11976         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
11977         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
11978         the big endianness only.
11979         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
11980         (*mov_si<mode>_e500_subreg0_2): Rename to...
11981         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
11982         big big endianness only.
11983         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
11984         (*mov_si<mode>_e500_subreg4): Rename to...
11985         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
11986         endianness only.
11987         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
11988         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
11989         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
11990         the big endianness only.
11991         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
11992         pattern.
11993         (*mov_si<mode>_e500_subreg4_2): Rename to...
11994         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
11995         endianness only.
11996         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
11997         (*mov_sitf_e500_subreg8): Rename to...
11998         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
11999         endianness only.
12000         (*mov_sitf_e500_subreg8_le): New instruction pattern.
12001         (*mov_sitf_e500_subreg8_2): Rename to...
12002         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
12003         endianness only.
12004         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
12005         (*mov_sitf_e500_subreg12): Rename to...
12006         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
12007         endianness only.
12008         (*mov_sitf_e500_subreg12_le): New instruction pattern.
12009         (*mov_sitf_e500_subreg12_2): Rename to...
12010         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
12011         endianness only.
12012         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
12014 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
12016         * asan.c (instrument_strlen_call): Do not instrument first byte
12017         in strlen if already instrumented.
12019 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12021         * config/arm/arm.opt (mwords-little-endian): Delete.
12022         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
12023         of TARGET_LITTLE_WORDS.
12024         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
12025         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
12026         warning.
12027         * doc/invoke.texi: Remove references to -mwords-little-endian.
12029 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
12031         * expmed.c (struct init_expmed_rtl): Change all fields but
12032         pow2 and cint from struct rtx_def to rtx.
12033         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
12034         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
12035         at the end again.
12037 2014-07-06  Marek Polacek  <polacek@redhat.com>
12039         PR c/6940
12040         * doc/invoke.texi: Document -Wsizeof-array-argument.
12042 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
12044         * wide-int.h (wide_int_storage): Change declaration from struct
12045         to class.
12047 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
12049         * cgraph.c (cgraph_create_indirect_edge): Update call of
12050         get_polymorphic_call_info.
12051         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
12052         (possible_polymorphic_call_targets): Add parameter call.
12053         (decl_maybe_in_construction_p): New predicate.
12054         (get_polymorphic_call_info): Add parameter call;
12055         use decl_maybe_in_construction_p.
12056         * gimple-fold.c (fold_gimple_assign): Update use of
12057         possible_polymorphic_call_targets.
12058         (gimple_fold_call): Likewise.
12059         * ipa-prop.c: Inlcude calls.h
12060         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
12061         (param_type_may_change_p): New predicate.
12062         (detect_type_change_from_memory_writes): Break out from ...
12063         (detect_type_change): ... this one; use param_type_may_change_p.
12064         (detect_type_change_ssa): Use param_type_may_change_p.
12065         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
12067 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
12069         PR target/49423
12070         * config/arm/arm-protos.h (arm_legitimate_address_p,
12071         arm_is_constant_pool_ref): Add prototypes.
12072         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
12073         (arm_is_constant_pool_ref) New function.
12074         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
12075         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
12076         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
12077         operand. Remove pool_range and neg_pool_range attributes.
12078         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
12079         pool_range and neg_pool_range attributes.
12080         * config/arm/constraints.md (Uh): New constraint.
12081         (Uq): Don't allow constant pool references.
12083 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
12085         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
12086         (move_lo_quad_internal_be_<mode>): Likewise.
12087         (move_lo_quad_<mode>): Convert to define_expand.
12088         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
12089         (aarch64_simd_move_hi_quad_be_<mode>): New.
12090         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
12091         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
12092         (aarch64_combinez_be<mode>): New.
12093         (aarch64_combine<mode>): Convert to define_expand.
12094         (aarch64_combine_internal<mode>): New.
12095         (aarch64_simd_combine<mode>): Remove bogus RTL description.
12097 2014-07-04  Tom de Vries  <tom@codesourcery.com>
12099         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
12100         combination of earlyclobber and read/write modifiers.
12102 2014-07-04  Tom de Vries  <tom@codesourcery.com>
12104         * config/aarch64/aarch64-simd.md
12105         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
12107 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
12109         PR target/61714
12110         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
12112 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
12114         PR middle-end/61654
12115         * cgraphunit.c (expand_thunk): Call free_dominance_info.
12117         PR tree-optimization/61684
12118         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
12119         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
12121 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12122             Kito Cheng  <kito@0xlab.org>
12123             Monk Chiang  <sh.chiang04@gmail.com>
12125         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
12126         (nds32_symbol_load_store_p): Move to ...
12127         (nds32_fp_as_gp_check_available): Move to ...
12128         * config/nds32/nds32-fp-as-gp.c: ... here.
12129         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
12130         extern declaration.
12132 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12133             Kito Cheng  <kito@0xlab.org>
12134             Monk Chiang  <sh.chiang04@gmail.com>
12136         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
12137         (nds32_expand_store_multiple): Move to ...
12138         (nds32_expand_movmemqi): Move to ...
12139         * config/nds32/nds32-memory-manipulation.c: ... here.
12141 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12142             Kito Cheng  <kito@0xlab.org>
12143             Monk Chiang  <sh.chiang04@gmail.com>
12145         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
12146         (nds32_output_casesi_pc_relative): Move to ...
12147         (nds32_output_casesi): Move to ...
12148         (nds32_mem_format): Move to ...
12149         (nds32_output_16bit_store): Move to ...
12150         (nds32_output_16bit_load): Move to ...
12151         (nds32_output_32bit_store): Move to ...
12152         (nds32_output_32bit_load): Move to ...
12153         (nds32_output_32bit_load_s): Move to ...
12154         (nds32_output_stack_push): Move to ...
12155         (nds32_output_stack_pop): Move to ...
12156         * config/nds32/nds32-md-auxiliary.c: ... here.
12158 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12159             Ling-Hua Tseng  <uranus@tinlans.org>
12161         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
12162         the purpose of this file.
12164 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12165             Kito Cheng  <kito@0xlab.org>
12166             Monk Chiang  <sh.chiang04@gmail.com>
12168         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
12169         (nds32_address_cost): Move implementation to ...
12170         * config/nds32/nds32-cost.c: ... here.
12171         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
12172         (nds32_address_cost_impl): Declare.
12174 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12175             Kito Cheng  <kito@0xlab.org>
12176             Monk Chiang  <sh.chiang04@gmail.com>
12178         * config/nds32/nds32.c
12179         (nds32_consecutive_registers_load_store_p): Move to ...
12180         (nds32_valid_multiple_load_store): Move to ...
12181         (nds32_valid_stack_push_pop): Move to ...
12182         (nds32_can_use_bclr_p): Move to ...
12183         (nds32_can_use_bset_p): Move to ...
12184         (nds32_can_use_btgl_p): Move to ...
12185         (nds32_can_use_bitci_p): Move to ...
12186         * config/nds32/nds32-predicates.c: ... here.
12188 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12189             Kito Cheng  <kito@0xlab.org>
12190             Monk Chiang  <sh.chiang04@gmail.com>
12192         * config/nds32/nds32.c
12193         (nds32_expand_builtin_null_ftype_reg): Move to ...
12194         (nds32_expand_builtin_reg_ftype_imm): Move to ...
12195         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
12196         (nds32_init_builtins): Move implementation to ...
12197         (nds32_expand_builtin): Move implementation to ...
12198         * config/nds32/nds32-intrinsic.c: ... here.
12199         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
12200         (nds32_expand_builtin_impl): Declare.
12202 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12203             Kito Cheng  <kito@0xlab.org>
12204             Monk Chiang  <sh.chiang04@gmail.com>
12206         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
12207         (nds32_emit_section_tail_template): Move to ...
12208         (nds32_emit_isr_jmptbl_section): Move to ...
12209         (nds32_emit_isr_vector_section): Move to ...
12210         (nds32_emit_isr_reset_conten): Move to ...
12211         (nds32_check_isr_attrs_conflict): Move to ...
12212         (nds32_construct_isr_vectors_information): Move to ...
12213         (nds32_asm_file_start): Move implementation to ...
12214         (nds32_asm_file_end): Move implementation to ...
12215         * config/nds32/nds32-isr.c: ... here.
12216         * config/nds32/nds32-protos.h
12217         (nds32_check_isr_attrs_conflict): Declare.
12218         (nds32_construct_isr_vectors_information): Declare.
12219         (nds32_asm_file_start_for_isr): Declare.
12220         (nds32_asm_file_end_for_isr): Declare.
12222 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12223             Kito Cheng  <kito@0xlab.org>
12224             Monk Chiang  <sh.chiang04@gmail.com>
12226         * config.gcc (nds32*): Add new modules to extra_objs.
12227         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
12228         (nds32be-*-*): Likewise.
12229         * config/nds32/nds32-cost.c: New file.
12230         * config/nds32/nds32-fp-as-gp.c: New file.
12231         * config/nds32/nds32-intrinsic.c: New file.
12232         * config/nds32/nds32-isr.c: New file.
12233         * config/nds32/nds32-md-auxiliary.c: New file.
12234         * config/nds32/nds32-memory-manipulation.c: New file.
12235         * config/nds32/nds32-pipelines-auxiliary.c: New file.
12236         * config/nds32/nds32-predicates.c: New file.
12237         * config/nds32/t-nds32: New file.
12239 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
12241         PR tree-optimization/61682
12242         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
12243         using cases and when one of the operands is equal to 1.
12245 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
12247         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
12248         ashr<mode>3): Correct mode of operands[2].
12249         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
12250         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
12251         Correct mode of operands[2].  Fix split condition.
12253 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
12255         * arm.md (arch): Add armv6_or_vfpv3.
12256         (arch_enabled): Add test for the above.
12257         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
12258         on VFP9.
12259         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
12261 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
12263         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
12264         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
12265         HWI 1 and negate the unsigned value.
12266         * expmed.c (expand_sdiv_pow2): For modes wider than word always
12267         use AND instead of shift.
12268         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
12270 2014-07-03  Marek Polacek  <polacek@redhat.com>
12272         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
12273         (-fsanitize=float-divide-by-zero): Move to the table with
12274         -fsanitize=undefined suboptions.
12275         (-fsanitize=float-cast-overflow): Likewise.
12277 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
12279         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
12280         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
12281         endianness.
12283 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12285         * loop-invariant.c (struct invariant): Add a new member: eqno;
12286         (find_identical_invariants): Update eqno;
12287         (create_new_invariant): Init eqno;
12288         (get_inv_cost): Compute comp_cost with eqno;
12290 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
12292         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
12293         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
12294         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
12295         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
12296         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
12298 2014-07-02  Christian Bruel  <christian.bruel@st.com>
12300         PR target/29349
12301         PR target/53513
12302         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
12303         (make_preds_opaque): Delete.
12304         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
12305         (commit_mode_sets): New function.
12306         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
12307         Process all modes at once.
12308         * basic-block.h (pre_edge_lcm_avs): Declare.
12309         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
12310         Call clear_aux_for_edges. Fix comments.
12311         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
12312         (pre_edge_rev_lcm): Idem.
12313         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
12314         parameter.
12315         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
12316         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12317         Idem.
12318         * config/i386/i386.c (x96_emit_mode_set): Idem.
12319         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
12320         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
12321         (fpscr_toggle) Disallow from delay slot.
12322         * target.def (emit_mode_set): Add prev_mode parameter.
12323         * doc/tm.texi: Regenerate.
12325 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12327         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
12328         variable i.
12330 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
12332         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
12333         vtable_pointer_value_to_vtable): Constify.
12334         (contains_polymorphic_type_p): Declare.
12335         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
12336         vtable_pointer_value_to_vtable): Constify.
12337         (contains_polymorphic_type_p): New predicate.
12338         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
12339         polymorphic types.
12340         (ipa_set_ancestor_jf): Likewise.
12341         (detect_type_change): Return false in easy cases.
12342         (compute_complex_assign_jump_func): Require type to contain
12343         polymorphic type.
12344         (compute_known_type_jump_func): Likewise.
12346 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
12348         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
12349         Remove.
12350         (type_in_anonymous_namespace_p): Constify argument.
12351         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
12352         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
12353         (main_odr_variant): New function.
12354         (hash_type_name): Make static; update assert; do not ICE on
12355         non-records.
12356         (types_same_for_odr): Bring here from tree.c; simplify and remove
12357         old structural comparing code that doesn't work for templates.
12358         (odr_hasher::equal): Update assert.
12359         (add_type_duplicate): Return true when bases should be computed;
12360         replace incomplete loader by complete; do not output duplicated
12361         warnings; do not ICE on non-records; set odr_violated flag.
12362         (get_odr_type): Be ready to replace incomplete type by complete
12363         one; work on ODR variants instead of main variants; reorder item
12364         in array so bases have still smaller indexes.
12365         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
12366         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
12368 2014-07-01  Cary Coutant  <ccoutant@google.com>
12370         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
12371         lookup.
12372         (resolve_addr_in_expr): When replacing the rtx in a location list
12373         entry, get a new address table entry.
12374         (dwarf2out_finish): Call index_location_lists even if there are no
12375         addr_index_table entries yet.
12377 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
12379         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
12380         change for not being obvious.
12382 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
12384         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
12385         unused argument.
12387 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12389         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
12390         (vcagt_f64): Likewise.
12391         (vcale_f64): Likewise.
12392         (vcaled_f64): Likewise.
12393         (vcales_f32): Likewise.
12394         (vcalt_f64): Likewise.
12395         (vcaltd_f64): Likewise.
12396         (vcalts_f32): Likewise.
12398 2014-07-01  Marek Polacek  <polacek@redhat.com>
12400         * doc/invoke.texi: Document -Wint-conversion.
12402 2014-07-01  Marek Polacek  <polacek@redhat.com>
12404         PR c/58286
12405         * doc/invoke.texi: Document -Wincompatible-pointer-types.
12407 2014-07-01  Martin Liska  <mliska@suse.cz>
12409         IPA REF alias refactoring
12410         * cgraph.h (iterate_direct_aliases): New function.
12411         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
12412         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
12413         FOR_EACH_ALIAS added.
12414         (cgraph_for_node_and_aliases): Likewise.
12415         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
12416         * ipa-inline.c (reset_edge_caches): Likewise.
12417         (update_caller_keys): Likewise.
12418         * trans-mem.c (ipa_tm_execute): Likewise.
12419         *varpool.c (varpool_analyze_node): Likewise.
12420         (varpool_for_node_and_aliases): Likewise.
12421         * ipa-ref.h (first_alias): New function.
12422         (last_alias): Likewise.
12423         (has_aliases_p): Likewise.
12424         * ipa-ref.c (ipa_ref::remove_reference): Removal function
12425         is sensitive to IPA_REF_ALIASes.
12426         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
12427         are put at the beginning of the list.
12428         (symtab_node::iterate_direct_aliases): New function.
12430 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12432         Revert:
12433         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
12434         type is complete.
12435         (write_ts_type_common_tree_pointers): Do not stream fields not set
12436         for incomplete types; do not stream duplicated fields for variants;
12437         sanity check that variant and type match.
12438         (write_ts_type_non_common_tree_pointers): Likewise.
12439         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
12440         TYPE_SIZE whether type is complete.
12441         (lto_input_ts_type_common_tree_pointers): Do same changes as in
12442         write_ts_type_common_tree_pointers
12443         (lto_input_ts_type_non_common_tree_pointers): Likewise.
12445 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
12447         * var-tracking.c (add_stores): Return instead of asserting if old
12448         and new values for conditional store are the same.
12450 2014-06-30  Richard Henderson  <rth@redhat.com>
12452         PR rtl-opt/61608
12453         PR target/39284
12454         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
12455         the cfg if there were any changes.
12456         * passes.def: Revert move of peephole2 after reorder_blocks;
12457         move duplicate_computed_gotos before peephole2.
12459 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
12461         * except.c (emit_note_eh_region_end): New helper function.
12462         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
12463         emit EH_REGION_END note.
12464         * jump.c (cleanup_barriers): Do not split a call and its
12465         corresponding CALL_ARG_LOCATION note.
12467 2014-06-30  Jeff Law  <law@redhat.com>
12469         PR tree-optimization/61607
12470         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
12471         deeper into the SSA_NAME_VALUE chain.
12473 2014-06-30  Marek Polacek  <polacek@redhat.com>
12475         * convert.c (convert_to_integer): Don't instrument conversions if the
12476         function has no_sanitize_undefined attribute.
12477         * ubsan.c: Don't run the ubsan pass if the function has
12478         no_sanitize_undefined attribute.
12480 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
12482         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
12483         -fsanitize=undefined suboptions.
12485 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
12487         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
12488         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
12489         against bigendian and adjust indices.
12491 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
12493         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
12495 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12497         PR target/61633
12498         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
12499         Add alternative; make early clobber.  Adjust both split patterns
12500         to use operand 0 as the working register.
12502 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
12504         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
12505         as ira_object_id_map might be NULL, or 1.
12507 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12509         * loop-invariant.c (get_inv_cost): Handle register class.
12510         (gain_for_invariant): Check the register pressure of the inv
12511         and its overlapped register class, other than all.
12513 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
12515         * doc/invoke.texi (Optimize Options): Fix descriptions of
12516         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
12518 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
12520         * doc/extend.texi (Function Attributes): Update 'naked' attribute
12521         documentation.
12523 2014-06-29  Tobias Grosser <tobias@grosser.es>
12525         PR bootstrap/61650
12526         * graphite-isl-ast-to-gimple.c: Add missing guards.
12528 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
12530         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
12531         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
12532         * flag-types.h: Add new enum fgraphite_generator.
12533         * graphite-isl-ast-to-gimple.c: New.
12534         * graphite-isl-ast-to-gimple.h: New.
12535         * graphite.c (graphite_transform_loops): Add choice of Graphite
12536         code generator, which depends on flag_graphite_code_gen.
12538 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
12540         * graphite-dependences.c (subtract_commutative_associative_deps):
12541         Add NULL checking of the following variables: must_raw_no_source,
12542         may_raw_no_source, must_war_no_source, may_war_no_source,
12543         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
12544         must_war, may_war, must_waw, may_waw.
12546 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
12548         * graphite-clast-to-gimple.c: gloog is renamed to
12549         graphite_regenerate_ast_cloog.  gloog_error is renamed to
12550         graphite_regenerate_error.
12551         * graphite-clast-to-gimple.h: The definition of the struct
12552         bb_pbb_def is moved to graphite-htab.h.
12553         Add inclusion of the hash-table.h.
12554         * graphite-htab.h: The declaration of the function gloog is moved
12555         to graphite-clast-to-gimple.h and renamed to
12556         graphite_regenerate_ast_cloog.
12557         * graphite.c (graphite_transform_loops): gloog is renamed
12558         to graphite_regenerate_ast_cloog.
12560 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12562         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
12563         type is complete.
12564         (write_ts_type_common_tree_pointers): Do not stream fields not set
12565         for incomplete types; do not stream duplicated fields for variants;
12566         sanity check that variant and type match.
12567         (write_ts_type_non_common_tree_pointers): Likewise.
12568         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
12569         TYPE_SIZE whether type is complete.
12570         (lto_input_ts_type_common_tree_pointers): Do same changes as in
12571         write_ts_type_common_tree_pointers
12572         (lto_input_ts_type_non_common_tree_pointers): Likewise.
12574 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12576         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
12578 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12580         * tree-inline.c (remap_type_1): Do not duplicate fields
12581         that are shared in between type and its main variant.
12583 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12585         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
12586         of the type.
12587         (ipa_set_ancestor_jf) Likewise.
12588         (check_stmt_for_type_change): Check that we work on main variant.
12589         (detect_type_change): Look into main variant.
12590         (compute_known_type_jump_func): Check that main variant has BINFO.
12592 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12594         * ipa-devirt.c (set_type_binfo): New function.
12595         (add_type_duplicate): Use it.
12596         (get_odr_type): Sanity check that binfos points to main variants.
12597         (get_class_context): Be sure the context's outer_type is main variant.
12598         (contains_type_p): Walk main variant.
12599         (get_polymorphic_call_info_for_decl): Set outer_type to be
12600         main variant.
12601         (get_polymorphic_call_info): Likewise.
12602         (possible_polymorphic_call_targets): Sanity check that we operate
12603         on main variant.
12605 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12607         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
12609 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12611         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
12612         accidental change due to wide-int branch merge.
12614 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12616         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
12617         compressed debug support.
12618         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
12619         * configure: Regenerate.
12620         * config.in: Regenerate.
12621         * common.opt (compressed_debug_sections): New enum.
12622         (gz, gz=): New options.
12623         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
12624         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
12625         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
12626         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
12627         LINK_COMPRESS_DEBUG_SPEC.
12628         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
12629         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
12630         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
12631         (Debugging Options): Document -gz[=type].
12633 2014-06-27  Martin Jambor  <mjambor@suse.cz>
12635         PR ipa/61160
12636         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
12637         args_to_skip, use those from node instead.  Copy args_to_skip and
12638         combined_args_to_skip from node to the new thunk.
12639         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
12640         (cgraph_create_virtual_clone): Moved computation of
12641         combined_args_to_skip...
12642         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
12644 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
12646         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
12647         redundant diagnostic machinary.
12649 2014-06-27  Richard Biener  <rguenther@suse.de>
12651         * tree-ssa-math-opts.c (bswap_replace): Fix
12652         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
12654 2014-06-27  Martin Liska  <mliska@suse.cz>
12656         * gimple.h (gimple_location_safe): New function introduced.
12657         * cgraphunit.c (walk_polymorphic_call_targets): Usage
12658         of gimple_location_safe replaces gimple_location.
12659         (gimple_fold_call): Likewise.
12660         * ipa-devirt.c (ipa_devirt): Likewise.
12661         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
12662         * ipa.c (walk_polymorphic_call_targets): Likewise.
12663         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
12665 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
12667         PR tree-optimization/57233
12668         PR tree-optimization/61299
12669         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
12670         functions.
12671         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
12672         would be lowered to scalar shifts, check if corresponding
12673         shifts and vector BIT_IOR_EXPR are supported and don't lower
12674         or lower just to narrower vector type in that case.
12675         * expmed.c (expand_shift_1): Fix up handling of vector
12676         shifts and rotates.
12678 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
12680         PR target/61586
12681         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
12683 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
12685         * doc/invoke.texi (-fsemantic-interposition): Document.
12686         * common.opt (fsemantic-interposition): New flag.
12687         * varasm.c (decl_replaceable_p): Use it.
12689 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12691         PR target/61542
12692         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
12693         extraction other than index 3.
12695 2014-06-26  Teresa Johnson  <tejohnson@google.com>
12697         * doc/invoke.texi: Fix typo.
12698         * dumpfile.c: Add support for documented -fdump-* options
12699         optimized/missed/note/optall.
12701 2014-06-26  Martin Jambor  <mjambor@suse.cz>
12703         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
12704         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
12705         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
12706         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
12707         * opts.c (default_options_optimization): Set
12708         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
12709         * doc/invoke.texi (allow-load-data-races)
12710         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
12711         (allow-store-data-races): Document the new default.
12713 2014-06-26  Martin Jambor  <mjambor@suse.cz>
12715         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
12716         renamed to ipa_impossible_devirt_target.  Fix typo.
12717         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
12718         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
12719         ipa_impossible_devirt_target.
12721 2014-06-26  Richard Biener  <rguenther@suse.de>
12723         PR tree-optimization/61607
12724         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
12725         explaining why we restrict copies on loop depth.
12726         * tree-ssa-dom.c (cprop_operand): Remove restriction on
12727         on loop depth.
12728         (record_equivalences_from_phis): Instead add it here.
12730 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
12732         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
12733         (LTO_WRAPPER_OBJS): New variable.
12734         (lto-wrapper$(exeext)): Use it.
12735         * collect2.c: Include "collect-utils.h".
12736         (verbose, debug): Remove variables.
12737         (at_file_supplied): No longer static.
12738         (tool_name): New variable.
12739         (do_wait, fork_execute, maybe_unlink): Don't declare.
12740         (tool_cleanup): No longer static.
12741         (notice): Remove function.
12742         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
12743         fork_execute calls.
12744         (collect_wait, do_wait, collect_execute): Remove functions.
12745         (maybe_unlink): No longer static.
12746         * collect2.h (verbose, debug): Don't declare.
12747         (at_file_supplied): Declare.
12748         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
12749         changed.
12750         (collect_execute): Replace with implementation from collect2, plus a
12751         new arg use_atfile.  All callers changed.
12752         (collect_wait): Replace with implementation from collect2.
12753         (maybe_unlink_file): Remove function.
12754         (fork_execute): Replace with implementation from collect2, plus a
12755         new arg use_atfile.  All callers changed.
12756         (do_wait): Add call to utils_cleanup to the error path.
12757         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
12758         (tool_cleanup): Adjust declarations.
12759         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
12760         * tlink.c: Include "collect-utils.h".
12761         (tlink_execute): New arg use_atfile.  All callers changed.
12762         (tlink_init, tlink_execute): Remove declarations.
12764         * collect-utils.c (save_temps): New variable.
12765         (do_wait): Use it instead of debug.  Use fatal_error.
12766         * collect-utils.h (save_temps): Declare.
12767         * collect2.c (verbose): Rename from vflag.  All uses changed.
12768         (tool_cleanup): New function, copied from collect_atexit.
12769         (collect_atexit, handler): Just call it.
12770         * collect2.h (verbose): Declaration renamed from vflag.
12771         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
12772         debug.
12774         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
12775         (lto-wrapper$(exeext)): Link with collect-utils.o.
12776         * collect-utils.c: New file.
12777         * collect-utils.h: New file.
12778         * lto-wrapper.c: Include "collect-utils.h".
12779         (args_name): Delete variable.
12780         (tool_name): New variable.
12781         (tool_cleanup): New function.
12782         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
12783         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
12784         (fork_execute): Remove functions.
12786 2014-06-26  Nick Clifton  <nickc@redhat.com>
12788         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
12790         * doc/extend.texi (Function Attributes): Fix typo in description
12791         of RX vector attribute.
12793 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
12795         * config.gcc (supported_defaults): Error when passing either
12796         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
12798 2014-06-26  Richard Biener  <rguenther@suse.de>
12800         * tree-ssa-dom.c (cprop_operand): Remove restriction on
12801         propagating volatile pointers.
12803 2014-06-26  Richard Biener  <rguenther@suse.de>
12805         PR tree-optimization/61607
12806         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
12807         loop if we redirected its latch edge.
12808         (thread_block_1): Do not cancel loops prematurely.
12810 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
12812         * toplev.c (backend_init_target): Move init_emit_regs and
12813         init_regs to...
12814         (backend_init) ... here; skip ira_init_once and backend_init_target.
12815         (target_reinit) ... and here; clear
12816         this_target_rtl->lang_dependent_initialized.
12817         (lang_dependent_init_target): Clear
12818         this_target_rtl->lang_dependent_initialized;
12819         break out rtl initialization to ...
12820         (initialize_rtl): ... here; call also backend_init_target
12821         and ira_init_once.
12822         * toplev.h (initialize_rtl): New function.
12823         * function.c: Include toplev.h
12824         (init_function_start): Call initialize_rtl.
12825         * rtl.h (target_rtl): Add target_specific_initialized,
12826         lang_dependent_initialized.
12828 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
12829             Jakub Jelinek  <jakub@redhat.com>
12831         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
12833 2014-06-25  Tom de Vries  <tom@codesourcery.com>
12835         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
12837 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12839         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
12840         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
12841         Issue a strict overflow warning if appropriate.
12843 2014-06-25  Martin Liska  <mliska@suse.cz>
12845         IPA REF refactoring
12846         * Makefile.in: Removed header file (ipa-ref-inline.h).
12847         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
12848         called.
12849         (cgraph_speculative_call_info): Likewise.
12850         (cgraph_for_node_thunks_and_aliases): Likewise.
12851         (cgraph_for_node_and_aliases): Likewise.
12852         (verify_cgraph_node): Likewise.
12853         * cgraph.h: Batch of IPA REF functions become member functions of
12854         symtab_node: add_reference, maybe_add_reference, clone_references,
12855         clone_referring, clone_reference, find_reference,
12856         remove_stmt_references, remove_all_references,
12857         remove_all_referring, dump_references, dump_referring,
12858         has_alias_p, iterate_reference, iterate_referring.
12859         * cgraphbuild.c (record_reference): New IPA REF function used.
12860         (record_type_list): Likewise.
12861         (record_eh_tables): Likewise.
12862         (mark_address): Likewise.
12863         (mark_load): Likewise.
12864         (mark_store): Likewise.
12865         (pass_build_cgraph_edges): Likewise.
12866         (rebuild_cgraph_edge): Likewise.
12867         (cgraph_rebuild_references): Likewise.
12868         (pass_remove_cgraph_callee_edges): Likewise.
12869         * cgraphclones.c (cgraph_clone_node): Likewise.
12870         (cgraph_create_virtual_clone): Likewise.
12871         (cgraph_materialize_clone): Likewise.
12872         (cgraph_materialize_all_clones): Likewise.
12873         * cgraphunit.c (cgraph_reset_node): Likewise.
12874         (cgraph_reset_node): Likewise.
12875         (analyze_function): Likewise.
12876         (assemble_thunks_and_aliases): Likewise.
12877         (expand_function): Likewise.
12878         * ipa-comdats.c (propagate_comdat_group): Likewise.
12879         (enqueue_references): Likewise.
12880         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
12881         (create_specialized_node): Likewise.
12882         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
12883         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
12884         * ipa-inline.c (reset_edge_caches): Likewise.
12885         (update_caller_keys): Likewise.
12886         (execute): Likewise.
12887         * ipa-prop.c (remove_described_reference): Likewise.
12888         (propagate_controlled_uses): Likewise.
12889         (ipa_edge_duplication_hook): Likewise.
12890         (ipa_modify_call_arguments): Likewise.
12891         * ipa-pure-const.c (propagate_pure_const): Likewise.
12892         * ipa-ref-inline.h: Header file removed, functions moved
12893         to symtab_node class.
12894         * ipa-ref.c (remove_reference): New class member function.
12895         (cannot_lead_to_return): New class member function.
12896         (referring_ref_list): Likewise.
12897         (referred_ref_list): Likewise.
12898         Rest of functions moved to symtab_node class.
12899         * ipa-ref.h: New member functions remove_reference,
12900         cannot_lead_to_return, referring_ref_list, referred_ref_list added
12901         to ipa_ref class.
12902         ipa_ref_list class has new member functions: first_reference,
12903         first_referring, clear, nreferences.
12904         * ipa-reference.c (analyze_function): New IPA REF function used.
12905         (write_node_summary_p): Likewise.
12906         (ipa_reference_write_optimization_summary): Likewise.
12907         * ipa-split.c (split_function): Likewise.
12908         * ipa-utils.c (ipa_reverse_postorder): Likewise.
12909         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
12910         (function_and_variable_visibility): Likewise.
12911         * ipa.c (has_addr_references_p): Likewise.
12912         (process_references): Argument type changed.
12913         (symtab_remove_unreachable_nodes): New IPA REF function used.
12914         (process_references): Likewise.
12915         (set_writeonly_bit): Likewise.
12916         * lto-cgraph.c: Implementation of new symtab_node member functions
12917         that uses new IPA REF functions.
12918         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
12919         function used.
12920         * lto-streamer-out.c (output_symbol_p): Likewise.
12921         * lto-streamer.h (referenced_from_this_partition_p): Argument type
12922         changed.
12923         * symtab.c: Implementation of new IPA REF API.
12924         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
12925         (ipa_tm_create_version): Likewise.
12926         (ipa_tm_execute): Likewise.
12927         * tree-emutls.c (gen_emutls_addr): Likewise.
12928         * tree-inline.c (copy_bb): Likewise.
12929         (delete_unreachable_blocks_update_callgraph): Likewise.
12930         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
12931         (varpool_for_node_and_aliases): Likewise.
12933 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
12935         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
12937 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
12939         PR bootstrap/61598
12940         * fold-const.c (fold_checksum_tree): Use a hash_table of const
12941         tree_node * instead of tree_node *.
12942         (fold): Adjust.
12943         (print_fold_checksum): Likewise.
12944         (fold_check_failed): Likewise.
12945         (debug_fold_checksum): Likewise.
12946         (fold_build1_stat_loc): Likewise.
12947         (fold_build2_stat_loc): Likewise.
12948         (fold_build3_stat_loc): Likewise.
12949         (fold_build_call_array_loc): Likewise.
12951 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
12953         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
12954         implementation with call to...
12955         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
12956         function.
12957         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
12958         Declare.
12960 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
12962         PR tree-optimization/57742
12963         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
12964         after replacing the statement.
12966 2014-06-25  Nick Clifton  <nickc@redhat.com>
12968         * config/v850/v850.c (GHS_default_section_names): Change to const
12969         char * type.
12970         (GHS_current_section_names): Likewise.
12971         (v850_insert_attributes): Do not build strings, just assign the
12972         names directly.  Change the type of 'chosen_section' to const
12973         char*.
12974         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
12975         directly to the array entry.
12976         * config/v850/v850.h (GHS_default_section_names): Change to const
12977         char * type.
12978         (GHS_current_section_names): Likewise.
12980 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
12982         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
12983         (LANG_HOOKS_DECLS): Add it.
12984         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
12985         has correct type.
12986         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
12987         * langhooks.h (struct lang_hooks_for_decls): Add
12988         omp_clause_linear_ctor hook.
12989         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
12990         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
12991         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
12992         combined simd loop use omp_clause_linear_ctor hook.
12994 2014-06-24  Cong Hou  <congh@google.com>
12996         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
12997         pattern recognition.
12998         (type_conversion_p): PROMOTION is true if it's a type promotion
12999         conversion, and false otherwise.  Return true if the given expression
13000         is a type conversion one.
13001         * tree-vectorizer.h: Adjust the number of patterns.
13002         * tree.def: Add SAD_EXPR.
13003         * optabs.def: Add sad_optab.
13004         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
13005         * expr.c (expand_expr_real_2): Likewise.
13006         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13007         * gimple.c (get_gimple_rhs_num_ops): Likewise.
13008         * optabs.c (optab_for_tree_code): Likewise.
13009         * tree-cfg.c (estimate_operator_cost): Likewise.
13010         * tree-ssa-operands.c (get_expr_operands): Likewise.
13011         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
13012         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
13013         * doc/generic.texi: Add document for SAD_EXPR.
13014         * doc/md.texi: Add document for ssad and usad.
13016 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
13018         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
13019         qualification in cast.
13021 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
13023         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
13024         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
13025         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
13026         (tree_function_decl): ... here.
13027         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
13028         streaming of vindex to ...
13029         (write_ts_function_decl_tree_pointers): ... here.
13030         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
13031         Do not stream DECL_VINDEX.
13032         (lto_input_ts_function_decl_tree_pointers): Stream it here.
13034 2014-06-24  Catherine Moore  <clm@codesourcery.com>
13035             Sandra Loosemore  <sandra@codesourcery.com>
13037         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
13038         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
13039         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
13041 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
13043         * doc/invoke.texi (Warning Options): Remove duplicated
13044         -Wmaybe-uninitialized.
13046 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
13048         PR tree-optimization/57742
13049         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
13050         (handle_builtin_malloc, handle_builtin_memset): New functions.
13051         (strlen_optimize_stmt): Call them.
13052         * passes.def: Move strlen after loop+dom but before vrp.
13054 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
13056         PR target/61570
13057         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
13058         model family 6 CPU with has_longmode never use a CPU without
13059         64-bit support.
13061 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13063         PR target/61570
13064         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
13065         the last change.
13067 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
13069         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
13070         * dominance.c (iterate_fix_dominators): Use hash_map instead of
13071         pointer_map.
13072         * hash-map.h: New file.
13073         * ipa-comdats.c: Use hash_map instead of pointer_map.
13074         * ipa.c: Likewise.
13075         * lto-section-out.c: Adjust.
13076         * lto-streamer.h: Replace pointer_map with hash_map.
13077         * symtab.c (verify_symtab): Likewise.
13078         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
13079         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
13080         * tree-streamer.h: Likewise.
13081         * tree-streamer.c: Adjust.
13082         * pointer-set.h: Remove pointer_map.
13084 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
13086         * hash-table.h: Add a template arg to choose between storing values
13087         and storing pointers to values, and then provide partial
13088         specializations for both.
13089         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
13090         should store, not the type values should point to.
13091         * tree-into-ssa.c (var_info_hasher): Likewise.
13092         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
13093         * tree-complex.c: Adjust.
13094         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
13095         table instead of int_tree_map *.
13096         * tree-parloops.c: Adjust.
13097         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
13098         type is being stored.
13099         * tree-vectorizer.c: Adjust.
13101 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
13103         * hash-table.h: Remove a layer of indirection from hash_table so that
13104         it contains the hash table's data instead of a pointer to the data.
13105         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
13106         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
13107         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
13108         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
13109         fold-const.c, gcse.c, ggc-common.c,
13110         gimple-ssa-strength-reduction.c, gimplify.c,
13111         graphite-clast-to-gimple.c, graphite-dependences.c,
13112         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
13113         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
13114         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
13115         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
13116         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
13117         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
13118         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
13119         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
13120         tree-ssa-live.c, tree-ssa-loop-im.c,
13121         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
13122         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
13123         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
13124         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
13125         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
13126         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
13127         vtable-verify.c, vtable-verify.h: Adjust.
13129 2014-06-24  Richard Biener  <rguenther@suse.de>
13131         PR tree-optimization/61572
13132         * tree-ssa-sink.c (statement_sink_location): Do not sink
13133         loads from hard registers.
13135 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
13137         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
13138         not mentioned in clauses use private clause if the iterator is
13139         declared in #pragma omp for simd, and when adding lastprivate
13140         instead, add it to the outer #pragma omp for too.  Diagnose
13141         if the variable is private in outer context.  For simd collapse > 1
13142         loops, replace all iterators with temporaries.
13143         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
13144         same even in collapse > 1 loops.
13146         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
13147         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
13148         non-NULL.
13149         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
13150         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
13151         non-NULL.
13152         (gimplify_adjust_omp_clauses): Likewise.
13153         * omp-low.c (lower_rec_simd_input_clauses,
13154         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
13155         safelen the same as safelen(1).
13156         * tree-nested.c (convert_nonlocal_omp_clauses,
13157         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
13158         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
13159         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
13160         Fixup handling of GIMPLE_OMP_TARGET.
13161         (convert_tramp_reference_stmt, convert_gimple_call): Handle
13162         GIMPLE_OMP_TARGET.
13164 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
13166         PR tree-optimization/61554
13167         * tree-ssa-propagate.c: Include "bitmap.h".
13168         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
13169         properly update constructor/destructor.
13170         (substitute_and_fold_dom_walker::before_dom_children):
13171         Remove call to gimple_purge_dead_eh_edges, add bb->index to
13172         need_eh_cleaup instead.
13173         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
13174         need_eh_cleanup.
13176 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
13178         * varpool.c (dump_varpool_node): Dump used_by_single_function.
13179         * tree-pass.h (make_pass_ipa_single_use): New pass.
13180         * cgraph.h (used_by_single_function): New flag.
13181         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
13182         Stream it.
13183         * passes.def (pass_ipa_single_use): Scedule.
13184         * ipa.c (BOTTOM): New macro.
13185         (meet): New function
13186         (propagate_single_user): New function.
13187         (ipa_single_use): New function.
13188         (pass_data_ipa_single_use): New pass.
13189         (pass_ipa_single_use): New pass.
13190         (pass_ipa_single_use::gate): New gate.
13191         (make_pass_ipa_single_use): New function.
13193 2014-06-23  Kai Tietz  <ktietz@redhat.com>
13195         PR target/39284
13196         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
13197         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
13199 2014-06-23  Richard Biener  <rguenther@suse.de>
13201         * tree-ssa-loop.c (gate_loop): New function.
13202         (pass_tree_loop::gate): Call it.
13203         (pass_data_tree_no_loop, pass_tree_no_loop,
13204         make_pass_tree_no_loop): New.
13205         * tree-vectorizer.c: Include tree-scalar-evolution.c
13206         (pass_slp_vectorize::execute): Initialize loops and SCEV if
13207         required.
13208         (pass_slp_vectorize::clone): New method.
13209         * timevar.def (TV_TREE_NOLOOP): New.
13210         * tree-pass.h (make_pass_tree_no_loop): Declare.
13211         * passes.def (pass_tree_no_loop): New pass group with
13212         SLP vectorizer.
13214 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13216         PR target/61570
13217         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
13218         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
13220 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
13222         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
13223         "yes" where needed.
13225 2014-06-23  Alan Modra  <amodra@gmail.com>
13227         PR bootstrap/61583
13228         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
13229         to zero on debug statements.
13231 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
13233         PR target/60825
13234         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
13235         Ignore third operand if present by marking qualifier_internal.
13237         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
13239         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
13240         vector extension.
13241         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
13242         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
13243         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
13244         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
13245         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
13246         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
13247         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
13248         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
13249         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
13250         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
13251         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
13252         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
13253         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
13254         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
13255         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
13256         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
13257         logic in GCC vector extensions
13259         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
13260         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
13261         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
13262         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
13263         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
13264         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
13265         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
13266         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
13267         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
13268         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
13270         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
13272         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
13273         extensions.
13275         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
13276         (vget_low_s64): Use __GET_LOW macro.
13277         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
13278         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
13279         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
13280         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
13281         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
13283         (vcombine_s64): Use GCC vector extensions; remove cast.
13284         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
13285         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
13286         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
13287         Fix type signature; remove cast.
13289 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
13291         PR target/60825
13292         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
13293         V1DFmode.
13294         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
13295         add V1DFmode
13296         (BUILTIN_VD1): New.
13297         (BUILTIN_VD_RE): Remove.
13298         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
13299         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
13300         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
13301         variant but not df.
13302         (vreinterpretv1df*, vreinterpret*v1df): New.
13303         (vreinterpretdf*, vreinterpret*df): Remove.
13304         * config/aarch64/aarch64-simd.md (aarch64_create,
13305         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
13306         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
13307         (VD1): New.
13308         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
13309         (vcreate_f64): Remove cast, use v1df builtin.
13310         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
13311         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
13312         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
13313         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
13314         vmov_n_f64, vst1_f64): Use gcc vector extensions.
13315         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
13316         add range check using __builtin_aarch64_im_lane_boundsi.
13317         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
13318         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
13319         type signature, use gcc vector extensions.
13320         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
13321         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
13322         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
13323         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
13324         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
13325         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
13326         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
13327         vreinterpret_u64_f64): Use v1df builtin not df.
13329 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
13331         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
13332         vector registers.
13334 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
13336         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
13337         priority directly.
13339 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13341         * loop-invariant.c (pre_check_invariant_p): New function.
13342         (find_invariant_insn): Call pre_check_invariant_p.
13344 2014-06-22  Richard Henderson  <rth@redhat.com>
13346         PR target/61565
13347         * compare-elim.c (struct comparison): Add eh_note.
13348         (find_comparison_dom_walker::before_dom_children): Don't eliminate
13349         a redundant comparison in a different EH region.  Purge EH edges if
13350         necessary.
13352 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13354         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
13355         (var_shift): Use it.
13356         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
13357         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
13358         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
13359         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
13360         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
13361         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
13362         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
13363         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
13364         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
13365         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
13366         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
13367         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
13368         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
13369         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
13370         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
13371         *rotldi3_internal15be): Use the new attribute.  Merge register and
13372         integer alternatives.
13374 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13376         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
13377         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
13378         split, *ashrdi3_internal3 and split): Delete, merge into...
13379         (ashr<mode>3): New expander.
13380         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
13381         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
13383 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13385         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
13386         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
13387         *rotldi3_internal3 and split): Delete, merge into...
13388         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
13389         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
13390         Use "rotlw" extended mnemonic.
13392 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13394         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
13395         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
13396         and split, *ashldi3_internal3 and split): Delete, merge into...
13397         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
13398         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
13400 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13402         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
13403         (lshrsi3, two anonymous define_insns and define_splits,
13404         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
13405         *lshrdi3_internal3 and split): Delete, merge into...
13406         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
13407         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
13409 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13411         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
13412         Remove "O" alternative.
13414 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
13416         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
13417         (mips_move_from_gpr_cost): Likewise.
13418         (mips_register_move_cost): Update accordingly.
13419         (mips_secondary_reload_class): Remove name of in_p.
13421 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
13423         PR target/61503
13424         * config/i386/i386.md (x86_64_shrd, x86_shrd,
13425         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
13427 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13429         * config/nios2/nios2.c: Include "builtins.h".
13431 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
13433         * cgraph.h (tls_model_names): New variable.
13434         * print-tree.c (print_node): Simplify.
13435         * varpool.c (tls_model_names): New variable.
13436         (dump_varpool_node): Output tls model.
13438 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
13440         * ipa-visibility.c (function_and_variable_visibility): Disable
13441         temporarily local aliases for some targets.
13443 2014-06-20  Marek Polacek  <polacek@redhat.com>
13445         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
13446         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
13447         into SANITIZE_UNDEFINED.
13448         * doc/invoke.texi: Describe -fsanitize=bounds.
13449         * gimplify.c (gimplify_call_expr): Add gimplification of internal
13450         functions created in the FEs.
13451         * internal-fn.c: Move "internal-fn.h" after "tree.h".
13452         (expand_UBSAN_BOUNDS): New function.
13453         * internal-fn.def (UBSAN_BOUNDS): New internal function.
13454         * internal-fn.h: Don't define internal functions here.
13455         * opts.c (common_handle_option): Add -fsanitize=bounds.
13456         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
13457         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
13458         * tree-core.h: Define internal functions here.
13459         (struct tree_base): Add ifn field.
13460         * tree-pretty-print.c: Include "internal-fn.h".
13461         (dump_generic_node): Handle functions without CALL_EXPR_FN.
13462         * tree.c (get_callee_fndecl): Likewise.
13463         (build_call_expr_internal_loc): New function.
13464         * tree.def (CALL_EXPR): Update description.
13465         * tree.h (CALL_EXPR_IFN): Define.
13466         (build_call_expr_internal_loc): Declare.
13467         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
13468         types.
13469         (ubsan_type_descriptor): Change bool parameter to enum
13470         ubsan_print_style.  Adjust the code.  Add handling of
13471         UBSAN_PRINT_ARRAY.
13472         (ubsan_expand_bounds_ifn): New function.
13473         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
13474         (ubsan_build_overflow_builtin): Likewise.
13475         (instrument_bool_enum_load): Likewise.
13476         (ubsan_instrument_float_cast): Likewise.
13477         * ubsan.h (enum ubsan_print_style): New enum.
13478         (ubsan_expand_bounds_ifn): Declare.
13479         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
13481 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
13483         * config/rs6000/rs6000.md: Append `DONE' to preparation
13484         statements of `bswap' pattern splitters.
13486 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13488         * target.def (call_fusage_contains_non_callee_clobbers): Update
13489         definition.
13490         * doc/tm.texi: Regenerate.
13492 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
13493             Max Ostapenko  <m.ostapenko@partner.samsung.com>
13495         PR sanitizer/61547
13496         * asan.c (instrument_strlen_call): Fixed instrumentation of
13497         trailing byte.
13499 2014-06-20  Martin Jambor  <mjambor@suse.cz>
13501         PR ipa/61540
13502         * ipa-prop.c (impossible_devirt_target): New function.
13503         (try_make_edge_direct_virtual_call): Use it, also instead of
13504         asserting.
13506 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
13507             Max Ostapenko  <m.ostapenko@partner.samsung.com>
13509         PR sanitizer/61530
13510         * asan.c (build_check_stmt): Add condition.
13512 2014-06-20  Martin Jambor  <mjambor@suse.cz>
13514         PR ipa/61211
13515         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
13516         expanded clones.
13518 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13520         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
13521         Update comments.
13522         (VCONQ): Make comment more helpful.
13523         (VCON): Delete.
13524         * config/aarch64/aarch64-simd.md
13525         (aarch64_sqdmulh_lane<mode>):
13526         Use VCOND for operands 2.  Update lane checking and flipping logic.
13527         (aarch64_sqrdmulh_lane<mode>): Likewise.
13528         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
13529         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
13530         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
13531         attribute of operand 3 to VCOND.
13532         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
13533         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13534         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
13535         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
13536         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13537         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
13538         define_insn.
13539         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
13540         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
13541         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
13542         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
13543         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
13544         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
13545         operand to VCOND.  Update lane flipping and bounds checking logic.
13546         (aarch64_sqdmlal2_lane<mode>): Likewise.
13547         (aarch64_sqdmlsl_lane<mode>): Likewise.
13548         (aarch64_sqdmull_lane<mode>): Likewise.
13549         (aarch64_sqdmull2_lane<mode>): Likewise.
13550         (aarch64_sqdmlal_laneq<mode>):
13551         Replace VCON usage with VCONQ.
13552         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
13553         (aarch64_sqdmlal2_laneq<mode>): Emit
13554         aarch64_sqdmlal2_laneq<mode>_internal insn.
13555         Replace VCON with VCONQ.
13556         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
13557         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
13558         (aarch64_sqdmull_laneq<mode>): Emit
13559         aarch64_sqdmull_laneq<mode>_internal insn.
13560         Replace VCON with VCONQ.
13561         (aarch64_sqdmull2_laneq<mode>): Emit
13562         aarch64_sqdmull2_laneq<mode>_internal insn.
13563         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
13564         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
13565         of 3rd argument to int16x4_t.
13566         (vqdmlalh_lane_s16): Likewise.
13567         (vqdmlslh_lane_s16): Likewise.
13568         (vqdmull_high_lane_s16): Likewise.
13569         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
13570         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
13571         (vqdmlsl_lane_s16): Likewise.
13572         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
13573         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
13574         (vqdmlals_lane_s32): Likewise.
13575         (vqdmlsls_lane_s32): Likewise.
13576         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
13577         (vqdmulls_lane_s32): Likewise.
13578         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
13579         (vqdmlsl_lane_s32): Likewise.
13580         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
13581         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
13582         (vqrdmulhh_lane_s16): Likewise.
13583         (vqdmlsl_high_lane_s16): Likewise.
13584         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
13585         (vqdmlsl_high_lane_s32): Likewise.
13586         (vqrdmulhs_lane_s32): Likewise.
13588 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13590         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
13591         get_call_reg_set_usage.
13593 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13595         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
13596         it contains all call_used_regs.
13598 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13600         * final.c (collect_fn_hard_reg_usage): Add and use variable
13601         function_used_regs.
13603 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
13605         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
13606         (set_init_priority, get_init_priority, set_fini_priority,
13607         get_fini_priority): New methods.
13608         * tree.c (init_priority_for_decl): Remove.
13609         (init_ttree): Do not initialize init priority.
13610         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
13611         (decl_priority_info): Remove.
13612         (decl_init_priority_insert): Rewrite.
13613         (decl_fini_priority_insert): Rewrite.
13614         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
13615         tree_priority_map_marked_p): Remove.
13616         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
13617         * lto-streamer-out.c (hash_tree): Do not hash priorities.
13618         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
13619         not output priorities.
13620         (pack_ts_function_decl_value_fields): Likewise.
13621         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
13622         not input priorities.
13623         (unpack_ts_function_decl_value_fields): Likewise.
13624         * symtab.c (symbol_priority_map): Declare.
13625         (init_priority_hash): Declare.
13626         (symtab_unregister_node): Unregister from priority hash, too.
13627         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
13628         New methods.
13629         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
13630         (symbol_priority_info): New function.
13631         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
13632         New methods.
13633         * tree-core.h (tree_priority_map): Remove.
13635 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
13637         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
13638         0xff to uint64_t before shifting it up.
13640 2014-06-20  Julian Brown  <julian@codesourcery.com>
13641             Chung-Lin Tang  <cltang@codesourcery.com>
13643         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
13644         TARGET_THUMB1_ONLY. Add comments.
13646 2014-06-19  Tom de Vries  <tom@codesourcery.com>
13648         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
13649         return type to void.
13650         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
13652 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13654         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
13655         as "move", from depends_on.
13657 2014-06-19  Terry Guo  <terry.guo@arm.com>
13659         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
13660         stage.
13662 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
13664         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
13665         Remove cr5.
13666         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
13668 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
13670         PR target/61550
13671         * config/sh/sh.c (prepare_move_operands): Don't process TLS
13672         addresses here if reload in progress or completed.
13674 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
13676         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
13677         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
13678         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
13679         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
13680         (mips_register_priority): New function that implements the target
13681         hook TARGET_REGISTER_PRIORITY.
13682         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
13683         (mips_lra_p): Likewise for TARGET_LRA_P.
13684         (TARGET_REGISTER_PRIORITY): Define macro.
13685         (TARGET_SPILL_CLASS): Likewise.
13686         (TARGET_LRA_P): Likewise.
13687         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
13688         classes.
13689         (REG_CLASS_NAMES): Likewise.
13690         (REG_CLASS_CONTENTS): Likewise.
13691         (BASE_REG_CLASS): Use M16_SP_REGS.
13692         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
13693         New set attribute to enable alternatives depending on the register
13694         allocator used.
13695         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
13696         (*lea64): Disable pattern for MIPS16.
13697         * config/mips/mips.opt (mlra): New option.
13699 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
13701         * lra-constraints.c (base_to_reg): New function.
13702         (process_address): Use new function.
13704 2014-06-18  Tom de Vries  <tom@codesourcery.com>
13706         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
13707         * config/aarch64/aarch64.c
13708         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
13709         (aarch64_emit_call_insn): New function.
13710         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
13711         of emit_call_insn.
13712         * config/aarch64/aarch64.md (define_expand "call_internal")
13713         (define_expand "call_value_internal", define_expand "sibcall_internal")
13714         (define_expand "sibcall_value_internal"): New.
13715         (define_expand "call", define_expand "call_value")
13716         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
13717         expand variant and aarch64_emit_call_insn.
13719 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
13720             Tom de Vries  <tom@codesourcery.com>
13722         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
13723         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13724         Redefine to true.
13725         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
13726         clobbers to CALL_INSN_FUNCTION_USAGE.
13727         (define_expand "sibcall_internal")
13728         (define_expand "sibcall_value_internal"): New.
13729         (define_expand "call", define_expand "call_value"): Add argument to
13730         arm_emit_call_insn.
13731         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
13732         (define_expand "sibcall_value"): Use sibcall_value_internal and
13733         arm_emit_call_insn.
13735 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13737         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
13739 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13741         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
13742         __udivmoddi4.
13744 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13746         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
13747         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
13748         annotations. Fix DWARF information.
13750 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13752         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
13753         __udivmoddi4, and fixups for negative operands.
13755 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13757         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
13759 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13761         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
13762         to __udivmoddi4.
13764 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13766         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
13767         manipulation.
13769 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13771         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
13772         describing register usage on function entry and exit.
13774 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13776         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
13777         (__aeabi_ldivmod): Fix whitespace.
13779 2014-06-18  Andreas Schwab  <schwab@suse.de>
13781         * doc/md.texi (Standard Names): Use @itemx for grouped items.
13782         Remove blank line after @item.
13784 2014-06-18  Richard Henderson  <rth@redhat.com>
13786         PR target/61545
13787         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
13789 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13791         * config/arm/arm.c (neon_vector_mem_operand): Allow register
13792         POST_MODIFY for neon loads and stores.
13793         (arm_print_operand): Output post-index register for neon loads and
13794         stores.
13796 2014-06-18  Richard Biener  <rguenther@suse.de>
13798         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
13800 2014-06-18  Richard Biener  <rguenther@suse.de>
13802         * tree-pass.h (make_pass_dce_loop): Remove.
13803         * passes.def: Replace pass_dce_loop with pass_dce.
13804         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
13805         changed free niter estimates and reset the scev cache.
13806         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
13807         make_pass_dce_loop): Remove.
13808         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
13809         (fini_copy_prop): Return whether something changed.  Always
13810         let substitute_and_fold perform DCE and free niter estimates
13811         and reset the scev cache if so.
13812         (execute_copy_prop): If sth changed schedule cleanup-cfg.
13813         (pass_data_copy_prop): Do not unconditionally schedule
13814         cleanup-cfg or update-ssa.
13816 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
13818         PR tree-optimization/61518
13819         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13820         reduction var is used in reduction stmt or phi-function only.
13822 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13824         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
13826 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13828         PR tree-optimization/61517
13829         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
13830         whose rhs's first tree is the source expression instead of the
13831         expression itself.
13832         (find_bswap_or_nop): Likewise.
13833         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
13834         gimple stmt whose rhs's first tree is the source. In the memory source
13835         case, move the stmt to be replaced close to one of the original load to
13836         avoid the problem of a store between the load and the stmt's original
13837         location.
13838         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
13839         signature.
13841 2014-06-18  Andreas Schwab  <schwab@suse.de>
13843         PR rtl-optimization/54555
13844         * postreload.c (move2add_use_add2_insn): Substitute
13845         STRICT_LOW_PART only if it is cheaper.
13847 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
13849         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
13850         Do not use unspec as call operand.  Use memory_operand instead of
13851         memory_nox32_operand and add "m" operand constraint.  Disable
13852         pattern for TARGET_X32.
13853         (*sibcall_pop_memory): Ditto.
13854         (*sibcall_value_memory): Ditto.
13855         (*sibcall_value_pop_memory): Ditto.
13856         (sibcall peepholes): Merge SImode and DImode patterns using
13857         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
13858         Disable pattern for TARGET_X32.  Check if eliminated register is
13859         really dead after call insn.  Generate call RTX without unspec operand.
13860         (sibcall_value peepholes): Ditto.
13861         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
13862         instead of memory_nox32_operand.  Check if eliminated register is
13863         really dead after call insn. Generate call RTX without unspec operand.
13864         (sibcall_value_pop peepholes): Ditto.
13865         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
13867 2014-06-18  Terry Guo  <terry.guo@arm.com>
13869         PR target/61544
13870         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
13871         reach the head.
13873 2014-06-18  Olivier Hainque  <hainque@adacore.com>
13875         * tree-core.h (tree_block): Add an "end_locus" field, allowing
13876         memorization of the end of block source location.
13877         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
13878         * gimplify.c (gimplify_bind_expr): Propagate the block start and
13879         end source location info we have on the block entry/exit code we
13880         generate.
13882 2014-06-18  Richard Biener  <rguenther@suse.de>
13884         * common.opt (fssa-phiopt): New option.
13885         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
13886         but not with -Og.
13887         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
13888         * doc/invoke.texi (-fssa-phiopt): Document.
13890 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13892         * genattrtab.c (n_bypassed): New variable.
13893         (process_bypasses): Initialise n_bypassed.
13894         Count number of bypassed reservations.
13895         (make_automaton_attrs): Allocate space for bypassed reservations
13896         rather than number of bypasses.
13898 2014-06-18  Richard Biener  <rguenther@suse.de>
13900         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
13901         we propagated anything.
13902         (substitute_and_fold_dom_walker::before_dom_children): Something
13903         changed if we propagated into PHI arguments.
13904         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
13905         we removed a stmt.
13907 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
13909         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
13910         vector case.
13911         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
13912         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
13913         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
13914         Introduces alternative way of loads group permutaions.
13915         (vect_transform_grouped_load): Try alternative way of permutations.
13917 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
13919         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
13920         changed in ORT_TARGET region, don't jump to do_outer.
13921         (struct gimplify_adjust_omp_clauses_data): New type.
13922         (gimplify_adjust_omp_clauses_1): Adjust for data being
13923         a struct gimplify_adjust_omp_clauses_data pointer instead
13924         of tree *.  Pass pre_p as a new argument to
13925         lang_hooks.decls.omp_finish_clause hook.
13926         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
13927         splay_tree_foreach to pass both list_p and pre_p.
13928         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
13929         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
13930         gimplify_adjust_omp_clauses callers.
13931         * langhooks.c (lhd_omp_finish_clause): New function.
13932         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
13933         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
13934         * langhooks.h (struct lang_hooks_for_decls): Add a new
13935         gimple_seq * argument to omp_finish_clause hook.
13936         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
13937         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
13938         (scan_omp_parallel, lower_omp_for): When adding
13939         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
13940         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
13941         * tree-nested.c (convert_nonlocal_omp_clauses,
13942         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
13943         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
13945 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
13947         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
13948         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
13950 2014-06-17  Xinliang David Li  <davidxl@google.com>
13952         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
13953         * passes.c (pass_init_dump_file): Do not set initialize
13954         flag to false unconditionally.
13956 2014-06-17  Richard Biener  <rguenther@suse.de>
13958         * genopinit.c (main): Use vec<>::qsort method.
13959         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
13960         Likewise.
13961         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
13963 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
13965         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
13966         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
13967         (mips_move_to_gpr_cost): Remove ST_REGS case.
13968         (mips_move_from_gpr_cost): Likewise.
13969         (mips_register_move_cost): Likewise.
13970         (mips_secondary_reload_class): Likewise.
13972 2014-06-17  Richard Biener  <rguenther@suse.de>
13974         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
13975         (pass_all_optimizations): Move 3rd copy-prop pass from after
13976         fre to before ifcombine/phiopt.
13978 2014-06-17  Richard Biener  <rguenther@suse.de>
13980         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
13981         and allow all blocks to be forwarders.
13983 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
13985         PR target/61483
13986         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
13987         variable 'size'; calculate 'size' right in the front; use
13988         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
13989         pcum->aapcs_stack_words.
13991 2014-06-17  Nick Clifton  <nickc@redhat.com>
13993         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
13994         (umulhi3, mulsidi3, umulsidi3): Likewise.
13996 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
13998         PR middle-end/61508
13999         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
14000         check for section name.
14002 2014-06-17  Richard Biener  <rguenther@suse.de>
14004         * tree-ssa-propagate.c: Include domwalk.h.
14005         (substitute_and_fold): Outline main worker into a domwalker ...
14006         (substitute_and_fold_dom_walker::before_dom_children): ... here.
14007         Schedule stmts we can fully propagate for removal.  Remove
14008         poor-mans DCE.
14009         (substitute_and_fold): Apply a dominator walk to perform
14010         substitution.  Process stmts scheduled for removal here.
14012 2014-06-17  Richard Biener  <rguenther@suse.de>
14014         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
14015         of PHI node moving.
14017 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
14019         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
14020         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
14021         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14022         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
14023         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
14024         TARGET_HARD_FLOAT.
14025         (get_fpscr) : Likewise.
14027 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
14029         PR rtl-optimization/61325
14030         * lra-constraints.c (valid_address_p): Add forward declaration.
14031         (simplify_operand_subreg): Check address validity before and after
14032         alter_reg of memory subreg.
14034 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
14036         * config/i386/i386.c (decide_alg): Correctly handle
14037         maximum size of stringop algorithm.
14039 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
14041         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
14043 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
14045         PR rtl-optimization/61522
14046         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
14048 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
14050         Revert:
14051         * symtab.c (symtab_node::reset_section): New method.
14052         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14053         for localization.
14054         * cgraph.h (reset_section): Declare.
14055         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14056         do not consider comdat locals.
14057         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14058         for new symbol.
14059         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14060         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14061         reset sections of symbols dragged out of the comdats.
14062         (function_and_variable_visibility): Reset sections of
14063         localized symbols.
14065 2014-06-16  Richard Biener  <rguenther@suse.de>
14067         PR tree-optimization/61482
14068         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
14069         [-INF(OVF), +INF(OVF)] range.
14071 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14073         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
14074         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
14075         handling 32-bit multiplication.
14077 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
14079         PR middle-end/61430
14080         * lra-lives.c (process_bb_lives): Skip creating copy during
14081         insn scan when src/dest has constrained to same regno.
14083 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
14085         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
14086         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
14088 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
14090         * asan.c (check_func): New function.
14091         (maybe_create_ssa_name): Likewise.
14092         (build_check_stmt_with_calls): Likewise.
14093         (use_calls_p): Likewise.
14094         (report_error_func): Change interface.
14095         (build_check_stmt): Allow non-integer lengths; add support
14096         for new parameter.
14097         (asan_instrument): Likewise.
14098         (instrument_mem_region_access): Moved code to build_check_stmt.
14099         (instrument_derefs): Likewise.
14100         (instrument_strlen_call): Likewise.
14101         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
14102         * doc/invoke.texi: Describe new parameter.
14103         * params.def: Define new parameter.
14104         * params.h: Likewise.
14105         * sanitizer.def: Describe new builtins.
14107 2014-06-16  Richard Biener  <rguenther@suse.de>
14109         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14110         Make all defs available at the end.
14111         (eliminate): If we remove a PHI node schedule cfg-cleanup.
14113 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
14115         PR plugins/45078
14116         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
14118 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
14120         PR bootstrap/61516
14121         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
14122         initialization.  Replace remaining use of uid.
14124 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
14126         * c-family/c-common.c (handle_tls_model_attribute): Use
14127         set_decl_tls_model.
14128         * c-family/c-common.c (handle_tls_model_attribute): Use
14129         set_decl_tls_model.
14130         * cgraph.h (struct varpool_node): Add tls_model.
14131         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
14132         * tree.h (DECL_TLS_MODEL): Update.
14133         (DECL_THREAD_LOCAL_P): Check that variable is static.
14134         (decl_tls_model): Declare.
14135         (set_decl_tls_model): Declare.
14136         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
14137         set symbol prorperties.
14138         (get_emutls_init_templ_addr): Cleanup.
14139         (new_emutls_decl): Update.
14140         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
14141         (lto_input_varpool_node): Likewise.
14142         * lto-streamer-out.c (hash_tree): Likewise.
14143         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14144         not stream DECL_TLS_MODEL.
14145         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
14146         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
14148 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14150         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
14152 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14154         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
14155         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
14156         lists.
14157         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
14158         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
14159         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
14160         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
14161         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
14162         (df_get_artificial_defs, df_get_artificial_uses)
14163         (df_single_def, df_single_use): Update accordingly.
14164         (df_refs_chain_dump): Take the first element in a linked list as
14165         parameter, rather than a pointer to an array of pointers.
14166         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
14167         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
14168         (df_chain_create_bb_process_use): Likewise.
14169         (df_md_bb_local_compute_process_def): Likewise.
14170         * fwprop.c (process_defs, process_uses): Likewise.
14171         (register_active_defs, update_uses): Likewise.
14172         (forward_propagate_asm): Update for new df_ref linking.
14173         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
14174         (df_null_ref_rec, df_null_mw_rec): Likewise.
14175         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
14176         explicitly.
14177         (df_scan_free_bb_info): Remove check for null artificial_defs.
14178         (df_install_ref_incremental): Adjust for new df_ref linking.
14179         Use a single-element insertion rather than a full sort.
14180         (df_ref_chain_delete_du_chain): Take the first element
14181         in a linked list as parameter, rather than a pointer to an array of
14182         pointers.
14183         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
14184         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
14185         (df_insn_info_delete): Remove check for null defs and call to
14186         df_scan_free_mws_vec.
14187         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
14188         null rather than df_null_*_rec.
14189         (df_insn_rescan_debug_internal): Likewise, and update null
14190         checks in the same way.  Remove check for null defs.
14191         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
14192         Move a single element rather doing a full sort.
14193         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
14194         linking.
14195         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
14196         Initialize df_ref and df_mw_hardreg lists to null rather than
14197         df_null_*_rec.
14198         (df_ref_compare): Take df_refs as parameter, transferring the
14199         old interface to...
14200         (df_ref_ptr_compare): ...this new function.
14201         (df_sort_and_compress_refs): Update accordingly.
14202         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
14203         old interface to...
14204         (df_mw_ptr_compare): ...this new function.
14205         (df_sort_and_compress_mws): Update accordingly.
14206         (df_install_refs, df_install_mws): Return a linked list rather than
14207         an array of pointers.
14208         (df_refs_add_to_chains): Assert that old lists are empty rather
14209         than freeing them.
14210         (df_insn_refs_verify): Don't handle null defs speciailly.
14211         * web.c (union_match_dups): Update for new df_ref linking.
14213 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14215         * df.h (df_ref_create, df_ref_remove): Delete.
14216         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
14217         (df_ref_remove): Likewise.
14219 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14221         * df.h (df_single_def, df_single_use): New functions.
14222         * ira.c (find_moveable_pseudos): Use them.
14224 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14226         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
14227         * df-problems.c (df_note_bb_compute): Use it.
14228         * regstat.c (regstat_bb_compute_ri): Likewise.
14230 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14232         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
14233         * cse.c (cse_extended_basic_block): Use them.
14234         * dce.c (mark_artificial_use): Likewise.
14235         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
14236         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14237         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
14238         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
14239         (df_simulate_initialize_backwards): Likewise.
14240         (df_simulate_finalize_backwards): Likewise.
14241         (df_simulate_initialize_forwards): Likewise.
14242         (df_md_simulate_artificial_defs_at_top): Likewise.
14243         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14244         * regrename.c (init_rename_info): Likewise.
14245         * regstat.c (regstat_bb_compute_ri): Likewise.
14246         (regstat_bb_compute_calls_crossed): Likewise.
14248 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14250         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
14251         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
14252         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
14253         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
14254         * combine.c (create_log_links): Likewise.
14255         * compare-elim.c (find_flags_uses_in_insn): Likewise.
14256         (try_eliminate_compare): Likewise.
14257         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
14258         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
14259         (remove_reg_equal_equiv_notes_for_defs): Likewise.
14260         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
14261         (word_dce_process_block, dce_process_block): Likewise.
14262         * ddg.c (def_has_ccmode_p): Likewise.
14263         * df-core.c (df_bb_regno_first_def_find): Likewise.
14264         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
14265         * df-problems.c (df_rd_simulate_one_insn): Likewise.
14266         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14267         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
14268         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
14269         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
14270         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
14271         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
14272         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
14273         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
14274         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14275         * fwprop.c (local_ref_killed_between_p): Likewise.
14276         (all_uses_available_at, free_load_extend): Likewise.
14277         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
14278         * hw-doloop.c (scan_loop): Likewise.
14279         * ifcvt.c (dead_or_predicable): Likewise.
14280         * init-regs.c (initialize_uninitialized_regs): Likewise.
14281         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
14282         (process_bb_node_lives): Likewise.
14283         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
14284         (find_moveable_pseudos): Likewise.
14285         * loop-invariant.c (check_dependencies, record_uses): Likewise.
14286         * recog.c (peep2_find_free_register): Likewise.
14287         * ree.c (get_defs): Likewise.
14288         * regstat.c (regstat_bb_compute_ri): Likewise.
14289         (regstat_bb_compute_calls_crossed): Likewise.
14290         * sched-deps.c (find_inc, find_mem): Likewise.
14291         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
14292         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
14293         * shrink-wrap.c (requires_stack_frame_p): Likewise.
14294         (prepare_shrink_wrap): Likewise.
14295         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
14296         * web.c (union_defs, pass_web::execute): Likewise.
14297         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
14298         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
14300 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
14302         * lra-assign.c (assign_by_spills): Add code to assign vector regs
14303         to inheritance pseudos.
14304         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
14306 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
14308         PR target/61415
14309         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
14310         (BU_MISC_2): Rename to ...
14311         (BU_LDBL128_2): ... this.
14312         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
14313         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
14314         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
14315         RS6000_BTM_LDBL128.
14316         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
14317         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
14318         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
14319         (unpacktf_1): Likewise.
14320         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
14321         (__builtin_longdouble_dw1): Likewise.
14322         * doc/sourcebuild.texi (longdouble128): Document.
14324 2014-06-13  Jeff Law  <law@redhat.com>
14326         PR rtl-optimization/61094
14327         PR rtl-optimization/61446
14328         * ree.c (combine_reaching_defs): Get the mode for the copy from
14329         the extension insn rather than the defining insn.
14331 2014-06-13  Dehao Chen  <dehao@google.com>
14333         * dwarf2out.c (add_linkage_name): Emit more linkage name.
14335 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
14337         * doc/install.texi (--enable-linker-plugin-configure-flags)
14338         (--enable-linker-plugin-flags): Document new flags.
14340 2014-06-13  Martin Jambor  <mjambor@suse.cz>
14342         PR ipa/61186
14343         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
14344         cache_token if returning early.
14346 2014-06-13  Nick Clifton  <nickc@redhat.com>
14348         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
14349         requested alignment is active.
14350         (LABEL_ALIGN): Likewise.
14351         (LOOP_ALIGN): Likewise.
14353 2014-06-13  Richard Biener  <rguenther@suse.de>
14355         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14356         Rewrite to propagate the VN result into all uses where
14357         possible and to remove stmts becoming dead because of that.
14358         (eliminate): Generalize stmt removal handling, remove in
14359         reverse dominator order to support proper debug stmt
14360         generation.  Update stmts before removing stmts.
14361         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
14363 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14365         PR tree-optimization/61375
14366         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
14367         symbolic number cannot be represented in an uint64_t.
14368         (find_bswap_or_nop_1): Likewise.
14370 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
14372         * symtab.c (symtab_node::reset_section): New method.
14373         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14374         for localization.
14375         * cgraph.h (reset_section): Declare.
14376         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14377         do not consider comdat locals.
14378         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14379         for new symbol.
14380         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14381         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14382         reset sections of symbols dragged out of the comdats.
14383         (function_and_variable_visibility): Reset sections of
14384         localized symbols.
14386 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
14388         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
14389         to use symtab and decl_binds_to_current_def_p
14390         * tree-vectorizer.c (increase_alignment): Increase alignment
14391         of alias target, too.
14393 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
14395         PR middle-end/61486
14396         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
14397         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
14398         if outer combined construct is distribute.
14399         (gimplify_omp_for): For OMP_DISTRIBUTE set
14400         gimplify_omp_ctxp->distribute.
14401         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
14402         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
14403         mapping into decl map.
14405 2014-06-12  Jason Merrill  <jason@redhat.com>
14407         * common.opt (fabi-version): Change default to 0.
14409 2014-06-12  Jason Merrill  <jason@redhat.com>
14411         * toplev.c (process_options): Reject -fabi-version=1.
14413 2014-06-12  Jeff Law  <law@redhat.com>
14415         PR tree-optimization/61009
14416         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
14417         value when we stop processing a block due to problematic PHIs.
14419 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
14421         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
14422         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
14423         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
14424         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
14425         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
14426         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
14427         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
14428         are not in the spec.
14430 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
14432         PR target/59843
14433         * config/aarch64/aarch64-modes.def: Add V1DFmode.
14434         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
14435         Support V1DFmode.
14437 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
14439         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
14441 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
14443         PR target/61443
14444         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
14445         loading from address spaces.
14447 2014-06-12  Martin Liska  <mliska@suse.cz>
14449         PR ipa/61462
14450         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
14451         statement is reachable.
14453 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
14455         * symtab.c (section_hash): New hash.
14456         (symtab_unregister_node): Clear section before freeing.
14457         (hash_section_hash_entry): New haser.
14458         (eq_sections): New function.
14459         (symtab_node::set_section_for_node): New method.
14460         (set_section_1): Update.
14461         (symtab_node::set_section): Take string instead of tree as parameter.
14462         (symtab_resolve_alias): Update.
14463         * cgraph.h (section_hash_entry_d): New structure.
14464         (section_hash_entry): New typedef.
14465         (cgraph_node): Change comdat_group_ to x_comdat_group,
14466         change section_ to x_section and turn into section_hash_entry;
14467         update accestors; put set_section_for_node offline.
14468         * tree.c (decl_section_name): Turn into string.
14469         (set_decl_section_name): Change parameter to be string.
14470         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
14471         * sdbout.c (sdbout_one_type): Update.
14472         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
14473         * varasm.c (IN_NAMED_SECTION, get_named_section,
14474         resolve_unique_section, hot_function_section, get_named_text_section,
14475         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
14476         make_decl_rtl, default_unique_section): Update.
14477         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
14478         (c6x_elf_unique_section): Update.
14479         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
14480         * config/pa/pa.c (pa_function_section): Update.
14481         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
14482         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
14483         * config/arc/arc.c (arc_in_small_data_p): Update.
14484         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
14485         * config/mcore/mcore.c (mcore_unique_section): Update.
14486         * config/mips/mips.c (mips16_build_function_stub): Update.
14487         (mips16_build_call_stub): Update.
14488         (mips_function_rodata_section): Update.
14489         (mips_in_small_data_p): Update.
14490         * config/score/score.c (score_in_small_data_p): Update.
14491         * config/rx/rx.c (rx_in_small_data): Update.
14492         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
14493         (rs6000_xcoff_asm_named_section): Update.
14494         (rs6000_xcoff_unique_section): Update.
14495         * config/frv/frv.c (frv_string_begins_with): Update.
14496         (frv_in_small_data_p): Update.
14497         * config/v850/v850.c (v850_encode_data_area): Update.
14498         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
14499         (bfin_handle_l1_data_attribute): Update.
14500         (bfin_handle_l2_attribute): Update.
14501         * config/mep/mep.c (mep_unique_section): Update.
14502         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
14503         Update.
14504         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
14505         (h8300_handle_tiny_data_attribute): Update.
14506         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
14507         (m32r_in_small_data_p): Update.
14508         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
14509         * config/i386/i386.c (ix86_in_large_data_p): Update.
14510         * config/i386/winnt.c (i386_pe_unique_section): Update.
14511         * config/darwin.c (darwin_function_section): Update.
14512         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
14513         * tree-emutls.c (get_emutls_init_templ_addr): Update.
14514         (new_emutls_decl): Update.
14515         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
14516         input_varpool_node): Update.
14517         (ead_string_cst): Turn to ...
14518         (read_string): ... this one.
14519         * dwarf2out.c (secname_for_decl): Update.
14520         * asan.c (asan_protect_global): Update.
14522 2014-06-11  DJ Delorie  <dj@redhat.com>
14524         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
14525         cache lines.
14526         * config/rx/rx.c (rx_option_override): Likewise.
14527         (rx_align_for_label): Likewise.
14529         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
14531 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
14533         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
14534         prototype.
14536 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14538         * common.md: New file.
14539         * doc/md.texi: Update description of generic, machine-independent
14540         constraints.
14541         * config/s390/constraints.md (e): Delete.
14542         * Makefile.in (md_file): Include common.md.
14543         * config/m32c/t-m32c (md_file): Likewise.
14544         * genpreds.c (general_mem): New array.
14545         (generic_constraint_letters): Remove constraints now defined by
14546         common.md.
14547         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
14548         Allow the first character to be '<' or '>' as well.
14549         * genoutput.c (general_mem): New array.
14550         (indep_constraints): Remove constraints now defined by common.md.
14551         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
14552         Remove special handling of 'm'.
14553         * ira-costs.c (record_reg_classes): Remove special handling of
14554         constraints now defined by common.md.
14555         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14556         * ira-lives.c (single_reg_class): Likewise.
14557         (ira_implicitly_set_insn_hard_regs): Likewise.
14558         * lra-constraints.c (reg_class_from_constraints): Likewise.
14559         (process_alt_operands, process_address, curr_insn_transform): Likewise.
14560         * postreload.c (reload_cse_simplify_operands): Likewise.
14561         * reload.c (push_secondary_reload, scratch_reload_class)
14562         (find_reloads, alternative_allows_const_pool_ref): Likewise.
14563         * reload1.c (maybe_fix_stack_asms): Likewise.
14564         * targhooks.c (default_secondary_reload): Likewise.
14565         * stmt.c (parse_output_constraint): Likewise.
14566         * recog.c (preprocess_constraints): Likewise.
14567         (constrain_operands, peep2_find_free_register): Likewise.
14568         (asm_operand_ok): Likewise, but add a comment saying why 'o'
14569         must be handled specially.
14571 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14573         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
14574         * genpreds.c (have_const_dbl_constraints): Delete.
14575         (add_constraint): Don't set it.
14576         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
14577         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
14578         constraints using the lookup_constraint logic.
14579         * ira-lives.c (single_reg_class): Likewise.
14580         * ira.c (ira_setup_alts): Likewise.
14581         * lra-constraints.c (process_alt_operands): Likewise.
14582         * recog.c (asm_operand_ok, constrain_operands): Likewise.
14583         * reload.c (find_reloads): Likewise.
14585 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14587         * genpreds.c (const_int_start, const_int_end): New variables.
14588         (choose_enum_order): Output CONST_INT constraints before memory
14589         constraints.
14590         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
14591         Add CT_CONST_INT.
14592         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
14593         * ira.c (ira_setup_alts): Likewise.
14594         * lra-constraints.c (process_alt_operands): Likewise.
14595         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14596         * reload.c (find_reloads): Likewise.
14598 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14600         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
14601         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
14602         * recog.c (preprocess_constraints): Update accordingly.
14604 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14606         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
14607         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
14608         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
14609         * genpreds.c (print_type_tree): New function.
14610         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
14611         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
14612         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
14613         Write out enum constraint_type and get_constraint_type.
14614         * lra-constraints.c (satisfies_memory_constraint_p): Take a
14615         constraint_num rather than a constraint string.
14616         (satisfies_address_constraint_p): Likewise.
14617         (reg_class_from_constraints): Avoid old constraint macros.
14618         (process_alt_operands, process_address_1): Likewise.
14619         (curr_insn_transform): Likewise.
14620         * ira-costs.c (record_reg_classes): Likewise.
14621         (record_operand_costs): Likewise.
14622         * ira-lives.c (single_reg_class): Likewise.
14623         (ira_implicitly_set_insn_hard_regs): Likewise.
14624         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14625         * postreload.c (reload_cse_simplify_operands): Likewise.
14626         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14627         (constrain_operands, peep2_find_free_register): Likewise.
14628         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
14629         (find_reloads, alternative_allows_const_pool_ref): Likewise.
14630         * reload1.c (maybe_fix_stack_asms): Likewise.
14631         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14632         * targhooks.c (default_secondary_reload): Likewise.
14633         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
14634         to EXTRA_CONSTRAINT_STR.
14635         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
14637 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14639         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
14640         (write_constraint_satisfied_p_array): ...this new function.
14641         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
14642         an array.
14643         (write_insn_preds_c): Update accordingly.
14645 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14647         * genpreds.c (write_lookup_constraint): Rename to...
14648         (write_lookup_constraint_1): ...this.
14649         (write_lookup_constraint_array): New function.
14650         (write_tm_preds_h): Define lookup_constraint as an inline function
14651         that uses write_lookup_constraint_array where possible.
14652         (write_insn_preds_c): Update for the changes above.
14654 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14656         * doc/md.texi (regclass_for_constraint): Rename to...
14657         (reg_class_for_constraint): ...this.
14658         * genpreds.c (num_constraints, enum_order, register_start)
14659         (register_end, satisfied_start, memory_start, memory_end)
14660         (address_start, address_end): New variables.
14661         (add_constraint): Count the number of constraints.
14662         (choose_enum_order): New function.
14663         (write_enum_constraint_num): Iterate over enum_order.
14664         (write_regclass_for_constraint): Rename to...
14665         (write_reg_class_for_constraint_1): ...this and update output
14666         accordingly.
14667         (write_constraint_satisfied_p): Rename to...
14668         (write_constraint_satisfied_p_1): ...this and update output
14669         accordingly.  Do nothing if all extra constraints are register
14670         constraints.
14671         (write_insn_extra_memory_constraint): Delete.
14672         (write_insn_extra_address_constraint): Delete.
14673         (write_range_function): New function.
14674         (write_tm_preds_h): Define constraint_satisfied_p and
14675         reg_class_for_constraint as inline functions that do a range check
14676         before calling the out-of-line function.  Use write_range_function
14677         to implement insn_extra_{register,memory,address}_constraint,
14678         the first of which is new.
14679         (write_insn_preds_c): Update after above changes to write_* functions.
14680         (main): Call choose_enum_order.
14682 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14684         PR tree-optimization/61306
14685         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
14686         expression instead of its size.
14687         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
14688         false to prevent optimization when the result is unpredictable due to
14689         arithmetic right shift of signed type with highest byte is set.
14690         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
14691         (init_symbolic_number): Likewise.
14692         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
14693         when the result is unpredictable due to sign extension.
14695 2014-06-11  Terry Guo  <terry.guo@arm.com>
14697         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
14698         (*thumb1_addsi3): Ditto.
14699         (*thumb_subdi3): Ditto.
14700         (thumb1_subsi3_insn): Ditto.
14701         (*thumb_mulsi3): Ditto.
14702         (*thumb_mulsi3_v6): Ditto.
14703         (*thumb1_andsi3_insn): Ditto.
14704         (thumb1_bicsi3): Ditto.
14705         (*thumb1_iorsi3_insn): Ditto.
14706         (*thumb1_xorsi3_insn): Ditto.
14707         (*thumb1_ashlsi3): Ditto.
14708         (*thumb1_ashrsi3): Ditto.
14709         (*thumb1_lshrsi3): Ditto.
14710         (*thumb1_rotrsi3): Ditto.
14711         (*thumb1_negdi2): Ditto.
14712         (*thumb1_negsi2): Ditto.
14713         (*thumb1_abssi2): Ditto.
14714         (*thumb1_neg_abssi2): Ditto.
14715         (*thumb1_one_cmplsi2): Ditto.
14716         (*thumb1_zero_extendhisi2): Ditto.
14717         (*thumb1_zero_extendqisi2): Ditto.
14718         (*thumb1_zero_extendqisi2_v6): Ditto.
14719         (thumb1_extendhisi2): Ditto.
14720         (thumb1_extendqisi2): Ditto.
14721         (*thumb1_movdi_insn): Ditto.
14722         (*thumb1_movsi_insn): Ditto.
14723         (*thumb1_movhi_insn): Ditto.
14724         (thumb_movhi_clobber): Ditto.
14725         (*thumb1_movqi_insn): Ditto.
14726         (*thumb1_movhf): Ditto.
14727         (*thumb1_movsf_insn): Ditto.
14728         (*thumb_movdf_insn): Ditto.
14729         (movmem12b): Ditto.
14730         (movmem8b): Ditto.
14731         (cbranchqi4): Ditto.
14732         (cbranchsi4_insn): Ditto.
14733         (cbranchsi4_scratch): Ditto.
14734         (*negated_cbranchsi4): Ditto.
14735         (*tbit_cbranch): Ditto.
14736         (*tlobits_cbranch): Ditto.
14737         (*tstsi3_cbranch): Ditto.
14738         (*cbranchne_decr1): Ditto.
14739         (*addsi3_cbranch): Ditto.
14740         (*addsi3_cbranch_scratch): Ditto.
14741         (*thumb_cmpdi_zero): Ditto.
14742         (cstoresi_eq0_thumb1): Ditto.
14743         (cstoresi_ne0_thumb1): Ditto.
14744         (*cstoresi_eq0_thumb1_insn): Ditto.
14745         (*cstoresi_ne0_thumb1_insn): Ditto.
14746         (cstoresi_nltu_thumb1): Ditto.
14747         (cstoresi_ltu_thumb1): Ditto.
14748         (thumb1_addsi3_addgeu): Ditto.
14749         (*thumb_jump): Ditto.
14750         (*call_reg_thumb1_v5): Ditto.
14751         (*call_reg_thumb1): Ditto.
14752         (*call_value_reg_thumb1_v5): Ditto.
14753         (*call_value_reg_thumb1): Ditto.
14754         (*call_insn): Ditto.
14755         (*call_value_insn): Ditto.
14756         (thumb1_casesi_internal_pic): Ditto.
14757         (thumb1_casesi_dispatch): Ditto.
14758         (*thumb1_indirect_jump): Ditto.
14759         (prologue_thumb1_interwork): Ditto.
14760         (*epilogue_insns): Ditto.
14761         (consttable_1): Ditto.
14762         (consttable_2): Ditto.
14763         (tablejump): Ditto.
14764         (*thumb1_tablejump): Ditto.
14765         (thumb_eh_return): Ditto.
14766         (define_peephole2): Two of them are thumb1 only and got moved into
14767         new file thumb1.md.
14768         (define_split): Six of them are thumb1 only and got moved into new
14769         file thumb1.md.
14770         * config/arm/thumb1.md: New file comprised of above thumb1 only
14771         patterns.
14773 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14775         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
14776         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
14777         dependencies.
14778         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
14779         (aarch64_crc_builtin_datum): New struct.
14780         (aarch64_crc_builtin_data): New.
14781         (aarch64_init_crc32_builtins): New function.
14782         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
14783         (aarch64_crc32_expand_builtin): New.
14784         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
14785         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14786         __ARM_FEATURE_CRC32 when appropriate.
14787         (TARGET_CRC32): Define.
14788         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
14789         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
14790         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
14791         (aarch64_<crc_variant>): New pattern.
14792         * config/aarch64/arm_acle.h: New file.
14793         * config/aarch64/iterators.md (CRC): New int iterator.
14794         (crc_variant, crc_mode): New int attributes.
14795         * doc/aarch64-acle-intrinsics.texi: New file.
14796         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
14797         Include aarch64-acle-intrinsics.texi.
14799 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
14801         * tree-vect-data-refs.c (vect_grouped_store_supported): New
14802         check for stores group of length 3.
14803         (vect_permute_store_chain): New permutations for stores group of
14804         length 3.
14805         * tree-vect-stmts.c (vect_model_store_cost): Change cost
14806         of vec_perm_shuffle for the new permutations.
14808 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
14810         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
14811         table rewriting temporarily on targets not supporting ONE_ONLY.
14813 2014-06-11  Richard Biener  <rguenther@suse.de>
14815         PR middle-end/61437
14816         Revert
14817         2014-06-04  Richard Biener  <rguenther@suse.de>
14819         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
14820         TREE_PUBLIC and DECL_EXTERNAL decls.
14822 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
14824         * varasm.c (set_implicit_section): New function.
14825         (resolve_unique_section): Use it to set implicit section
14826         for aliases, too.
14827         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
14828         (default_function_section): Likewise.
14829         (decl_binds_to_current_def_p): Constify argument.
14830         * varasm.h (decl_binds_to_current_def_p): Update prototype.
14831         * asan.c (asan_protect_global): Use
14832         symtab_get_node (decl)->implicit_section.
14833         * symtab.c (dump_symtab_base): Dump implicit sections.
14834         (verify_symtab_base): Verify sanity of sectoins and comdats.
14835         (symtab_resolve_alias): Alias share the section of its target.
14836         (set_section_1): New function.
14837         (symtab_node::set_section): Move here, recurse to aliases.
14838         (verify_symtab): Check for duplicated symtab lists.
14839         * tree-core.h (implicit_section_name_p): Remove.
14840         * tree-vect-data-refs.c: Include varasm.h.
14841         (vect_can_force_dr_alignment_p): Fix conditional on when
14842         decl bints to current definition; use
14843         symtab_get_node (decl)->implicit_section.
14844         * cgraph.c (cgraph_make_node_local_1): Fix section set.
14845         * cgraph.h (struct symtab_node): Add implicit_section.
14846         (set_section): Rename to ...
14847         (set_section_for_node): ... this one.
14848         (set_section): Declare.
14849         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
14850         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
14851         input_overwrite_node, input_varpool_node): Stream implicit_section.
14852         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
14853         removal; it will fail in LTO.
14855 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14857         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
14858         Change second alternative type to f_mcr.
14859         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
14860         and 12th alternatives' types to f_mcr and f_mrc.
14861         (*movdi_aarch64): Same for 12th and 13th alternatives.
14862         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
14863         (aarch64_movtilow_tilow): Change type to fmov.
14865 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
14867         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
14868         (aarch64_save_or_restore_callee_save_registers): Fix layout.
14870 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14872         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
14873         New expander.
14874         (aarch64_sqrdmulh_lane<mode>): Likewise.
14875         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14876         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14877         (aarch64_sqdmulh_laneq<mode>): New expander.
14878         (aarch64_sqrdmulh_laneq<mode>): Likewise.
14879         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
14880         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
14881         (aarch64_sqdmulh_lane<mode>): New expander.
14882         (aarch64_sqrdmulh_lane<mode>): Likewise.
14883         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14884         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14885         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
14886         (aarch64_sqdmlal_laneq<mode>): Likewise.
14887         (aarch64_sqdmlsl_lane<mode>): Likewise.
14888         (aarch64_sqdmlsl_laneq<mode>): Likewise.
14889         (aarch64_sqdmlal2_lane<mode>): Likewise.
14890         (aarch64_sqdmlal2_laneq<mode>): Likewise.
14891         (aarch64_sqdmlsl2_lane<mode>): Likewise.
14892         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14893         (aarch64_sqdmull_lane<mode>): Likewise.
14894         (aarch64_sqdmull_laneq<mode>): Likewise.
14895         (aarch64_sqdmull2_lane<mode>): Likewise.
14896         (aarch64_sqdmull2_laneq<mode>): Likewise.
14898 2014-06-10  Richard Biener  <rguenther@suse.de>
14900         PR tree-optimization/61438
14901         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
14902         (eliminate_dom_walker::before_dom_children): Only try to inhibit
14903         insertion of IVs if running PRE.
14904         (eliminate): Adjust.
14905         (pass_pre::execute): Likewise.
14906         (pass_fre::execute): Likewise.
14908 2014-06-10  Richard Biener  <rguenther@suse.de>
14910         PR middle-end/61456
14911         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14912         Do not use the main variant for the type comparison.
14913         (ncr_compar): Likewise.
14914         (nonoverlapping_component_refs_p): Likewise.
14916 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14918         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
14919         REG_CFA_RESTORE mode.
14921 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
14923         * config/i386/i386.c (expand_vec_perm_pblendv): New.
14924         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
14925         expand_vec_perm_pblendv.
14927 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14929         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
14930         available.
14931         Simplify description of __crc32d and __crc32cd intrinsics.
14932         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
14933         availability.
14935 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
14937         PR lto/61334
14938         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
14939         * config.in: Regenerate.
14940         * configure: Likewise.
14942 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
14944         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
14945         and public vars.
14946         (intersect_static_var_sets): Remove.
14947         (propagate): Do not prune local statics.
14949 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
14951         PR fortran/60928
14952         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
14953         Set lastprivate_firstprivate even if omp_private_outer_ref
14954         langhook returns true.
14955         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
14956         langhook, call unshare_expr on new_var and call
14957         build_outer_var_ref to get the last argument.
14959 2014-06-10  Marek Polacek  <polacek@redhat.com>
14961         PR c/60988
14962         * doc/extend.texi: Add cindex for transparent_union.
14964 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14966         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
14967         init_symbolic_number ().
14969 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
14971         PR middle-end/61141
14972         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
14973         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
14974         (verify_rtl_sharing): Likewise.
14976 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
14978         PR c++/54442
14979         * tree.c (build_qualified_type): Use a canonical type for
14980         TYPE_CANONICAL.
14982 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14984         * config/arm/arm-modes.def: Remove XFmode.
14986 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
14988         PR target/61062
14989         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
14990         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
14991         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
14992         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
14993         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
14994         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
14995         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
14996         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
14997         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
14999 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
15001         * tree-core.h (tree_decl_with_vis): Remove section_name.
15003 2014-06-09  Kito Cheng  <kito@0xlab.org>
15005         * ira.c (ira): Don't call init_caller_save if LRA enabled
15006         since LRA use its own infrastructure to handle that.
15008 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15010         * symtab.c (dump_symtab_base): Update dumping.
15011         (symtab_make_decl_local): Clear only DECL_COMDAT.
15012         * tree-vect-data-refs.c (Check that variable is static before
15013         tampering with sections.
15014         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
15015         (cgraph_create_virtual_clone): Likewise.
15016         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
15017         (decl_section_name, set_decl_section_name): New accessors.
15018         (find_decls_types_r): Do not walk section name
15019         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
15020         (decl_comdat_group, decl_comdat_group_id): Constify.
15021         (decl_section_name, set_decl_section_name): Update.
15022         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
15023         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
15024         (cgraph_make_node_local_1): Clear section and comdat group.
15025         * cgraph.h (set_comdat_group): Sanity check.
15026         (get_section, set_section): New.
15027         * ipa-comdats.c (ipa_comdats): Use get_section.
15028         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
15029         * lto-streamer-out.c: Do not follow section names.
15030         * c-family/c-common.c (handle_section_attribute): Update.
15031         * lto-cgraph.c (lto_output_node): Output section.
15032         (lto_output_varpool_node): Likewise.
15033         (read_comdat_group): Rename to ...
15034         (read_identifier): ... this one.
15035         (read_string_cst): New function.
15036         (input_node, input_varpool_node): Input section names.
15037         * tree-emutls.c (get_emutls_init_templ_addr): Update.
15038         (new_emutls_decl): Update.
15039         (secname_for_decl): Check section names only of static vars.
15040         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
15041         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
15042         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15043         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15044         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
15045         * config/mcore/mcore.c (mcore_unique_section): Likewise.
15046         * config/mips/mips.c (mips16_build_function_stub): Likewise.
15047         * config/v850/v850.c (v850_insert_attributes): Likewise.
15048         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
15049         Likewise.
15050         (h8300_handle_tiny_data_attribute): Likewise.
15051         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
15052         (bfin_handle_l2_attribute): Likewise.
15054 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15056         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
15057         remove static initializer.
15059 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15061         * varasm.c (use_blocks_for_decl_p): Check symbol table
15062         instead of alias attribute.
15063         (place_block_symbol): Recurse on aliases.
15065 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15067         * ipa-visibility.c: Include varasm.h
15068         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
15070 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15072         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
15073         outputting aliases.
15075 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
15077         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
15078         from test_insn into GGC space escape via SET_SRC.
15080 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
15082         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
15083         call statement, if any.
15084         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
15085         statements, if any.  Tidy up.
15087 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
15089         PR target/61431
15090         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
15091         iterators, VSX_D that handles 64-bit types, and VSX_LE that
15092         handles swapping the two 64-bit double words on little endian
15093         systems.  Include V1TImode and optionally TImode in VSX_LE so that
15094         these types are properly swapped.  Change all of the insns and
15095         splits that do the 64-bit swaps to use VSX_LE.
15096         (vsx_le_perm_load_<mode>): Likewise.
15097         (vsx_le_perm_store_<mode>): Likewise.
15098         (splitters for little endian memory operations): Likewise.
15099         (vsx_xxpermdi2_le_<mode>): Likewise.
15100         (vsx_lxvd2x2_le_<mode>): Likewise.
15101         (vsx_stxvd2x2_le_<mode>): Likewise.
15103 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
15105         PR target/61423
15106         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
15107         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
15108         and corresponding splitters.  Zero extend general register
15109         or memory input operand to XMM temporary.  Enable for
15110         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
15111         (floatunssi<mode>2): Update expander predicate.
15113 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
15115         PR rtl-optimization/61325
15116         * lra-constraints.c (process_address_1): Check scale equal to one
15117         to prevent transformation: base + scale * index => base + new_reg.
15119 2014-06-06  Richard Biener  <rguenther@suse.de>
15121         PR tree-optimization/59299
15122         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
15123         a def operand.
15124         (nearest_common_dominator_of_uses): Likewise.
15125         (statement_sink_location): Adjust.  Support sinking loads.
15127 2014-06-06  Martin Jambor  <mjambor@suse.cz>
15129         * ipa-prop.c (get_place_in_agg_contents_list): New function.
15130         (build_agg_jump_func_from_list): Likewise.
15131         (determine_known_aggregate_parts): Renamed to
15132         determine_locally_known_aggregate_parts.  Moved some functionality
15133         to the two functions above, removed bound checks.
15135 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
15137         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
15138         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
15139         (aarch64_progress_pointer): Likewise.
15140         (aarch64_copy_one_part_and_move_pointers): Likewise.
15141         (aarch64_expand_movmen): Likewise.
15142         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
15143         * config/aarch64/aarch64.md (movmem<mode>): New.
15145 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
15147         * targhooks.c (default_add_stmt_cost): Call target specific
15148         hook instead of default one.
15150 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15152         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
15153         endianness instead of host endianness.
15154         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
15155         comments.
15157 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15159         PR debug/53927
15160         * function.c (instantiate_decls): Process the saved static chain.
15161         (expand_function_start): If not optimizing, save the static chain
15162         onto the stack.
15163         * tree-nested.c (convert_all_function_calls): Always create the static
15164         chain for nested functions if not optimizing.
15166 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15168         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
15170 2014-06-06  Richard Biener  <rguenther@suse.de>
15172         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
15173         (construct_init_block): Likewise.
15174         (construct_exit_block): Likewise.
15175         (pass_expand::execute): Likewise.
15176         * graphite.c (graphite_transforms): Replace check for current_loops
15177         with a check for > 1 loops.
15178         (pass_graphite_transforms::execute): Adjust.
15179         * ipa-split.c (split_function): Remove check for current_loops.
15180         * omp-low.c (expand_parallel_call): Likewise.
15181         (expand_omp_for_init_counts): Likewise.
15182         (extract_omp_for_update_vars): Likewise.
15183         (expand_omp_for_generic): Likewise.
15184         (expand_omp_sections): Likewise.
15185         (expand_omp_target): Likewise.
15186         * tracer.c (tail_duplicate): Likewise.
15187         (pass_tracer::execute): Likewise.
15188         * trans-mem.c (expand_transaction): Likewise.
15189         * tree-complex.c (expand_complex_div_wide): Likewise.
15190         * tree-eh.c (lower_resx): Likewise.
15191         (cleanup_empty_eh_merge_phis): Likewise.
15192         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
15193         current_loops with a check for > 1 loops.
15194         (pass_predcom::execute): Adjust.
15195         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
15196         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
15197         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
15198         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
15199         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
15200         * tree-switch-conversion.c (process_switch): Likewise.
15201         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
15202         * tree-vrp.c (vrp_visit_phi_node): Likewise.
15203         (execute_vrp): Likewise.
15204         * ubsan.c (ubsan_expand_null_ifn): Likewise.
15206 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15208         * rtl.h (insn_location): Declare.
15209         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
15210         with UNKNOWN_LOCATION.
15211         * emit-rtl.c (insn_location): New function.
15212         * final.c (notice_source_line): Check that the instruction has a
15213         location before retrieving it and use insn_location.
15214         * modulo-sched.c (loop_single_full_bb_p): Likewise.
15215         * print-rtl.c (print_rtx): Likewise.
15217 2014-06-06  Richard Biener  <rguenther@suse.de>
15219         * passes.def: Move 2nd VRP pass before phi-only-cprop.
15221 2014-06-06  Christian Bruel  <christian.bruel@st.com>
15223         PR tree-optimization/43934
15224         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
15225         cost.
15227 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
15229         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
15230         return NO_REGS for extra address and memory constraints.  Handle
15231         operands that match (or are equivalent to something that matches)
15232         extra constant constraints.  Ignore other non-register operands.
15234 2014-06-06  Alan Modra  <amodra@gmail.com>
15236         PR target/61300
15237         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
15238         * doc/tm.texi: Regenerate.
15239         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
15240         Use throughout in place of REG_PARM_STACK_SPACE.
15241         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
15242         "incoming" param.  Pass to rs6000_function_parms_need_stack.
15243         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
15244         prototype_p when incoming.  Use function decl when incoming
15245         to handle K&R style functions.
15246         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
15247         (INCOMING_REG_PARM_STACK_SPACE): Define.
15249 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15251         PR target/52472
15252         * cfgexpand.c (expand_debug_expr): Use address space of nested
15253         TREE_TYPE for ADDR_EXPR and MEM_REF.
15255 2014-06-05  Jeff Law  <law@redhat.com>
15257         PR tree-optimization/61289
15258         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
15259         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
15260         looking for those which match LHS.  All callers changed.
15261         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
15262         parameters and code which manipulated them.  All callers changed.
15263         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
15264         and DST_MAP parameters.  Simplify invalidation code by just calling
15265         invalidate_equivalences.  All callers changed.
15266         (thread_across_edge): Simplify now that we don't need to maintain
15267         the map of equivalences to invalidate.
15269 2014-06-05  Kai Tietz  <ktietz@redhat.com>
15270             Richard Henderson  <rth@redhat.com>
15272         PR target/46219
15273         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
15274         checking for !TARGET_X32.
15275         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
15276         (sibcall_intern): New define_insn, plus required peepholes.
15277         (sibcall_pop_intern): Likewise.
15278         (sibcall_value_intern): Likewise.
15279         (sibcall_value_pop_intern): Likewise.
15281 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
15283         * tree-inline.c (tree_function_versioning): Check DF info existence
15284         before accessing it.
15286 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15288         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
15289         frame_size.
15290         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
15291         aarch64_frame hard_fp_offset and frame_size.
15292         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
15293         frame_size; remove original_frame_size.
15294         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
15295         (aarch64_initial_elimination_offset): Remove frame_size and
15296         offset.  Use aarch64_frame frame_size.
15298 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15299             Jiong Wang  <jiong.wang@arm.com>
15300             Renlin  <renlin.li@arm.com>
15302         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
15303         initialization of R30 offset.  Update offset.  Iterate core
15304         regisers upto X30.  Remove X29, X30 specific code.
15306 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15307             Jiong Wang  <jiong.wang@arm.com>
15309         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
15310         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
15311         (aarch64_register_saved_on_entry): Adjust test.
15313 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15315         * config/aarch64/aarch64.h (machine_function): Move
15316         saved_varargs_size from here...
15317         (aarch64_frame): ... to here.
15319         * config/aarch64/aarch64.c (aarch64_expand_prologue)
15320         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
15321         (aarch64_initial_elimination_offset)
15322         (aarch64_setup_incoming_varargs): Adjust location of
15323         saved_varargs_size.
15325 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15327         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
15328         layout comment.
15330 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
15331             Prachi Godbole  <Prachi.Godbole@imgtec.com>
15333         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
15334         mips32r5 entry to use PROCESSOR_P5600.
15335         * config/mips/mips-tables.opt: Regenerate.
15336         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
15337         * config/mips/mips.c (mips_fmadd_bypass): New function.
15338         (mips_rtx_cost_data): Add costs for p5600.
15339         (mips_issue_rate): Add support for p5600.
15340         (mips_multipass_dfa_lookahead): Likewise.
15341         * config/mips/mips.h (TUNE_P5600): New define.
15342         (TUNE_MACC_CHAINS): Add TUNE_P5600.
15343         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
15344         * config/mips/mips.md: Include p5600.md.
15345         (processor): Add p5600.
15346         * config/mips/p5600.md: New file.
15348 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
15350         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
15351         * config/i386/predicates.md (palignr_operand): New.
15352         Indicates if permutation is suitable for palignr instruction.
15354 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
15356         PR tree-optimization/61319
15357         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15358         stmt belongs to loop.
15360 2014-06-05  Richard Biener  <rguenther@suse.de>
15362         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
15363         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
15364         (lookup_tmp_var): Adjust.
15365         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
15367 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15369         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
15371 2014-06-05  Marek Polacek  <polacek@redhat.com>
15373         PR c/49706
15374         * doc/invoke.texi: Document -Wlogical-not-parentheses.
15376 2014-06-04  Tom de Vries  <tom@codesourcery.com>
15378         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
15379         CONST_INT.
15381 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
15383         PR tree-optimization/61385
15384         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
15386 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
15388         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
15389         changed to use fatal_error.
15390         (main): Ensure lto_wrapper_cleanup is run atexit.
15392 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15394         * lra-constraints.c (valid_address_p): Move earlier in file.
15395         (address_eliminator): New structure.
15396         (satisfies_memory_constraint_p): New function.
15397         (satisfies_address_constraint_p): Likewise.
15398         (process_alt_operands, process_address, curr_insn_transform): Use them.
15400 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15402         * lra-int.h (lra_static_insn_data): Make operand_alternative a
15403         const pointer.
15404         (target_lra_int, default_target_lra_int, this_target_lra_int)
15405         (op_alt_data): Delete.
15406         * lra.h (lra_init): Delete.
15407         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
15408         (init_insn_code_data_once): Remove op_alt_data handling.
15409         (finish_insn_code_data_once): Likewise.
15410         (init_op_alt_data): Delete.
15411         (get_static_insn_data): Initialize operand_alternative to null.
15412         (free_insn_recog_data): Cast operand_alternative before freeing it.
15413         (setup_operand_alternative): Take the operand_alternative as
15414         parameter and assume it isn't already cached in the static
15415         insn data.
15416         (lra_set_insn_recog_data): Update accordingly.
15417         (lra_init): Delete.
15418         * ira.c (ira_init): Don't call lra_init.
15419         * target-globals.h (this_target_lra_int): Declare.
15420         (target_globals): Remove lra_int.
15421         (restore_target_globals): Update accordingly.
15422         * target-globals.c: Don't include lra-int.h.
15423         (default_target_globals, save_target_globals): Remove lra_int.
15425 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15427         * recog.h (operand_alternative): Convert reg_class, reject,
15428         matched and matches into bitfields.
15429         (preprocess_constraints): New overload.
15430         (preprocess_insn_constraints): New function.
15431         (preprocess_constraints): Take the insn as parameter.
15432         (recog_op_alt): Change into a pointer.
15433         (target_recog): Add x_op_alt.
15434         * recog.c (asm_op_alt): New variable.
15435         (recog_op_alt): Change into a pointer.
15436         (preprocess_constraints): New overload, replacing the old function
15437         definition with one that doesn't use global state.
15438         (preprocess_insn_constraints): New function.
15439         (preprocess_constraints): Use them.  Take the insn as parameter.
15440         Use asm_op_alt for asms.
15441         (recog_init): Free existing x_op_alt entries.
15442         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
15443         pointer const.
15444         (make_early_clobber_and_input_conflicts): Likewise.
15445         (process_bb_node_lives): Pass the insn to process_constraints.
15446         * reg-stack.c (check_asm_stack_operands): Likewise.
15447         (subst_asm_stack_regs): Likewise.
15448         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
15449         * regrename.c (build_def_use): Likewise.
15450         * sched-deps.c (sched_analyze_insn): Likewise.
15451         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
15452         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
15453         (note_invalid_constants): Likewise.
15454         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15455         (ix86_legitimate_combined_insn): Make operand_alternative pointer
15456         const.
15458 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15460         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
15461         * ira-lives.c (check_and_make_def_conflict): Check for disabled
15462         alternatives.
15463         (make_early_clobber_and_input_conflicts): Likewise.
15464         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15466 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15468         * recog.h (alternative_class): New function.
15469         (which_op_alt): Return a const recog_op_alt.
15470         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
15471         (subst_asm_stack_regs): Likewise.
15472         * config/arm/arm.c (note_invalid_constants): Likewise.
15473         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
15474         the operand_alternative; use alternative class instead.
15475         * sel-sched.c (get_reg_class): Likewise.
15476         * regrename.c (build_def_use): Likewise.
15477         (hide_operands, restore_operands, record_out_operands): Update type
15478         accordingly.
15480 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15482         * recog.h (recog_op_alt): Convert to a flat array.
15483         (which_op_alt): New function.
15484         * recog.c (recog_op_alt): Convert to a flat array.
15485         (preprocess_constraints): Update accordingly, grouping all
15486         operands of the same alternative together, rather than the
15487         other way around.
15488         * ira-lives.c (check_and_make_def_conflict): Likewise.
15489         (make_early_clobber_and_input_conflicts): Likewise.
15490         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15491         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
15492         (subst_asm_stack_regs): Likewise.
15493         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
15494         * regrename.c (hide_operands, record_out_operands): Likewise.
15495         (build_def_use): Likewise.
15496         * sel-sched.c (get_reg_class): Likewise.
15497         * config/arm/arm.c (note_invalid_constants): Likewise.
15499 2014-06-04  Jason Merrill  <jason@redhat.com>
15501         PR c++/51253
15502         PR c++/61382
15503         * gimplify.c (gimplify_arg): Non-static.
15504         * gimplify.h: Declare it.
15506 2014-06-04  Richard Biener  <rguenther@suse.de>
15508         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
15509         TREE_PUBLIC and DECL_EXTERNAL decls.
15511 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
15513         * regcprop.c (copyprop_hardreg_forward_1): Account for
15514         HARD_REGNO_CALL_PART_CLOBBERED.
15516 2014-06-04  Richard Biener  <rguenther@suse.de>
15518         * configure.ac: Check whether the underlying type of int64_t
15519         is long or long long.
15520         * configure: Regenerate.
15521         * config.in: Likewise.
15522         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
15523         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15525 2014-06-04  Richard Biener  <rguenther@suse.de>
15527         PR tree-optimization/60098
15528         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
15529         we hit a kill.
15530         (dse_optimize_stmt): Simplify, now that we found a kill
15531         earlier.
15533 2014-06-04  Richard Biener  <rguenther@suse.de>
15535         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
15536         of accesses with non-invariant address.
15538 2014-06-04  Martin Liska  <mliska@suse.cz>
15540         * cgraph.h (cgraph_make_wrapper): New function introduced.
15541         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
15542         * ipa-inline.h (inline_analyze_function): The function is global.
15543         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
15545 2014-06-04  Martin Liska  <mliska@suse.cz>
15547         * tree.h (private_lookup_attribute_starting): New function.
15548         (lookup_attribute_starting): Likewise.
15549         * tree.c (private_lookup_attribute_starting): Likewise.
15551 2014-06-04  Martin Liska  <mliska@suse.cz>
15553         * cgraph.h (expand_thunk): New argument added.
15554         (address_taken_from_non_vtable_p): New global function.
15555         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
15556         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
15557         * cgraphunit.c (analyze_function): Likewise.
15558         (assemble_thunks_and_aliases): Argument added to call.
15559         (expand_thunk): New argument forces to produce GIMPLE thunk.
15561 2014-06-04  Martin Liska  <mliska@suse.cz>
15563         * coverage.h (coverage_compute_cfg_checksum): Argument added.
15564         * coverage.c (coverage_compute_cfg_checksum): Likewise.
15565         * profile.c (branch_prob): Likewise.
15567 2014-06-04  Martin Jambor  <mjambor@suse.cz>
15569         PR ipa/61340
15570         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
15571         handler for switch on an ipa_ref_use enum.
15572         * ipa-reference.c (analyze_function): Likewise.
15574 2014-06-04  Kai Tietz  <ktietz@redhat.com>
15576         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
15577         from old call-instruction.
15579 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
15581         * config/aarch64/aarch64.c (aarch64_classify_address)
15582         (aarch64_legitimize_reload_address): Support full addressing modes
15583         for vector modes.
15584         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
15585         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
15587 2014-06-03  Andrew Pinski  <apinski@cavium.com>
15589         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
15590         for OP0.
15592 2014-06-03  Andrew Pinski  <apinski@cavium.com>
15594         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
15595         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
15597 2014-06-03  Kai Tietz  <ktietz@redhat.com>
15599         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
15600         for 64-bit ms-abi.
15602 2014-06-03  Dehao Chen  <dehao@google.com>
15604         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
15605         the same loop.
15607 2014-06-03  Marek Polacek  <polacek@redhat.com>
15609         PR c/60439
15610         * doc/invoke.texi: Document -Wswitch-bool.
15611         * function.c (stack_protect_epilogue): Cast controlling expression of
15612         the switch to int.
15613         * gengtype.c (walk_type): Generate switch expression with its
15614         controlling expression cast to int.
15616 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
15618         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
15619         and attiny841.
15620         * config/avr/avr-tables.opt: Regenerate.
15621         * config/avr/t-multilib: Regenerate.
15622         * doc/avr-mmcu.texi: Regenerate.
15624 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
15625             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15627         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
15628         (ata6617c, ata664251): Add new avr35 devices.
15629         (ata6612c): Add new avr4 device.
15630         (ata6613c, ata6614q): Add new avr5 devices.
15631         * config/avr/avr-tables.opt: Regenerate.
15632         * config/avr/t-multilib: Regenerate.
15633         * doc/avr-mmcu.texi: Regenerate.
15635 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15637         * gcc/config/aarch64/aarch64-builtins.c
15638         (aarch64_types_binop_ssu_qualifiers): New static data.
15639         (TYPES_BINOP_SSU): Define.
15640         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
15641         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
15642         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
15643         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
15644         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
15645         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
15646         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
15647         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
15648         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
15649         suffix to builtin function name, remove cast.
15650         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
15651         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
15652         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
15654 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15656         * gcc/config/aarch64/aarch64-builtins.c
15657         (aarch64_types_binop_uus_qualifiers,
15658         aarch64_types_shift_to_unsigned_qualifiers,
15659         aarch64_types_unsigned_shiftacc_qualifiers): Define.
15660         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
15661         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
15662         sqshlu_n, uqshl_n): Update qualifiers.
15663         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
15664         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
15665         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
15666         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
15667         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
15668         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
15669         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
15670         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
15671         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
15672         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
15673         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
15674         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
15675         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
15676         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
15677         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
15678         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
15679         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
15680         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
15681         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
15682         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
15683         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
15684         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
15685         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
15686         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
15687         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
15688         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
15689         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
15691 2014-06-03  Teresa Johnson  <tejohnson@google.com>
15693         * tree-sra.c (modify_function): Record caller nodes after rebuild.
15695 2014-06-02  Jason Merrill  <jason@redhat.com>
15697         PR c++/61020
15698         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
15700 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15702         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
15703         location == 0.
15705 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15707         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
15708         New pattern.
15709         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
15710         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
15711         * config/aarch64/iterators.md (REVERSE): New iterator.
15712         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
15713         (rev_op): New int_attribute.
15714         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
15715         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
15716         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
15717         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
15718         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
15719         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
15720         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
15721         Replace temporary __asm__ with __builtin_shuffle.
15723 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
15725         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
15726         mips64r5.
15727         * config/mips/mips-tables.opt: Regenerate.
15728         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
15729         to use mips_isa_rev rather than ISA_MIPS32R2.
15730         * config/mips/mips.h (ISA_MIPS32R3): New define.
15731         (ISA_MIPS32R5): New define.
15732         (ISA_MIPS64R3): New define.
15733         (ISA_MIPS64R5): New define.
15734         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
15735         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
15736         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
15737         and mips64r5.
15738         (MIPS_ISA_SYNCI_SPEC): Likewise.
15739         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
15740         (LINK_SPEC): Added mips32r3 and mips32r5.
15741         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
15742         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
15743         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
15744         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
15745         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
15746         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
15747         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
15749 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
15751         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
15752         options.
15753         * config/mips/mips.opt (mxpa): New option.
15754         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
15755         assembler.
15757 2014-06-03  Martin Jambor  <mjambor@suse.cz>
15759         PR ipa/61160
15760         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
15761         thunks.
15763 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15765         PR tree-optimization/61328
15766         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
15767         initialization from find_bswap_or_nop_1.
15768         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
15769         in source_expr2 before using the size value the function sets. Also
15770         make use of init_symbolic_number () in both the old place and
15771         find_bswap_or_nop_load () to avoid reading uninitialized memory when
15772         doing recursion in the GIMPLE_BINARY_RHS case.
15774 2014-06-03  Richard Biener  <rguenther@suse.de>
15776         PR tree-optimization/61383
15777         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
15778         stmts can't trap.
15780 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
15782         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
15783         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
15784         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
15785         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
15786         in this file.
15787         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
15788         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
15789         * system.h: ...here and make it unconditional.
15790         * target.def (conditional_register_usage): Mention
15791         define_register_constraint instead of old-style constraint macros.
15792         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
15793         * doc/tm.texi: Regenerate.
15794         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
15795         protected by !USE_MD_CONSTRAINTS.
15796         * config/frv/frv.md: Remove quote from old version of documentation.
15797         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
15798         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
15799         CONST_DOUBLE_OK_FOR_LETTER.
15800         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
15802 2014-06-02  Andrew Pinski  <apinski@cavium.com>
15804         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
15805         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
15806         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
15807         file whose name depends on -mabi= and -mbig-endian.
15808         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
15809         Handle LP64 better and handle ilp32 too.
15810         (MULTILIB_OPTIONS): Delete.
15811         (MULTILIB_DIRNAMES): Delete.
15813 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
15815         * expr.h: Remove prototypes of functions defined in builtins.c.
15816         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
15817         Remove prototypes of functions defined in builtins.c.
15818         * builtins.h: Update prototype list to include all exported functions.
15819         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
15820         no_c99_libc_has_function): Move to targhooks.c
15821         (build_string_literal, build_call_expr_loc_array,
15822         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
15823         to tree.c.
15824         (expand_builtin_object_size, fold_builtin_object_size): Make static.
15825         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
15826         no_c99_libc_has_function): Relocate from builtins.c.
15827         * tree.c: Include builtins.h.
15828         (build_call_expr_loc_array, build_call_expr_loc_vec,
15829         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
15830         from builtins.c.
15831         * fold-const.h (fold_fma): Move prototype to builtins.h.
15832         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
15833         * asan.c: Include builtins.h.
15834         * cfgexpand.c: Likewise.
15835         * convert.c: Likewise.
15836         * emit-rtl.c: Likewise.
15837         * except.c: Likewise.
15838         * expr.c: Likewise.
15839         * fold-const.c: Likewise.
15840         * gimple-fold.c: Likewise.
15841         * gimple-ssa-strength-reduction.c: Likewise.
15842         * gimplify.c: Likewise.
15843         * ipa-inline.c: Likewise.
15844         * ipa-prop.c: Likewise.
15845         * lto-streamer-out.c: Likewise.
15846         * stmt.c: Likewise.
15847         * tree-inline.c: Likewise.
15848         * tree-object-size.c: Likewise.
15849         * tree-sra.c: Likewise.
15850         * tree-ssa-ccp.c: Likewise.
15851         * tree-ssa-forwprop.c: Likewise.
15852         * tree-ssa-loop-ivcanon.c: Likewise.
15853         * tree-ssa-loop-ivopts.c: Likewise.
15854         * tree-ssa-math-opts.c: Likewise.
15855         * tree-ssa-reassoc.c: Likewise.
15856         * tree-ssa-threadedge.c: Likewise.
15857         * tree-streamer-in.c: Likewise.
15858         * tree-vect-data-refs.c: Likewise.
15859         * tree-vect-patterns.c: Likewise.
15860         * tree-vect-stmts.c: Likewise.
15861         * config/aarch64/aarch64.c: Likewise.
15862         * config/alpha/alpha.c: Likewise.
15863         * config/arc/arc.c: Likewise.
15864         * config/arm/arm.c: Likewise.
15865         * config/avr/avr.c: Likewise.
15866         * config/bfin/bfin.c: Likewise.
15867         * config/c6x/c6x.c: Likewise.
15868         * config/cr16/cr16.c: Likewise.
15869         * config/cris/cris.c: Likewise.
15870         * config/epiphany/epiphany.c: Likewise.
15871         * config/fr30/fr30.c: Likewise.
15872         * config/frv/frv.c: Likewise.
15873         * config/h8300/h8300.c: Likewise.
15874         * config/i386/i386.c: Likewise.
15875         * config/i386/winnt.c: Likewise.
15876         * config/ia64/ia64.c: Likewise.
15877         * config/iq2000/iq2000.c: Likewise.
15878         * config/lm32/lm32.c: Likewise.
15879         * config/m32c/m32c.c: Likewise.
15880         * config/m32r/m32r.c: Likewise.
15881         * config/m68k/m68k.c: Likewise.
15882         * config/mcore/mcore.c: Likewise.
15883         * config/mep/mep.c: Likewise.
15884         * config/microblaze/microblaze.c: Likewise.
15885         * config/mips/mips.c: Likewise.
15886         * config/mmix/mmix.c: Likewise.
15887         * config/mn10300/mn10300.c: Likewise.
15888         * config/moxie/moxie.c: Likewise.
15889         * config/msp430/msp430.c: Likewise.
15890         * config/nds32/nds32.c: Likewise.
15891         * config/pa/pa.c: Likewise.
15892         * config/pdp11/pdp11.c: Likewise.
15893         * config/picochip/picochip.c: Likewise.
15894         * config/rl78/rl78.c: Likewise.
15895         * config/rs6000/rs6000.c: Likewise.
15896         * config/rx/rx.c: Likewise.
15897         * config/s390/s390.c: Likewise.
15898         * config/score/score.c: Likewise.
15899         * config/sh/sh.c: Likewise.
15900         * config/sparc/sparc.c: Likewise.
15901         * config/spu/spu.c: Likewise.
15902         * config/stormy16/stormy16.c: Likewise.
15903         * config/tilegx/tilegx.c: Likewise.
15904         * config/tilepro/tilepro.c: Likewise.
15905         * config/v850/v850.c: Likewise.
15906         * config/vax/vax.c: Likewise.
15907         * config/xtensa/xtensa.c: Likewise.
15909 2014-06-02  Jeff Law  <law@redhat.com>
15911         PR rtl-optimization/61094
15912         * ree.c (combine_reaching_defs): Do not reextend an insn if it
15913         was marked as do_no_reextend.  If a copy is needed to eliminate
15914         an extension, then mark it as do_not_reextend.
15916 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15918         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
15920 2014-06-02  Richard Henderson  <rth@redhat.com>
15922         PR target/61336
15923         * config/alpha/alpha.c (print_operand_address): Allow symbolic
15924         addresses inside asms.  Use output_operand_lossage instead of
15925         gcc_unreachable.
15927 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
15929         PR target/61239
15930         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
15931         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
15933 2014-06-02  Tom de Vries  <tom@codesourcery.com>
15935         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
15936         case that x has VOIDmode.
15938 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
15940         * varasm.c (copy_constant): Delete function.
15941         (build_constant_desc): Don't call it.
15943 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15945         PR target/61154
15946         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
15947         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
15948         with immediate_operand.
15950 2014-06-02  Andreas Schwab  <schwab@suse.de>
15952         * config/ia64/ia64.c
15953         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
15954         pending_data_specs first.
15956 2014-06-02  Richard Biener  <rguenther@suse.de>
15958         PR tree-optimization/61378
15959         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
15960         valueized_anything.
15962 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
15964         * config/i386/constraints.md (Bw): Rename from 'w'.
15965         (Bz): Rename from 'z'.
15966         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
15968 2014-06-01  Kai Tietz  <ktietz@redhat.com>
15970         PR target/61377
15971         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
15972         * config/i386/i386.md (sibcall_insn_operand): Use Bs
15973         instead of m constraint.
15975 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
15977         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
15978         a separate alternative where the scratch operand 2 is marked as
15979         early clobber.
15981 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
15983         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
15984         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
15985         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
15986         and __builtins_arm_get_fpscr.
15987         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15988         __builtins_arm_get_fpscr.
15989         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
15990         __builtins_arm_ldfpscr.
15991         (arm_atomic_assign_expand_fenv): New function.
15992         * config/arm/vfp.md (set_fpscr): New pattern.
15993         (get_fpscr) : Likewise.
15994         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
15995         VUNSPEC_SET_FPSCR.
15996         * doc/extend.texi (AARCH64 Built-in Functions) : Document
15997         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
15999 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
16001         * asan.c (report_error_func): Add SLOW_P argument, use
16002         BUILT_IN_ASAN_*_N if set.
16003         (build_check_stmt): Likewise.
16004         (instrument_derefs): If T has insufficient alignment,
16005         force same handling as for odd sizes.
16007         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
16008         BUILT_IN_ASAN_REPORT_STORE_N): New.
16009         * asan.c (struct asan_mem_ref): Change access_size type to
16010         HOST_WIDE_INT.
16011         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
16012         update_mem_ref_hash_table): Likewise.
16013         (asan_mem_ref_hasher::hash): Hash in a HWI.
16014         (report_error_func): Change size_in_bytes argument to HWI.
16015         Use *_N builtins if size_in_bytes is larger than 16 or not power of
16016         two.
16017         (build_shadow_mem_access): New function.
16018         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
16019         Handle size_in_bytes not power of two or larger than 16.
16020         (instrument_derefs): Don't give up if size_in_bytes is not
16021         power of two or is larger than 16.
16023 2014-05-30  Kai Tietz  <ktietz@redhat.com>
16025         PR target/60104
16026         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
16027         for sibling-tail-calls.
16028         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
16029         to its use.
16030         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
16031         (sibcall_insn_operand): Add check for sibcall_memory_operand.
16033 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16035         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
16036         * config/avr/avr-tables.opt: Regenerate.
16037         * config/avr/t-multilib: Regenerate.
16038         * doc/avr-mmcu.texi: Regenerate.
16040 2014-05-30  Ian Lance Taylor  <iant@google.com>
16042         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
16043         target("sse").
16045 2014-05-30  Tom de Vries  <tom@codesourcery.com>
16047         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
16048         Redefine as true.
16050 2014-05-30  Tom de Vries  <tom@codesourcery.com>
16052         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16053         * lra.c (initialize_lra_reg_info_element): Add init of
16054         actual_call_used_reg_set field.
16055         (lra): Call lra_create_live_ranges before lra_inheritance for
16056         -fuse-caller-save.
16057         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16058         -fuse-caller-save.
16059         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
16060         instead of call_used_reg_set for -fuse-caller-save.
16061         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16063 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16065         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
16066         to mov_imm.
16067         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
16069 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
16071         * ira.c (ira_get_dup_out_num): Check for output operands at
16072         the start of the loop.  Handle cases where an included alternative
16073         follows an excluded one.
16075 2014-05-29  Mike Stump  <mikestump@comcast.net>
16077         PR debug/61352
16078         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
16079         post ld passes when lto is used.
16081 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
16083         PR rtl-optimization/61325
16084         * lra-constraints.c (process_address): Rename to process_address_1.
16085         (process_address): New function.
16087 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
16089         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
16090         TYPES_BINOPV): New static data.
16091         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
16092         New builtin.
16093         * config/aarch64/aarch64-simd.md (aarch64_ext,
16094         aarch64_im_lane_boundsi): New patterns.
16095         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
16096         patterns for EXT.
16097         (aarch64_evpc_ext): New function.
16099         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
16101         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
16102         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
16103         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
16104         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
16105         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
16107 2014-05-29  Tom de Vries  <tom@codesourcery.com>
16109         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
16111 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
16112             Richard Sandiford  <rdsandiford@googlemail.com>
16114         * arm/iterators.md (shiftable_ops): New code iterator.
16115         (t2_binop0, arith_shift_insn): New code attributes.
16116         * arm/predicates.md (shift_nomul_operator): New predicate.
16117         * arm/arm.md (insn_enabled): Delete.
16118         (enabled): Remove insn_enabled test.
16119         (*arith_shiftsi): Delete.  Replace with ...
16120         (*<arith_shift_insn>_multsi): ... new pattern.
16121         (*<arith_shift_insn>_shiftsi): ... new pattern.
16122         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
16124 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
16125             Tom de Vries  <tom@codesourcery.com>
16127         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
16128         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
16129         clobber.
16130         (mips_split_call): Use POST_CALL_TMP_REG.
16131         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
16133 2014-05-29  Tom de Vries  <tom@codesourcery.com>
16135         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
16136         with #ifdef STACK_REGS.
16138 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
16140         * varasm.c (get_variable_section): Walk aliases.
16141         (place_block_symbol): Walk aliases.
16143 2014-05-28  Tom de Vries  <tom@codesourcery.com>
16145         Revert:
16146         2014-05-28  Tom de Vries  <tom@codesourcery.com>
16148         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16149         * lra.c (initialize_lra_reg_info_element): Add init of
16150         actual_call_used_reg_set field.
16151         (lra): Call lra_create_live_ranges before lra_inheritance for
16152         -fuse-caller-save.
16153         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16154         -fuse-caller-save.
16155         * lra-constraints.c (need_for_call_save_p): Use
16156         actual_call_used_reg_set instead of call_used_reg_set for
16157         -fuse-caller-save.
16158         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16160 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16162         * doc/md.texi: Document that the % constraint character must
16163         be at the beginning of the string.
16164         * genoutput.c (validate_insn_alternatives): Check that '=',
16165         '+' and '%' only appear at the beginning of a constraint.
16166         * ira.c (commutative_constraint_p): Delete.
16167         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
16168         at the start of the string.
16169         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
16170         duplicate '='s.
16171         * config/arm/neon.md (bicdi3_neon): Likewise.
16172         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
16173         (slt_si, sltu_si): Likewise.
16174         * config/vax/vax.md (sbcdi3): Likewise.
16175         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
16176         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
16177         (mul64): Move '%' to beginning of constraint.
16178         * config/arm/arm.md (*xordi3_insn): Likewise.
16179         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
16180         (xorsi3): Likewise.
16182 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16184         * doc/md.texi: Document the restrictions on the "enabled" attribute.
16186 2014-05-28  Jason Merrill  <jason@redhat.com>
16188         PR c++/47202
16189         * cgraph.h (symtab_node::get_comdat_group_id): New.
16190         * cgraphunit.c (analyze_functions): Call it.
16191         * symtab.c (dump_symtab_node): Likewise.
16192         * tree.c (decl_comdat_group_id): New.
16193         * tree.h: Declare it.
16194         * lto-streamer-out.c (write_symbol): Use it.
16195         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
16197 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16199         PR bootstrap/PR61146
16200         * wide-int.cc: Do not include longlong.h when compiling with clang.
16202 2014-05-28  Richard Biener  <rguenther@suse.de>
16204         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
16205         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
16206         (vrp_visit_assignment_or_call): Print less vertical space.
16207         (vrp_visit_stmt): Likewise.
16208         (vrp_visit_phi_node): Likewise.  For a PHI argument with
16209         VR_VARYING range consider recording it as copy.
16211 2014-05-28  Richard Biener  <rguenther@suse.de>
16213         Revert
16214         2014-05-28  Richard Biener  <rguenther@suse.de>
16216         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16218 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16220         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
16221         sufficiently aligned and an offset is used at the same time.
16222         (expand_expr_real_1): Likewise.
16224 2014-05-28  Richard Biener  <rguenther@suse.de>
16226         PR middle-end/61045
16227         * fold-const.c (fold_comparison): When folding
16228         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
16229         the sign of the remaining constant operand stays the same.
16231 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
16233         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16234         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
16235         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
16236         to the assembler.
16237         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
16238         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
16239         (m32bit-doubles) Likewise.
16240         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
16241         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
16242         option for RL78.
16244 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16246         * configure.ac ($gcc_cv_ld_clearcap): New test.
16247         * configure: Regenerate.
16248         * config.in: Regenerate.
16249         * config/sol2.opt (mclear-hwcap): New option.
16250         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
16251         * config/sol2-clearcap.map: Moved here from
16252         testsuite/gcc.target/i386/clearcap.map.
16253         * config/sol2-clearcapv2.map: Move here from
16254         gcc.target/i386/clearcapv2.map.
16255         * config/t-sol2 (install): Depend on install-clearcap-map.
16256         (install-clearcap-map): New target.
16257         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
16258         -mclear-hwcap.
16260 2014-05-28  Richard Biener  <rguenther@suse.de>
16262         * hwint.h (*_HALF_WIDE_INT*): Move to ...
16263         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
16264         ... here and remove the rest.
16265         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16267 2014-05-28  Richard Biener  <rguenther@suse.de>
16269         PR tree-optimization/61335
16270         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
16271         new range fails, drop to varying.
16273 2014-05-28  Olivier Hainque  <hainque@adacore.com>
16275         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
16276         (CPP_SPEC): Add entry for -mcpu=8548.
16277         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
16278         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
16280 2014-05-28  Tom de Vries  <tom@codesourcery.com>
16282         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16283         * lra.c (initialize_lra_reg_info_element): Add init of
16284         actual_call_used_reg_set field.
16285         (lra): Call lra_create_live_ranges before lra_inheritance for
16286         -fuse-caller-save.
16287         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16288         -fuse-caller-save.
16289         * lra-constraints.c (need_for_call_save_p): Use
16290         actual_call_used_reg_set instead of call_used_reg_set for
16291         -fuse-caller-save.
16292         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16294 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
16295             Tom de Vries  <tom@codesourcery.com>
16297         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
16298         to gccoptlist.
16299         (@item -fuse-caller-save): New item.
16301 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
16302             Tom de Vries  <tom@codesourcery.com>
16304         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
16305         OPT_fuse_caller_save.
16307 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
16308             Tom de Vries  <tom@codesourcery.com>
16310         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
16311         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
16312         get_call_reg_set_usage.
16313         * resource.c (mark_set_resources, mark_target_live_regs): Use
16314         get_call_reg_set_usage.
16315         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
16316         field.
16317         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
16318         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
16319         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16320         * ira-build.c (ira_create_allocno): Init
16321         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16322         (create_cap_allocno, propagate_allocno_info)
16323         (propagate_some_info_from_allocno)
16324         (copy_info_to_removed_store_destinations): Handle
16325         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16326         * ira-costs.c (ira_tune_allocno_costs): Use
16327         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
16329 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
16330             Tom de Vries  <tom@codesourcery.com>
16332         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
16333         and function_used_regs_valid fields.
16334         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
16335         find_all_hard_reg_sets.
16336         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
16337         (get_call_reg_set_usage): New function.
16338         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
16339         * regs.h (get_call_reg_set_usage): Declare.
16341 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
16343         PR libgcc/61152
16344         * config/dbx.h (License): Add Runtime Library Exception.
16345         * config/newlib-stdint.h (License): Same.
16346         * config/rtems.h (License): Same
16347         * config/initfini-array.h (License): Same
16348         * config/v850/v850.h (License): Same.
16349         * config/v850/v850-opts.h (License): Same
16350         * config/v850/rtems.h (License): Same.
16352 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
16354         PR target/61044
16355         * doc/extend.texi (Local Labels): Note that label differences are
16356         not supported for AVR.
16358 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16359             Olivier Hainque  <hainque@adacore.com>
16361         * rtl.h (set_for_reg_notes): Declare.
16362         * emit-rtl.c (set_for_reg_notes): New function.
16363         (set_unique_reg_note): Use it.
16364         * optabs.c (add_equal_note): Likewise
16366 2014-05-27  Andrew Pinski  <apinski@cavium.com>
16368         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
16369         Use <w> for the register in assembly template.
16370         (stack_protect_test): Use the mode of operands[0] for the result.
16371         (stack_protect_test_<mode>): Use <w> for the register
16372         in assembly template.
16374 2014-05-27  DJ Delorie  <dj@redhat.com>
16376         * config/rx/rx.c (add_vector_labels): New.
16377         (rx_output_function_prologue): Call it.
16378         (rx_handle_func_attribute): Don't require empty arguments.
16379         (rx_handle_vector_attribute): New.
16380         (rx_attribute_table): Add "vector" attribute.
16381         * doc/extend.texi (interrupt, vector): Document new/changed
16382         RX-specific attributes.
16384         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
16386 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
16388         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
16389         predicate to detect a negative quotient.
16391 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
16393         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
16394         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
16395         Add X - Y CMP 0 to X CMP Y transformation.
16396         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
16398 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
16400         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
16401         before printing.
16403 2014-05-27  Steve Ellcey  <sellcey@mips.com>
16405         * config/mips/mips.c: Add include of cgraph.h.
16407 2014-05-27  Richard Biener  <rguenther@suse.de>
16409         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
16411 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
16413         PR libgcc/61152
16414         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
16415         * config/arm/arm-cores.def (License): Same.
16416         * config/arm/arm-opts.h (License): Same.
16417         * config/arm/aout.h (License): Same.
16418         * config/arm/bpabi.h (License): Same.
16419         * config/arm/elf.h (License): Same.
16420         * config/arm/linux-elf.h (License): Same.
16421         * config/arm/linux-gas.h (License): Same.
16422         * config/arm/netbsd-elf.h (License): Same.
16423         * config/arm/uclinux-eabi.h (License): Same.
16424         * config/arm/uclinux-elf.h (License): Same.
16425         * config/arm/vxworks.h (License): Same.
16427 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16429         * config/arm/neon.md (neon_bswap<mode>): New pattern.
16430         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
16431         (arm_init_neon_builtins): Handle NEON_BSWAP.
16432         Define required type nodes.
16433         (arm_expand_neon_builtin): Handle NEON_BSWAP.
16434         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
16435         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
16436         * config/arm/iterators.md (VDQHSD): New mode iterator.
16438 2014-05-27  Richard Biener  <rguenther@suse.de>
16440         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
16441         Try using literal operands when comparing value-ranges failed.
16443 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
16445         * ira.c (commutative_operand): Adjust for change to recog_data.
16446         [Missing from previous commit.]
16448 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
16450         * system.h (TEST_BIT): New macro.
16451         * recog.h (alternative_mask): New type.
16452         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
16453         (recog_data_d): Replace alternative_enabled_p array with
16454         enabled_alternatives.
16455         (target_recog): New structure.
16456         (default_target_recog, this_target_recog): Declare.
16457         (get_enabled_alternatives, recog_init): Likewise.
16458         * recog.c (default_target_recog, this_target_recog): New variables.
16459         (get_enabled_alternatives): New function.
16460         (extract_insn): Use it.
16461         (recog_init): New function.
16462         (preprocess_constraints, constrain_operands): Adjust for change to
16463         recog_data.
16464         * postreload.c (reload_cse_simplify_operands): Likewise.
16465         * reload.c (find_reloads): Likewise.
16466         * ira-costs.c (record_reg_classes): Likewise.
16467         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
16468         all alternatives after a disabled one would be skipped.
16469         (ira_implicitly_set_insn_hard_regs): Likewise.
16470         * ira.c (ira_setup_alts): Adjust for change to recog_data.
16471         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
16472         with enabled_alternatives.
16473         * lra.c (free_insn_recog_data): Update accordingly.
16474         (lra_update_insn_recog_data): Likewise.
16475         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
16476         * lra-constraints.c (process_alt_operands): Likewise.  Handle
16477         only_alternative as part of the enabled mask.
16478         * target-globals.h (this_target_recog): Declare.
16479         (target_globals): Add a recog field.
16480         (restore_target_globals): Restore this_target_recog.
16481         * target-globals.c: Include recog.h.
16482         (default_target_globals): Initialize recog field.
16483         (save_target_globals): Likewise.
16484         * reginfo.c (reinit_regs): Call recog_init.
16485         * toplev.c (backend_init_target): Likewise.
16487 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
16489         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
16490         rather than any named insn's code.
16492 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
16494         PR libgcc/61152
16495         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
16496         * config/arm/arm-cores.def (License): Same.
16498 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
16500         * tree.h (decl_comdat_group): Declare.
16501         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
16502         * tree.c (decl_comdat_group): Here.
16504 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
16506         PR rtl-optimization/61222
16507         * combine.c (simplify_shift_const_1): When moving a PLUS outside
16508         the shift, truncate the PLUS operand to the result mode.
16510 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
16512         PR target/61271
16513         * config/i386/i386.c (ix86_rtx_costs)
16514         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
16515         Fix condition.
16517 2014-05-26  Martin Jambor  <mjambor@suse.cz>
16519         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
16520         subreg uses.
16522 2014-05-26  Richard Biener  <rguenther@suse.de>
16524         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
16525         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
16526         Provide specializations.
16527         (wi::int_traits <HOST_WIDE_INT>,
16528         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
16530 2014-05-26  Alan Modra  <amodra@gmail.com>
16532         PR target/61098
16533         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
16534         params and return a bool.  Remove dead code.  Update comment.
16535         Assert we have a const_int source.  Remove bogus code from
16536         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
16537         handling of constants > 2G and reg_equal note, from..
16538         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
16539         return value.  Update comment.  If we can, use a new pseudo
16540         for intermediate calculations.
16541         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
16542         prototype.
16543         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
16544         call to rs6000_emit_set_const in splitter.
16545         (movdi_internal64+2, +3): Likewise.
16547 2014-05-26  Richard Biener  <rguenther@suse.de>
16549         * system.h: Define __STDC_FORMAT_MACROS before
16550         including inttypes.h.
16551         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
16552         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
16553         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
16554         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
16555         HOST_WIDEST_INT_C): Remove.
16556         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
16557         if C99 inttypes.h is not available.
16558         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
16559         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
16560         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
16561         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
16562         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
16563         (struct output_info): Likewise.
16564         (print_statistics): Adjust.
16565         (dump_bitmap_statistics): Likewise.
16566         * bt-load.c (migrate_btr_defs): Print with PRId64.
16567         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
16568         (MAX_SAFE_MULTIPLIER): Adjust.
16569         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
16570         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
16571         dump_cgraph_node): Likewise.
16572         * final.c (dump_basic_block_info): Likewise.
16573         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
16574         * gcov.c (format_gcov): Likewise.
16575         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
16576         for calculation.
16577         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
16578         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
16579         (inline_small_functions, dump_overall_stats, dump_inline_stats):
16580         Use PRId64 for dumping.
16581         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
16582         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
16583         (add_allocno_hard_regs): Adjust.
16584         * loop-doloop.c (doloop_modify): Print using PRId64.
16585         * loop-iv.c (inverse): Compute in uint64_t.
16586         (determine_max_iter, iv_number_of_iterations): Likewise.
16587         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
16588         Print using PRId64.
16589         * lto-streamer-out.c (write_symbol): Use uint64_t.
16590         * mcf.c (CAP_INFINITY): Use int64_t maximum.
16591         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
16592         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
16593         * modulo-sched.c (const_iteration_count): Use int64_t.
16594         (sms_schedule): Dump using PRId64.
16595         * predict.c (dump_prediction): Likewise.
16596         * pretty-print.h (pp_widest_integer): Remove.
16597         * profile.c (get_working_sets, is_edge_inconsistent,
16598         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
16599         * tree-pretty-print.c (pp_double_int): Remove case handling
16600         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
16601         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
16602         and adjust users.
16603         (pass_optimize_bswap::execute): Remove restriction on hosts.
16604         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
16605         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
16606         * tree.c (widest_int_cst_value): Remove.
16607         * tree.h (widest_int_cst_value): Likewise.
16608         * value-prof.c (dump_histogram_value): Print using PRId64.
16609         * gengtype.c (main): Also inject int64_t.
16610         * ggc-page.c (struct max_alignment): Use int64_t.
16611         * alloc-pool.c (struct allocation_object_def): Likewise.
16612         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
16613         for computation.
16614         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
16615         * doc/tm.texi: Regenerated.
16616         * gengtype-lex.l (IWORD): Handle [u]int64_t.
16617         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
16618         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
16619         mmix_output_register_setting): Use [u]int64_t in prototypes.
16620         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
16621         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
16622         mmix_output_octa, mmix_output_shifted_value): Adjust.
16623         (mmix_intval): Adjust.  Remove unreachable case.
16624         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
16626 2014-05-26  Richard Biener  <rguenther@suse.de>
16628         * configure.ac: Drop __int64 type check.  Insist that we
16629         found uint64_t and int64_t.
16630         * hwint.h (HOST_BITS_PER___INT64): Remove.
16631         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
16632         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
16633         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
16634         (HOST_WIDEST_FAST_INT): Remove __int64 case.
16635         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
16636         for dst_q_src_df_rms_cdt.
16637         * configure: Regenerate.
16638         * config.in: Likewise.
16640 2014-05-26  Michael Tautschnig  <mt@debian.org>
16642         PR target/61249
16643         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
16644         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
16646 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16648         PR rtl-optimization/61278
16649         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
16651 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16653         PR rtl-optimization/61220
16654         Part of PR rtl-optimization/61225
16655         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
16656         insn; skip split_edge for a block with only one successor.
16658 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16660         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
16661         for variables.
16663 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16665         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
16666         (update_vtable_references): New function.
16667         (function_and_variable_visibility): Rewrite also vtable initializers.
16668         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
16670 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16672         * ggc.h (ggc_grow): New function.
16673         * ggc-none.c (ggc_grow): New function.
16674         * ggc-page.c (ggc_grow): Likewise.
16676 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16678         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
16679         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
16680         comdat_can_be_unshared_p, cgraph_externally_visible_p,
16681         varpool_externally_visible_p, can_replace_by_local_alias,
16682         update_visibility_by_resolution_info, function_and_variable_visibility,
16683         pass_data_ipa_function_and_variable_visibility,
16684         make_pass_ipa_function_and_variable_visibility,
16685         whole_program_function_and_variable_visibility,
16686         pass_data_ipa_whole_program_visibility,
16687         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
16688         * cgraph.h (cgraph_local_node_p): Declare.
16689         * ipa-visibility.c: New file.
16690         * Makefile.in (OBJS): Add ipa-visiblity.o
16692 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16694         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
16695         that var decl is available.
16697 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16699         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
16700         symtab_node pointer.
16701         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
16702         (find_decls_types_r): Do not walk COMDAT_GROUP.
16703         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
16704         * varasm.c (make_decl_one_only): Use set_comdat_group;
16705         create node if needed.
16706         * ipa-inline-transform.c (save_inline_function_body): Update
16707         way we decl->symtab mapping.
16708         * symtab.c (symtab_hash, hash_node, eq_node
16709         symtab_insert_node_to_hashtable): Remove.
16710         (symtab_register_node): Update.
16711         (symtab_unregister_node): Update.
16712         (symtab_get_node): Reimplement as inline function.
16713         (symtab_add_to_same_comdat_group): Update.
16714         (symtab_dissolve_same_comdat_group_list): Update.
16715         (dump_symtab_base): Update.
16716         (verify_symtab_base): Update.
16717         (symtab_make_decl_local): Update.
16718         (fixup_same_cpp_alias_visibility): Update.
16719         (symtab_nonoverwritable_alias): Update.
16720         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
16721         * ipa.c (update_visibility_by_resolution_info): UPdate.
16722         * bb-reorder.c: Include cgraph.h
16723         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
16724         with comdat groups.
16725         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
16726         * cgraph.c (cgraph_get_create_node): Update.
16727         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
16728         and comdat_group_.
16729         (symtab_get_node): Make inline.
16730         (symtab_insert_node_to_hashtable): Remove.
16731         (symtab_can_be_discarded): Update.
16732         (decl_comdat_group): New function.
16733         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
16734         Update.
16735         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
16736         comdat group name.
16737         (read_comdat_group): New function.
16738         (input_node, input_varpool_node): Use it.
16739         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
16740         comdat groups.
16741         * mips.c (mips_start_unique_function): Likewise.
16742         (ix86_code_end): Likewise.
16743         (rs6000_code_end): Likweise.
16744         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
16746 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16748         * gengtype-state.c (fatal_reading_state): Bring offline.
16749         * optabs.c (widening_optab_handler): Bring offline.
16750         * optabs.h (widening_optab_handler): Likewise.
16751         * final.c (get_attr_length_1): Likewise.
16753 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16755         * sched-int.h (sd_iterator_cond): Manually tail recurse.
16757 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16759         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
16760         (ppc440-compare): Include shift with dot.
16761         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
16762         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
16763         without dot.
16764         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
16765         without dot.
16766         (e6500_sfx2): Include it.
16767         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
16768         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
16769         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
16770         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
16771         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
16772         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
16773         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
16774         *lshiftrt_internal1le, *lshiftrt_internal1be,
16775         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
16776         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
16777         *rotldi3_internal10le, *rotldi3_internal10be,
16778         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
16779         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
16780         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
16781         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
16782         define_insns): Use type "shift" in the appropriate alternatives.
16784 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16786         * config/rs6000/rs6000.md (type): Add "logical".  Delete
16787         "fast_compare".
16788         (dot): Adjust comment.
16789         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
16790         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
16791         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
16792         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
16793         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
16794         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
16795         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
16796         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16798         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16799         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16800         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16801         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16802         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16803         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16804         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16805         * config/rs6000/8540.md (ppc8540_su): Adjust.
16806         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16807         cell-cmp-microcoded): Adjust.
16808         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16809         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16810         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16811         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16812         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16813         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16814         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16815         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16816         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16817         Adjust.
16818         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16819         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
16820         Adjust.  Adjust comment.
16821         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16822         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16824 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16826         * config/rs6000/rs6000.md (type): Add "add".
16827         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
16828         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
16829         define_insns): Use it.
16830         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16832         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16833         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16834         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16835         * config/rs6000/601.md (ppc601-integer): Adjust.
16836         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16837         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16838         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16839         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16840         * config/rs6000/8540.md (ppc8540_su): Adjust.
16841         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16842         cell-cmp-microcoded): Adjust.
16843         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16844         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16845         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16846         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16847         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16848         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16849         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16850         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16851         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16852         Adjust.
16853         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16854         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
16855         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16856         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16858 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16860         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
16861         "delayed_compare", "var_delayed_compare".
16862         (var_shift): New attribute.
16863         (cell_micro): Adjust.
16864         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
16865         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
16866         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
16867         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
16868         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
16869         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
16870         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
16871         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
16872         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
16873         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
16874         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
16875         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
16876         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
16877         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
16878         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
16879         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
16880         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
16881         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
16882         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
16883         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
16884         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
16885         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
16886         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
16887         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16888         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16890         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16891         * config/rs6000/440.md (ppc440-integer): Adjust.
16892         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16893         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
16894         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16895         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16896         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16897         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16898         * config/rs6000/8540.md (ppc8540_su): Adjust.
16899         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16900         cell-cmp-microcoded): Adjust.
16901         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
16902         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16903         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
16904         e500mc64_delayed): Adjust.
16905         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
16906         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
16907         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16908         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
16909         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
16910         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
16911         power6-delayed-compare, power6-var-delayed-compare): Adjust.
16912         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
16913         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
16914         Adjust comment.
16915         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16916         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16918 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16920         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
16921         (bits): New mode_attr.
16922         (idiv_ldiv): Delete mode_attr.
16923         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
16924         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16925         rs6000_adjust_priority, is_nonpipeline_insn,
16926         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16928         * config/rs6000/40x.md (ppc403-idiv): Adjust.
16929         * config/rs6000/440.md (ppc440-idiv): Adjust.
16930         * config/rs6000/476.md (ppc476-idiv): Adjust.
16931         * config/rs6000/601.md (ppc601-idiv): Adjust.
16932         * config/rs6000/603.md (ppc603-idiv): Adjust.
16933         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
16934         ppc620-ldiv): Adjust.
16935         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
16936         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
16937         * config/rs6000/8540.md (ppc8540_divide): Adjust.
16938         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
16939         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
16940         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
16941         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
16942         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
16943         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
16944         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
16945         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
16946         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
16947         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
16948         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
16949         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
16950         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
16951         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
16952         * config/rs6000/titan.md (titan_fxu_div): Adjust.
16954 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16956         * config/rs6000/rs6000.md (type): Delete "insert_word",
16957         "insert_dword".  Add "insert".
16958         (size): Update comment.
16959         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16960         insn_must_be_first_in_group): Adjust.
16961         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16962         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16963         *insvsi_internal6, insvdi_internal): Adjust.
16965         * config/rs6000/40x.md (ppc403-integer): Adjust.
16966         * config/rs6000/440.md (ppc440-integer): Adjust.
16967         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
16968         * config/rs6000/601.md (ppc601-integer): Adjust.
16969         * config/rs6000/603.md (ppc603-integer): Adjust.
16970         * config/rs6000/6xx.md (ppc604-integer): Adjust.
16971         * config/rs6000/7450.md (ppc7450-integer): Adjust.
16972         * config/rs6000/7xx.md (ppc750-integer): Adjust.
16973         * config/rs6000/8540.md (ppc8540_su): Adjust.
16974         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
16975         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
16976         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16977         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
16978         * config/rs6000/e5500.md (e5500_sfx): Adjust.
16979         * config/rs6000/e6500.md (e6500_sfx): Adjust.
16980         * config/rs6000/mpc.md (mpccore-integer): Adjust.
16981         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
16982         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
16983         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
16984         * config/rs6000/power7.md (power7-integer): Adjust.
16985         * config/rs6000/power8.md (power8-1cyc): Adjust.
16986         * config/rs6000/rs64.md (rs64a-integer): Adjust.
16987         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16989 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16991         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
16992         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
16993         (size): New attribute.
16994         (dot): New attribute.
16995         (cell_micro): Adjust.
16996         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
16997         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
16998         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
16999         umuldi3_highpart): Adjust.
17000         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17001         rs6000_adjust_priority, is_nonpipeline_insn,
17002         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17004         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
17005         ppc405-imul3): Adjust.
17006         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
17007         * config/rs6000/476.md (ppc476-imul): Adjust.
17008         * config/rs6000/601.md (ppc601-imul): Adjust.
17009         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
17010         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
17011         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
17012         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
17013         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
17014         Adjust.
17015         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
17016         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
17017         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
17018         cell-imul): Adjust.
17019         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
17020         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
17021         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
17022         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
17023         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
17024         * config/rs6000/mpc.md (mpccore-imul): Adjust.
17025         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
17026         power4-lmul, power4-imul, power4-imul3): Adjust.
17027         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
17028         power5-lmul, power5-imul, power5-imul3): Adjust.
17029         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
17030         power6-lmul, power6-imul, power6-imul3): Adjust.
17031         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
17032         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
17034         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
17035         rs64a-lmul): Adjust.
17036         * config/rs6000/titan.md (titan_imul): Adjust.
17038 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
17040         * config/rs6000/rs6000.md (type): Add new value "halfmul".
17041         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
17042         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
17043         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
17044         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
17045         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
17046         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
17047         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
17048         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
17049         * config/rs6000/titan.md: Delete nonsensical comment.
17050         (titan_imul): Add type imul3.
17051         (titan_mulhw): Remove type imul3; add type halfmul.
17053 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
17055         * config/rs6000/rs6000.md (type): Reorder, reformat.
17057 2014-05-23  Martin Jambor  <mjambor@suse.cz>
17059         PR tree-optimization/53787
17060         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
17061         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
17062         analysis_done, update all uses.
17063         * ipa-prop.c: Include domwalk.h
17064         (param_analysis_info): Removed.
17065         (param_aa_status): New type.
17066         (ipa_bb_info): Likewise.
17067         (func_body_info): Likewise.
17068         (ipa_get_bb_info): New function.
17069         (aa_overwalked): Likewise.
17070         (find_dominating_aa_status): Likewise.
17071         (parm_bb_aa_status_for_bb): Likewise.
17072         (parm_preserved_before_stmt_p): Changed to use new param AA info.
17073         (load_from_unmodified_param): Accept func_body_info as a parameter
17074         instead of parms_ainfo.
17075         (parm_ref_data_preserved_p): Changed to use new param AA info.
17076         (parm_ref_data_pass_through_p): Likewise.
17077         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
17078         (compute_complex_assign_jump_func): Changed to use new param AA info.
17079         (compute_complex_ancestor_jump_func): Likewise.
17080         (ipa_compute_jump_functions_for_edge): Likewise.
17081         (ipa_compute_jump_functions): Removed.
17082         (ipa_compute_jump_functions_for_bb): New function.
17083         (ipa_analyze_indirect_call_uses): Likewise, moved variable
17084         declarations down.
17085         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
17086         and info, moved variable declarations down.
17087         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
17088         node and info.
17089         (ipa_analyze_stmt_uses): Likewise.
17090         (ipa_analyze_params_uses): Removed.
17091         (ipa_analyze_params_uses_in_bb): New function.
17092         (ipa_analyze_controlled_uses): Likewise.
17093         (free_ipa_bb_info): Likewise.
17094         (analysis_dom_walker): New class.
17095         (ipa_analyze_node): Handle node-specific forbidden analysis,
17096         initialize and free func_body_info, use dominator walker.
17097         (ipcp_modif_dom_walker): New class.
17098         (ipcp_transform_function): Create and free func_body_info, use
17099         ipcp_modif_dom_walker, moved a lot of functionality there.
17101 2014-05-23  Marek Polacek  <polacek@redhat.com>
17102             Jakub Jelinek  <jakub@redhat.com>
17104         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
17105         * gcc.c (sanitize_spec_function): Likewise.
17106         * convert.c (convert_to_integer): Include "ubsan.h".  Add
17107         floating-point to integer instrumentation.
17108         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
17109         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
17110         SANITIZE_NONDEFAULT.
17111         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
17112         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
17113         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
17114         * ubsan.c: Include "realmpfr.h" and "dfp.h".
17115         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
17116         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
17117         float/double/long double.
17118         (ubsan_instrument_float_cast): New function.
17119         * ubsan.h (ubsan_instrument_float_cast): Declare.
17121 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
17123         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
17124         predicate.
17125         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
17126         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
17127         Adjust for tailcalling through registers.
17128         * config/aarch64/aarch64.h (enum reg_class): New caller save
17129         register class.
17130         (REG_CLASS_NAMES): Likewise.
17131         (REG_CLASS_CONTENTS): Likewise.
17132         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
17133         Allow tailcalling without decls.
17135 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
17137         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17138         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
17140         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
17141         gsi, and variables v_* to v*.
17143 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
17145         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
17147 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
17149         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
17150         * omp-low.c: Update accordingly.
17152         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
17153         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
17154         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
17155         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
17156         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
17157         GF_OMP_TARGET_KIND_UPDATE.
17159         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17160         Explicitly enumerate the expected region types.
17162 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17164         PR other/56955
17165         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
17166         documentation; the old documentation didn't clearly state the
17167         constraints on the contents of the pointed-to storage.
17169 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17171         Fix bootstrap error on ia64
17172         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
17173         Return default value.
17175 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17177         PR tree-optimization/54733
17178         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
17179         (CMPNOP): Define.
17180         (find_bswap_or_nop_load): New.
17181         (find_bswap_1): Renamed to ...
17182         (find_bswap_or_nop_1): This. Also add support for memory source.
17183         (find_bswap): Renamed to ...
17184         (find_bswap_or_nop): This. Also add support for memory source and
17185         detection of bitwise operations equivalent to load in target
17186         endianness.
17187         (execute_optimize_bswap): Likewise. Also move its leading comment back
17188         in place and split statement transformation into ...
17189         (bswap_replace): This.
17191 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
17193         PR rtl-optimization/61215
17194         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
17195         simplify_gen_subreg until final substitution.
17197 2014-05-23  Alan Modra  <amodra@gmail.com>
17199         PR target/61231
17200         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
17201         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
17202         Use "Y" constraint rather than "m".
17204 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17206         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
17207         define.
17208         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
17209         New function declaration.
17210         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
17211         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
17212         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
17213         (aarch64_init_builtins) : Initialize builtins
17214         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17215         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17216         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
17217         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
17218         and __builtins_aarch64_set_fpsr.
17219         (aarch64_atomic_assign_expand_fenv): New function.
17220         * config/aarch64/aarch64.md (set_fpcr): New pattern.
17221         (get_fpcr) : Likewise.
17222         (set_fpsr) : Likewise.
17223         (get_fpsr) : Likewise.
17224         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
17225          and UNSPECV_SET_FPSR.
17226         * doc/extend.texi (AARCH64 Built-in Functions) : Document
17227         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17228         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17230 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
17232         PR rtl-optimization/60969
17233         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
17234         constraints.  Set up mem cost for NO_REGS case.
17236 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
17238         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
17240 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
17242         * config/darwin.c: Include "lto-section-names.h".
17243         (LTO_SEGMENT_NAME): Don't define.
17244         * config/i386/winnt.c: Include "lto-section-names.h".
17245         * lto-streamer.c: Include "lto-section-names.h".
17246         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
17247         * lto-wrapper.c: Include "lto-section-names.h".
17248         (LTO_SECTION_NAME_PREFIX): Don't define.
17249         * lto-section-names.h: New file.
17250         * cgraphunit.c: Include "lto-section-names.h".
17252 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
17254         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
17256 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
17258         PR target/61208
17259         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
17261 2014-05-22  Nick Clifton  <nickc@redhat.com>
17263         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
17265 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17267         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
17268         -> (T)A transformation to integer types.
17270 2014-05-22  Teresa Johnson  <tejohnson@google.com>
17272         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
17273         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
17274         (gcov_rewrite): Use gcov_nonruntime_assert.
17275         (gcov_open): Ditto.
17276         (gcov_write_words): Ditto.
17277         (gcov_write_length): Ditto.
17278         (gcov_read_words): Use gcov_nonruntime_assert, and remove
17279         gcc_assert from IN_LIBGCOV code.
17280         (gcov_read_summary): Use gcov_error to flag profile corruption.
17281         (gcov_sync): Use gcov_nonruntime_assert.
17282         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
17283         (gcov_histo_index): Use gcov_nonruntime_assert.
17284         (static void gcov_histogram_merge): Ditto.
17285         (compute_working_sets): Ditto.
17286         * gcov-io.h (gcov_nonruntime_assert): Define.
17287         (gcov_error): Define for !IN_LIBGCOV
17289 2014-05-22  Richard Biener  <rguenther@suse.de>
17291         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17292         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
17293         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
17294         and deallocation site.
17295         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17296         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
17297         passing through the incoming points-to set.
17298         (handle_lhs_call): Use flags argument instead of recomputing it.
17299         (find_func_aliases_for_call): Call handle_lhs_call with proper
17300         call return flags.
17302 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
17304         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
17305         all padding bits in REAL_VALUE_TYPE are cleared.
17307 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17309         Cleanup and improve multipass_dfa_lookahead_guard
17310         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
17311         (core2i7_first_cycle_multipass_begin,)
17312         (core2i7_first_cycle_multipass_issue,)
17313         (core2i7_first_cycle_multipass_backtrack): Update signature.
17314         * config/ia64/ia64.c
17315         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
17316         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
17317         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
17318         hook definition.
17319         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
17320         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
17321         values.
17322         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
17323         return values.
17324         * doc/tm.texi: Regenerate.
17325         * doc/tm.texi.in
17326         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
17327         * haifa-sched.c (ready_try): Make signed to allow negative values.
17328         (rebug_ready_list_1): Update.
17329         (choose_ready): Simplify.
17330         (sched_extend_ready_list): Update.
17332 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17334         Remove IA64 speculation tweaking flags
17335         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
17336         speculation tuning flags.
17337         (msched-prefer-non-data-spec-insns,)
17338         (msched-prefer-non-control-spec-insns): Obsolete options.
17339         * haifa-sched.c (choose_ready): Remove handling of
17340         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17341         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
17342         and PREFER_NON_DATA_SPEC.
17343         * sel-sched.c (process_spec_exprs): Remove handling of
17344         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17346 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17348         Improve scheduling debug output
17349         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
17350         (advance_one_cycle): Update.
17351         (schedule_insn, queue_to_ready): Add debug printouts.
17352         (debug_ready_list_1): New static function.
17353         (debug_ready_list): Update.
17354         (max_issue): Add debug printouts.
17355         (dump_insn_stream): New static function.
17356         (schedule_block): Use it.  Also better indent printouts.
17358 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17360         Fix sched_insn debug counter
17361         * haifa-sched.c (schedule_insn): Update.
17362         (struct haifa_saved_data): Add nonscheduled_insns_begin.
17363         (save_backtrack_point, restore_backtrack_point): Update.
17364         (first_nonscheduled_insn): New static function.
17365         (queue_to_ready, choose_ready): Use it.
17366         (schedule_block): Init nonscheduled_insns_begin.
17367         (sched_emit_insn): Update.
17370 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
17372         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
17373         to GENERAL_REGS.
17374         (aarch64_secondary_reload) : LikeWise.
17375         (aarch64_class_max_nregs) : Remove CORE_REGS.
17376         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
17377         (REG_CLASS_NAMES) : Likewise.
17378         (REG_CLASS_CONTENTS) : LikeWise.
17379         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
17381 2014-05-21  Guozhi Wei  <carrot@google.com>
17383         PR target/61202
17384         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
17385         constraint.
17386         (vqdmulhq_n_s16): Likewise.
17388 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17390         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
17392 2014-05-21  Marek Polacek  <polacek@redhat.com>
17394         PR sanitizer/61272
17395         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
17397 2014-05-21  Martin Jambor  <mjambor@suse.cz>
17399         * doc/invoke.texi (Optimize Options): Document parameters
17400         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
17401         ipa-cp-array-index-hint-bonus.
17403 2014-05-21  Mark Wielaard  <mjw@redhat.com>
17405         PR debug/16063
17406         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
17407         version >= 3 or not strict DWARF.
17408         * langhooks.h (struct lang_hooks_for_types): Add
17409         enum_underlying_base_type.
17410         * langhooks.c (lhd_enum_underlying_base_type): New function.
17411         * gcc/langhooks.h (struct lang_hooks_for_types): Add
17412         enum_underlying_base_type.
17413         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
17414         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
17415         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
17417 2014-05-21  Richard Biener  <rguenther@suse.de>
17419         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
17421 2014-05-21  John Marino  <gnugcc@marino.st>
17423         * config.gcc (*-*-dragonfly*): New target.
17424         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
17425         * configure: Regenerate.
17426         * config/dragonfly-stdint.h: New.
17427         * config/dragonfly.h: New.
17428         * config/dragonfly.opt: New.
17429         * config/i386/dragonfly.h: New.
17430         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
17432 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
17434         * tree.def (VOID_CST): New.
17435         * tree-core.h (TI_VOID): New.
17436         * tree.h (void_node): New.
17437         * tree.c (tree_node_structure_for_code, tree_code_size)
17438         (iterative_hash_expr): Handle VOID_CST.
17439         (build_common_tree_nodes): Initialize void_node.
17441 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
17443         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
17444         functions.
17445         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
17447         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
17448         more places.
17450         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
17451         flag_reorder_blocks_and_partition.
17452         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
17454 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
17456         PR target/54236
17457         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
17458         constraints.
17459         (*addc_r_t): Add new insn_and_split.
17461 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
17463         PR middle-end/61252
17464         * omp-low.c (handle_simd_reference): New function.
17465         (lower_rec_input_clauses): Use it.  Defer adding reference
17466         initialization even for reduction without placeholder if in simd,
17467         handle it properly later on.
17469 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
17471         PR tree-optimization/60899
17472         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
17473         assume all static symbols will have definition wile parsing and
17474         check the do have definition later in compilation; check that
17475         variable referring symbol will be output before concluding that
17476         reference is safe; be conservative for referring local statics;
17477         be more precise about when comdat is output in other partition.
17479 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
17481         PR bootstrap/60984
17482         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
17483         parameter.
17484         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
17485         (ipa_inline): Loop inline_to_all_callers until no more aliases
17486         are removed.
17488 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
17490         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
17491         set writeonly flag only for vars actually written to.
17493 2014-05-20  Dehao Chen  <dehao@google.com>
17495         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
17496         and callee count to get clone count.
17497         * tree-inline.c (expand_call_inline): Use callee count instead of bb
17498         count in copy_body.
17500 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
17502         PR rtl-optimization/61243
17503         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
17505 2014-05-20  Xinliang David Li  <davidxl@google.com>
17507         * cgraphunit.c (walk_polymorphic_call_targets): Add
17508         dbgcnt and fopt-info support.
17509         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
17510         * ipa-devirt.c (ipa_devirt): Ditto.
17511         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
17512         * ipa.c (walk_polymorphic_call_targets): Ditto.
17513         * gimple-fold.c (fold_gimple_assign): Ditto.
17514         (gimple_fold_call): Ditto.
17515         * dbgcnt.def: New counter.
17517 2014-05-20  DJ Delorie  <dj@redhat.com>
17519         * config/msp430/msp430.md (split): Don't allow subregs when
17520         splitting SImode adds.
17521         (andneghi): Fix subtraction logic.
17522         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
17524 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
17526         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
17527         symbols.
17528         * except.c (switch_to_exception_section, resolve_unique_section,
17529         get_named_text_section, default_function_rodata_section,
17530         align_variable, get_block_for_decl, default_section_type_flags):
17531         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
17532         * symtab.c (symtab_add_to_same_comdat_group,
17533         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
17534         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
17535         Likewise.
17536         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
17537         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
17538         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
17539         (c6x_function_in_section_p): Likewise.
17540         * config/darwin.c (machopic_select_section): Likewise.
17541         * config/arm/arm.c (arm_function_in_section_p): Likewise.
17542         * config/mips/mips.c (mips_function_rodata_section): Likewise.
17543         * config/mep/mep.c (mep_select_section): LIkewise.
17544         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
17546 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
17548         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
17549         EH region of calls to pure functions that can throw an exception.
17550         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
17551         (copy_reference_ops_from_call): Also copy the EH region of the call if
17552         it can throw an exception.
17554 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17556         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
17557         nested VEC_SELECTs that are inverses of each other.
17559 2014-05-20  Richard Biener  <rguenther@suse.de>
17561         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
17562         (extract_and_process_scc_for_name): not here.
17563         (cond_dom_walker::before_dom_children): Only process
17564         stmts that end the BB in interesting ways.
17565         (run_scc_vn): Mark param uses as visited.
17567 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17569         * config/arm/arm.md (arith_shiftsi): Do not predicate for
17570         arm_restrict_it.
17572 2014-05-20  Nick Clifton  <nickc@redhat.com>
17574         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
17575         (msp430_gimplify_va_arg_expr): New function.
17576         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
17578         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
17579         operand 0 in order to prevent confusion about the number of
17580         registers involved.
17582 2014-05-20  Richard Biener  <rguenther@suse.de>
17584         PR tree-optimization/61221
17585         * tree-ssa-pre.c (el_to_update): Remove.
17586         (eliminate_dom_walker::before_dom_children): Handle released
17587         VDEFs by value-numbering them to the associated VUSE.  Update
17588         stmt immediately for substituted call address.
17589         (eliminate): Remove delayed stmt updating code.
17590         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
17591         possibly late re-numbered vuses.
17592         (vn_reference_lookup_2): Adjust.
17593         (vn_reference_lookup_pieces): Likewise.
17594         (vn_reference_lookup): Likewise.
17596 2014-05-20  Richard Biener  <rguenther@suse.de>
17598         * config.gcc: Remove need_64bit_hwint.
17599         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
17600         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
17601         it to be true.
17602         * config.in: Regenerate.
17603         * configure: Likewise.
17605 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
17607         * doc/extend.texi: Create Label Attributes section,
17608         move all label attributes into it and reference it.
17610 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
17612         * arm.c (thumb1_reorg): When scanning backwards skip anything
17613         that's not a proper insn.
17615 2014-05-19  Richard Biener  <rguenther@suse.de>
17617         PR tree-optimization/61221
17618         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17619         Do nothing for unreachable blocks.
17620         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
17621         Improve unreachability detection.
17623 2014-05-19  Richard Biener  <rguenther@suse.de>
17625         PR tree-optimization/61209
17626         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
17628 2014-05-19  Nick Clifton  <nickc@redhat.com>
17630         * except.c (init_eh): Fix computation of builtin setjmp buffer
17631         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
17633 2014-05-19  Richard Biener  <rguenther@suse.de>
17635         PR tree-optimization/61184
17636         * tree-vrp.c (is_negative_overflow_infinity): Use
17637         TREE_OVERFLOW_P and do that check first.
17638         (is_positive_overflow_infinity): Likewise.
17639         (is_overflow_infinity): Likewise.
17640         (vrp_operand_equal_p): Properly treat operands with
17641         differing overflow as not equal.
17643 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
17645         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
17646         shift simplification where it was intended.
17648 2014-05-19  Christian Bruel  <christian.bruel@st.com>
17650         PR target/61195
17651         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
17653 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
17655         PR target/61084
17656         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
17657         than wide_int.
17659 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
17661         * reg-notes.def (CROSSING_JUMP): Likewise.
17662         * rtl.h (rtx_def): Update comment for jump flag.
17663         (CROSSING_JUMP_P): Define.
17664         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
17665         of a REG_CROSSING_JUMP note.
17666         * cfghooks.c (tidy_fallthru_edges): Likewise.
17667         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
17668         * emit-rtl.c (try_split): Likewise.
17669         * haifa-sched.c (sched_create_recovery_edges): Likewise.
17670         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
17671         * jump.c (redirect_jump_2): Likewise.
17672         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
17673         (relax_delay_slots): Likewise.
17674         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
17675         (bbit_di): Likewise.
17676         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
17677         * config/sh/sh.md (jump_compact): Likewise.
17678         * bb-reorder.c (rotate_loop): Likewise.
17679         (pass_duplicate_computed_gotos::execute): Likewise.
17680         (add_reg_crossing_jump_notes): Rename to...
17681         (update_crossing_jump_flags): ...this.
17682         (pass_partition_blocks::execute): Update accordingly.
17684 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
17686         * tree.h: Remove extraneous template <>.
17688 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17690         * ipa.c (symtab_remove_unreachable_nodes): Remove
17691         symbol from comdat group if its body was eliminated.
17692         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
17693         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
17694         (symtab_unregister_node): ... this one.
17695         (verify_symtab_base): More strict checking of comdats.
17696         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
17698 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17700         * tree-pass.h (make_pass_ipa_comdats): New pass.
17701         * timevar.def (TV_IPA_COMDATS): New timevar.
17702         * passes.def (pass_ipa_comdats): Add.
17703         * Makefile.in (OBJS): Add ipa-comdats.o
17704         * ipa-comdats.c: New file.
17706 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17708         * ipa.c (update_visibility_by_resolution_info): New function.
17709         (function_and_variable_visibility): Use it.
17711 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17713         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
17714         New functions.
17715         (FOR_EACH_DEFINED_SYMBOL): New macro.
17716         (varpool_first_static_initializer, varpool_next_static_initializer,
17717         varpool_first_defined_variable, varpool_next_defined_variable):
17718         Fix comments.
17719         (symtab_in_same_comdat_p): Correctly deal with inline functions.
17721 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17723         * ggc-page.c (ggc_handle_finalizers): Add comment.
17725 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17727         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
17728         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
17729         (ggc_internal_cleared_alloc): Likewise.
17730         * ggc-page.c (finalizer): New class.
17731         (vec_finalizer): Likewise.
17732         (globals::finalizers): New member.
17733         (globals::vec_finalizers): Likewise.
17734         (ggc_internal_alloc): Record the finalizer if any for the block being
17735         allocated.
17736         (ggc_handle_finalizers): New function.
17737         (ggc_collect): Call ggc_handle_finalizers.
17738         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
17739         finalizer.
17740         (ggc_internal_cleared_alloc): Likewise.
17741         (finalize): New function.
17742         (need_finalization_p): Likewise.
17743         (ggc_alloc): Install the type's destructor as the finalizer if it
17744         might do something.
17745         (ggc_cleared_alloc): Likewise.
17746         (ggc_vec_alloc): Likewise.
17747         (ggc_cleared_vec_alloc): Likewise.
17749 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17751         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
17753 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17755         * alias.c (record_alias_subset): Adjust.
17756         * bitmap.c (bitmap_element_allocate): Likewise.
17757         (bitmap_gc_alloc_stat): Likewise.
17758         * cfg.c (init_flow): Likewise.
17759         (alloc_block): Likewise.
17760         (unchecked_make_edge): Likewise.
17761         * cfgloop.c (alloc_loop): Likewise.
17762         (flow_loops_find): Likewise.
17763         (rescan_loop_exit): Likewise.
17764         * cfgrtl.c (init_rtl_bb_info): Likewise.
17765         * cgraph.c (insert_new_cgraph_node_version): Likewise.
17766         (cgraph_allocate_node): Likewise.
17767         (cgraph_create_edge_1): Likewise.
17768         (cgraph_allocate_init_indirect_info): Likewise.
17769         * cgraphclones.c (cgraph_clone_edge): Likewise.
17770         * cgraphunit.c (add_asm_node): Likewise.
17771         (init_lowered_empty_function): Likewise.
17772         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
17773         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
17774         (alpha_use_linkage): Likewise.
17775         * config/arc/arc.c (arc_init_machine_status): Likewise.
17776         * config/arm/arm.c (arm_init_machine_status): Likewise.
17777         * config/avr/avr.c (avr_init_machine_status): Likewise.
17778         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
17779         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
17780         * config/cris/cris.c (cris_init_machine_status): Likewise.
17781         * config/darwin.c (machopic_indirection_name): Likewise.
17782         (darwin_build_constant_cfstring): Likewise.
17783         (darwin_enter_string_into_cfstring_table): Likewise.
17784         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
17785         * config/frv/frv.c (frv_init_machine_status): Likewise.
17786         * config/i386/i386.c (get_dllimport_decl): Likewise.
17787         (ix86_init_machine_status): Likewise.
17788         (assign_386_stack_local): Likewise.
17789         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
17790         (i386_pe_maybe_record_exported_symbol): Likewise.
17791         (i386_pe_record_stub): Likewise.
17792         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
17793         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
17794         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
17795         (m32c_note_pragma_address): Likewise.
17796         * config/mep/mep.c (mep_init_machine_status): Likewise.
17797         (mep_note_pragma_flag): Likewise.
17798         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
17799         (mips16_local_alias): Likewise.
17800         (mips_init_machine_status): Likewise.
17801         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
17802         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
17803         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
17804         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
17805         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
17806         * config/pa/pa.c (pa_init_machine_status): Likewise.
17807         (pa_get_deferred_plabel): Likewise.
17808         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
17809         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
17810         (rs6000_init_machine_status): Likewise.
17811         (output_toc): Likewise.
17812         * config/s390/s390.c (s390_init_machine_status): Likewise.
17813         * config/score/score.c (score_output_external): Likewise.
17814         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
17815         * config/spu/spu.c (spu_init_machine_status): Likewise.
17816         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
17817         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
17818         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
17819         * coverage.c (coverage_end_function): Likewise.
17820         * dbxout.c (dbxout_init): Likewise.
17821         * doc/gty.texi: Don't mention variable_size attribute.
17822         * dwarf2cfi.c (new_cfi): Adjust.
17823         (new_cfi_row): Likewise.
17824         (copy_cfi_row): Likewise.
17825         (create_cie_data): Likewise.
17826         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
17827         (new_loc_descr): Likewise.
17828         (find_AT_string_in_table): Likewise.
17829         (add_addr_table_entry): Likewise.
17830         (new_die): Likewise.
17831         (add_var_loc_to_decl): Likewise.
17832         (clone_die): Likewise.
17833         (clone_as_declaration): Likewise.
17834         (break_out_comdat_types): Likewise.
17835         (new_loc_list): Likewise.
17836         (add_loc_descr_to_each): Likewise.
17837         (add_location_or_const_value_attribute): Likewise.
17838         (add_linkage_name): Likewise.
17839         (lookup_filename): Likewise.
17840         (dwarf2out_var_location): Likewise.
17841         (new_line_info_table): Likewise.
17842         (dwarf2out_init): Likewise.
17843         (mem_loc_descriptor): Likewise.
17844         (loc_descriptor): Likewise.
17845         (add_const_value_attribute): Likewise.
17846         (tree_add_const_value_attribute): Likewise.
17847         (comp_dir_string): Likewise.
17848         (dwarf2out_vms_debug_main_pointer): Likewise.
17849         (string_cst_pool_decl): Likewise.
17850         * emit-rtl.c (set_mem_attrs): Likewise.
17851         (get_reg_attrs): Likewise.
17852         (start_sequence): Likewise.
17853         (init_emit): Likewise.
17854         (init_emit_regs): Likewise.
17855         * except.c (init_eh_for_function): Likewise.
17856         (gen_eh_region): Likewise.
17857         (gen_eh_region_catch): Likewise.
17858         (gen_eh_landing_pad): Likewise.
17859         (add_call_site): Likewise.
17860         * function.c (add_frame_space): Likewise.
17861         (insert_temp_slot_address): Likewise.
17862         (assign_stack_temp_for_type): Likewise.
17863         (get_hard_reg_initial_val): Likewise.
17864         (allocate_struct_function): Likewise.
17865         (prepare_function_start): Likewise.
17866         (types_used_by_var_decl_insert): Likewise.
17867         * gengtype.c (variable_size_p): Remove function.
17868         (enum alloc_quantity): Remove enum.
17869         (write_typed_alloc_def): Remove function.
17870         (write_typed_struct_alloc_def): Likewise.
17871         (write_typed_typedef_alloc_def): Likewise.
17872         (write_typed_alloc_defns): Likewise.
17873         (main): Adjust.
17874         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
17875         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
17876         * ggc.h (ggc_alloc): new function.
17877         (ggc_cleared_alloc): Likewise.
17878         (ggc_vec_alloc): Template on type of vector element, and remove
17879         element size argument.
17880         (ggc_cleared_vec_alloc): Likewise.
17881         * gimple.c (gimple_build_omp_for): Adjust.
17882         (gimple_copy): Likewise.
17883         * ipa-cp.c (get_replacement_map): Likewise.
17884         (find_aggregate_values_for_callers_subset): Likewise.
17885         (known_aggs_to_agg_replacement_list): Likewise.
17886         * ipa-devirt.c (get_odr_type): Likewise.
17887         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
17888         (read_agg_replacement_chain): Likewise.
17889         * loop-iv.c (get_simple_loop_desc): Likewise.
17890         * lto-cgraph.c (input_node_opt_summary): Likewise.
17891         * lto-section-in.c (lto_new_in_decl_state): Likewise.
17892         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
17893         (input_eh_region): Likewise.
17894         (input_eh_lp): Likewise.
17895         (input_cfg): Likewise.
17896         * optabs.c (set_optab_libfunc): Likewise.
17897         (init_tree_optimization_optabs): Likewise.
17898         (set_conv_libfunc): Likewise.
17899         * passes.c (do_per_function_toporder): Likewise.
17900         * rtl.h: Don't use variable_size gty attribute.
17901         * sese.c (if_region_set_false_region): Adjust.
17902         * stringpool.c (gt_pch_save_stringpool): Likewise.
17903         * target-globals.c (save_target_globals): Likewise.
17904         * toplev.c (general_init): Likewise.
17905         * trans-mem.c (record_tm_replacement): Likewise.
17906         (split_bb_make_tm_edge): Likewise.
17907         * tree-cfg.c (move_sese_region_to_fn): Likewise.
17908         * tree-data-ref.h (lambda_vector_new): Likewise.
17909         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
17910         * tree-iterator.c (tsi_link_before): Likewise.
17911         (tsi_link_after): Likewise.
17912         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
17913         * tree-ssa-loop-niter.c (record_estimate): Likewise.
17914         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
17915         * tree-ssa-operands.h: Don't use variable_size gty attribute.
17916         * tree-ssa.c (init_tree_ssa): Adjust.
17917         * tree-ssanames.c (set_range_info): Likewise.
17918         (get_ptr_info): Likewise.
17919         (duplicate_ssa_name_ptr_info): Likewise.
17920         (duplicate_ssa_name_range_info): Likewise.
17921         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
17922         (unpack_ts_fixed_cst_value_fields): Likewise.
17923         * tree.c (build_fixed): Likewise.
17924         (build_real): Likewise.
17925         (build_string): Likewise.
17926         (decl_priority_info): Likewise.
17927         (decl_debug_expr_insert): Likewise.
17928         (decl_value_expr_insert): Likewise.
17929         (decl_debug_args_insert): Likewise.
17930         (type_hash_add): Likewise.
17931         (build_omp_clause): Likewise.
17932         * ubsan.c (decl_for_type_insert): Likewise.
17933         * varasm.c (get_unnamed_section): Likewise.
17934         (get_noswitch_section): Likewise.
17935         (get_section): Likewise.
17936         (get_block_for_section): Likewise.
17937         (create_block_symbol): Likewise.
17938         (build_constant_desc): Likewise.
17939         (create_constant_pool): Likewise.
17940         (force_const_mem): Likewise.
17941         (record_tm_clone_pair): Likewise.
17942         * varpool.c (varpool_create_empty_node): Likewise.
17944 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17946         * dwarf2out.c (tree_add_const_value_attribute): Call
17947         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
17948         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
17949         instead of ggc_internal_<x>alloc_stat.
17950         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
17951         (ggc_realloc): Likewise.
17952         * ggc-none.c (ggc_internal_alloc): Likewise.
17953         (ggc_internal_cleared_alloc): Likewise.
17954         * ggc-page.c: Likewise.
17955         * ggc.h (ggc_internal_alloc_stat): Likewise.
17956         (ggc_internal_alloc): Remove macro.
17957         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
17958         (ggc_internal_cleared_alloc): Remove macro.
17959         (GGC_RESIZEVEC): Adjust.
17960         (ggc_resizevar): Remove macro.
17961         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
17962         (ggc_internal_cleared_vec_alloc_stat): Likewise.
17963         (ggc_internal_vec_cleared_alloc): Remove macro.
17964         (ggc_alloc_atomic_stat): Drop _stat suffix.
17965         (ggc_alloc_atomic): Remove macro.
17966         (ggc_alloc_cleared_atomic): Remove macro.
17967         (ggc_alloc_string_stat): Drop _stat suffix.
17968         (ggc_alloc_string): Remove macro.
17969         (ggc_alloc_rtx_def_stat): Adjust.
17970         (ggc_alloc_tree_node_stat): Likewise.
17971         (ggc_alloc_cleared_tree_node_stat): Likewise.
17972         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
17973         (ggc_alloc_cleared_simd_clone_stat): Likewise.
17974         * gimple.c (gimple_build_omp_for): Likewise.
17975         (gimple_copy): Likewise.
17976         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
17977         * toplev.c (realloc_for_line_map): Adjust.
17978         * tree-data-ref.h (lambda_vector_new): Likewise.
17979         * tree-phinodes.c (allocate_phi_node): Likewise.
17980         * tree.c (grow_tree_vec_stat): Likewise.
17981         * vec.h (va_gc::reserve): Adjust.
17983 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
17985         * config/microblaze/microblaze.c (break_handler): New Declaration.
17986         (microblaze_break_function_p,microblaze_is_break_handler): New.
17987         (compute_frame_size): Use microblaze_break_function_p.
17988         Add the test of break_handler.
17989         (microblaze_function_prologue) : Add the test of variable
17990         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
17991         (microblaze_function_epilogue) : Add the test of break_handler.
17992         (microblaze_globalize_label) : Add the test of break_handler.
17993         Check the name by BREAK_HANDLER_NAME.
17995         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
17997         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
17998         microblaze_is_break_handler test.
17999         (call_internal1,call_value_intern): Use microblaze_break_function_p.
18000         Use SYMBOL_REF_DECL.
18002         * config/microblaze/microblaze-protos.h
18003         (microblaze_break_function_p,microblaze_is_break_handler):
18004         New Declaration.
18006         * doc/extend.texi (MicroBlaze break_handler Functions): Document
18007         new MicroBlaze break_handler functions.
18009 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
18011         * doc/extend.texi (Size of an asm): Move node text according
18012         to its @menu entry position.
18014 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
18016         PR tree-optimization/61140
18017         PR tree-optimization/61150
18018         PR tree-optimization/61197
18019         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
18021 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
18023         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
18025 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
18027         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
18028         __SIZEOF_INT128__ is defined.
18030 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
18032         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
18033         (rs6000_delegitimize_address): Use it.
18035 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
18037         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
18038         inplace argument.  Store the new address in the original MEM when true.
18039         * emit-rtl.c (change_address_1): Likewise.
18040         (adjust_address_1, adjust_automodify_address_1, offset_address):
18041         Update accordingly.
18042         * rtl.h (plus_constant): Add an inplace argument.
18043         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
18044         when true.  Avoid generating (plus X (const_int 0)).
18045         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
18046         in-place.  Pass true to plus_constant.
18047         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
18049 2014-05-16  Dehao Chen  <dehao@google.com>
18051         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
18053 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
18055         PR target/54089
18056         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
18057         patterns.
18058         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
18060 2014-05-16  Dehao Chen  <dehao@google.com>
18062         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
18063         optimize_function_for_size_p.
18064         * regs.h (REG_FREQ_FROM_BB): Likewise.
18066 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
18068         PR target/51244
18069         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
18070         negt_reg_operand cases.
18071         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
18072         predicate.
18073         * config/sh/predicates.md (cbranch_treg_value): Simplify.
18075 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
18077         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
18078         target variants.
18080 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
18082         Revert:
18083         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
18085         * tree-cfg.c (dump_function_to_file): Dump the return type of
18086         functions, in a line to itself before the function body, mimicking
18087         the layout of a C function.
18089 2014-05-16  Dehao Chen  <dehao@google.com>
18091         * cfghooks.c (make_forwarder_block): Use direct computation to
18092         get fall-through edge's count and frequency.
18094 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
18096         * config/arc/arc.c (arc_init): Fix typo in error message.
18097         * config/i386/i386.c (ix86_expand_builtin): Likewise.
18098         (split_stack_prologue_scratch_regno): Likewise.
18099         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
18100         word from error message.
18102 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18104         * ira-costs.c: Fix typo in comment.
18106 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
18108         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
18110 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
18112         * varpool.c (dump_varpool_node): Dump write-only flag.
18113         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
18114         write-only flag.
18115         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
18116         write-only variables.
18117         * ipa.c (process_references): New function.
18118         (set_readonly_bit): New function.
18119         (set_writeonly_bit): New function.
18120         (clear_addressable_bit): New function.
18121         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
18122         fix handling of aliases.
18123         * cgraph.h (struct varpool_node): Add writeonly flag.
18125 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
18127         PR rtl-optimization/60969
18128         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
18129         Calculate costs for this case.
18131 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
18133         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
18134         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
18136 2014-05-16  Richard Biener  <rguenther@suse.de>
18138         PR tree-optimization/61194
18139         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
18140         bool patterns ending in a COND_EXPR.
18142 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18144         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
18146 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18148         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
18149         where we were unable to cost an RTX.
18151 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18153         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
18154         HIGH, LO_SUM.
18156 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18157             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18159         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
18161 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18162             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18164         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
18165         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
18167 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18168             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18170         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
18171         operators.
18173 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18174             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18176         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18177         DIV/MOD.
18179 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18180             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18182         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
18183         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
18185 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18186             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18188         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18189         rotates and shifts.
18191 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18192             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18194         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
18195         ZERO_EXTEND and SIGN_EXTEND better.
18197 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18198             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18200         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
18201         logical operations.
18203 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18204             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18206         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
18207         costs when costing loads and stores to memory.
18209 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18210             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
18212         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
18213         for SET RTX.
18215 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18217         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
18219 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18220             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18222         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
18223         to...
18224         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
18225         well formed.
18226         (aarch64_rtx_mult_cost): New.
18227         (aarch64_rtx_costs): Use it, refactor as appropriate.
18229 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18230             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18232         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
18233         emit instructions, return number of instructions which would
18234         be emitted.
18235         (aarch64_add_constant): Update call to aarch64_build_constant.
18236         (aarch64_output_mi_thunk): Likewise.
18237         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
18238         a CONST_DOUBLE.
18240 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18242         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
18243         (TARGET_RTX_COSTS): Call it.
18245 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18247         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
18248         (cortexa57_vector_cost): Likewise.
18249         (cortexa57_tunings): Use them.
18251 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18253         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
18254         (cpu_addrcost_table): Use it.
18255         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
18256         (aarch64_address_cost): Rewrite using aarch64_classify_address,
18257         move it.
18259 2014-05-16  Richard Biener  <rguenther@suse.de>
18261         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
18262         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
18263         (visit_phi): Ignore edges marked as not executable.
18264         (class cond_dom_walker): New.
18265         (cond_dom_walker::before_dom_children): Value-number
18266         control statements and mark successor edges as not
18267         executable if possible.
18268         (run_scc_vn): First walk all control statements in
18269         dominator order, marking edges as not executable.
18270         * tree-inline.c (copy_edges_for_bb): Be not confused
18271         about random edge flags.
18273 2014-05-16  Richard Biener  <rguenther@suse.de>
18275         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
18277 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
18279         PR target/61193
18280         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
18281         (__TM_simple_begin): Use it.
18282         (__TM_begin): Likewise.
18284 2014-05-15  Martin Jambor  <mjambor@suse.cz>
18286         PR ipa/61085
18287         * ipa-prop.c (update_indirect_edges_after_inlining): Check
18288         type_preserved flag when the indirect edge is polymorphic.
18290 2014-05-15  Martin Jambor  <mjambor@suse.cz>
18292         PR tree-optimization/61090
18293         * tree-sra.c (sra_modify_expr): Pass the current gsi to
18294         build_ref_for_model.
18296 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18298         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
18299         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
18301 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
18303         PR tree-optimization/61158
18304         * fold-const.c (fold_binary_loc): If X is zero-extended and
18305         shiftc >= prec, make sure zerobits is all ones instead of
18306         invoking undefined behavior.
18308 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18310         * regcprop.h: New file.
18311         * regcprop.c (skip_debug_insn_p): New decl.
18312         (replace_oldest_value_reg): Check skip_debug_insn_p.
18313         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
18314         * shrink-wrap.c: Include regcprop.h.
18315         (prepare_shrink_wrap): Call
18316         copyprop_hardreg_forward_bb_without_debug_insn.
18318 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18320         * shrink-wrap.h: Update comment.
18321         * shrink-wrap.c: Update comment.
18322         (next_block_for_reg): Rename to live_edge_for_reg.
18323         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
18324         (move_insn_for_shrink_wrap): Split live_edge.
18325         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
18327 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
18329         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
18330         Delete.
18331         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
18332         * config/sparc/sparc.md (fptype_ut699): New attribute.
18333         (in_branch_delay): Return false if -mfix-ut699 is specified and
18334         fptype_ut699 is set to single.
18335         (truncdfsf2): Add fptype_ut699 attribute.
18336         (fix_truncdfsi2): Likewise.
18337         (floatsisf2): Change fptype attribute.
18338         (fix_truncsfsi2): Likewise.
18339         (negtf2_notv9): Delete.
18340         (negtf2_v9): Likewise.
18341         (negtf2_hq): New instruction.
18342         (negtf2): New instruction and splitter.
18343         (negdf2_notv9): Rewrite.
18344         (abstf2_notv9): Delete.
18345         (abstf2_hq_v9): Likewise.
18346         (abstf2_v9): Likewise.
18347         (abstf2_hq): New instruction.
18348         (abstf2): New instruction and splitter.
18349         (absdf2_notv9): Rewrite.
18351 2014-05-14  Cary Coutant  <ccoutant@google.com>
18353         PR debug/61013
18354         * opts.c (common_handle_option): Don't special-case "-g".
18355         (set_debug_level): Default to at least level 2 with "-g".
18357 2014-05-14  DJ Delorie  <dj@redhat.com>
18359         * config/msp430/msp430.c (msp430_builtin): Add
18360         MSP430_BUILTIN_DELAY_CYCLES.
18361         (msp430_init_builtins): Register void __delay_cycles(long long).
18362         (msp430_builtin_decl): Add it.
18363         (cg_magic_constant): New.
18364         (msp430_expand_delay_cycles): New.
18365         (msp430_expand_builtin): Call it.
18366         (msp430_print_operand_raw): Change integer printing from "int" to
18367         HOST_WIDE_INT.
18368         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
18369         (delay_cycles_start): New.
18370         (delay_cycles_end): New.
18371         (delay_cycles_32): New.
18372         (delay_cycles_32x): New.
18373         (delay_cycles_16): New.
18374         (delay_cycles_16x): New.
18375         (delay_cycles_2): New.
18376         (delay_cycles_1): New.
18377         * doc/extend.texi: Document __delay_cycles().
18379 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
18381         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
18382         length attribute computation.
18384 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
18386         PR debug/61188
18387         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
18389 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
18391         PR target/61084
18392         * config/sparc/sparc.md: Fix types of low and high in DI constant
18393         splitter.  Use gen_int_mode in some other splitters.
18395 2014-05-14  Martin Jambor  <mjambor@suse.cz>
18397         PR ipa/60897
18398         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
18400 2014-05-14  James Norris  <jnorris@codesourcery.com>
18402         * omp-low.c (expand_parallel_call): Remove shadow variable.
18403         (expand_omp_taskreg): Likewise.
18405 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
18407         * common/config/i386/i386-common.c
18408         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
18409         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
18410         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
18411         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
18412         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
18413         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
18414         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
18415         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
18416         xsavecintrin.h, xsavesintrin.h.
18417         (x86_64-*-*): Ditto.
18418         * config/i386/clflushoptintrin.h: New.
18419         * config/i386/xsavecintrin.h: Ditto.
18420         * config/i386/xsavesintrin.h: Ditto.
18421         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
18422         (bit_XSAVES): Ditto.
18423         (bit_XSAVES): Ditto.
18424         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18425         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
18426         -mno-clflushopt.
18427         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18428         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
18429         OPTION_MASK_ISA_XSAVES.
18430         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
18431         -mxsavec, -mxsaves.
18432         (PTA_CLFLUSHOPT) Define.
18433         (PTA_XSAVEC): Ditto.
18434         (PTA_XSAVES): Ditto.
18435         (ix86_option_override_internal): Handle new options.
18436         (ix86_valid_target_attribute_inner_p): Ditto.
18437         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
18438         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
18439         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
18440         (bdesc_special_args): Add __builtin_ia32_xsaves,
18441         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
18442         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
18443         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
18444         (ix86_expand_builtin): Handle new builtins.
18445         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
18446         (TARGET_CLFLUSHOPT_P): Ditto.
18447         (TARGET_XSAVEC): Ditto.
18448         (TARGET_XSAVEC_P): Ditto.
18449         (TARGET_XSAVES): Ditto.
18450         (TARGET_XSAVES_P): Ditto.
18451         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
18452         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
18453         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
18454         (ANY_XRSTOR): New.
18455         (ANY_XRSTOR64): Ditto.
18456         (xrstor): Ditto.
18457         (xrstor): Change into <xrstor>.
18458         (xrstor_rex64): Change into <xrstor>_rex64.
18459         (xrstor64): Change into <xrstor>64
18460         (clflushopt): New.
18461         * config/i386/i386.opt (mclflushopt): New.
18462         (mxsavec): Ditto.
18463         (mxsaves): Ditto.
18464         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
18465         xsavecintrin.h.
18466         * doc/invoke.texi: Document new options.
18468 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
18470         PR rtl-optimization/60866
18471         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
18472         Default it to -1.  Pass it down to init_simplejump_data.
18473         (init_simplejump_data): New parameter old_seqno.  Pass it down
18474         to get_seqno_for_a_jump.
18475         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
18476         initializing new jump seqno as a last resort.  Add comment.
18477         (sel_redirect_edge_and_branch): Save old seqno of the conditional
18478         jump and pass it down to sel_init_new_insn.
18479         (sel_redirect_edge_and_branch_force): Likewise.
18481 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
18483         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
18484         shifted values to avoid build warning.
18486 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
18488         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
18489         * cfgrtl.c (rtl_merge_blocks): Fix comment.
18490         (cfg_layout_merge_blocks): Likewise.
18491         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
18493 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
18495         PR rtl-optimization/60901
18496         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
18497         bb predecessor belongs to the same scheduling region.  Adjust comment.
18499 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
18501         * doc/sourcebuild.texi: (dfp_hw): Document.
18502         (p8vector_hw): Likewise.
18503         (powerpc_eabi_ok): Likewise.
18504         (powerpc_elfv2): Likewise.
18505         (powerpc_htm_ok): Likewise.
18506         (ppc_recip_hw): Likewise.
18507         (vsx_hw): Likewise.
18509 2014-05-13  Cary Coutant  <ccoutant@google.com>
18511         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
18513 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
18515         * gengtype-parse.c (require3): Eliminate in favor of...
18516         (require4): New.
18517         (require_template_declaration): Update to support optional single *
18518         on a type.
18520         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
18521         (create_user_defined_type): Handle a single level of explicit
18522         pointerness within template arguments.
18523         (struct write_types_data): Add field "kind".
18524         (filter_type_name): Handle "*" character.
18525         (write_user_func_for_structure_ptr): Require a write_types_data
18526         rather than just a prefix string, so that we can look up the kind
18527         of the wtd and use it as an index into wrote_user_func_for_ptr,
18528         ensuring that such functions are written at most once.  Support
18529         subclasses by invoking the marking function of the ultimate base class.
18530         (write_user_func_for_structure_body): Require a write_types_data
18531         rather than just a prefix string, so that we can pass this to
18532         write_user_func_for_structure_ptr.
18533         (write_func_for_structure): Likewise.
18534         (ggc_wtd): Add initializer of new "kind" field.
18535         (pch_wtd): Likewise.
18537         * gengtype.h (enum write_types_kinds): New.
18538         (struct type): Add field wrote_user_func_for_ptr to the "s"
18539         union member.
18541 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
18543         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
18544         instead of const_binop.
18545         (fold_binary_loc): Likewise.
18547 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
18549         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
18550         calculation to match get_ref_base_and_extent.
18552 2014-05-13  Catherine Moore  <clm@codesourcery.com>
18553             Sandra Loosemore  <sandra@codesourcery.com>
18555         * configure.ac: Fix assembly for explicit JALR relocation check.
18556         * configure: Regenerate.
18558 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18560         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
18561         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
18562         Remove associated type declarations and initialisations.
18563         (arm_expand_neon_builtin): Likewise.
18564         (neon_emit_pair_result_insn): Delete.
18565         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
18566         * config/arm/neon.md (neon_vtrn<mode>): Delete.
18567         (neon_vzip<mode>): Likewise.
18568         (neon_vuzp<mode>): Likewise.
18570 2014-05-13  Richard Biener  <rguenther@suse.de>
18572         PR ipa/60973
18573         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
18574         it needs revisiting whether the call still may be tail-called.
18576 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18578         * rtl.def (SYMBOL_REF): Remove middle "0" field.
18579         * rtl.h (block_symbol): Reduce number of fields to 2.
18580         (rtx_def): Add u2.symbol_ref_flags.
18581         (SYMBOL_REF_FLAGS): Use it.
18582         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
18583         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
18584         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
18585         Lower index of SYMBOL_REF_DATA.
18586         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
18587         Print SYMBOL_REF_FLAGS at the same time.
18588         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
18590 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18592         * rtl.def (VAR_LOCATION): Remove "i" field.
18593         * rtl.h (rtx_def): Add u2.var_location_status.
18594         (PAT_VAR_LOCATION_STATUS): Use it.
18595         (gen_rtx_VAR_LOCATION): Declare.
18596         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
18597         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
18598         * var-tracking.c (emit_note_insn_var_location): Remove casts.
18600 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18602         * rtl.def (scratch): Fix outdated comment and remove "0" field.
18603         * gengtype.c (adjust_field_rtx_def): Update accordingly.
18605 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18607         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
18608         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
18609         * rtl.h (rtx_def): Add insn_uid to u2 field.
18610         (RTX_FLAG_CHECK8): Delete in favor of...
18611         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
18612         (INSN_DELETED_P): Update accordingly.
18613         (INSN_UID): Use u2.insn_uid.
18614         (INSN_CHAIN_CODE_P): Define.
18615         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
18616         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
18617         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
18618         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
18619         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
18620         indices accordingly.
18621         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
18622         Update indices for insn-chain rtxes.
18623         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
18624         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
18625         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
18626         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
18627         * combine.c (try_combine): Likewise.
18628         * ira.c (setup_prohibited_mode_move_regs): Likewise.
18630 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18632         * rtl.def (REG): Remove middle field.
18633         * rtl.h (rtx_def): Add orignal_regno to u2.
18634         (ORIGINAL_REGNO): Use it instead of field 1.
18635         (REG_ATTRS): Lower field index accordingly.
18636         * gengtype.c (adjust_field_rtx_def): Remove handling of
18637         ORIGINAL_REGNO.  Move REG_ATTRS index down.
18638         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
18639         code that prints the REGNO.
18641 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18643         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
18644         GENERATOR_FILE.
18646 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18648         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
18650 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
18652         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
18653         (alloc_iv): Lower base expressions containing ADDR_EXPR.
18655 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
18657         * config/aarch64/aarch64-protos.h
18658         (aarch64_hard_regno_caller_save_mode): New prototype.
18659         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
18660         New function.
18661         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
18663 2014-05-13  Christian Bruel  <christian.bruel@st.com>
18665         * target.def (mode_switching): New hook vector.
18666         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
18667         (mode_exit, modepriority_to_mode): Likewise.
18668         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
18669         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18670         * target.h: Include tm.h and hard-reg-set.h.
18671         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
18672         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
18673         * doc/tm.texi Regenerate.
18674         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18675         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18676         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
18677         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
18678         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18679         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18680         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
18681         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
18682         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
18683         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
18684         (ix86_emit_mode_set): Hookify.
18685         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
18686         Delete.
18687         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18688         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
18689         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
18690         (epiphany_mode_priority_to_mode): Remove declaration.
18691         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
18692         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
18693         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
18694         Likewise.
18695         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
18696         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
18697         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
18699 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
18701         PR target/61060
18702         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
18703         is const0_rtx, return immediately.  Don't test count == 0 when
18704         it is always true.
18706 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18708         * Makefile.in: add shrink-wrap.o.
18709         * config/i386/i386.c: include "shrink-wrap.h"
18710         * function.c: Likewise.
18711         (requires_stack_frame_p, next_block_for_reg,
18712         move_insn_for_shrink_wrap, prepare_shrink_wrap,
18713         dup_block_and_redirect): Move to shrink-wrap.c
18714         (thread_prologue_and_epilogue_insns): Extract three code segments
18715         as functions in shrink-wrap.c
18716         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
18717         shrink-wrap.h
18718         * shrink-wrap.c: New file.
18719         * shrink-wrap.h: New file.
18721 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
18723         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
18724         reference to Solaris.
18726 2014-05-12  Mike Stump  <mikestump@comcast.net>
18728         PR other/31778
18729         * genattrtab.c (filename): Add.
18730         (convert_set_attr_alternative): Improve error message.
18731         (check_defs): Restore read_md_filename for error messages.
18732         (gen_insn): Save filename.
18734 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
18736         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
18737         -fno-local-ivars and -fivar-visibility.
18738         * c-family/c.opt: Make -Wshadow also implicitly enable
18739         -Wshadow-ivar.
18741 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
18743         * doc/tm.texi: Remove reference to deleted macro.
18744         * doc/tm.texi.in: Likewise.
18746 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18748         PR target/60991
18749         * config/avr/avr.c (avr_out_store_psi): Use correct constant
18750         to restore Y.
18752 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
18754         PR libgcc/61152
18755         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
18756         * config/arm/aout.h (License): Same.
18757         * config/arm/bpabi.h (License): Same.
18758         * config/arm/elf.h (License): Same.
18759         * config/arm/linux-elf.h (License): Same.
18760         * config/arm/linux-gas.h (License): Same.
18761         * config/arm/netbsd-elf.h (License): Same.
18762         * config/arm/uclinux-eabi.h (License): Same.
18763         * config/arm/uclinux-elf.h (License): Same.
18764         * config/arm/vxworks.h (License): Same.
18766 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
18768         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
18769         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
18770         number of operands to 3.
18771         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
18772         * tree-nested.c (convert_nonlocal_omp_clauses,
18773         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
18774         * gimplify.c (gimplify_scan_omp_clauses): Handle
18775         OMP_CLAUSE_LINEAR_STMT.
18776         * omp-low.c (lower_rec_input_clauses): Fix typo.
18777         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
18778         cast between Fortran boolean_type_node and C _Bool if
18779         needed.
18781 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
18783         PR tree-optimization/61136
18784         * wide-int.h (multiple_of_p): Define a version that doesn't return
18785         the quotient.
18786         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
18787         integer_zerop/const_binop pair.
18788         (multiple_of_p): Likewise, converting both operands to widest_int
18789         precision.
18791 2014-05-09  Teresa Johnson  <tejohnson@google.com>
18793         * cgraphunit.c (analyze_functions): Use correct dump file.
18795 2014-05-09  Florian Weimer  <fweimer@redhat.com>
18797         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
18798         expand_used_vars.
18799         (stack_protect_return_slot_p): New function.
18800         (expand_used_vars): Call stack_protect_decl_p and
18801         stack_protect_return_slot_p for -fstack-protector-strong.
18803 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
18804         Andrew Haley <aph@redhat.com>
18805         Richard Sandiford <rdsandiford@googlemail.com>
18807         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
18808         pages.
18810 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
18812         PR middle-end/61111
18813         * fold-const.c (fold_binary_loc): Changed width of mask.
18815 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
18817         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
18818         unsigned int initializers for regno_in, regno_out.
18820 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
18822         PR target/61055
18823         * config/avr/avr.md (cc): Add new attribute set_vzn.
18824         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
18825         Set cc insn attribute to set_vzn instead of set_zn for alternatives
18826         with INC, DEC or NEG.
18827         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
18828         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
18829         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
18831 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18833         Revert:
18834         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18836         * wide-int.cc (UTItype): Define.
18837         (UDWtype): Define for appropriate W_TYPE_SIZE.
18839 2014-05-09  Richard Biener  <rguenther@suse.de>
18841         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
18842         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
18843         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
18844         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
18845         ssa_propagate): Adjust.
18847 2014-05-08  Jeff Law  <law@redhat.com>
18849         PR tree-optimization/61009
18850         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
18851         tri-state rather than a boolean.  When a block is too big to
18852         thread through, inform caller via negative return value.
18853         (thread_across_edge): If a block was too big for normal threading,
18854         then it's too big for a joiner too, so remove temporary equivalences
18855         and return immediately.
18857 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18858             Matthias Klose  <doko@ubuntu.com>
18860         PR driver/61106
18861         * optc-gen.awk: Fix option handling for -Wunused-parameter.
18863 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
18865         PR target/59952
18866         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
18868 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
18870         PR target/61092
18871         * config/alpha/alpha.c: Include gimple-iterator.h.
18872         (alpha_gimple_fold_builtin): New function.  Move
18873         ALPHA_BUILTIN_UMULH folding from ...
18874         (alpha_fold_builtin): ... here.
18875         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
18877 2014-05-08  Wei Mi  <wmi@google.com>
18879         PR target/58066
18880         * config/i386/i386.c (ix86_compute_frame_layout): Update
18881         preferred_stack_boundary for call, expanded from tls descriptor.
18882         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
18883         to depend on SP register.
18884         (*tls_local_dynamic_base_32_gnu): Ditto.
18885         (*tls_local_dynamic_32_once): Ditto.
18886         (tls_global_dynamic_64_<mode>): Set
18887         ix86_tls_descriptor_calls_expanded_in_cfun.
18888         (tls_local_dynamic_base_64_<mode>): Ditto.
18889         (tls_global_dynamic_32): Set
18890         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
18891         to depend on SP register.
18892         (tls_local_dynamic_base_32): Ditto.
18894 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18896         * config/arm/arm_neon.h: Update comment.
18897         * config/arm/neon-docgen.ml: Delete.
18898         * config/arm/neon-gen.ml: Delete.
18899         * doc/arm-neon-intrinsics.texi: Update comment.
18901 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18903         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
18904         and v4sf versions.
18905         (vand, vorr, veor, vorn, vbic): Remove.
18906         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
18907         iterator.
18908         (neon_vsub_unspec): Likewise.
18909         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
18911 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18913         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
18914         (vadd_s16): Likewise.
18915         (vadd_s32): Likewise.
18916         (vadd_f32): Likewise.
18917         (vadd_u8): Likewise.
18918         (vadd_u16): Likewise.
18919         (vadd_u32): Likewise.
18920         (vadd_s64): Likewise.
18921         (vadd_u64): Likewise.
18922         (vaddq_s8): Likewise.
18923         (vaddq_s16): Likewise.
18924         (vaddq_s32): Likewise.
18925         (vaddq_s64): Likewise.
18926         (vaddq_f32): Likewise.
18927         (vaddq_u8): Likewise.
18928         (vaddq_u16): Likewise.
18929         (vaddq_u32): Likewise.
18930         (vaddq_u64): Likewise.
18931         (vmul_s8): Likewise.
18932         (vmul_s16): Likewise.
18933         (vmul_s32): Likewise.
18934         (vmul_f32): Likewise.
18935         (vmul_u8): Likewise.
18936         (vmul_u16): Likewise.
18937         (vmul_u32): Likewise.
18938         (vmul_p8): Likewise.
18939         (vmulq_s8): Likewise.
18940         (vmulq_s16): Likewise.
18941         (vmulq_s32): Likewise.
18942         (vmulq_f32): Likewise.
18943         (vmulq_u8): Likewise.
18944         (vmulq_u16): Likewise.
18945         (vmulq_u32): Likewise.
18946         (vsub_s8): Likewise.
18947         (vsub_s16): Likewise.
18948         (vsub_s32): Likewise.
18949         (vsub_f32): Likewise.
18950         (vsub_u8): Likewise.
18951         (vsub_u16): Likewise.
18952         (vsub_u32): Likewise.
18953         (vsub_s64): Likewise.
18954         (vsub_u64): Likewise.
18955         (vsubq_s8): Likewise.
18956         (vsubq_s16): Likewise.
18957         (vsubq_s32): Likewise.
18958         (vsubq_s64): Likewise.
18959         (vsubq_f32): Likewise.
18960         (vsubq_u8): Likewise.
18961         (vsubq_u16): Likewise.
18962         (vsubq_u32): Likewise.
18963         (vsubq_u64): Likewise.
18964         (vand_s8): Likewise.
18965         (vand_s16): Likewise.
18966         (vand_s32): Likewise.
18967         (vand_u8): Likewise.
18968         (vand_u16): Likewise.
18969         (vand_u32): Likewise.
18970         (vand_s64): Likewise.
18971         (vand_u64): Likewise.
18972         (vandq_s8): Likewise.
18973         (vandq_s16): Likewise.
18974         (vandq_s32): Likewise.
18975         (vandq_s64): Likewise.
18976         (vandq_u8): Likewise.
18977         (vandq_u16): Likewise.
18978         (vandq_u32): Likewise.
18979         (vandq_u64): Likewise.
18980         (vorr_s8): Likewise.
18981         (vorr_s16): Likewise.
18982         (vorr_s32): Likewise.
18983         (vorr_u8): Likewise.
18984         (vorr_u16): Likewise.
18985         (vorr_u32): Likewise.
18986         (vorr_s64): Likewise.
18987         (vorr_u64): Likewise.
18988         (vorrq_s8): Likewise.
18989         (vorrq_s16): Likewise.
18990         (vorrq_s32): Likewise.
18991         (vorrq_s64): Likewise.
18992         (vorrq_u8): Likewise.
18993         (vorrq_u16): Likewise.
18994         (vorrq_u32): Likewise.
18995         (vorrq_u64): Likewise.
18996         (veor_s8): Likewise.
18997         (veor_s16): Likewise.
18998         (veor_s32): Likewise.
18999         (veor_u8): Likewise.
19000         (veor_u16): Likewise.
19001         (veor_u32): Likewise.
19002         (veor_s64): Likewise.
19003         (veor_u64): Likewise.
19004         (veorq_s8): Likewise.
19005         (veorq_s16): Likewise.
19006         (veorq_s32): Likewise.
19007         (veorq_s64): Likewise.
19008         (veorq_u8): Likewise.
19009         (veorq_u16): Likewise.
19010         (veorq_u32): Likewise.
19011         (veorq_u64): Likewise.
19012         (vbic_s8): Likewise.
19013         (vbic_s16): Likewise.
19014         (vbic_s32): Likewise.
19015         (vbic_u8): Likewise.
19016         (vbic_u16): Likewise.
19017         (vbic_u32): Likewise.
19018         (vbic_s64): Likewise.
19019         (vbic_u64): Likewise.
19020         (vbicq_s8): Likewise.
19021         (vbicq_s16): Likewise.
19022         (vbicq_s32): Likewise.
19023         (vbicq_s64): Likewise.
19024         (vbicq_u8): Likewise.
19025         (vbicq_u16): Likewise.
19026         (vbicq_u32): Likewise.
19027         (vbicq_u64): Likewise.
19028         (vorn_s8): Likewise.
19029         (vorn_s16): Likewise.
19030         (vorn_s32): Likewise.
19031         (vorn_u8): Likewise.
19032         (vorn_u16): Likewise.
19033         (vorn_u32): Likewise.
19034         (vorn_s64): Likewise.
19035         (vorn_u64): Likewise.
19036         (vornq_s8): Likewise.
19037         (vornq_s16): Likewise.
19038         (vornq_s32): Likewise.
19039         (vornq_s64): Likewise.
19040         (vornq_u8): Likewise.
19041         (vornq_u16): Likewise.
19042         (vornq_u32): Likewise.
19043         (vornq_u64): Likewise.
19045 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19047         * wide-int.cc (UTItype): Define.
19048         (UDWtype): Define for appropriate W_TYPE_SIZE.
19050 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
19052         PR tree-optimization/59100
19053         * tree-ssa-phiopt.c: Include tree-inline.h.
19054         (neutral_element_p, absorbing_element_p): New functions.
19055         (value_replacement): Handle conditional binary operations with a
19056         neutral or absorbing element.
19058 2014-05-08  Richard Biener  <rguenther@suse.de>
19060         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
19061         folding the expression.
19062         (valueize_expr): Remove.
19063         (visit_reference_op_load): Do not valueize the result of
19064         vn_get_expr_for.
19065         (simplify_binary_expression): Likewise.
19066         (simplify_unary_expression): Likewise.
19068 2014-05-08  Richard Biener  <rguenther@suse.de>
19070         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
19071         looking at TYPE_ARG_TYPES.
19073 2014-05-08  Richard Biener  <rguenther@suse.de>
19075         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19076         pointer propagation special-case.
19078 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
19080         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
19081         core part of address expressions.
19083 2014-05-08  Alan Modra  <amodra@gmail.com>
19085         PR target/60737
19086         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
19087         loads and stores when -mno-strict-align at any alignment.
19088         (expand_block_clear): Similarly.  Also correct calculation of
19089         instruction count.
19091 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19093         PR middle-end/39246
19094         * tree-complex.c (expand_complex_move): Keep line info when expanding
19095         complex move.
19096         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
19097         of complex expression. Use new argument to display correct location
19098         for values coming from phi statement.
19099         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
19100         (warn_uninitialized_phi): Pass location of phi argument to
19101         warn_uninit.
19102         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
19103         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
19105 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
19107         * config/rs6000/predicates.md (indexed_address_mem): New.
19108         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
19109         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
19110         fpstore_ux, fpstore_u.
19111         (sign_extend, indexed, update): New.
19112         (cell_micro): Adjust.
19113         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
19114         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
19115         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
19116         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
19117         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19118         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
19119         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
19120         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
19121         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
19122         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
19123         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
19124         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
19125         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
19126         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
19127         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
19129         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
19130         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
19131         *vsx_extract_<mode>_store): Adjust.
19132         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
19133         is_cracked_insn, insn_must_be_first_in_group,
19134         insn_must_be_last_in_group): Adjust.
19136         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
19137         Adjust.
19138         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
19139         ppc440-fpstore): Adjust.
19140         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
19141         ppc476-fpstore): Adjust.
19142         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
19143         ppc601-fpstore): Adjust.
19144         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
19145         Adjust.
19146         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
19147         Adjust.
19148         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
19149         ppc7450-fpstore): Adjust.
19150         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
19151         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
19152         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
19153         Adjust.
19154         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
19155         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
19156         cell-fpstore, cell-fpstore-update): Adjust.
19157         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
19158         ppce300c3_store, ppce300c3_fpstore): Adjust.
19159         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
19160         e500mc_fpstore): Adjust.
19161         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
19162         e500mc64_store, e500mc64_fpstore): Adjust.
19163         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
19164         e5500_fpstore): Adjust.
19165         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
19166         e6500_fpstore): Adjust.
19167         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
19168         Adjust.
19169         * config/rs6000/power4.md (power4-load, power4-load-ext,
19170         power4-load-ext-update, power4-load-ext-update-indexed,
19171         power4-load-update-indexed, power4-load-update, power4-fpload,
19172         power4-fpload-update, power4-store, power4-store-update,
19173         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
19174         Adjust.
19175         * config/rs6000/power5.md (power5-load, power5-load-ext,
19176         power5-load-ext-update, power5-load-ext-update-indexed,
19177         power5-load-update-indexed, power5-load-update, power5-fpload,
19178         power5-fpload-update, power5-store, power5-store-update,
19179         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
19180         Adjust.
19181         * config/rs6000/power6.md (power6-load, power6-load-ext,
19182         power6-load-update, power6-load-update-indexed,
19183         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
19184         power6-fpload-update, power6-store, power6-store-update,
19185         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
19186         Adjust.
19187         * config/rs6000/power7.md (power7-load, power7-load-ext,
19188         power7-load-update, power7-load-update-indexed,
19189         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
19190         power7-fpload-update, power7-store, power7-store-update,
19191         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
19192         Adjust.
19193         * config/rs6000/power8.md (power8-load, power8-load-update,
19194         power8-load-ext, power8-load-ext-update, power8-fpload,
19195         power8-fpload-update, power8-store, power8-store-update-indexed,
19196         power8-fpstore, power8-fpstore-update): Adjust.
19197         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
19198         Adjust.
19199         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
19200         titan_lsu_store, titan_lsu_fpstore): Adjust.
19201         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
19203 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
19205         PR target/60884
19206         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
19207         unrolled byte insns.  Emit address increments after move insns.
19209 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
19211         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
19212         const_gimple, rather than a gimple.
19213         (gimple_call_builtin_p): Likewise, for the three variants.
19215         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
19216         (gimple_call_builtin_p): Likewise, for the three variants.
19218 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
19220         PR tree-optimization/61095
19221         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
19223 2014-05-07  Richard Biener  <rguenther@suse.de>
19225         PR tree-optimization/61034
19226         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
19227         (maybe_skip_until): Use translate to take into account
19228         lattices when trying to do disambiguations.
19229         (get_continuation_for_phi_1): Likewise.
19230         (get_continuation_for_phi): Adjust for added translate arguments.
19231         (walk_non_aliased_vuses): Likewise.
19232         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
19233         (walk_non_aliased_vuses): Likewise.
19234         (call_may_clobber_ref_p_1): Declare.
19235         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
19236         calls.  Stop early if we are only supposed to disambiguate.
19237         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
19239 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
19241         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
19242         Emit an error when the function has arguments.
19244 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
19246         * cfgloop.h (unswitch_loops): Remove.
19247         * doc/passes.texi: Remove references to loop-unswitch.c
19248         * timevar.def (TV_LOOP_UNSWITCH): Remove.
19250 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
19252         * tree-vect-data-refs.c (vect_grouped_load_supported): New
19253         check for loads group of length 3.
19254         (vect_permute_load_chain): New permutations for loads group of
19255         length 3.
19256         * tree-vect-stmts.c (vect_model_load_cost): Change cost
19257         of vec_perm_shuffle for the new permutations.
19259 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
19261         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
19262         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
19263         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
19264         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
19265         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
19266         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
19267         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
19268         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
19270 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
19272         * loop-unswitch.c: Delete.
19274 2014-05-07  Richard Biener  <rguenther@suse.de>
19276         * config.gcc: Always set need_64bit_hwint to yes.
19278 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
19280         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
19281         of using optimize_size.
19283 2014-05-06  Mike Stump  <mikestump@comcast.net>
19285         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
19287 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
19289         * config/i386/sse.md (*mov<mode>_internal)
19290         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
19291         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
19292         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
19293         (*<code><mode>3, *andnot<mode>3<mask_name>)
19294         (<mask_codefor><code><mode>3<mask_name>): Only consider
19295         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
19297 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
19299         Revert:
19300         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
19302         * lra-constraints.c (valid_address_p): Move earlier in file.
19303         Add a constraint argument to the address_info version.
19304         (satisfies_memory_constraint_p): New function.
19305         (satisfies_address_constraint_p): Likewise.
19306         (process_alt_operands, curr_insn_transform): Use them.
19307         (process_address): Pass the constraint to valid_address_p when
19308         checking address operands.
19310 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
19312         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
19313         to their respective blocks.  Fix inadvertent use of "node".
19315 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
19317         * emit-rtl.c (init_derived_machine_modes): New functionm, split
19318         out from...
19319         (init_emit_once): ...here.
19320         * rtl.h (init_derived_machine_modes): Declare.
19321         * toplev.c (do_compile): Call it even if no_backend.
19323 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
19324             Mike Stump  <mikestump@comcast.net>
19325             Richard Sandiford  <rdsandiford@googlemail.com>
19326             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19328         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
19329         (rtx_equal_for_memref_p): Update comment.
19330         (adjust_offset_for_component_ref): Use wide-int interfaces.
19331         * builtins.c (get_object_alignment_2): Likewise.
19332         (c_readstr): Likewise.
19333         (target_char_cast): Add comment.
19334         (determine_block_size): Use wide-int interfaces.
19335         (expand_builtin_signbit): Likewise.
19336         (fold_builtin_int_roundingfn): Likewise.
19337         (fold_builtin_bitop): Likewise.
19338         (fold_builtin_bswap): Likewise.
19339         (fold_builtin_logarithm): Use signop.
19340         (fold_builtin_pow): Likewise.
19341         (fold_builtin_memory_op): Use wide-int interfaces.
19342         (fold_builtin_object_size): Likewise.
19343         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
19344         nb_iterations_estimate.
19345         (record_niter_bound): Use wide-int interfaces.
19346         (get_estimated_loop_iterations_int): Likewise.
19347         (get_estimated_loop_iterations): Likewise.
19348         (get_max_loop_iterations): Likewise.
19349         * cfgloop.h: Include wide-int.h.
19350         (struct nb_iter_bound): Change bound to widest_int.
19351         (struct loop): Change nb_iterations_upper_bound and
19352         nb_iterations_estimate to widest_int.
19353         (record_niter_bound): Switch to use widest_int.
19354         (get_estimated_loop_iterations): Likewise.
19355         (get_max_loop_iterations): Likewise.
19356         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
19357         update for wide-int.
19358         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
19359         * combine.c (try_combine): Likewise.
19360         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
19361         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
19362         interfaces.
19363         (aarch64_float_const_representable_p): Likewise.
19364         * config/arc/arc.c: Include wide-int.h.
19365         (arc_can_use_doloop_p): Use wide-int interfaces.
19366         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
19367         (vfp3_const_double_index): Likewise.
19368         * config/avr/avr.c (avr_out_round): Likewise.
19369         (avr_fold_builtin): Likewise.
19370         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
19371         (bfin_can_use_doloop_p): Likewise.
19372         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
19373         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
19374         * config/i386/i386.c: Include wide-int.h.
19375         (ix86_data_alignment): Use wide-int interfaces.
19376         (ix86_local_alignment): Likewise.
19377         (ix86_emit_swsqrtsf): Update real_from_integer.
19378         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
19379         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
19380         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
19381         (zero_constant): Likewise.
19382         (input_operand): Likewise.
19383         (splat_input_operand): Likewise.
19384         (non_logical_cint_operand): Change const_double to const_wide_int.
19385         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
19386         (easy_altivec_constant): Remove comment.
19387         (paired_expand_vector_init): Use CONSTANT_P.
19388         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
19389         (rs6000_emit_move): Update checks.
19390         (rs6000_aggregate_candidate): Use wide-int interfaces.
19391         (rs6000_expand_ternop_builtin): Likewise.
19392         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
19393         (rs6000_assemble_integer): Likewise.
19394         (rs6000_hash_constant): Likewise.
19395         (output_toc): Likewise.
19396         (rs6000_rtx_costs): Likewise.
19397         (rs6000_emit_swrsqrt); Update call to real_from_integer.
19398         * config/rs6000/rs6000-c.c: Include wide-int.h.
19399         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
19400         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
19401         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
19402         Handle CONST_WIDE_INT.
19403         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
19404         Use tree_fits_uhwi_p.
19405         * config/sparc/sparc.c: Include wide-int.h.
19406         (sparc_fold_builtin): Use wide-int interfaces.
19407         * config/vax/vax.c: Include wide-int.h.
19408         (vax_float_literal): Use real_from_integer.
19409         * coretypes.h (struct hwivec_def): New.
19410         (hwivec): New.
19411         (const_hwivec): New.
19412         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
19413         (equiv_constant): Handle CONST_WIDE_INT.
19414         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
19415         (cselib_hash_rtx): Handle CONST_WIDE_INT.
19416         * dbxout.c (stabstr_U): Use wide-int interfaces.
19417         (dbxout_type): Update to use cst_fits_shwi_p.
19418         * defaults.h (LOG2_BITS_PER_UNIT): Define.
19419         (TARGET_SUPPORTS_WIDE_INT): Add default.
19420         * dfp.c: Include wide-int.h.
19421         (decimal_real_to_integer2): Use wide-int interfaces and rename to
19422         decimal_real_to_integer.
19423         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
19424         decimal_real_to_integer.
19425         * doc/generic.texi (Constant expressions): Update for wide_int.
19426         * doc/rtl.texi (const_double): Likewise.
19427         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
19428         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
19429         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
19430         (REAL_VALUE_FROM_INT): Remove.
19431         (TARGET_SUPPORTS_WIDE_INT): New.
19432         * doc/tm.texi: Regenerate.
19433         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
19434         * double-int.h: Include wide-int.h.
19435         (struct wi::int_traits): New.
19436         * dwarf2out.c (get_full_len): New.
19437         (dw_val_equal_p): Add case dw_val_class_wide_int.
19438         (size_of_loc_descr): Likewise.
19439         (output_loc_operands): Likewise.
19440         (insert_double): Remove.
19441         (insert_wide_int): New.
19442         (add_AT_wide): New.
19443         (print_die): Add case dw_val_class_wide_int.
19444         (attr_checksum): Likewise.
19445         (attr_checksum_ordered): Likewise.
19446         (same_dw_val_p): Likewise.
19447         (size_of_die): Likewise.
19448         (value_format): Likewise.
19449         (output_die): Likewise.
19450         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
19451         Use wide-int.
19452         (clz_loc_descriptor): Use wide-int interfaces.
19453         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
19454         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
19455         (round_up_to_align): Use wide-int interfaces.
19456         (field_byte_offset): Likewise.
19457         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
19458         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
19459         CONST_DOUBLE handling.  Use wide-int interfaces.
19460         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
19461         (gen_enumeration_type_die): Use add_AT_wide.
19462         (hash_loc_operands): Add case dw_val_class_wide_int.
19463         (compare_loc_operands): Likewise.
19464         * dwarf2out.h: Include wide-int.h.
19465         (wide_int_ptr): New.
19466         (enum dw_val_class): Add dw_val_class_wide_int.
19467         (struct dw_val_struct): Add val_wide.
19468         * emit-rtl.c (const_wide_int_htab): New.
19469         (const_wide_int_htab_hash): New.
19470         (const_wide_int_htab_eq): New.
19471         (lookup_const_wide_int): New.
19472         (const_double_htab_hash): Use wide-int interfaces.
19473         (const_double_htab_eq): Likewise.
19474         (rtx_to_double_int): Conditionally compile for wide-int.
19475         (immed_double_int_const): Rename to immed_wide_int_const and
19476         update for wide-int.
19477         (immed_double_const): Conditionally compile for wide-int.
19478         (init_emit_once): Use wide-int interfaces.
19479         * explow.c (plus_constant): Likewise.
19480         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
19481         (lshift_value): Use wide-int interfaces.
19482         (expand_mult): Likewise.
19483         (choose_multiplier): Likewise.
19484         (expand_smod_pow2): Likewise.
19485         (make_tree): Likewise.
19486         * expr.c (convert_modes): Consolidate handling of constants.
19487         Use wide-int interfaces.
19488         (emit_group_load_1): Add note.
19489         (store_expr): Update comment.
19490         (get_inner_reference): Use wide-int interfaces.
19491         (expand_constructor): Update comment.
19492         (expand_expr_real_2): Use wide-int interfaces.
19493         (expand_expr_real_1): Likewise.
19494         (reduce_to_bit_field_precision): Likewise.
19495         (const_vector_from_tree): Likewise.
19496         * final.c: Include wide-int-print.h.
19497         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
19498         * fixed-value.c: Include wide-int.h.
19499         (fixed_from_string): Use wide-int interfaces.
19500         (fixed_to_decimal): Likewise.
19501         (fixed_convert_from_real): Likewise.
19502         (real_convert_from_fixed): Likewise.
19503         * fold-const.h (mem_ref_offset): Return an offset_int.
19504         (div_if_zero_remainder): Remove code parameter.
19505         * fold-const.c (div_if_zero_remainder): Remove code parameter.
19506         Use wide-int interfaces.
19507         (may_negate_without_overflow_p): Use wide-int interfaces.
19508         (negate_expr_p): Likewise.
19509         (fold_negate_expr): Likewise.
19510         (int_const_binop_1): Likewise.
19511         (const_binop): Likewise.
19512         (fold_convert_const_int_from_int): Likewise.
19513         (fold_convert_const_int_from_real): Likewise.
19514         (fold_convert_const_int_from_fixed): Likewise.
19515         (fold_convert_const_fixed_from_int): Likewise.
19516         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
19517         (sign_bit_p): Use wide-int interfaces.
19518         (make_range_step): Likewise.
19519         (build_range_check): Likewise.  Pass an integer of the correct type
19520         instead of using integer_one_node.
19521         (range_predecessor): Pass an integer of the correct type instead
19522         of using integer_one_node.
19523         (range_successor): Likewise.
19524         (merge_ranges): Likewise.
19525         (unextend): Use wide-int interfaces.
19526         (extract_muldiv_1): Likewise.
19527         (fold_div_compare): Likewise.
19528         (fold_single_bit_test): Likewise.
19529         (fold_sign_changed_comparison): Likewise.
19530         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
19531         (fold_plusminus_mult_expr): Use wide-int interfaces.
19532         (native_encode_int): Likewise.
19533         (native_interpret_int): Likewise.
19534         (fold_unary_loc): Likewise.
19535         (pointer_may_wrap_p): Likewise.
19536         (size_low_cst): Likewise.
19537         (mask_with_tz): Likewise.
19538         (fold_binary_loc): Likewise.
19539         (fold_ternary_loc): Likewise.
19540         (multiple_of_p): Likewise.
19541         (tree_call_nonnegative_warnv_p): Update calls to
19542         tree_int_cst_min_precision and real_from_integer.
19543         (fold_negate_const): Use wide-int interfaces.
19544         (fold_abs_const): Likewise.
19545         (fold_relational_const): Use tree_int_cst_lt.
19546         (round_up_loc): Use wide-int interfaces.
19547         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
19548         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
19549         * gengtype.c: Remove include of double-int.h.
19550         (do_typedef): Use wide-int interfaces.
19551         (open_base_files): Add wide-int.h.
19552         (main): Add offset_int and widest_int typedefs.
19553         * gengtype-lex.l: Handle "^".
19554         (CXX_KEYWORD): Add "static".
19555         * gengtype-parse.c (require3): New.
19556         (require_template_declaration): Handle constant template arguments
19557         and nested templates.
19558         * gengtype-state.c: Don't include "double-int.h".
19559         * genpreds.c (write_one_predicate_function): Update comment.
19560         (write_tm_constrs_h): Add check for hval and lval use in
19561         CONST_WIDE_INT.
19562         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
19563         (add_to_sequence): Likewise.
19564         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
19565         and const_double_operand.
19566         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
19567         interfaces.
19568         * gimple-fold.c (get_base_constructor): Likewise.
19569         (fold_array_ctor_reference): Likewise.
19570         (fold_nonarray_ctor_reference): Likewise.
19571         (fold_const_aggregate_ref_1): Likewise.
19572         (gimple_val_nonnegative_real_p): Likewise.
19573         (gimple_fold_indirect_ref): Likewise.
19574         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
19575         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
19576         (struct slsr_cand_d): Change index to be widest_int.
19577         (struct incr_info_d): Change incr to be widest_int.
19578         (alloc_cand_and_find_basis): Use wide-int interfaces.
19579         (slsr_process_phi): Likewise.
19580         (backtrace_base_for_ref): Likewise.  Return a widest_int.
19581         (restructure_reference): Take a widest_int instead of a double_int.
19582         (slsr_process_ref): Use wide-int interfaces.
19583         (create_mul_ssa_cand): Likewise.
19584         (create_mul_imm_cand): Likewise.
19585         (create_add_ssa_cand): Likewise.
19586         (create_add_imm_cand): Take a widest_int instead of a double_int.
19587         (slsr_process_add): Use wide-int interfaces.
19588         (slsr_process_cast): Likewise.
19589         (slsr_process_copy): Likewise.
19590         (dump_candidate): Likewise.
19591         (dump_incr_vec): Likewise.
19592         (replace_ref): Likewise.
19593         (cand_increment): Likewise.  Return a widest_int.
19594         (cand_abs_increment): Likewise.
19595         (replace_mult_candidate): Take a widest_int instead of a double_int.
19596         (replace_unconditional_candidate): Use wide-int interfaces.
19597         (incr_vec_index): Take a widest_int instead of a double_int.
19598         (create_add_on_incoming_edge): Likewise.
19599         (create_phi_basis): Use wide-int interfaces.
19600         (replace_conditional_candidate): Likewise.
19601         (record_increment): Take a widest_int instead of a double_int.
19602         (record_phi_increments): Use wide-int interfaces.
19603         (phi_incr_cost): Take a widest_int instead of a double_int.
19604         (lowest_cost_path): Likewise.
19605         (total_savings): Likewise.
19606         (analyze_increments): Use wide-int interfaces.
19607         (ncd_with_phi): Take a widest_int instead of a double_int.
19608         (ncd_of_cand_and_phis): Likewise.
19609         (nearest_common_dominator_for_cands): Likewise.
19610         (insert_initializers): Use wide-int interfaces.
19611         (all_phi_incrs_profitable): Likewise.
19612         (replace_one_candidate): Likewise.
19613         (replace_profitable_candidates): Likewise.
19614         * godump.c: Include wide-int-print.h.
19615         (go_output_typedef): Use wide-int interfaces.
19616         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
19617         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
19618         (build_loop_iteration_domains): Likewise.
19619         * hooks.h: Include wide-int.h rather than double-int.h.
19620         (hook_bool_dint_dint_uint_bool_true): Delete.
19621         (hook_bool_wint_wint_uint_bool_true): Declare.
19622         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
19623         (hook_bool_wint_wint_uint_bool_true): New.
19624         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
19625         interfaces.
19626         (ubsan_expand_si_overflow_mul_check): Likewise.
19627         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
19628         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
19629         (get_ancestor_addr_info): Likewise.
19630         (ipa_modify_call_arguments): Likewise.
19631         * loop-doloop.c (doloop_modify): Likewise.
19632         (doloop_optimize): Likewise.
19633         * loop-iv.c (iv_number_of_iterations): Likewise.
19634         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
19635         (unroll_loop_constant_iterations): Likewise.
19636         (decide_unroll_runtime_iterations): Likewise.
19637         (unroll_loop_runtime_iterations): Likewise.
19638         (decide_peel_simple): Likewise.
19639         (decide_unroll_stupid): Likewise.
19640         * lto-streamer-in.c (streamer_read_wi): Add.
19641         (input_cfg): Use wide-int interfaces.
19642         (lto_input_tree_1): Likewise.
19643         * lto-streamer-out.c (streamer_write_wi): Add.
19644         (hash_tree): Use wide-int interfaces.
19645         (output_cfg): Likewise.
19646         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
19647         (GTFILES): Add wide-int.h and signop.h.
19648         (TAGS): Look for .cc files too.
19649         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
19650         * optabs.c (expand_subword_shift): Likewise.
19651         (expand_doubleword_shift): Likewise.
19652         (expand_absneg_bit): Likewise.
19653         (expand_copysign_absneg): Likewise.
19654         (expand_copysign_bit): Likewise.
19655         * postreload.c (reload_cse_simplify_set): Likewise.
19656         * predict.c (predict_iv_comparison): Likewise.
19657         * pretty-print.h: Include wide-int-print.h.
19658         (pp_wide_int) New.
19659         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
19660         * print-tree.c: Include wide-int-print.h.
19661         (print_node_brief): Use wide-int interfaces.
19662         (print_node): Likewise.
19663         * read-rtl.c (validate_const_wide_int): New.
19664         (read_rtx_code): Add CONST_WIDE_INT case.
19665         * real.c: Include wide-int.h.
19666         (real_to_integer2): Delete.
19667         (real_to_integer): New function, returning a wide_int.
19668         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19669         (ten_to_ptwo): Update call to real_from_integer.
19670         (real_digit): Likewise.
19671         * real.h: Include signop.h, wide-int.h and insn-modes.h.
19672         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
19673         (REAL_VALUE_TO_INT): Delete.
19674         (real_to_integer): Declare a wide-int form.
19675         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19676         * recog.c (const_int_operand): Improve comment.
19677         (const_scalar_int_operand): New.
19678         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
19679         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
19680         (split_double): Likewise.
19681         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
19682         (rtx_size): Likewise.
19683         (rtx_alloc_stat_v): New.
19684         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
19685         (cwi_output_hex): New.
19686         (iterative_hash_rtx): Handle CONST_WIDE_INT.
19687         (cwi_check_failed_bounds): New.
19688         * rtl.def (CONST_WIDE_INT): New.
19689         * rtl.h: Include <utility> and wide-int.h.
19690         (struct hwivec_def): New.
19691         (CWI_GET_NUM_ELEM): New.
19692         (CWI_PUT_NUM_ELEM): New.
19693         (struct rtx_def): Add num_elem and hwiv.
19694         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
19695         (CASE_CONST_UNIQUE): Likewise.
19696         (CASE_CONST_ANY): Likewise.
19697         (CONST_SCALAR_INT_P): Likewise.
19698         (CONST_WIDE_INT_P): New.
19699         (CWI_ELT): New.
19700         (HWIVEC_CHECK): New.
19701         (cwi_check_failed_bounds): New.
19702         (CWI_ELT): New.
19703         (HWIVEC_CHECK): New.
19704         (CONST_WIDE_INT_VEC) New.
19705         (CONST_WIDE_INT_NUNITS) New.
19706         (CONST_WIDE_INT_ELT) New.
19707         (rtx_mode_t): New type.
19708         (wi::int_traits <rtx_mode_t>): New.
19709         (wi::shwi): New.
19710         (wi::min_value): New.
19711         (wi::max_value): New.
19712         (rtx_alloc_v) New.
19713         (const_wide_int_alloc): New.
19714         (immed_wide_int_const): New.
19715         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
19716         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
19717         * signop.h: New file.
19718         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
19719         (simplify_const_unary_operation): Use wide-int interfaces.
19720         (simplify_binary_operation_1): Likewise.
19721         (simplify_const_binary_operation): Likewise.
19722         (simplify_const_relational_operation): Likewise.
19723         (simplify_immed_subreg): Likewise.
19724         * stmt.c (expand_case): Likewise.
19725         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
19726         signop rather than a bool.
19727         * stor-layout.c (layout_type): Use wide-int interfaces.
19728         (initialize_sizetypes): Update calls to
19729         set_min_and_max_values_for_integral_type.
19730         (set_min_and_max_values_for_integral_type): Take a signop rather
19731         than a bool.  Use wide-int interfaces.
19732         (fixup_signed_type): Update accordingly.  Remove
19733         HOST_BITS_PER_DOUBLE_INT limit.
19734         (fixup_unsigned_type): Likewise.
19735         * system.h (STATIC_CONSTANT_P): New.
19736         (STATIC_ASSERT): New.
19737         * target.def (can_use_doloop_p): Take widest_ints rather than
19738         double_ints.
19739         * target.h: Include wide-int.h rather than double-int.h.
19740         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
19741         than double_ints.
19742         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
19743         rather than INT_CST_LT_UNSIGNED.
19744         (can_use_doloop_if_innermost): Take widest_ints rather than
19745         double_ints.
19746         * tree-affine.c: Include wide-int-print.h.
19747         (double_int_ext_for_comb): Delete.
19748         (wide_int_ext_for_comb): New.
19749         (aff_combination_zero): Use wide-int interfaces.
19750         (aff_combination_const): Take a widest_int instead of a double_int.
19751         (aff_combination_elt): Use wide-int interfaces.
19752         (aff_combination_scale): Take a widest_int instead of a double_int.
19753         (aff_combination_add_elt): Likewise.
19754         (aff_combination_add_cst): Likewise.
19755         (aff_combination_add): Use wide-int interfaces.
19756         (aff_combination_convert): Likewise.
19757         (tree_to_aff_combination): Likewise.
19758         (add_elt_to_tree): Take a widest_int instead of a double_int.
19759         (aff_combination_to_tree): Use wide-int interfaces.
19760         (aff_combination_remove_elt): Likewise.
19761         (aff_combination_add_product): Take a widest_int instead of
19762         a double_int.
19763         (aff_combination_mult): Use wide-int interfaces.
19764         (aff_combination_expand): Likewise.
19765         (double_int_constant_multiple_p): Delete.
19766         (wide_int_constant_multiple_p): New.
19767         (aff_combination_constant_multiple_p): Take a widest_int pointer
19768         instead of a double_int pointer.
19769         (print_aff): Use wide-int interfaces.
19770         (get_inner_reference_aff): Take a widest_int pointer
19771         instead of a double_int pointer.
19772         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
19773         * tree-affine.h: Include wide-int.h.
19774         (struct aff_comb_elt): Change type of coef to widest_int.
19775         (struct affine_tree_combination): Change type of offset to widest_int.
19776         (double_int_ext_for_comb): Delete.
19777         (wide_int_ext_for_comb): New.
19778         (aff_combination_const): Use widest_int instead of double_int.
19779         (aff_combination_scale): Likewise.
19780         (aff_combination_add_elt): Likewise.
19781         (aff_combination_constant_multiple_p): Likewise.
19782         (get_inner_reference_aff): Likewise.
19783         (aff_comb_cannot_overlap_p): Likewise.
19784         (aff_combination_zero_p): Use wide-int interfaces.
19785         * tree.c: Include tree.h.
19786         (init_ttree): Use make_int_cst.
19787         (tree_code_size): Removed code for INTEGER_CST case.
19788         (tree_size): Add INTEGER_CST case.
19789         (make_node_stat): Update comment.
19790         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
19791         (build_int_cst_type): Use wide-int interfaces.
19792         (double_int_to_tree): Likewise.
19793         (double_int_fits_to_tree_p): Delete.
19794         (force_fit_type_double): Delete.
19795         (force_fit_type): New.
19796         (int_cst_hash_hash): Use wide-int interfaces.
19797         (int_cst_hash_eq): Likewise.
19798         (build_int_cst_wide): Delete.
19799         (wide_int_to_tree): New.
19800         (cache_integer_cst): Use wide-int interfaces.
19801         (build_low_bits_mask): Likewise.
19802         (cst_and_fits_in_hwi): Likewise.
19803         (real_value_from_int_cst): Likewise.
19804         (make_int_cst_stat): New.
19805         (integer_zerop): Use wide_int interfaces.
19806         (integer_onep): Likewise.
19807         (integer_all_onesp): Likewise.
19808         (integer_pow2p): Likewise.
19809         (integer_nonzerop): Likewise.
19810         (tree_log2): Likewise.
19811         (tree_floor_log2): Likewise.
19812         (tree_ctz): Likewise.
19813         (int_size_in_bytes): Likewise.
19814         (mem_ref_offset): Return an offset_int rather than a double_int.
19815         (build_type_attribute_qual_variant): Use wide_int interfaces.
19816         (type_hash_eq): Likewise
19817         (tree_int_cst_equal): Likewise.
19818         (tree_int_cst_lt): Delete.
19819         (tree_int_cst_compare): Likewise.
19820         (tree_fits_shwi_p): Use wide_int interfaces.
19821         (tree_fits_uhwi_p): Likewise.
19822         (tree_int_cst_sign_bit): Likewise.
19823         (tree_int_cst_sgn): Likewise.
19824         (tree_int_cst_min_precision): Take a signop rather than a bool.
19825         (simple_cst_equal): Use wide_int interfaces.
19826         (compare_tree_int): Likewise.
19827         (iterative_hash_expr): Likewise.
19828         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
19829         INT_CST_LT.
19830         (get_type_static_bounds): Use wide_int interfaces.
19831         (tree_int_cst_elt_check_failed): New.
19832         (build_common_tree_nodes): Reordered to set prec before filling in
19833         value.
19834         (int_cst_value): Check cst_and_fits_in_hwi.
19835         (widest_int_cst_value): Use wide_int interfaces.
19836         (upper_bound_in_type): Likewise.
19837         (lower_bound_in_type): Likewise.
19838         (num_ending_zeros): Likewise.
19839         (drop_tree_overflow): Likewise.
19840         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
19841         (gen_conditions_for_pow_cst_base): Likewise.
19842         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
19843         (group_case_labels_stmt): Use wide-int interfaces.
19844         (verify_gimple_assign_binary): Likewise.
19845         (print_loop): Likewise.
19846         * tree-chrec.c (tree_fold_binomial): Likewise.
19847         * tree-core.h (struct tree_base): Add int_length.
19848         (struct tree_int_cst): Change rep of value.
19849         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
19850         (dr_may_alias_p): Likewise.
19851         (max_stmt_executions_tree): Likewise.
19852         * tree.def (INTEGER_CST): Update comment.
19853         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
19854         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
19855         * tree-dump.c: Include wide-int.h and wide-int-print.h.
19856         (dequeue_and_dump): Use wide-int interfaces.
19857         * tree.h: Include wide-int.h.
19858         (NULL_TREE): Moved to earlier loc in file.
19859         (TREE_INT_CST_ELT_CHECK): New.
19860         (tree_int_cst_elt_check_failed): New.
19861         (TYPE_SIGN): New.
19862         (TREE_INT_CST): Delete.
19863         (TREE_INT_CST_LOW): Use wide-int interfaces.
19864         (TREE_INT_CST_HIGH): Delete.
19865         (TREE_INT_CST_NUNITS): New.
19866         (TREE_INT_CST_EXT_NUNITS): Likewise.
19867         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
19868         (TREE_INT_CST_ELT): Likewise.
19869         (INT_CST_LT): Delete.
19870         (tree_int_cst_elt_check): New (two forms).
19871         (type_code_size): Update comment.
19872         (make_int_cst_stat, make_int_cst): New.
19873         (tree_to_double_int): Delete.
19874         (double_int_fits_to_tree_p): Delete.
19875         (force_fit_type_double): Delete.
19876         (build_int_cstu): Replace with out-of-line function.
19877         (build_int_cst_wide): Delete.
19878         (tree_int_cst_lt): Define inline.
19879         (tree_int_cst_le): New.
19880         (tree_int_cst_compare): Define inline.
19881         (tree_int_cst_min_precision): Take a signop rather than a bool.
19882         (wi::int_traits <const_tree>): New.
19883         (wi::int_traits <tree>): New.
19884         (wi::extended_tree): New.
19885         (wi::int_traits <wi::extended_tree>): New.
19886         (wi::to_widest): New.
19887         (wi::to_offset): New.
19888         (wi::fits_to_tree_p): New.
19889         (wi::min_value): New.
19890         (wi::max_value): New.
19891         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
19892         (copy_tree_body_r): Likewise.
19893         * tree-object-size.c (compute_object_offset): Likewise.
19894         (addr_object_size): Likewise.
19895         * tree-predcom.c: Include wide-int-print.h.
19896         (struct dref_d): Change type of offset to widest_int.
19897         (dump_dref): Call wide-int printer.
19898         (aff_combination_dr_offset): Use wide-int interfaces.
19899         (determine_offset): Take a widest_int pointer rather than a
19900         double_int pointer.
19901         (split_data_refs_to_components): Use wide-int interfaces.
19902         (suitable_component_p): Likewise.
19903         (order_drefs): Likewise.
19904         (add_ref_to_chain): Likewise.
19905         (valid_initializer_p): Likewise.
19906         (determine_roots_comp): Likewise.
19907         * tree-pretty-print.c: Include wide-int-print.h.
19908         (dump_generic_node): Use wide-int interfaces.
19909         * tree-sra.c (sra_ipa_modify_expr): Likewise.
19910         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
19911         (move_fixed_address_to_symbol): Likewise.
19912         (move_hint_to_base): Likewise.
19913         (move_pointer_to_base): Likewise.
19914         (move_variant_to_index): Likewise.
19915         (most_expensive_mult_to_index): Likewise.
19916         (addr_to_parts): Likewise.
19917         (copy_ref_info): Likewise.
19918         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
19919         (indirect_refs_may_alias_p): Likewise.
19920         (stmt_kills_ref_p_1): Likewise.
19921         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
19922         * tree-ssa-ccp.c: Update comment at top of file.  Include
19923         wide-int-print.h.
19924         (struct prop_value_d): Change type of mask to widest_int.
19925         (extend_mask): New function.
19926         (dump_lattice_value): Use wide-int interfaces.
19927         (get_default_value): Likewise.
19928         (set_constant_value): Likewise.
19929         (set_value_varying): Likewise.
19930         (valid_lattice_transition): Likewise.
19931         (set_lattice_value): Likewise.
19932         (value_to_double_int): Delete.
19933         (value_to_wide_int): New.
19934         (get_value_from_alignment): Use wide-int interfaces.
19935         (get_value_for_expr): Likewise.
19936         (do_dbg_cnt): Likewise.
19937         (ccp_finalize): Likewise.
19938         (ccp_lattice_meet): Likewise.
19939         (bit_value_unop_1): Use widest_ints rather than double_ints.
19940         (bit_value_binop_1): Likewise.
19941         (bit_value_unop): Use wide-int interfaces.
19942         (bit_value_binop): Likewise.
19943         (bit_value_assume_aligned): Likewise.
19944         (evaluate_stmt): Likewise.
19945         (ccp_fold_stmt): Likewise.
19946         (visit_cond_stmt): Likewise.
19947         (ccp_visit_stmt): Likewise.
19948         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19949         (constant_pointer_difference): Likewise.
19950         (associate_pointerplus): Likewise.
19951         (combine_conversions): Likewise.
19952         * tree-ssa-loop.h: Include wide-int.h.
19953         (struct tree_niter_desc): Change type of max to widest_int.
19954         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
19955         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
19956         (remove_redundant_iv_tests): Likewise.
19957         (canonicalize_loop_induction_variables): Likewise.
19958         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
19959         (constant_multiple_of): Take a widest_int pointer instead of
19960         a double_int pointer.
19961         (get_computation_aff): Use wide-int interfaces.
19962         (ptr_difference_cost): Likewise.
19963         (difference_cost): Likewise.
19964         (get_loop_invariant_expr_id): Likewise.
19965         (get_computation_cost_at): Likewise.
19966         (iv_elimination_compare_lt): Likewise.
19967         (may_eliminate_iv): Likewise.
19968         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
19969         instead of double_int.
19970         (max_loop_iterations): Likewise.
19971         (max_stmt_executions): Likewise.
19972         (estimated_stmt_executions): Likewise.
19973         * tree-ssa-loop-niter.c: Include wide-int-print.h.
19974         (split_to_var_and_offset): Use wide-int interfaces.
19975         (determine_value_range): Likewise.
19976         (bound_difference_of_offsetted_base): Likewise.
19977         (bounds_add): Take a widest_int instead of a double_int.
19978         (number_of_iterations_ne_max): Use wide-int interfaces.
19979         (number_of_iterations_ne): Likewise.
19980         (number_of_iterations_lt_to_ne): Likewise.
19981         (assert_loop_rolls_lt): Likewise.
19982         (number_of_iterations_lt): Likewise.
19983         (number_of_iterations_le): Likewise.
19984         (number_of_iterations_cond): Likewise.
19985         (number_of_iterations_exit): Likewise.
19986         (finite_loop_p): Likewise.
19987         (derive_constant_upper_bound_assign): Likewise.
19988         (derive_constant_upper_bound): Return a widest_int.
19989         (derive_constant_upper_bound_ops): Likewise.
19990         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
19991         (record_estimate): Take a widest_int rather than a double_int.
19992         (record_nonwrapping_iv): Use wide-int interfaces.
19993         (double_int_cmp): Delete.
19994         (wide_int_cmp): New.
19995         (bound_index): Take a widest_int rather than a double_int.
19996         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
19997         (maybe_lower_iteration_bound): Likewise.
19998         (estimate_numbers_of_iterations_loop): Likewise.
19999         (estimated_loop_iterations): Take a widest_int pointer than than
20000         a double_int pointer.
20001         (estimated_loop_iterations_int): Use wide-int interfaces.
20002         (max_loop_iterations): Take a widest_int pointer than than
20003         a double_int pointer.
20004         (max_loop_iterations_int): Use wide-int interfaces.
20005         (max_stmt_executions): Take a widest_int pointer than than
20006         a double_int pointer.
20007         (estimated_stmt_executions): Likewise.
20008         (n_of_executions_at_most): Use wide-int interfaces.
20009         (scev_probably_wraps_p): Likewise.
20010         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
20011         to real_to_integer.
20012         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
20013         interfaces.
20014         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
20015         double_ints.  Adjust for trailing_wide_ints <3> representation.
20016         (set_nonzero_bits): Likewise.
20017         (get_range_info): Return wide_ints rather than double_ints.
20018         Adjust for trailing_wide_ints <3> representation.
20019         (get_nonzero_bits): Likewise.
20020         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
20021         representation.
20022         * tree-ssanames.h (struct range_info_def): Replace min, max and
20023         nonzero_bits with a trailing_wide_ints <3>.
20024         (set_range_info): Use wide_int_refs rather than double_ints.
20025         (set_nonzero_bits): Likewise.
20026         (get_range_info): Return wide_ints rather than double_ints.
20027         (get_nonzero_bits): Likewise.
20028         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
20029         * tree-ssa-pre.c (phi_translate_1): Likewise.
20030         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
20031         (acceptable_pow_call): Likewise.
20032         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
20033         interfaces.
20034         (vn_reference_fold_indirect): Likewise.
20035         (vn_reference_maybe_forwprop_address): Likewise.
20036         (valueize_refs_1): Likewise.
20037         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
20038         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
20039         tree_int_cst_lt and tree_int_cst_le.
20040         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
20041         interfaces.
20042         (streamer_alloc_tree): Likewise.
20043         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
20044         (streamer_write_tree_header): Likewise.
20045         (streamer_write_integer_cst): Likewise.
20046         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20047         (build_constructors): Likewise.
20048         (array_value_type): Likewise.
20049         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
20050         (vect_check_gather): Likewise.
20051         * tree-vect-generic.c (build_replicated_const): Likewise.
20052         (expand_vector_divmod): Likewise.
20053         * tree-vect-loop.c (vect_transform_loop): Likewise.
20054         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
20055         (vect_do_peeling_for_alignment): Likewise.
20056         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
20057         * tree-vrp.c: Include wide-int.h.
20058         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
20059         (extract_range_from_assert): Use wide-int interfaces.
20060         (vrp_int_const_binop): Likewise.
20061         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
20062         double_int pointers.
20063         (ranges_from_anti_range): Use wide-int interfaces.
20064         (quad_int_cmp): Delete.
20065         (quad_int_pair_sort): Likewise.
20066         (extract_range_from_binary_expr_1): Use wide-int interfaces.
20067         (extract_range_from_unary_expr_1): Likewise.
20068         (adjust_range_with_scev): Likewise.
20069         (masked_increment): Take and return wide_ints rather than double_ints.
20070         (register_edge_assert_for_2): Use wide-int interfaces.
20071         (check_array_ref): Likewise.
20072         (search_for_addr_array): Likewise.
20073         (maybe_set_nonzero_bits): Likewise.
20074         (union_ranges): Pass an integer of the correct type instead of
20075         using integer_one_node.
20076         (intersect_ranges): Likewise.
20077         (simplify_truth_ops_using_ranges): Likewise.
20078         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
20079         (range_fits_type_p): Likewise.
20080         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
20081         a bool.
20082         (simplify_conversion_using_ranges): Use wide-int interfaces.
20083         (simplify_float_conversion_using_ranges): Likewise.
20084         (vrp_finalize): Likewise.
20085         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
20086         (gimple_stringops_transform): Likewise.
20087         * varasm.c (decode_addr_const): Likewise.
20088         (const_hash_1): Likewise.
20089         (const_rtx_hash_1): Likewise
20090         (output_constant): Likewise.
20091         (array_size_for_constructor): Likewise.
20092         (output_constructor_regular_field): Likewise.
20093         (output_constructor_bitfield): Likewise.
20094         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
20095         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
20096         GENERATOR_FILEs.
20097         * gencheck.c: Define BITS_PER_UNIT.
20098         * wide-int.cc: New.
20099         * wide-int.h: New.
20100         * wide-int-print.cc: New.
20101         * wide-int-print.h: New.
20103 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20105         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
20107 2014-05-06  Richard Biener  <rguenther@suse.de>
20109         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
20110         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
20111         (TODO_verify_all): Adjust.
20112         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
20113         TODO_verify_stmts and TODO_verify_rtl_sharing.
20114         * bb-reorder.c: Likewise.
20115         * cfgexpand.c: Likewise.
20116         * cprop.c: Likewise.
20117         * cse.c: Likewise.
20118         * function.c: Likewise.
20119         * fwprop.c: Likewise.
20120         * gcse.c: Likewise.
20121         * gimple-ssa-isolate-paths.c: Likewise.
20122         * gimple-ssa-strength-reduction.c: Likewise.
20123         * ipa-split.c: Likewise.
20124         * loop-init.c: Likewise.
20125         * loop-unroll.c: Likewise.
20126         * lower-subreg.c: Likewise.
20127         * modulo-sched.c: Likewise.
20128         * postreload-gcse.c: Likewise.
20129         * predict.c: Likewise.
20130         * recog.c: Likewise.
20131         * sched-rgn.c: Likewise.
20132         * store-motion.c: Likewise.
20133         * tracer.c: Likewise.
20134         * trans-mem.c: Likewise.
20135         * tree-call-cdce.c: Likewise.
20136         * tree-cfg.c: Likewise.
20137         * tree-cfgcleanup.c: Likewise.
20138         * tree-complex.c: Likewise.
20139         * tree-eh.c: Likewise.
20140         * tree-emutls.c: Likewise.
20141         * tree-if-conv.c: Likewise.
20142         * tree-into-ssa.c: Likewise.
20143         * tree-loop-distribution.c: Likewise.
20144         * tree-object-size.c: Likewise.
20145         * tree-parloops.c: Likewise.
20146         * tree-pass.h: Likewise.
20147         * tree-sra.c: Likewise.
20148         * tree-ssa-ccp.c: Likewise.
20149         * tree-ssa-copy.c: Likewise.
20150         * tree-ssa-copyrename.c: Likewise.
20151         * tree-ssa-dce.c: Likewise.
20152         * tree-ssa-dom.c: Likewise.
20153         * tree-ssa-dse.c: Likewise.
20154         * tree-ssa-forwprop.c: Likewise.
20155         * tree-ssa-ifcombine.c: Likewise.
20156         * tree-ssa-loop-ch.c: Likewise.
20157         * tree-ssa-loop-ivcanon.c: Likewise.
20158         * tree-ssa-loop.c: Likewise.
20159         * tree-ssa-math-opts.c: Likewise.
20160         * tree-ssa-phiopt.c: Likewise.
20161         * tree-ssa-phiprop.c: Likewise.
20162         * tree-ssa-pre.c: Likewise.
20163         * tree-ssa-reassoc.c: Likewise.
20164         * tree-ssa-sink.c: Likewise.
20165         * tree-ssa-strlen.c: Likewise.
20166         * tree-ssa-tail-merge.c: Likewise.
20167         * tree-ssa-uncprop.c: Likewise.
20168         * tree-switch-conversion.c: Likewise.
20169         * tree-tailcall.c: Likewise.
20170         * tree-vect-generic.c: Likewise.
20171         * tree-vectorizer.c: Likewise.
20172         * tree-vrp.c: Likewise.
20173         * tsan.c: Likewise.
20174         * var-tracking.c: Likewise.
20175         * bt-load.c: Likewise.
20176         * cfgcleanup.c: Likewise.
20177         * combine-stack-adj.c: Likewise.
20178         * combine.c: Likewise.
20179         * compare-elim.c: Likewise.
20180         * config/epiphany/resolve-sw-modes.c: Likewise.
20181         * config/i386/i386.c: Likewise.
20182         * config/mips/mips.c: Likewise.
20183         * config/s390/s390.c: Likewise.
20184         * config/sh/sh_treg_combine.cc: Likewise.
20185         * config/sparc/sparc.c: Likewise.
20186         * dce.c: Likewise.
20187         * dse.c: Likewise.
20188         * final.c: Likewise.
20189         * ifcvt.c: Likewise.
20190         * mode-switching.c: Likewise.
20191         * passes.c: Likewise.
20192         * postreload.c: Likewise.
20193         * ree.c: Likewise.
20194         * reg-stack.c: Likewise.
20195         * regcprop.c: Likewise.
20196         * regrename.c: Likewise.
20197         * web.c: Likewise.
20199 2014-05-06  Richard Biener  <rguenther@suse.de>
20201         PR middle-end/61070
20202         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
20203         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
20205 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
20207         PR ipa/60965
20208         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
20210 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
20211             Tom de Vries  <tom@codesourcery.com>
20213         * target.def (call_fusage_contains_non_callee_clobbers): New
20214         DEFHOOKPOD.
20215         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
20216         Hooks to @menu.
20217         (@node Miscellaneous Register Hooks): New node.
20218         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
20219         * doc/tm.texi: Regenerate.
20221 2014-05-05  Marek Polacek  <polacek@redhat.com>
20223         PR driver/61065
20224         * opts.c (common_handle_option): Call error_at instead of warning_at.
20226 2014-05-05  Richard Biener  <rguenther@suse.de>
20228         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
20229         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
20230         under the TODO_verify_il umbrella.
20232 2014-05-05  Richard Biener  <rguenther@suse.de>
20234         * passes.c (execute_function_todo): Move TODO_verify_flow under
20235         the TODO_verify_ul umbrella.
20237 2014-05-05  Richard Biener  <rguenther@suse.de>
20239         PR middle-end/61010
20240         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
20241         X & CST away from a CST that is the mask of a mode.
20243 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20245         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
20246         int argument to enum machine_mode.
20247         (picochip_class_max_nregs): Ditto.
20248         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
20249         (picochip_class_max_nregs): Ditto.
20251 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20253         * target.def: Add new target hook.
20254         * doc/tm.texi: Regenerate.
20255         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
20256         * targhooks.c (default_keep_leaf_when_profiled): New function.
20258         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
20259         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
20261 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
20263         PR tree-optimization/60363
20264         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
20265         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
20266         (update_destination_phis): New parameter.
20267         (create_edge_and_update_destination_phis): Ditto.
20268         (ssa_fix_duplicate_block_edges): Pass new arguments.
20269         (thread_single_edge): Ditto.
20271 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
20273         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
20274         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
20275         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
20276         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
20277         Use RS6000_BTM_HARD_FLOAT.
20278         (BU_MISC_2): Likewise.
20279         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20280         RS6000_BTM_HARD_FLOAT.
20281         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
20282         is explicitly used.
20283         (rs6000_invalid_builtin): Add hard floating builtin support.
20284         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
20285         hard float builtins.
20286         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
20288 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20290         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
20291         Add missing function* argument.
20293 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
20295         * lra-constraints.c (valid_address_p): Move earlier in file.
20296         Add a constraint argument to the address_info version.
20297         (satisfies_memory_constraint_p): New function.
20298         (satisfies_address_constraint_p): Likewise.
20299         (process_alt_operands, curr_insn_transform): Use them.
20300         (process_address): Pass the constraint to valid_address_p when
20301         checking address operands.
20303 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
20305         * config/mips/mips.c (mips_isa_rev): New variable.
20306         (mips_set_architecture): Set it.
20307         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
20308         from mips_isa_rev.
20309         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
20310         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
20311         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
20312         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
20313         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
20314         conditions in terms of mips_isa_rev.
20315         (mips_isa_rev): Declare.
20317 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20319         * config/sh/sh-mem.cc: Use tabs instead of spaces.
20320         (prob_unlikely, prob_likely): Make variables const.
20322 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
20324         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
20326 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20328         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
20330 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20332         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
20333         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
20334         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
20335         functions.
20336         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
20337         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
20338         sh_pass_in_reg_p.
20339         Replace usage of ROUND_REG with sh_round_reg.
20340         Use CEIL instead of ROUND_ADVANCE.
20342 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20344         PR target/61026
20345         * config/sh/sh.c: Include stdlib headers before everything else.
20347 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
20349         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
20350         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
20351         (gimplify_adjust_omp_clauses): Simd region is never
20352         directly nested in combined parallel.  Instead, for linear
20353         with copyin/copyout, if in combined for simd loop, make decl
20354         firstprivate/lastprivate on OMP_FOR.
20355         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
20356         expand_omp_for_static_chunk): When setting endvar, also set
20357         fd->loop.v to the same value.
20359 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20361         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
20363 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
20365         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
20366         expression.
20368 2014-05-02  Marek Polacek  <polacek@redhat.com>
20370         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
20372 2014-05-02  Kito Cheng  <kito@0xlab.org>
20374         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
20375         to a C expression marco.
20376         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
20377         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
20378         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
20379         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
20380         HONOR_REG_ALLOC_ORDER.
20381         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
20383 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20385         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
20387 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20389         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
20391 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
20393         * tree-if-conv.c (is_cond_scalar_reduction): New function.
20394         (convert_scalar_cond_reduction): Likewise.
20395         (predicate_scalar_phi): Add recognition and transformation
20396         of simple conditioanl reduction to be vectorizable.
20398 2014-05-01  Marek Polacek  <polacek@redhat.com>
20400         PR c/43245
20401         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
20403 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
20405         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
20406         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
20407         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
20408         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
20409         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
20410         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
20411         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
20412         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
20414 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
20416         * config/arc/arc.opt (mlra): Move comment above option name
20417         to avoid mis-parsing as language options.
20419 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20421         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
20422         * config/sol2.h: ... here.
20423         * config/sol2-10.h: Remove.
20425         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
20426         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
20427         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
20428         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
20429         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
20430         * config/sol2.h: ... here.
20431         (SECTION_NAME_FORMAT): Don't redefine.
20432         (STARTFILE_ARCH32_SPEC): Rename to ...
20433         (STARTFILE_ARCH_SPEC): ... this.
20434         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
20435         * config/sparc/sol2.h: ... here.
20436         (SECTION_NAME_FORMAT): Don't undef.
20437         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
20438         (SUBTARGET_EXTRA_SPECS): Remove.
20439         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
20441         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
20442         (MD_STARTFILE_PREFIX): Remove.
20443         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
20444         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
20445         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
20446         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
20447         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
20448         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
20449         * config/i386/sol2.h: ... here.
20450         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
20451         * config/i386/sol2-bi.h: Remove.
20452         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
20453         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
20455         * config/i386/t-sol2-64: Rename to ...
20456         * config/i386/t-sol2: ... this.
20457         * config/sparc/t-sol2-64: Rename to ...
20458         * config/sparc/t-sol2: ... this.
20460         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
20461         sol2_tm_file_head, sol2_tm_file_tail.
20462         Include ${cpu_type}/sol2.h before sol2.h.
20463         Remove sol2-10.h.
20464         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
20465         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
20466         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
20467         Reflect i386/t-sol2-64 renaming.
20468         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
20469         Reflect sparc/t-sol2-64 renaming.
20471 2014-04-30  Richard Biener  <rguenther@suse.de>
20473         * passes.c (execute_function_todo): Move TODO_verify_stmts
20474         and TODO_verify_ssa under the TODO_verify_il umbrella.
20475         * tree-ssa.h (verify_ssa): Adjust prototype.
20476         * tree-ssa.c (verify_ssa): Add parameter to tell whether
20477         we should verify SSA operands.
20478         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
20479         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
20480         whether we should verify whether not throwing stmts have EH info.
20481         * graphite-scop-detection.c (create_sese_edges): Adjust.
20482         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
20483         * tree-eh.c (lower_try_finally_switch): Do not add the
20484         default case label twice.
20486 2014-04-30  Marek Polacek  <polacek@redhat.com>
20488         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
20489         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
20490         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
20491         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
20493 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
20495         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
20496         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
20497         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
20498         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
20499         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
20500         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
20501         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
20502         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
20504 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
20506         * tree-cfg.c (dump_function_to_file): Dump the return type of
20507         functions, in a line to itself before the function body, mimicking
20508         the layout of a C function.
20510 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
20512         PR tree-optimization/60971
20513         * tree-tailcall.c (process_assignment): Reject conversions which
20514         reduce precision.
20516 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
20518         * calls.c (initialize_argument_information): Always treat
20519         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
20520         (expand_call): Likewise.
20521         (emit_library_call_calue_1): Likewise.
20522         * expr.c (PUSH_ARGS_REVERSED): Do not define.
20523         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
20524         code accordingly.
20526 2014-04-29  Nick Clifton  <nickc@redhat.com>
20528         * config/msp430/msp430.md (umulsidi): Fix typo.
20529         (mulhisi3): Enable even inside interrupt handlers.
20530         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
20531         bigger return address pushed in large mode.
20533 2014-04-29  Nick Clifton  <nickc@redhat.com>
20535         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
20536         (arc_init_reg_tables): Use a machine_mode enum to iterate over
20537         available modes.
20538         * config/m32r/m32r.c (init_reg_tables): Likewise.
20539         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
20540         enum to hold the modes.
20542 2014-04-29  Richard Biener  <rguenther@suse.de>
20544         * dominance.c (free_dominance_info): Add overload with
20545         function parameter.
20546         (dom_info_state): Likewise.
20547         (dom_info_available_p): Likewise.
20548         * basic-block.h (free_dominance_info, dom_info_state,
20549         dom_info_available_p): Declare overloads.
20550         * passes.c (execute_function_todo): Verify that verifiers
20551         don't change dominator info state.  Drop dominator info
20552         for IPA pass invocations.
20553         * cgraph.c (release_function_body): Restore asserts that
20554         dominator information is released.
20556 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
20558         * doc/invoke.texi: Fix typo.
20559         * tree-vrp.c: Fix typos.
20560         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
20562 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20564         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
20566 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
20568         * config/aarch64/aarch64-builtins.c
20569         (aarch64_types_storestruct_lane_qualifiers): New.
20570         (TYPES_STORESTRUCT_LANE): Likewise.
20571         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
20572         (st3_lane): Likewise.
20573         (st4_lane): Likewise.
20574         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
20575         (vec_store_lanesci_lane<mode>): Likewise.
20576         (vec_store_lanesxi_lane<mode>): Likewise.
20577         (aarch64_st2_lane<VQ:mode>): Likewise.
20578         (aarch64_st3_lane<VQ:mode>): Likewise.
20579         (aarch64_st4_lane<VQ:mode>): Likewise.
20580         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
20581         * config/aarch64/arm_neon.h
20582         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
20583         use new macro arguments.
20584         (__ST3_LANE_FUNC): Likewise.
20585         (__ST4_LANE_FUNC): Likewise.
20586         * config/aarch64/iterators.md (V_TWO_ELEM): New.
20587         (V_THREE_ELEM): Likewise.
20588         (V_FOUR_ELEM): Likewise.
20590 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
20592         * doc/gimple.texi: Replace the description of the now-defunct
20593         union gimple_statement_d with a diagram showing the
20594         gimple_statement_base class hierarchy and its relationships to
20595         the GSS_ and GIMPLE_ enums.
20597 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
20599         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
20600         * config/aarch64/aarch64.c
20601         (aarch64_cannot_change_mode_class): Weaken conditions.
20602         (aarch64_modes_tieable_p): New.
20603         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
20605 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
20607         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20608         (loadsync_<mode>): Change mode.
20609         (load_quadpti, store_quadpti): New.
20610         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20611         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20613 2014-04-28  Martin Jambor  <mjambor@suse.cz>
20615         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
20616         same alias type as the original statement.
20617         (subreplacement_assignment_data): New type.
20618         (handle_unscalarized_data_in_subtree): New type of parameter,
20619         generate new memory accesses with same alias type as the original
20620         statement.
20621         (load_assign_lhs_subreplacements): Likewise.
20622         (sra_modify_constructor_assign): Generate new memory accesses with
20623         same alias type as the original statement.
20625 2014-04-28  Richard Biener  <rguenther@suse.de>
20627         * tree-pass.h (TODO_verify_il): Define.
20628         (TODO_verify_all): Complete properly.
20629         * passes.c (execute_function_todo): Move existing loop-closed
20630         SSA verification under TODO_verify_il.
20631         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
20632         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
20633         Fix tree sharing issue.
20635 2014-04-28  Richard Biener  <rguenther@suse.de>
20637         PR middle-end/60092
20638         * builtins.def (DEF_C11_BUILTIN): Add.
20639         (BUILT_IN_ALIGNED_ALLOC): Likewise.
20640         * coretypes.h (enum function_class): Add function_c11_misc.
20641         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20642         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
20643         (call_may_clobber_ref_p_1): Likewise.
20644         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20645         (mark_all_reaching_defs_necessary_1): Likewise.
20646         (propagate_necessity): Likewise.
20647         (eliminate_unnecessary_stmts): Likewise.
20648         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
20650 2014-04-28  Richard Biener  <rguenther@suse.de>
20652         * tree-vrp.c (vrp_var_may_overflow): Remove.
20653         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
20654         with overflow immediately bump to one before that value and
20655         let iteration figure out overflow status.
20657 2014-04-28  Richard Biener  <rguenther@suse.de>
20659         * configure.ac: Do valgrind header checks unconditionally.
20660         Add --enable-valgrind-annotations.
20661         * system.h: Guard valgrind header inclusion with
20662         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
20663         * alloc-pool.c (pool_alloc, pool_free): Use
20664         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
20665         to guard possibly dead code.
20666         * config.in: Regenerated.
20667         * configure: Likewise.
20669 2014-04-28  Jeff Law  <law@redhat.com>
20671         PR tree-optimization/60902
20672         * tree-ssa-threadedge.c
20673         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
20674         over real defs when invalidating outputs from statements that do not
20675         produce useful outputs for threading.
20677 2014-04-28  Richard Biener  <rguenther@suse.de>
20679         PR tree-optimization/60979
20680         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
20681         SCOPs that end in a block with a successor with abnormal
20682         predecessors.
20684 2014-04-28  Richard Biener  <rguenther@suse.de>
20686         * tree-pass.h (execute_pass_list): Adjust prototype.
20687         * passes.c (pass_manager::execute_early_local_passes): Adjust.
20688         (do_per_function): Change callback signature, push all actual
20689         work to the callbals.
20690         (do_per_function_toporder): Likewise.
20691         (execute_function_dump): Adjust.
20692         (execute_function_todo): Likewise.
20693         (clear_last_verified): Likewise.
20694         (verify_curr_properties): Likewise.
20695         (update_properties_after_pass): Likewise.
20696         (execute_pass_list_1): Split out from ...
20697         (execute_pass_list): ... here.  Adjust.
20698         (execute_ipa_pass_list): Likewise.
20699         * cgraphunit.c (cgraph_add_new_function): Adjust.
20700         (analyze_function): Likewise.
20701         (expand_function): Likewise.
20702         * cgraph.c (release_function_body): Free dominance info
20703         here instead of asserting it was magically freed elsewhere.
20705 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
20707         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
20708         * configure: Regenerate.
20709         * config/sparc/sparc.opt (muser-mode): New option.
20710         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
20711         for LEON3.
20712         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
20713         * doc/invoke.texi (SPARC options): Document -muser-mode.
20715 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
20717         * cselib.c (find_slot_memmode): Delete.
20718         (cselib_hasher): Change compare_type to a struct.
20719         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
20720         constants.
20721         (preserve_constants_and_equivs): Adjust for new compare_type.
20722         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
20723         (wrap_constant): Delete.
20724         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
20726 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
20728         * doc/install.texi (Building with profile feedback): Remove
20729         outdated sentence.
20731 2014-04-26  Tom de Vries  <tom@codesourcery.com>
20733         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
20734         array accesses.
20736 2014-04-25  Cary Coutant  <ccoutant@google.com>
20738         PR debug/60929
20739         * dwarf2out.c (should_move_die_to_comdat): A type definition
20740         can contain a subprogram definition, but don't move it to a
20741         comdat unit.
20742         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
20743         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
20744         from original DIE.
20745         (clone_tree_hash): Rename to...
20746         (clone_tree_partial): ...this; change callers.  Copy
20747         DW_TAG_subprogram DIEs as declarations.
20748         (copy_decls_walk): Don't copy children of a declaration into a
20749         type unit.
20751 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
20753         PR target/60969
20754         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
20755         alternative 12.
20757 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
20759         * config/arm/predicates.md (call_insn_operand): Add long_call check.
20760         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
20761         reg for long_call.
20762         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
20763         restriction.
20765 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20767         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
20769 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20771         PR tree-optimization/60930
20772         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
20773         creating a multiply candidate by folding two constant
20774         multiplicands when the result overflows.
20776 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
20778         PR tree-optimization/60960
20779         * tree-vect-generic.c (expand_vector_operation): Only call
20780         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
20782 2014-04-25  Tom de Vries  <tom@codesourcery.com>
20784         * expr.c (clobber_reg_mode): New function.
20785         * expr.h (clobber_reg): New function.
20787 2014-04-25  Tom de Vries  <tom@codesourcery.com>
20789         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
20790         clobbers.
20792 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
20793             Tom de Vries  <tom@codesourcery.com>
20795         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
20796         handle.
20797         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
20798         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
20799         new argument to find_all_hard_reg_sets call.
20801 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20803         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
20804         Use HOST_WIDE_INT_C for mask literal.
20805         (aarch_rev16_shleft_mask_imm_p): Likewise.
20807 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
20809         PR target/60941
20810         * config/sparc/sparc.md (ashlsi3_extend): Delete.
20812 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
20814         PR preprocessor/56540
20815         * config/i386/i386-c.c (ix86_target_macros): Define
20816         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
20818 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20820         * configure.ac (tga_func): Remove.
20821         (LIB_TLS_SPEC): Remove.
20822         * configure: Regenerate.
20823         * config.in: Regenerate.
20824         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
20826 2014-04-25  Richard Biener  <rguenther@suse.de>
20828         PR ipa/60912
20829         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
20830         call stmt use/clobber sets during stmt walk instead of
20831         walking the possibly incomplete set of caller edges.
20833 2014-04-25  Richard Biener  <rguenther@suse.de>
20835         PR ipa/60911
20836         * passes.c (apply_ipa_transforms): Inline into only caller ...
20837         (execute_one_pass): ... here.  Properly bring in function
20838         bodies for nodes we want to apply IPA transforms to.
20840 2014-04-24  Cong Hou  <congh@google.com>
20842         PR tree-optimization/60896
20843         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
20844         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
20845         (vect_mark_pattern_stmts): Set the def type of all statements in
20846         PATTERN_DEF_SEQ as vect_internal_def.
20848 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20850         * doc/extend.texi (PowerPC Built-in Functions): Document new
20851         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
20852         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
20854         * config/rs6000/predicates.md (const_0_to_3_operand): New
20855         predicate to match 0..3 integer constants.
20857         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
20858         to support adding miscellaneous builtin functions.
20859         (BU_DFP_MISC_2): Likewise.
20860         (BU_P7_MISC_1): Likewise.
20861         (BU_P7_MISC_2): Likewise.
20862         (BU_P8V_MISC_3): Likewise.
20863         (BU_MISC_1): Likewise.
20864         (BU_MISC_2): Likewise.
20865         (DIVWE): Add extended divide builtin functions.
20866         (DIVWEO): Likewise.
20867         (DIVWEU): Likewise.
20868         (DIVWEUO): Likewise.
20869         (DIVDE): Likewise.
20870         (DIVDEO): Likewise.
20871         (DIVDEU): Likewise.
20872         (DIVDEUO): Likewise.
20873         (DXEX): Add decimal floating-point builtin functions.
20874         (DXEXQ): Likewise.
20875         (DDEDPD): Likewise.
20876         (DDEDPDQ): Likewise.
20877         (DENBCD): Likewise.
20878         (DENBCDQ): Likewise.
20879         (DIEX): Likewise.
20880         (DIEXQ): Likewise.
20881         (DSCLI): Likewise.
20882         (DSCLIQ): Likewise.
20883         (DSCRI): Likewise.
20884         (DSCRIQ): Likewise.
20885         (CDTBCD): Add new BCD builtin functions.
20886         (CBCDTD): Likewise.
20887         (ADDG6S): Likewise.
20888         (BCDADD): Likewise.
20889         (BCDADD_LT): Likewise.
20890         (BCDADD_EQ): Likewise.
20891         (BCDADD_GT): Likewise.
20892         (BCDADD_OV): Likewise.
20893         (BCDSUB): Likewise.
20894         (BCDSUB_LT): Likewise.
20895         (BCDSUB_EQ): Likewise.
20896         (BCDSUB_GT): Likewise.
20897         (BCDSUB_OV): Likewise.
20898         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
20899         (UNPACK_TD): Likewise.
20900         (PACK_TF): Likewise.
20901         (UNPACK_TF): Likewise.
20902         (UNPACK_TF_0): Likewise.
20903         (UNPACK_TF_1): Likewise.
20904         (PACK_V1TI): Likewise.
20905         (UNPACK_V1TI): Likewise.
20907         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
20908         support for decimal floating point builtin functions.
20909         (rs6000_expand_ternop_builtin): Add checks for the new builtin
20910         functions that take constant arguments.
20911         (rs6000_invalid_builtin): Add decimal floating point builtin support.
20912         (rs6000_init_builtins): Setup long double, _Decimal64, and
20913         _Decimal128 types for new builtin functions.
20914         (builtin_function_type): Set the unsigned flags appropriately for
20915         the new builtin functions.
20916         (rs6000_opt_masks): Add support for decimal floating point builtin
20917         functions.
20919         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
20920         floating point builtin functions.
20921         (RS6000_BTM_COMMON): Likewise.
20922         (RS6000_BTI_long_double): Likewise.
20923         (RS6000_BTI_dfloat64): Likewise.
20924         (RS6000_BTI_dfloat128): Likewise.
20925         (long_double_type_internal_node): Likewise.
20926         (dfloat64_type_internal_node): Likewise.
20927         (dfloat128_type_internal_node): Likewise.
20929         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
20930         2.07 bcd arithmetic instructions.
20931         (UNSPEC_BCDSUB): Likewise.
20932         (UNSPEC_BCD_OVERFLOW): Likewise.
20933         (UNSPEC_BCD_ADD_SUB): Likewise.
20934         (bcd_add_sub): Likewise.
20935         (BCD_TEST): Likewise.
20936         (bcd<bcd_add_sub>): Likewise.
20937         (bcd<bcd_add_sub>_test): Likewise.
20938         (bcd<bcd_add_sub>_test2): Likewise.
20939         (bcd<bcd_add_sub>_<code>): Likewise.
20940         (peephole2 for combined bcd ops): Likewise.
20942         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
20943         decimal floating point builtin functions.
20944         (UNSPEC_DENBCD): Likewise.
20945         (UNSPEC_DXEX): Likewise.
20946         (UNSPEC_DIEX): Likewise.
20947         (UNSPEC_DSCLI): Likewise.
20948         (UNSPEC_DSCRI): Likewise.
20949         (D64_D128): Likewise.
20950         (dfp_suffix): Likewise.
20951         (dfp_ddedpd_<mode>): Likewise.
20952         (dfp_denbcd_<mode>): Likewise.
20953         (dfp_dxex_<mode>): Likewise.
20954         (dfp_diex_<mode>): Likewise.
20955         (dfp_dscli_<mode>): Likewise.
20956         (dfp_dscri_<mode>): Likewise.
20958         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
20959         builtin functions.
20960         (UNSPEC_CDTBCD): Likewise.
20961         (UNSPEC_CBCDTD): Likewise.
20962         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
20963         (UNSPEC_DIVEO): Likewise.
20964         (UNSPEC_DIVEU): Likewise.
20965         (UNSPEC_DIVEUO): Likewise.
20966         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
20967         pack/unpack 128-bit types.
20968         (UNSPEC_PACK_128BIT): Likewise.
20969         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
20970         (udiv<mode>3): Use idiv_ldiv mode attribute.
20971         (div<mode>3): Likewise.
20972         (addg6s): Add new BCD builtin functions.
20973         (cdtbcd): Likewise.
20974         (cbcdtd): Likewise.
20975         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
20976         (div_extend): Likewise.
20977         (div<div_extend>_<mode>"): Likewise.
20978         (FP128_64): Add support for new builtin functions to pack/unpack
20979         128-bit types.
20980         (unpack<mode>): Likewise.
20981         (unpacktf_0): Likewise.
20982         (unpacktf_1): Likewise.
20983         (unpack<mode>_dm): Likewise.
20984         (unpack<mode>_nodm): Likewise.
20985         (pack<mode>): Likewise.
20986         (unpackv1ti): Likewise.
20987         (packv1ti): Likewise.
20989 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
20991         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
20992         is disabled.
20994 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
20996         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
20997         * gimplify.c (omp_is_private): Change last argument's type to int.
20998         Only diagnose lastprivate if the simd argument is 1, only diagnose
20999         linear if the simd argument is 2.
21000         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
21001         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
21002         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
21003         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
21004         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
21005         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21006         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
21007         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21008         * tree-nested.c (convert_nonlocal_omp_clauses,
21009         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
21011 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
21013         PR target/60822
21014         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
21015         operand 1.
21017 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
21019         * flag-types.h (enum ivar_visibility): Add.
21021 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
21023         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
21024         function * argument.
21026 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
21028         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
21030 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
21031             Tom de Vries  <tom@codesourcery.com>
21033         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
21034         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
21035         reg-note.
21036         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
21037         * emit-rtl.c (try_split): Same.
21039 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
21040             Tom de Vries  <tom@codesourcery.com>
21042         * common.opt (fuse-caller-save): New option.
21044 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
21046         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
21047         elements for big-endian.
21049 2014-04-24  Richard Biener  <rguenther@suse.de>
21051         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
21052         during TER and instead use the sepops interface for expanding
21053         non-GIMPLE_SINGLE_RHS.
21055 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21057         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
21058         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
21060 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21062         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
21063         assembler 64-bit option.
21064         * configure: Regenerate.
21066 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21068         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
21069         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
21070         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
21071         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
21072         (TARGET_CRYPTO): Take TARGET_SIMD into account.
21074 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21076         * config/aarch64/aarch64-builtins.c
21077         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
21078         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
21079         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
21080         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
21081         builtins.
21082         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
21083         (Vrevsuff): New mode attribute.
21085 2014-04-24  Terry Guo  <terry.guo@arm.com>
21087         * config/arm/arm.h (machine_function): Define variable
21088         after_arm_reorg here.
21089         * config/arm/arm.c (after_arm_reorg): Remove the definition.
21090         (arm_split_constant): Update the way to access variable
21091         after_arm_reorg.
21092         (arm_reorg): Ditto.
21093         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
21095 2014-04-23  Tom de Vries  <tom@codesourcery.com>
21097         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
21099 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
21101         * is-a.h: Update comments to reflect the following changes to the
21102         "pointerness" of the API, making the template parameter match the
21103         return type, allowing use of is-a.h with typedefs of pointers.
21104         (is_a_helper::cast): Return a T rather then a pointer to a T, so
21105         that the return type matches the parameter to the is_a_helper.
21106         (as_a): Likewise.
21107         (dyn_cast): Likewise.
21109         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
21110         pointer from the is-a.h API.
21112         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
21113         (is_a_helper <cgraph_node *>::test): ...this, matching change to
21114         is-a.h API.
21115         (is_a_helper <varpool_node>::test): Likewise, convert to...
21116         (is_a_helper <varpool_node *>::test): ...this.
21118         (varpool_first_variable): Update for removal of implicit pointer
21119         from the is-a.h API.
21120         (varpool_next_variable): Likewise.
21121         (varpool_first_static_initializer): Likewise.
21122         (varpool_next_static_initializer): Likewise.
21123         (varpool_first_defined_variable): Likewise.
21124         (varpool_next_defined_variable): Likewise.
21125         (cgraph_first_defined_function): Likewise.
21126         (cgraph_next_defined_function): Likewise.
21127         (cgraph_first_function): Likewise.
21128         (cgraph_next_function): Likewise.
21129         (cgraph_first_function_with_gimple_body): Likewise.
21130         (cgraph_next_function_with_gimple_body): Likewise.
21131         (cgraph_alias_target): Likewise.
21132         (varpool_alias_target): Likewise.
21133         (cgraph_function_or_thunk_node): Likewise.
21134         (varpool_variable_node): Likewise.
21135         (symtab_real_symbol_p): Likewise.
21136         * cgraphunit.c (referred_to_p): Likewise.
21137         (analyze_functions): Likewise.
21138         (handle_alias_pairs): Likewise.
21139         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
21140         * gimple-ssa.h (gimple_vuse_op): Likewise.
21141         (gimple_vdef_op): Likewise.
21142         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
21143         * gimple.c (gimple_build_asm_1): Likewise.
21144         (gimple_build_try): Likewise.
21145         (gimple_build_resx): Likewise.
21146         (gimple_build_eh_dispatch): Likewise.
21147         (gimple_build_omp_for): Likewise.
21148         (gimple_omp_for_set_clauses): Likewise.
21150         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
21151         (is_a_helper <gimple_statement_asm *>::test): ...this.
21152         (is_a_helper <gimple_statement_bind>::test): Convert to...
21153         (is_a_helper <gimple_statement_bind *>::test): ...this.
21154         (is_a_helper <gimple_statement_call>::test): Convert to...
21155         (is_a_helper <gimple_statement_call *>::test): ...this.
21156         (is_a_helper <gimple_statement_catch>::test): Convert to...
21157         (is_a_helper <gimple_statement_catch *>::test): ...this.
21158         (is_a_helper <gimple_statement_resx>::test): Convert to...
21159         (is_a_helper <gimple_statement_resx *>::test): ...this.
21160         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
21161         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
21162         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
21163         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
21164         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
21165         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
21166         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
21167         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
21168         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
21169         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
21170         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
21171         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
21172         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
21173         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
21174         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
21175         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
21176         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
21177         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
21178         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
21179         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
21180         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
21181         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
21182         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
21183         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
21184         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
21185         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
21186         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
21187         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
21188         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
21189         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
21190         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
21191         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
21192         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
21193         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
21194         (is_a_helper <gimple_statement_phi>::test): Convert to...
21195         (is_a_helper <gimple_statement_phi *>::test): ...this.
21196         (is_a_helper <gimple_statement_transaction>::test): Convert to...
21197         (is_a_helper <gimple_statement_transaction *>::test): ...this.
21198         (is_a_helper <gimple_statement_try>::test): Convert to...
21199         (is_a_helper <gimple_statement_try *>::test): ...this.
21200         (is_a_helper <gimple_statement_wce>::test): Convert to...
21201         (is_a_helper <gimple_statement_wce *>::test): ...this.
21202         (is_a_helper <const gimple_statement_asm>::test): Convert to...
21203         (is_a_helper <const gimple_statement_asm *>::test): ...this.
21204         (is_a_helper <const gimple_statement_bind>::test): Convert to...
21205         (is_a_helper <const gimple_statement_bind *>::test): ...this.
21206         (is_a_helper <const gimple_statement_call>::test): Convert to...
21207         (is_a_helper <const gimple_statement_call *>::test): ...this.
21208         (is_a_helper <const gimple_statement_catch>::test): Convert to...
21209         (is_a_helper <const gimple_statement_catch *>::test): ...this.
21210         (is_a_helper <const gimple_statement_resx>::test): Convert to...
21211         (is_a_helper <const gimple_statement_resx *>::test): ...this.
21212         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
21213         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
21214         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
21215         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
21216         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
21217         Convert to...
21218         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
21219         ...this.
21220         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
21221         Convert to...
21222         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
21223         ...this.
21224         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
21225         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
21226         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
21227         to...
21228         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
21229         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
21230         to...
21231         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
21232         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
21233         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
21234         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
21235         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
21236         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
21237         to...
21238         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
21239         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
21240         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
21241         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
21242         to...
21243         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
21244         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
21245         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
21246         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
21247         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
21248         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
21249         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
21250         (is_a_helper <const gimple_statement_phi>::test): Convert to...
21251         (is_a_helper <const gimple_statement_phi *>::test): ...this.
21252         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
21253         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
21254         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
21255         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
21256         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
21257         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
21258         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
21259         to...
21260         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
21261         ...this.
21262         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
21263         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
21265         (gimple_use_ops): Update for removal of implicit pointer from the
21266         is-a.h API.
21267         (gimple_set_use_ops): Likewise.
21268         (gimple_vuse): Likewise.
21269         (gimple_vdef): Likewise.
21270         (gimple_vuse_ptr): Likewise.
21271         (gimple_vdef_ptr): Likewise.
21272         (gimple_set_vuse): Likewise.
21273         (gimple_set_vdef): Likewise.
21274         (gimple_omp_return_set_lhs): Likewise.
21275         (gimple_omp_return_lhs): Likewise.
21276         (gimple_omp_return_lhs_ptr): Likewise.
21277         (gimple_call_fntype): Likewise.
21278         (gimple_call_set_fntype): Likewise.
21279         (gimple_call_set_internal_fn): Likewise.
21280         (gimple_call_use_set): Likewise.
21281         (gimple_call_clobber_set): Likewise.
21282         (gimple_bind_vars): Likewise.
21283         (gimple_bind_set_vars): Likewise.
21284         (gimple_bind_body_ptr): Likewise.
21285         (gimple_bind_set_body): Likewise.
21286         (gimple_bind_add_stmt): Likewise.
21287         (gimple_bind_block): Likewise.
21288         (gimple_bind_set_block): Likewise.
21289         (gimple_asm_ninputs): Likewise.
21290         (gimple_asm_noutputs): Likewise.
21291         (gimple_asm_nclobbers): Likewise.
21292         (gimple_asm_nlabels): Likewise.
21293         (gimple_asm_input_op): Likewise.
21294         (gimple_asm_input_op_ptr): Likewise.
21295         (gimple_asm_output_op): Likewise.
21296         (gimple_asm_output_op_ptr): Likewise.
21297         (gimple_asm_set_output_op): Likewise.
21298         (gimple_asm_clobber_op): Likewise.
21299         (gimple_asm_set_clobber_op): Likewise.
21300         (gimple_asm_label_op): Likewise.
21301         (gimple_asm_set_label_op): Likewise.
21302         (gimple_asm_string): Likewise.
21303         (gimple_catch_types): Likewise.
21304         (gimple_catch_types_ptr): Likewise.
21305         (gimple_catch_handler_ptr): Likewise.
21306         (gimple_catch_set_types): Likewise.
21307         (gimple_catch_set_handler): Likewise.
21308         (gimple_eh_filter_types): Likewise.
21309         (gimple_eh_filter_types_ptr): Likewise.
21310         (gimple_eh_filter_failure_ptr): Likewise.
21311         (gimple_eh_filter_set_types): Likewise.
21312         (gimple_eh_filter_set_failure): Likewise.
21313         (gimple_eh_must_not_throw_fndecl): Likewise.
21314         (gimple_eh_must_not_throw_set_fndecl): Likewise.
21315         (gimple_eh_else_n_body_ptr): Likewise.
21316         (gimple_eh_else_e_body_ptr): Likewise.
21317         (gimple_eh_else_set_n_body): Likewise.
21318         (gimple_eh_else_set_e_body): Likewise.
21319         (gimple_try_eval_ptr): Likewise.
21320         (gimple_try_cleanup_ptr): Likewise.
21321         (gimple_try_set_eval): Likewise.
21322         (gimple_try_set_cleanup): Likewise.
21323         (gimple_wce_cleanup_ptr): Likewise.
21324         (gimple_wce_set_cleanup): Likewise.
21325         (gimple_phi_capacity): Likewise.
21326         (gimple_phi_num_args): Likewise.
21327         (gimple_phi_result): Likewise.
21328         (gimple_phi_result_ptr): Likewise.
21329         (gimple_phi_set_result): Likewise.
21330         (gimple_phi_arg): Likewise.
21331         (gimple_phi_set_arg): Likewise.
21332         (gimple_resx_region): Likewise.
21333         (gimple_resx_set_region): Likewise.
21334         (gimple_eh_dispatch_region): Likewise.
21335         (gimple_eh_dispatch_set_region): Likewise.
21336         (gimple_omp_critical_name): Likewise.
21337         (gimple_omp_critical_name_ptr): Likewise.
21338         (gimple_omp_critical_set_name): Likewise.
21339         (gimple_omp_for_clauses): Likewise.
21340         (gimple_omp_for_clauses_ptr): Likewise.
21341         (gimple_omp_for_set_clauses): Likewise.
21342         (gimple_omp_for_collapse): Likewise.
21343         (gimple_omp_for_index): Likewise.
21344         (gimple_omp_for_index_ptr): Likewise.
21345         (gimple_omp_for_set_index): Likewise.
21346         (gimple_omp_for_initial): Likewise.
21347         (gimple_omp_for_initial_ptr): Likewise.
21348         (gimple_omp_for_set_initial): Likewise.
21349         (gimple_omp_for_final): Likewise.
21350         (gimple_omp_for_final_ptr): Likewise.
21351         (gimple_omp_for_set_final): Likewise.
21352         (gimple_omp_for_incr): Likewise.
21353         (gimple_omp_for_incr_ptr): Likewise.
21354         (gimple_omp_for_set_incr): Likewise.
21355         (gimple_omp_for_pre_body_ptr): Likewise.
21356         (gimple_omp_for_set_pre_body): Likewise.
21357         (gimple_omp_parallel_clauses): Likewise.
21358         (gimple_omp_parallel_clauses_ptr): Likewise.
21359         (gimple_omp_parallel_set_clauses): Likewise.
21360         (gimple_omp_parallel_child_fn): Likewise.
21361         (gimple_omp_parallel_child_fn_ptr): Likewise.
21362         (gimple_omp_parallel_set_child_fn): Likewise.
21363         (gimple_omp_parallel_data_arg): Likewise.
21364         (gimple_omp_parallel_data_arg_ptr): Likewise.
21365         (gimple_omp_parallel_set_data_arg): Likewise.
21366         (gimple_omp_task_clauses): Likewise.
21367         (gimple_omp_task_clauses_ptr): Likewise.
21368         (gimple_omp_task_set_clauses): Likewise.
21369         (gimple_omp_task_child_fn): Likewise.
21370         (gimple_omp_task_child_fn_ptr): Likewise.
21371         (gimple_omp_task_set_child_fn): Likewise.
21372         (gimple_omp_task_data_arg): Likewise.
21373         (gimple_omp_task_data_arg_ptr): Likewise.
21374         (gimple_omp_task_set_data_arg): Likewise.
21375         (gimple_omp_taskreg_clauses): Likewise.
21376         (gimple_omp_taskreg_clauses_ptr): Likewise.
21377         (gimple_omp_taskreg_set_clauses): Likewise.
21378         (gimple_omp_taskreg_child_fn): Likewise.
21379         (gimple_omp_taskreg_child_fn_ptr): Likewise.
21380         (gimple_omp_taskreg_set_child_fn): Likewise.
21381         (gimple_omp_taskreg_data_arg): Likewise.
21382         (gimple_omp_taskreg_data_arg_ptr): Likewise.
21383         (gimple_omp_taskreg_set_data_arg): Likewise.
21384         (gimple_omp_task_copy_fn): Likewise.
21385         (gimple_omp_task_copy_fn_ptr): Likewise.
21386         (gimple_omp_task_set_copy_fn): Likewise.
21387         (gimple_omp_task_arg_size): Likewise.
21388         (gimple_omp_task_arg_size_ptr): Likewise.
21389         (gimple_omp_task_set_arg_size): Likewise.
21390         (gimple_omp_task_arg_align): Likewise.
21391         (gimple_omp_task_arg_align_ptr): Likewise.
21392         (gimple_omp_task_set_arg_align): Likewise.
21393         (gimple_omp_single_clauses): Likewise.
21394         (gimple_omp_single_clauses_ptr): Likewise.
21395         (gimple_omp_single_set_clauses): Likewise.
21396         (gimple_omp_target_clauses): Likewise.
21397         (gimple_omp_target_clauses_ptr): Likewise.
21398         (gimple_omp_target_set_clauses): Likewise.
21399         (gimple_omp_target_child_fn): Likewise.
21400         (gimple_omp_target_child_fn_ptr): Likewise.
21401         (gimple_omp_target_set_child_fn): Likewise.
21402         (gimple_omp_target_data_arg): Likewise.
21403         (gimple_omp_target_data_arg_ptr): Likewise.
21404         (gimple_omp_target_set_data_arg): Likewise.
21405         (gimple_omp_teams_clauses): Likewise.
21406         (gimple_omp_teams_clauses_ptr): Likewise.
21407         (gimple_omp_teams_set_clauses): Likewise.
21408         (gimple_omp_sections_clauses): Likewise.
21409         (gimple_omp_sections_clauses_ptr): Likewise.
21410         (gimple_omp_sections_set_clauses): Likewise.
21411         (gimple_omp_sections_control): Likewise.
21412         (gimple_omp_sections_control_ptr): Likewise.
21413         (gimple_omp_sections_set_control): Likewise.
21414         (gimple_omp_for_set_cond): Likewise.
21415         (gimple_omp_for_cond): Likewise.
21416         (gimple_omp_atomic_store_set_val): Likewise.
21417         (gimple_omp_atomic_store_val): Likewise.
21418         (gimple_omp_atomic_store_val_ptr): Likewise.
21419         (gimple_omp_atomic_load_set_lhs): Likewise.
21420         (gimple_omp_atomic_load_lhs): Likewise.
21421         (gimple_omp_atomic_load_lhs_ptr): Likewise.
21422         (gimple_omp_atomic_load_set_rhs): Likewise.
21423         (gimple_omp_atomic_load_rhs): Likewise.
21424         (gimple_omp_atomic_load_rhs_ptr): Likewise.
21425         (gimple_omp_continue_control_def): Likewise.
21426         (gimple_omp_continue_control_def_ptr): Likewise.
21427         (gimple_omp_continue_set_control_def): Likewise.
21428         (gimple_omp_continue_control_use): Likewise.
21429         (gimple_omp_continue_control_use_ptr): Likewise.
21430         (gimple_omp_continue_set_control_use): Likewise.
21431         (gimple_transaction_body_ptr): Likewise.
21432         (gimple_transaction_label): Likewise.
21433         (gimple_transaction_label_ptr): Likewise.
21434         (gimple_transaction_set_body): Likewise.
21435         (gimple_transaction_set_label): Likewise.
21437         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
21438         * ipa-inline-analysis.c (inline_write_summary): Likewise.
21439         * ipa-ref.c (ipa_record_reference): Likewise.
21440         * ipa-reference.c (analyze_function): Likewise.
21441         (ipa_reference_write_optimization_summary): Likewise.
21442         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
21443         (address_taken_from_non_vtable_p): Likewise.
21444         (comdat_can_be_unshared_p_1): Likewise.
21445         * lto-cgraph.c (lto_output_ref): Likewise.
21446         (add_references): Likewise.
21447         (compute_ltrans_boundary): Likewise.
21448         (output_symtab): Likewise.
21449         (input_ref): Likewise.
21450         (input_cgraph_1): Likewise.
21451         (output_cgraph_opt_summary): Likewise.
21452         * lto-streamer-out.c (lto_output): Likewise.
21453         (output_symbol_p): Likewise.
21454         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
21455         (lsei_start_function_in_partition): Likewise.
21456         (lsei_next_variable_in_partition): Likewise.
21457         (lsei_start_variable_in_partition): Likewise.
21458         * symtab.c (insert_to_assembler_name_hash): Likewise.
21459         (unlink_from_assembler_name_hash): Likewise.
21460         (symtab_unregister_node): Likewise.
21461         (symtab_remove_node): Likewise.
21462         (dump_symtab_node): Likewise.
21463         (verify_symtab_base): Likewise.
21464         (verify_symtab_node): Likewise.
21465         (symtab_make_decl_local): Likewise.
21466         (symtab_alias_ultimate_target): Likewise.
21467         (symtab_resolve_alias): Likewise.
21468         (symtab_get_symbol_partitioning_class): Likewise.
21469         * tree-phinodes.c (allocate_phi_node): Likewise.
21470         (reserve_phi_args_for_new_edge): Likewise.
21471         (remove_phi_args): Likewise.
21472         * varpool.c (varpool_node_for_asm): Likewise.
21473         (varpool_remove_unreferenced_decls): Likewise.
21475 2014-04-23  Jeff Law  <law@redhat.com>
21477         PR tree-optimization/60902
21478         * tree-ssa-threadedge.c
21479         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
21480         invalidate outputs from statements that do not produce useful
21481         outputs for threading.
21483 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
21485         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
21486         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
21487         machine descriptions for Stack Smashing Protector.
21489 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
21491         * aarch64.md (<optab>_rol<mode>3): New pattern.
21492         (<optab>_rolsi3_uxtw): Likewise.
21493         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
21495 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
21497         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
21498         (arm_cortex_a12_tune): Likewise.
21500 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21502         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
21504 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21506         * config/arm/arm.md (arm_rev16si2): New pattern.
21507         (arm_rev16si2_alt): Likewise.
21508         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
21510 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21512         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
21513         (rev16<mode>2_alt): Likewise.
21514         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
21515         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
21516         (aarch_rev16_shleft_mask_imm_p): Likewise.
21517         (aarch_rev16_p_1): Likewise.
21518         (aarch_rev16_p): Likewise.
21519         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
21520         (aarch_rev16_shright_mask_imm_p): Likewise.
21521         (aarch_rev16_shleft_mask_imm_p): Likewise.
21523 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21525         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
21526         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
21527         rev cost.
21528         (cortex_a53_extra_costs): Likewise.
21529         (cortex_a57_extra_costs): Likewise.
21530         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
21531         (cortexa7_extra_costs): Likewise.
21532         (cortexa8_extra_costs): Likewise.
21533         (cortexa12_extra_costs): Likewise.
21534         (cortexa15_extra_costs): Likewise.
21535         (v7m_extra_costs): Likewise.
21536         (arm_new_rtx_costs): Handle BSWAP.
21538 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21540         * config/arm/arm.c (cortexa8_extra_costs): New table.
21541         (arm_cortex_a8_tune): New tuning struct.
21542         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
21544 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21546         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
21548 2014-04-23  Richard Biener  <rguenther@suse.de>
21550         * Makefile.in (OBJS): Remove loop-unswitch.o.
21551         * tree-pass.h (make_pass_rtl_unswitch): Remove.
21552         * passes.def (pass_rtl_unswitch): Likewise.
21553         * loop-init.c (gate_rtl_unswitch): Likewise.
21554         (rtl_unswitch): Likewise.
21555         (pass_data_rtl_unswitch): Likewise.
21556         (pass_rtl_unswitch): Likewise.
21557         (make_pass_rtl_unswitch): Likewise.
21558         * rtl.h (reversed_condition): Likewise.
21559         (compare_and_jump_seq): Likewise.
21560         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
21561         and make static.
21562         * loop-unroll.c (compare_and_jump_seq): Likewise.
21564 2014-04-23  Richard Biener  <rguenther@suse.de>
21566         PR tree-optimization/60903
21567         * tree-ssa-loop-im.c (analyze_memory_references): Remove
21568         commented code block.
21569         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
21570         loop flags to newly created BBs and edges.
21572 2014-04-23  Nick Clifton  <nickc@redhat.com>
21574         * config/msp430/msp430.c (msp430_handle_option): Move function
21575         to msp430-common.c
21576         (msp430_option_override): Simplify mcu and mcpu option handling.
21577         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
21578         support for -mhwmult command line option.
21579         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
21580         -mhwmult command line option.
21581         (msp430_hwmult_enabled): Delete.
21582         (msp43o_output_labelref): Add support for -mhwmult command line option.
21583         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
21584         (umulsidi3): Likewise.
21585         * config/msp430/msp430.opt (mmcu): Add Report attribute.
21586         (mcpu, mlarge, msmall): Likewise.
21587         (mhwmult): New option.
21588         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
21589         prototype.
21590         (msp430_is_f5_mcu): Remove prototype.
21591         (msp430_use_f5_series_hwmult): Add prototype.
21592         * config/msp430/msp430-opts.h: New file.
21593         * common/config/msp430: New directory.
21594         * common/config/msp430/msp430-common.c: New file.
21595         * config.gcc (msp430): Remove target_has_targetm_common.
21596         * doc/invoke.texi: Document -mhwmult command line option.
21598 2014-04-23  Nick Clifton  <nickc@redhat.com>
21600         * config/i386/cygwin.h (ENDFILE_SPEC): Include
21601         default-manifest.o if it can be found in the search path.
21602         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21604 2014-04-23  Terry Guo  <terry.guo@arm.com>
21606         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
21608 2014-04-23  Richard Biener  <rguenther@suse.de>
21610         PR middle-end/60895
21611         * tree-inline.c (declare_return_variable): Use mark_addressable.
21613 2014-04-23  Richard Biener  <rguenther@suse.de>
21615         PR middle-end/60891
21616         * loop-init.c (loop_optimizer_init): Make sure to apply
21617         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
21619 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
21621         PR sanitizer/60275
21622         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
21623         New options.
21624         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
21625         if flag_sanitize_undefined_trap_on_error.
21626         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
21627         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
21628         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
21629         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
21630         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
21631         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
21632         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
21633         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
21634         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
21635         * ubsan.c (ubsan_instrument_unreachable): Return
21636         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
21637         (ubsan_expand_null_ifn): Emit __builtin_trap ()
21638         if flag_sanitize_undefined_trap_on_error and
21639         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
21640         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
21641         instrument_bool_enum_load): Emit __builtin_trap () if
21642         flag_sanitize_undefined_trap_on_error and
21643         __builtin_handle_*_abort () if !flag_sanitize_recover.
21644         * doc/invoke.texi (-fsanitize-recover,
21645         -fsanitize-undefined-trap-on-error): Document.
21647 2014-04-22  Christian Bruel  <christian.bruel@st.com>
21649         * config/sh/sh.md (mov<mode>): Replace movQIHI.
21650          Force immediates to SImode.
21652 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
21654         * config/nios2/nios2.md (UNSPEC_ROUND): New.
21655         (lroundsfsi2): New.
21656         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
21657         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
21658         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
21659         (nios2_fpu_insn): Add entry for round.
21660         (N2FPU_NO_ERRNO_P): Define.
21661         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
21662         flag_errno_math.
21663         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
21665 2014-04-22  Richard Henderson  <rth@redhat.com>
21667         * config/aarch64/aarch64 (addti3, subti3): New expanders.
21668         (add<GPI>3_compare0): Remove leading * from name.
21669         (add<GPI>3_carryin): Likewise.
21670         (sub<GPI>3_compare0): Likewise.
21671         (sub<GPI>3_carryin): Likewise.
21672         (<su_optab>mulditi3): New expander.
21673         (multi3): New expander.
21674         (madd<GPI>): Remove leading * from name.
21676 2014-04-22  Martin Jambor  <mjambor@suse.cz>
21678         * cgraphclones.c (cgraph_function_versioning): Copy
21679         ipa_transforms_to_apply instead of asserting it is empty.
21681 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
21683         PR target/60868
21684         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
21685         on count_exp to get mode.
21687 2014-04-22  Andrew Pinski  <apinski@cavium.com>
21689         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21690         Handle TLS for ILP32.
21691         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
21692         (tlsie_small_<mode>): this and handle PTR.
21693         (tlsie_small_sidi): New pattern.
21694         (tlsle_small): Change to an expand to handle ILP32.
21695         (tlsle_small_<mode>): New pattern.
21696         (tlsdesc_small): Rename to ...
21697         (tlsdesc_small_<mode>): this and handle PTR.
21699 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21701         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
21703 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21705         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21706         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
21707         (aarch64_types_signed_poly_qualifiers): Likewise.
21708         (aarch64_types_unsigned_signed_qualifiers): Likewise.
21709         (aarch64_types_poly_signed_qualifiers): Likewise.
21710         (TYPES_REINTERP_SS): Type macro added.
21711         (TYPES_REINTERP_SU): Likewise.
21712         (TYPES_REINTERP_SP): Likewise.
21713         (TYPES_REINTERP_US): Likewise.
21714         (TYPES_REINTERP_PS): Likewise.
21715         (aarch64_fold_builtin): New expression folding added.
21716         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
21717         Declarations removed.
21718         (REINTERP_SS): Declarations added.
21719         (REINTERP_US): Likewise.
21720         (REINTERP_PS): Likewise.
21721         (REINTERP_SU): Likewise.
21722         (REINTERP_SP): Likewise.
21723         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
21724         (vreinterpretq_p8_f64): Likewise.
21725         (vreinterpret_p16_f64): Likewise.
21726         (vreinterpretq_p16_f64): Likewise.
21727         (vreinterpret_f32_f64): Likewise.
21728         (vreinterpretq_f32_f64): Likewise.
21729         (vreinterpret_f64_f32): Likewise.
21730         (vreinterpret_f64_p8): Likewise.
21731         (vreinterpret_f64_p16): Likewise.
21732         (vreinterpret_f64_s8): Likewise.
21733         (vreinterpret_f64_s16): Likewise.
21734         (vreinterpret_f64_s32): Likewise.
21735         (vreinterpret_f64_s64): Likewise.
21736         (vreinterpret_f64_u8): Likewise.
21737         (vreinterpret_f64_u16): Likewise.
21738         (vreinterpret_f64_u32): Likewise.
21739         (vreinterpret_f64_u64): Likewise.
21740         (vreinterpretq_f64_f32): Likewise.
21741         (vreinterpretq_f64_p8): Likewise.
21742         (vreinterpretq_f64_p16): Likewise.
21743         (vreinterpretq_f64_s8): Likewise.
21744         (vreinterpretq_f64_s16): Likewise.
21745         (vreinterpretq_f64_s32): Likewise.
21746         (vreinterpretq_f64_s64): Likewise.
21747         (vreinterpretq_f64_u8): Likewise.
21748         (vreinterpretq_f64_u16): Likewise.
21749         (vreinterpretq_f64_u32): Likewise.
21750         (vreinterpretq_f64_u64): Likewise.
21751         (vreinterpret_s64_f64): Likewise.
21752         (vreinterpretq_s64_f64): Likewise.
21753         (vreinterpret_u64_f64): Likewise.
21754         (vreinterpretq_u64_f64): Likewise.
21755         (vreinterpret_s8_f64): Likewise.
21756         (vreinterpretq_s8_f64): Likewise.
21757         (vreinterpret_s16_f64): Likewise.
21758         (vreinterpretq_s16_f64): Likewise.
21759         (vreinterpret_s32_f64): Likewise.
21760         (vreinterpretq_s32_f64): Likewise.
21761         (vreinterpret_u8_f64): Likewise.
21762         (vreinterpretq_u8_f64): Likewise.
21763         (vreinterpret_u16_f64): Likewise.
21764         (vreinterpretq_u16_f64): Likewise.
21765         (vreinterpret_u32_f64): Likewise.
21766         (vreinterpretq_u32_f64): Likewise.
21768 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21770         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21771         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
21772         (vreinterpret_p8_s8): Likewise.
21773         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
21774         (vreinterpret_p8_s16): Likewise.
21775         (vreinterpret_p8_s32): Likewise.
21776         (vreinterpret_p8_s64): Likewise.
21777         (vreinterpret_p8_f32): Likewise.
21778         (vreinterpret_p8_u8): Likewise.
21779         (vreinterpret_p8_u16): Likewise.
21780         (vreinterpret_p8_u32): Likewise.
21781         (vreinterpret_p8_u64): Likewise.
21782         (vreinterpret_p8_p16): Likewise.
21783         (vreinterpretq_p8_s8): Likewise.
21784         (vreinterpretq_p8_s16): Likewise.
21785         (vreinterpretq_p8_s32): Likewise.
21786         (vreinterpretq_p8_s64): Likewise.
21787         (vreinterpretq_p8_f32): Likewise.
21788         (vreinterpretq_p8_u8): Likewise.
21789         (vreinterpretq_p8_u16): Likewise.
21790         (vreinterpretq_p8_u32): Likewise.
21791         (vreinterpretq_p8_u64): Likewise.
21792         (vreinterpretq_p8_p16): Likewise.
21793         (vreinterpret_p16_s8): Likewise.
21794         (vreinterpret_p16_s16): Likewise.
21795         (vreinterpret_p16_s32): Likewise.
21796         (vreinterpret_p16_s64): Likewise.
21797         (vreinterpret_p16_f32): Likewise.
21798         (vreinterpret_p16_u8): Likewise.
21799         (vreinterpret_p16_u16): Likewise.
21800         (vreinterpret_p16_u32): Likewise.
21801         (vreinterpret_p16_u64): Likewise.
21802         (vreinterpret_p16_p8): Likewise.
21803         (vreinterpretq_p16_s8): Likewise.
21804         (vreinterpretq_p16_s16): Likewise.
21805         (vreinterpretq_p16_s32): Likewise.
21806         (vreinterpretq_p16_s64): Likewise.
21807         (vreinterpretq_p16_f32): Likewise.
21808         (vreinterpretq_p16_u8): Likewise.
21809         (vreinterpretq_p16_u16): Likewise.
21810         (vreinterpretq_p16_u32): Likewise.
21811         (vreinterpretq_p16_u64): Likewise.
21812         (vreinterpretq_p16_p8): Likewise.
21813         (vreinterpret_f32_s8): Likewise.
21814         (vreinterpret_f32_s16): Likewise.
21815         (vreinterpret_f32_s32): Likewise.
21816         (vreinterpret_f32_s64): Likewise.
21817         (vreinterpret_f32_u8): Likewise.
21818         (vreinterpret_f32_u16): Likewise.
21819         (vreinterpret_f32_u32): Likewise.
21820         (vreinterpret_f32_u64): Likewise.
21821         (vreinterpret_f32_p8): Likewise.
21822         (vreinterpret_f32_p16): Likewise.
21823         (vreinterpretq_f32_s8): Likewise.
21824         (vreinterpretq_f32_s16): Likewise.
21825         (vreinterpretq_f32_s32): Likewise.
21826         (vreinterpretq_f32_s64): Likewise.
21827         (vreinterpretq_f32_u8): Likewise.
21828         (vreinterpretq_f32_u16): Likewise.
21829         (vreinterpretq_f32_u32): Likewise.
21830         (vreinterpretq_f32_u64): Likewise.
21831         (vreinterpretq_f32_p8): Likewise.
21832         (vreinterpretq_f32_p16): Likewise.
21833         (vreinterpret_s64_s8): Likewise.
21834         (vreinterpret_s64_s16): Likewise.
21835         (vreinterpret_s64_s32): Likewise.
21836         (vreinterpret_s64_f32): Likewise.
21837         (vreinterpret_s64_u8): Likewise.
21838         (vreinterpret_s64_u16): Likewise.
21839         (vreinterpret_s64_u32): Likewise.
21840         (vreinterpret_s64_u64): Likewise.
21841         (vreinterpret_s64_p8): Likewise.
21842         (vreinterpret_s64_p16): Likewise.
21843         (vreinterpretq_s64_s8): Likewise.
21844         (vreinterpretq_s64_s16): Likewise.
21845         (vreinterpretq_s64_s32): Likewise.
21846         (vreinterpretq_s64_f32): Likewise.
21847         (vreinterpretq_s64_u8): Likewise.
21848         (vreinterpretq_s64_u16): Likewise.
21849         (vreinterpretq_s64_u32): Likewise.
21850         (vreinterpretq_s64_u64): Likewise.
21851         (vreinterpretq_s64_p8): Likewise.
21852         (vreinterpretq_s64_p16): Likewise.
21853         (vreinterpret_u64_s8): Likewise.
21854         (vreinterpret_u64_s16): Likewise.
21855         (vreinterpret_u64_s32): Likewise.
21856         (vreinterpret_u64_s64): Likewise.
21857         (vreinterpret_u64_f32): Likewise.
21858         (vreinterpret_u64_u8): Likewise.
21859         (vreinterpret_u64_u16): Likewise.
21860         (vreinterpret_u64_u32): Likewise.
21861         (vreinterpret_u64_p8): Likewise.
21862         (vreinterpret_u64_p16): Likewise.
21863         (vreinterpretq_u64_s8): Likewise.
21864         (vreinterpretq_u64_s16): Likewise.
21865         (vreinterpretq_u64_s32): Likewise.
21866         (vreinterpretq_u64_s64): Likewise.
21867         (vreinterpretq_u64_f32): Likewise.
21868         (vreinterpretq_u64_u8): Likewise.
21869         (vreinterpretq_u64_u16): Likewise.
21870         (vreinterpretq_u64_u32): Likewise.
21871         (vreinterpretq_u64_p8): Likewise.
21872         (vreinterpretq_u64_p16): Likewise.
21873         (vreinterpret_s8_s16): Likewise.
21874         (vreinterpret_s8_s32): Likewise.
21875         (vreinterpret_s8_s64): Likewise.
21876         (vreinterpret_s8_f32): Likewise.
21877         (vreinterpret_s8_u8): Likewise.
21878         (vreinterpret_s8_u16): Likewise.
21879         (vreinterpret_s8_u32): Likewise.
21880         (vreinterpret_s8_u64): Likewise.
21881         (vreinterpret_s8_p8): Likewise.
21882         (vreinterpret_s8_p16): Likewise.
21883         (vreinterpretq_s8_s16): Likewise.
21884         (vreinterpretq_s8_s32): Likewise.
21885         (vreinterpretq_s8_s64): Likewise.
21886         (vreinterpretq_s8_f32): Likewise.
21887         (vreinterpretq_s8_u8): Likewise.
21888         (vreinterpretq_s8_u16): Likewise.
21889         (vreinterpretq_s8_u32): Likewise.
21890         (vreinterpretq_s8_u64): Likewise.
21891         (vreinterpretq_s8_p8): Likewise.
21892         (vreinterpretq_s8_p16): Likewise.
21893         (vreinterpret_s16_s8): Likewise.
21894         (vreinterpret_s16_s32): Likewise.
21895         (vreinterpret_s16_s64): Likewise.
21896         (vreinterpret_s16_f32): Likewise.
21897         (vreinterpret_s16_u8): Likewise.
21898         (vreinterpret_s16_u16): Likewise.
21899         (vreinterpret_s16_u32): Likewise.
21900         (vreinterpret_s16_u64): Likewise.
21901         (vreinterpret_s16_p8): Likewise.
21902         (vreinterpret_s16_p16): Likewise.
21903         (vreinterpretq_s16_s8): Likewise.
21904         (vreinterpretq_s16_s32): Likewise.
21905         (vreinterpretq_s16_s64): Likewise.
21906         (vreinterpretq_s16_f32): Likewise.
21907         (vreinterpretq_s16_u8): Likewise.
21908         (vreinterpretq_s16_u16): Likewise.
21909         (vreinterpretq_s16_u32): Likewise.
21910         (vreinterpretq_s16_u64): Likewise.
21911         (vreinterpretq_s16_p8): Likewise.
21912         (vreinterpretq_s16_p16): Likewise.
21913         (vreinterpret_s32_s8): Likewise.
21914         (vreinterpret_s32_s16): Likewise.
21915         (vreinterpret_s32_s64): Likewise.
21916         (vreinterpret_s32_f32): Likewise.
21917         (vreinterpret_s32_u8): Likewise.
21918         (vreinterpret_s32_u16): Likewise.
21919         (vreinterpret_s32_u32): Likewise.
21920         (vreinterpret_s32_u64): Likewise.
21921         (vreinterpret_s32_p8): Likewise.
21922         (vreinterpret_s32_p16): Likewise.
21923         (vreinterpretq_s32_s8): Likewise.
21924         (vreinterpretq_s32_s16): Likewise.
21925         (vreinterpretq_s32_s64): Likewise.
21926         (vreinterpretq_s32_f32): Likewise.
21927         (vreinterpretq_s32_u8): Likewise.
21928         (vreinterpretq_s32_u16): Likewise.
21929         (vreinterpretq_s32_u32): Likewise.
21930         (vreinterpretq_s32_u64): Likewise.
21931         (vreinterpretq_s32_p8): Likewise.
21932         (vreinterpretq_s32_p16): Likewise.
21933         (vreinterpret_u8_s8): Likewise.
21934         (vreinterpret_u8_s16): Likewise.
21935         (vreinterpret_u8_s32): Likewise.
21936         (vreinterpret_u8_s64): Likewise.
21937         (vreinterpret_u8_f32): Likewise.
21938         (vreinterpret_u8_u16): Likewise.
21939         (vreinterpret_u8_u32): Likewise.
21940         (vreinterpret_u8_u64): Likewise.
21941         (vreinterpret_u8_p8): Likewise.
21942         (vreinterpret_u8_p16): Likewise.
21943         (vreinterpretq_u8_s8): Likewise.
21944         (vreinterpretq_u8_s16): Likewise.
21945         (vreinterpretq_u8_s32): Likewise.
21946         (vreinterpretq_u8_s64): Likewise.
21947         (vreinterpretq_u8_f32): Likewise.
21948         (vreinterpretq_u8_u16): Likewise.
21949         (vreinterpretq_u8_u32): Likewise.
21950         (vreinterpretq_u8_u64): Likewise.
21951         (vreinterpretq_u8_p8): Likewise.
21952         (vreinterpretq_u8_p16): Likewise.
21953         (vreinterpret_u16_s8): Likewise.
21954         (vreinterpret_u16_s16): Likewise.
21955         (vreinterpret_u16_s32): Likewise.
21956         (vreinterpret_u16_s64): Likewise.
21957         (vreinterpret_u16_f32): Likewise.
21958         (vreinterpret_u16_u8): Likewise.
21959         (vreinterpret_u16_u32): Likewise.
21960         (vreinterpret_u16_u64): Likewise.
21961         (vreinterpret_u16_p8): Likewise.
21962         (vreinterpret_u16_p16): Likewise.
21963         (vreinterpretq_u16_s8): Likewise.
21964         (vreinterpretq_u16_s16): Likewise.
21965         (vreinterpretq_u16_s32): Likewise.
21966         (vreinterpretq_u16_s64): Likewise.
21967         (vreinterpretq_u16_f32): Likewise.
21968         (vreinterpretq_u16_u8): Likewise.
21969         (vreinterpretq_u16_u32): Likewise.
21970         (vreinterpretq_u16_u64): Likewise.
21971         (vreinterpretq_u16_p8): Likewise.
21972         (vreinterpretq_u16_p16): Likewise.
21973         (vreinterpret_u32_s8): Likewise.
21974         (vreinterpret_u32_s16): Likewise.
21975         (vreinterpret_u32_s32): Likewise.
21976         (vreinterpret_u32_s64): Likewise.
21977         (vreinterpret_u32_f32): Likewise.
21978         (vreinterpret_u32_u8): Likewise.
21979         (vreinterpret_u32_u16): Likewise.
21980         (vreinterpret_u32_u64): Likewise.
21981         (vreinterpret_u32_p8): Likewise.
21982         (vreinterpret_u32_p16): Likewise.
21983         (vreinterpretq_u32_s8): Likewise.
21984         (vreinterpretq_u32_s16): Likewise.
21985         (vreinterpretq_u32_s32): Likewise.
21986         (vreinterpretq_u32_s64): Likewise.
21987         (vreinterpretq_u32_f32): Likewise.
21988         (vreinterpretq_u32_u8): Likewise.
21989         (vreinterpretq_u32_u16): Likewise.
21990         (vreinterpretq_u32_u64): Likewise.
21991         (vreinterpretq_u32_p8): Likewise.
21992         (vreinterpretq_u32_p16): Likewise.
21994 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21996         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
21997         Pattern extended.
21998         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
21999         (sqabs): Likewise.
22000         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
22001         (vqnegd_s64): Likewise.
22002         (vqabs_s64): Likewise.
22003         (vqabsd_s64): Likewise.
22005 2014-04-22  Richard Henderson  <rth@redhat.com>
22007         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
22008         computation to the top of the loop.
22010 2014-04-22  Renlin  <renlin.li@arm.com>
22011             Jiong Wang  <jiong.wang@arm.com>
22013         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
22014         * config/aarch64/aarch64.c (aarch64_layout_frame)
22015         (aarch64_initial_elimination_offset): Likewise.
22017 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22019         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
22020         Fix indentation.
22022 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
22024         * machmode.h (bitwise_mode_for_mode): Declare.
22025         * stor-layout.h (bitwise_type_for_mode): Likewise.
22026         * stor-layout.c (bitwise_mode_for_mode): New function.
22027         (bitwise_type_for_mode): Likewise.
22028         * builtins.c (fold_builtin_memory_op): Use it instead of
22029         int_mode_for_mode and build_nonstandard_integer_type.
22031 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22033         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
22034         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
22035         (*-*-solaris2*): Simplify.
22036         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
22037         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
22038         *-*-solaris2.9* handling.
22040         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
22041         as bug.
22042         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
22043         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
22044         handling, simplify.
22045         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
22046         * configure: Regenerate.
22048         * config/i386/sol2-9.h: Remove.
22050         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
22051         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
22052         Remove Solaris 9 references.
22054 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
22056         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
22057         (floatuns<GPI:mode><GPF:mode>2): Remove.
22058         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
22059         and floatuns conversions.
22060         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
22061         and floatuns conversions.
22062         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
22063         (w1,w2): New mode attributes for inequal width conversions.
22065 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
22067         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
22068         the output asm format.
22070 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
22072         * config/aarch64/aarch64-simd.md
22073         (aarch64_cm<optab>di): Always split.
22074         (*aarch64_cm<optab>di): New.
22075         (aarch64_cmtstdi): Always split.
22076         (*aarch64_cmtstdi): New.
22078 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
22080         PR tree-optimization/60823
22081         * omp-low.c (ipa_simd_modify_function_body): Go through
22082         all SSA_NAMEs and for those refering to vector arguments
22083         which are going to be replaced adjust SSA_NAME_VAR and,
22084         if it is a default definition, change it into a non-default
22085         definition assigned at the beginning of function from new_decl.
22086         (ipa_simd_modify_stmt_ops): Rewritten.
22087         * tree-dfa.c (set_ssa_default_def): When removing default def,
22088         check for NULL loc instead of NULL *loc.
22090 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22092         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
22093         restrictions on core registers for DImode values in Thumb2.
22095 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
22097         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
22098         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
22100 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
22102         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
22103         (*iordi_notzesidi_di): Likewise.
22104         (*iordi_notsesidi_di): Likewise.
22106 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
22108         * config/arm/arm-protos.h (tune_params): New struct members.
22109         * config/arm/arm.c: Initialise tune_params per processor.
22110         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
22111         for speed, based on new tune_params.
22113 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
22115         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
22116         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
22117         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
22118         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
22119         * config/aarch64/arm_neon.h (vrnd_f64): Added.
22120         (vrnda_f64): Likewise.
22121         (vrndi_f64): Likewise.
22122         (vrndm_f64): Likewise.
22123         (vrndn_f64): Likewise.
22124         (vrndp_f64): Likewise.
22125         (vrndx_f64): Likewise.
22127 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22129         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
22130         GET_MODE_SIZE argument is enum machine_mode.
22132 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
22134         PR target/60910
22135         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
22136         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
22138 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
22140         PR middle-end/60281
22141         * asan.c (asan_emit_stack_protection): Force the base to align to
22142         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
22143         appropriate bits if STRICT_ALIGNMENT.
22144         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
22145         when asan is on.
22146         (expand_used_vars): Leave a space in the stack frame for alignment
22147         if STRICT_ALIGNMENT.
22149 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
22151         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
22152         than a gimple.
22153         (gimple_store_p): Likewise.
22154         (gimple_assign_load_p): Likewise.
22155         (gimple_assign_cast_p): Likewise.
22156         (gimple_clobber_p): Likewise.
22158         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
22159         rather than a gimple.
22160         (gimple_assign_cast_p): Likewise.
22162 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22164         PR target/60735
22165         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
22166         If mode is DDmode and TARGET_E500_DOUBLE allow move.
22168         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
22169         more debug information for E500 if -mdebug=reg.
22171 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
22173         PR target/60909
22174         * config/i386/i386.c (ix86_expand_builtin)
22175         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
22176         register for target RTX.
22177         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
22179 2014-04-18  Cong Hou  <congh@google.com>
22181         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
22182         the widen-mult pattern by handling two operands with different sizes,
22183         and operands whose size is smaller than half of the result type.
22185 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
22187         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
22188         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
22189         (do_estimate_edge_time): Compute it.
22190         * ipa-inline.c (want_inline_small_function_p): Bypass
22191         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
22193 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
22195         * ipa-inline.c (spec_rem): New static variable.
22196         (dump_overall_stats): New function.
22197         (dump_inline_stats): New function.
22199 2014-04-18  Richard Henderson  <rth@redhat.com>
22201         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
22202         to GET_MODE_SIZE, not a reg_class_t.
22204 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22206         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
22207         (vsx_xxmrglw_<mode>): Likewise.
22209 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
22211         PR target/60876
22212         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
22213         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
22214         (rs6000_init_hard_regno_mode_ok): Likewise.
22216 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
22218         * ipa-inline.c (inline_small_functions): Account only non-cold
22219         functions.
22220         * doc/invoke.texi (inline-unit-growth): Update documentation.
22222 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
22224         * config/rs6000/rs6000.md (addti3, subti3): New.
22226 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
22228         PR target/60863
22229         * config/i386/i386.c (ix86_expand_clear): Remove outdated
22230         comment.  Check optimize_insn_for_size_p instead of
22231         optimize_insn_for_speed_p.
22233 2014-04-17  Martin Jambor  <mjambor@suse.cz>
22235         * gimple-iterator.c (gsi_start_edge): New function.
22236         * gimple-iterator.h (gsi_start_edge): Declare.
22237         * tree-sra.c (single_non_eh_succ): New function.
22238         (disqualify_ops_if_throwing_stmt): Renamed to
22239         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
22240         having one non-EH successor BB.
22241         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
22242         generate loads into replacements.
22243         (sra_modify_assign): Likewise and and also use the simple path for
22244         such statements.
22245         (sra_modify_function_body): Commit statements on edges.
22247 2014-04-17  Richard Biener  <rguenther@suse.de>
22249         PR middle-end/60849
22250         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
22251         comparison results and add clarifying comment.
22253 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
22255         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
22256         (blank_mode): Initialize it.
22257         (emit_mode_size_inline, emit_mode_nunits_inline,
22258         emit_mode_inner_inline): New functions.
22259         (emit_insn_modes_h): Call them and surround their output with
22260         #if GCC_VERSION >= 4001 ... #endif.
22261         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
22262         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
22263         mode_* arrays if the argument is __builtin_constant_p.
22264         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
22265         is enum machine_mode.
22267 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22269         * passes.c (opt_pass::execute): Adjust.
22270         (pass_manager::execute_pass_mode_switching): Likewise.
22271         (early_local_passes::execute): Likewise.
22272         (execute_one_pass): Pass cfun to the pass's execute method.
22273         * tree-pass.h (opt_pass::execute): Add function * argument.
22274         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22275         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22276         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22277         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22278         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22279         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
22280         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
22281         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22282         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22283         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
22284         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
22285         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
22286         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
22287         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
22288         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22289         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22290         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22291         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
22292         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
22293         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22294         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22295         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22296         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22297         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22298         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22299         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22300         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22301         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22302         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
22303         Adjust.
22305 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22307         * passes.c (opt_pass::gate): Take function * argument.
22308         (gate_all_early_local_passes): Merge into
22309         (early_local_passes::gate): this.
22310         (gate_all_early_optimizations): Merge into
22311         (all_early_optimizations::gate): this.
22312         (gate_all_optimizations): Mege into
22313         (all_optimizations::gate): this.
22314         (gate_all_optimizations_g): Merge into
22315         (all_optimizations_g::gate): this.
22316         (gate_rest_of_compilation): Mege into
22317         (rest_of_compilation::gate): this.
22318         (gate_postreload): Merge into
22319         (postreload::gate): this.
22320         (dump_one_pass): Pass cfun to the pass's gate method.
22321         (execute_ipa_summary_passes): Likewise.
22322         (execute_one_pass): Likewise.
22323         (ipa_write_summaries_2): Likewise.
22324         (ipa_write_optimization_summaries_1): Likewise.
22325         (ipa_read_summaries_1): Likewise.
22326         (ipa_read_optimization_summaries_1): Likewise.
22327         (execute_ipa_stmt_fixups): Likewise.
22328         * tree-pass.h (opt_pass::gate): Add function * argument.
22329         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
22330         combine-stack-adj.c, combine.c, compare-elim.c,
22331         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22332         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
22333         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
22334         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
22335         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22336         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22337         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22338         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
22339         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
22340         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
22341         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22342         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22343         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
22344         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22345         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22346         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22347         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22348         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22349         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22350         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22351         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22352         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22353         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
22354         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
22355         var-tracking.c, vtable-verify.c, web.c: Adjust.
22357 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22359         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
22360         * configure: Regenerate.
22362 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22364         * passes.c (dump_one_pass): don't check pass->has_gate.
22365         (execute_ipa_summary_passes): Likewise.
22366         (execute_one_pass): Likewise.
22367         (ipa_write_summaries_2): Likewise.
22368         (ipa_write_optimization_summaries_1): Likewise.
22369         (ipa_read_optimization_summaries_1): Likewise.
22370         (execute_ipa_stmt_fixups): Likewise.
22371         * tree-pass.h (pass_data::has_gate): Remove.
22372         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22373         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22374         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22375         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22376         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22377         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
22378         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
22379         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
22380         gimple-low.c, gimple-ssa-isolate-paths.c,
22381         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
22382         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
22383         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22384         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
22385         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
22386         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
22387         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
22388         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
22389         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
22390         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22391         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22392         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22393         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22394         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22395         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22396         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22397         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22398         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22399         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22400         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22401         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22402         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
22403         Adjust.
22405 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22407         * pass_manager.h (pass_manager::register_dump_files_1): Remove
22408         declaration.
22409         * passes.c (pass_manager::register_dump_files_1): Merge into
22410         (pass_manager::register_dump_files): this, and remove its handling of
22411         properties since the pass always has the properties anyway.
22412         (pass_manager::pass_manager): Adjust.
22414 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22416         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
22417         * passes.c (pass_manager::register_dump_files_1): Remove dead code
22418         dealing with properties.
22419         (pass_manager::register_dump_files): Adjust.
22421 2014-03-20  Mark Wielaard  <mjw@redhat.com>
22423         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
22424         then represent the bound as normal constant value.
22426 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
22428         PR target/60847
22429         Forward port from 4.8 branch
22430         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
22432         * config/i386/bmiintrin.h (_blsi_u32): New.
22433         (_blsi_u64): Ditto.
22434         (_blsr_u32): Ditto.
22435         (_blsr_u64): Ditto.
22436         (_blsmsk_u32): Ditto.
22437         (_blsmsk_u64): Ditto.
22438         (_tzcnt_u32): Ditto.
22439         (_tzcnt_u64): Ditto.
22441 2014-04-17  Kito Cheng  <kito@0xlab.org>
22443         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
22445 2014-04-17  Richard Biener  <rguenther@suse.de>
22447         PR middle-end/60849
22448         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
22449         boolean results for comparisons.
22451 2014-04-17  Richard Biener  <rguenther@suse.de>
22453         PR tree-optimization/60836
22454         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
22455         initial PHI args to be gimple values.
22457 2014-04-17  Richard Biener  <rguenther@suse.de>
22459         PR tree-optimization/60841
22460         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
22461         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
22462         of stmts to SLP build.
22463         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
22464         (vect_analyze_slp): Likewise.
22465         (vect_analyze_slp_instance): Likewise.
22466         (vect_build_slp_tree): Limit overall SLP tree growth.
22467         * tree-vectorizer.h (vect_analyze_data_refs,
22468         vect_analyze_slp): Adjust prototypes.
22470 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
22472         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
22473         Silvermont.
22475 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
22477         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
22478         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
22479         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
22480         for TARGET_SLOW_PSHUFB
22482 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
22484         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
22485         * config/i386/i386.c (intel_cost): Ditto.
22487 2014-04-17  Joey Ye  <joey.ye@arm.com>
22489         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
22491 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
22493         * opts.c (common_handle_option): Disable -fipa-reference coorectly
22494         with -fuse-profile.
22496 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
22498         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
22499         (type_all_derivations_known_p): New predicate.
22500         (type_all_ctors_visible_p): New predicate.
22501         (type_possibly_instantiated_p): New predicate.
22502         (get_odr_type): Compute all_derivations_known.
22503         (dump_odr_type): Dump the flag.
22504         (maybe_record_type): Cleanup.
22505         (record_target_from_binfo): Add bases_to_consider array;
22506         record bases for types w/o instances and skip CXX destructor.
22507         (possible_polymorphic_call_targets_1): Add bases_to_consider
22508         and consider_construction parameters; check if type may have instance.
22509         (get_polymorphic_call_info): Set maybe_in_construction to true
22510         when we know nothing.
22511         (record_targets_from_bases): Skip CXX destructors; they are
22512         never called for types in construction.
22513         (possible_polymorphic_call_targets): Do not record target when
22514         type may not have instance.
22516 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
22518         PR ipa/60854
22519         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
22520         external aliases alive, too.
22522 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
22524         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
22525         definition.
22527 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
22529         * final.c (compute_alignments): Do not apply loop alignment to a block
22530         falling through to the exit.
22532 2014-04-16  Catherine Moore  <clm@codesourcery.com>
22534         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
22535         Adjust constraints for microMIPS store patterns.
22537 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
22539         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
22541 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
22543         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
22544         (append_use): Run at -O0.
22545         (append_vdef): Likewise.
22546         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
22547         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
22549 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
22551         PR tree-optimization/60844
22552         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
22553         (propagate_op_to_single_use, remove_visited_stmt_chain,
22554         linearize_expr, repropagate_negates, reassociate_bb): Use it
22555         instead of gsi_remove.
22557 2014-04-16  Martin Jambor  <mjambor@suse.cz>
22559         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
22560         ipa_transforms_to_apply.
22561         (cgraph_function_versioning): Assert that old_node has empty
22562         ipa_transforms_to_apply.
22563         * trans-mem.c (ipa_tm_create_version): Likewise.
22564         * tree-inline.c (tree_function_versioning): Do not duplicate
22565         ipa_transforms_to_apply.
22567 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22569         PR target/60817
22570         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
22571         x86_64-*-* cases.
22572         Pass necessary as flags on 64-bit Solaris/x86.
22573         Use lowercase relocs for x86_64-*-*.
22574         * configure: Regenerate.
22576 2014-04-15  Jan Hubicka  <jh@suse.cz>
22578         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
22579         (maybe_record_node, likely_target_p): Use it.
22581 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22583         PR target/60839
22584         Revert following patch
22586         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22588         PR target/60735
22589         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
22590         software floating point or no floating point registers, do not
22591         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
22592         in GPRs that occurs after we tested for GPRs that would never be
22593         true.
22595         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
22596         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
22597         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
22598         specifically allow DDmode, since that does not use the SPE SIMD
22599         instructions.
22601 2014-03-21  Mark Wielaard  <mjw@redhat.com>
22603         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
22604         as unsigned or int depending on type and value used.
22606 2014-04-15  Richard Biener  <rguenther@suse.de>
22608         PR rtl-optimization/56965
22609         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
22610         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
22611         ... here.
22612         * alias.c (true_dependence_1): Do not call
22613         nonoverlapping_component_refs_p.
22614         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
22615         nonoverlapping_component_refs_p.
22616         (indirect_refs_may_alias_p): Likewise.
22618 2014-04-15  Teresa Johnson  <tejohnson@google.com>
22620         * cfg.c (dump_bb_info): Fix flags check.
22621         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
22623 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22625         PR rtl-optimization/60663
22626         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
22627         avoid 0 cost.
22629 2014-04-15  Richard Biener  <rguenther@suse.de>
22631         * lto-streamer.h (LTO_major_version): Bump to 4.
22633 2014-04-15  Richard Biener  <rguenther@suse.de>
22635         * common.opt (lto_partition_model): New enum.
22636         (flto-partition=): Merge separate options with a single with argument,
22637         add -flto-partition=one support.
22638         * flag-types.h (enum lto_partition_model): Declare.
22639         * opts.c (finish_options): Remove duplicate -flto-partition=
22640         option check.
22641         * lto-wrapper.c (run_gcc): Adjust.
22643 2014-04-15  Richard Biener  <rguenther@suse.de>
22645         * alias.c (ncr_compar): New function.
22646         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
22648 2014-04-15  Richard Biener  <rguenther@suse.de>
22650         * alias.c (record_component_aliases): Do not walk BINFOs.
22652 2014-04-15  Richard Biener  <rguenther@suse.de>
22654         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22655         Add struct function argument and adjust.
22656         (find_func_aliases_for_call): Likewise.
22657         (find_func_aliases): Likewise.
22658         (find_func_clobbers): Likewise.
22659         (intra_create_variable_infos): Likewise.
22660         (compute_points_to_sets): Likewise.
22661         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
22663 2014-04-15  Richard Biener  <rguenther@suse.de>
22665         * tree.c (iterative_hash_expr): Use enum tree_code_class
22666         to store TREE_CODE_CLASS.
22667         (tree_block): Likewise.
22668         (tree_set_block): Likewise.
22669         * tree.h (fold_build_pointer_plus_loc): Use
22670         convert_to_ptrofftype_loc.
22672 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
22674         PR plugins/59335
22675         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
22676         added in 4.9.
22678 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
22680         * cfgloop.h (struct loop): Move force_vectorize down.
22681         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
22682         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
22683         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
22684         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
22685         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
22686         * tree-core.h (enum annot_expr_kind): Add new kind values.
22687         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
22688         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
22689         kinds.
22690         * tree.def (ANNOTATE_EXPR): Tweak comment.
22692 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
22694         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
22695         cxa_pure_virtual).
22697 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
22699         * tree.h (TYPE_IDENTIFIER): Declare.
22700         * tree.c (subrange_type_for_debug_p): Use it.
22701         * godump.c (go_format_type): Likewise.
22702         * dwarf2out.c (is_cxx_auto, modified_type_die,
22703         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
22704         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
22706 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
22708         PR lto/60820
22709         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
22711 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
22713         * config/i386/i386.c (examine_argument): Return bool.  Return true if
22714         parameter should be passed in memory.
22715         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
22716         (construct_container): Update calls to examine_argument.
22717         (function_arg_advance_64): Ditto.
22718         (return_in_memory_32): Merge with ix86_return_in_memory.
22719         (return_in_memory_64): Ditto.
22720         (return_in_memory_ms_64): Ditto.
22722 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
22724         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
22725         * coverage.c (coverage_compute_profile_id): Handle externally visible
22726         symbols.
22728 2014-04-14  Martin Jambor  <mjambor@suse.cz>
22730         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
22731         DECL_DISREGARD_INLINE_LIMITS functions.
22733 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
22735         PR target/60827
22736         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
22738 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
22740         PR target/60827
22741         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
22742         optimize_insn_for_speed_p instead of
22743         optimize_function_for_speed_p.
22745 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
22747         * doc/invoke.texi (free): Document AArch64.
22749 2014-04-14  Richard Biener  <rguenther@suse.de>
22751         PR tree-optimization/60042
22752         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
22753         (insert_into_preds_of_block): Do not prevent PHI insertion
22754         for REFERENCE exprs here ...
22755         (eliminate_dom_walker::before_dom_children): ... but prevent
22756         their use here under similar conditions when applied to the
22757         IL after PRE optimizations.
22759 2014-04-14  Richard Biener  <rguenther@suse.de>
22761         * passes.def: Move early points-to after early SRA.
22763 2014-04-14  Richard Biener  <rguenther@suse.de>
22765         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
22766         check for which sign-changes we allow when forwarding
22767         a converted value into a switch.
22769 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
22771         * stor-layout.c (place_field): Finalize non-constant offset for the
22772         field, if any.
22774 2014-04-14  Richard Biener  <rguenther@suse.de>
22776         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
22777         as argument.
22778         (expand_switch_using_bit_tests_p): Likewise.
22779         (process_switch): Compute and pass on speed_p based on the
22780         switch stmt.
22781         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
22782         optimize_bb_for_speed_p.
22784 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
22786         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
22787         * function.h (struct function): Rename has_force_vect_loops into
22788         has_force_vectorize_loops.
22789         * lto-streamer-in.c (input_cfg): Adjust for renaming.
22790         (input_struct_function_base): Likewise.
22791         * lto-streamer-out.c (output_cfg): Likewise.
22792         (output_struct_function_base): Likewise.
22793         * omp-low.c (expand_omp_simd): Likewise.
22794         * tree-cfg.c (move_sese_region_to_fn): Likewise.
22795         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
22796         (version_loop_for_if_conversion): Likewise.
22797         (tree_if_conversion): Likewise.
22798         (main_tree_if_conversion): Likewise.
22799         (gate_tree_if_conversion): Likewise.
22800         * tree-inline.c (copy_loops): Likewise.
22801         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
22802         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
22803         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22804         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
22805         * tree-vectorizer.c (vectorize_loops): Likewise.
22806         * tree-vectorizer.h (unlimited_cost_model): Likewise.
22808 2014-04-14  Richard Biener  <rguenther@suse.de>
22810         PR lto/60720
22811         * lto-streamer-out.c (wrap_refs): New function.
22812         (lto_output): Wrap symbol references in global initializes in
22813         type-preserving MEM_REFs.
22815 2014-04-14  Christian Bruel  <christian.bruel@st.com>
22817         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
22819 2014-04-14  Christian Bruel  <christian.bruel@st.com>
22821         * config/sh/sh.md (setmemqi): New expand pattern.
22822         * config/sh/sh.h (CLEAR_RATIO): Define.
22823         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
22824         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
22826 2014-04-14  Richard Biener  <rguenther@suse.de>
22828         PR middle-end/55022
22829         * fold-const.c (negate_expr_p): Don't negate directional rounding
22830         division.
22831         (fold_negate_expr): Likewise.
22833 2014-04-14  Richard Biener  <rguenther@suse.de>
22835         PR tree-optimization/59817
22836         PR tree-optimization/60453
22837         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
22838         recursion to catch all CHRECs in the scalar evolution and restrict
22839         the predicate for the remains appropriately.
22841 2014-04-12  Catherine Moore  <clm@codesourcery.com>
22843         * config/mips/constraints.md: Add new register constraint "kb".
22844         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
22845         (*movhi_internal): Likewise.
22846         (*movqi_internal): Likewise.
22847         * config/mips/mips.h (M16_STORE_REGS): New register class.
22848         (REG_CLASS_NAMES): Add M16_STORE_REGS.
22849         (REG_CLASS_CONTENTS): Likewise.
22850         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
22852 2014-04-11  Tobias Burnus  <burnus@net-b.de>
22854         PR c/60194
22855         * doc/invoke.texi (-Wformat-signedness): Document it.
22856         (Wformat=2): Mention that this enables -Wformat-signedness.
22858 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22860         * common/config/epiphany/epiphany-common.c
22861         (epiphany_option_optimization_table): Enable section anchors by
22862         default at -O1 or higher.
22863         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
22864         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
22865         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
22866         carries no extra cost.
22867         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
22868         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
22869         * config/epiphany/predicates.md (memclob_operand): New predicate.
22870         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
22871         Use memclob_operand predicate and X constraint for operand 3.
22873 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22875         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
22876         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
22877         its operands.
22879 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22881         PR rtl-optimization/60651
22882         * mode-switching.c (optimize_mode_switching): Make sure to emit
22883         sets of a lower numbered entity before sets of a higher numbered
22884         entity to a mode of the same or lower priority.
22885         When creating a seginfo for a basic block that starts with a code
22886         label, move the insertion point past the code label.
22887         (new_seginfo): Document and enforce requirement that
22888         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
22889         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
22890         * doc/tm.texi: Regenerate.
22892 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22894         PR target/60811
22895         * config/arc/arc.c (arc_save_restore): Fix assert typo.
22897 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
22899         * BASE-VER: Set to 4.10.0.
22901 2014-04-11  Tobias Burnus  <burnus@net-b.de>
22903         PR other/59055
22904         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
22905         * doc/gcc.texi (Service): Update description in the @menu
22906         * doc/invoke.texi (Option Summary): Remove misplaced and
22907         duplicated @menu.
22909 2014-04-11  Steve Ellcey  <sellcey@mips.com>
22910             Jakub Jelinek  <jakub@redhat.com>
22912         PR middle-end/60556
22913         * expr.c (convert_move): Use emit_store_flag_force instead of
22914         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
22915         argument to it.
22917 2014-04-11  Richard Biener  <rguenther@suse.de>
22919         PR middle-end/60797
22920         * varasm.c (assemble_alias): Avoid endless error reporting
22921         recursion by setting TREE_ASM_WRITTEN.
22923 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22925         * config/s390/s390.md: Add a splitter for NOT rtx.
22927 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
22929         PR rtl-optimization/60663
22930         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
22932 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
22933             Jakub Jelinek  <jakub@redhat.com>
22935         PR lto/60567
22936         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
22937         flag from decl_node to node.
22939 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22941         PR debug/60655
22942         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
22943         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
22944         ameliorating the cases where it can be.
22946 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
22948         Revert
22949         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
22951         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22952         (loadsync_<mode>): Change mode.
22953         (load_quadpti, store_quadpti): New.
22954         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22955         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22956         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
22958 2014-04-09  Cong Hou  <congh@google.com>
22960         PR testsuite/60773
22961         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
22962         documentation.
22964 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22966         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
22967         instead of vnor to exploit possible fusion opportunity in the
22968         future.
22969         (altivec_expand_vec_perm_const_le): Likewise.
22971 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
22973         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22974         (loadsync_<mode>): Change mode.
22975         (load_quadpti, store_quadpti): New.
22976         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22977         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22979 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
22981         PR target/60763
22982         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
22983         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
22984         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
22986 2014-04-08  Richard Biener  <rguenther@suse.de>
22988         PR middle-end/60706
22989         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
22990         a 64bit widest int print double-int similar to on HWI64 hosts.
22992 2014-04-08  Richard Biener  <rguenther@suse.de>
22994         PR tree-optimization/60785
22995         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
22996         default defs properly.
22998 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
23000         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
23001         (Weffc++): Likewise.
23003 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
23005         * ipa-devirt.c (maybe_record_node): When node is not recorded,
23006         set completep to false rather than true.
23008 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
23010         PR target/60504
23011         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
23012         ARM_TARGET2_DWARF_FORMAT.
23014 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
23016         PR target/60609
23017         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
23018         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
23019         ADDR_DIFF_VEC.
23021 2014-04-07  Richard Biener  <rguenther@suse.de>
23023         PR tree-optimization/60766
23024         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
23025         (may_eliminate_iv): Convert cand_value_at result to desired type.
23027 2014-04-07  Jason Merrill  <jason@redhat.com>
23029         PR c++/60731
23030         * common.opt (-fno-gnu-unique): Add.
23031         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
23033 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23035         * haifa-sched.c: Fix outdated function reference and minor
23036         grammar errors in introductory comment.
23038 2014-04-07  Richard Biener  <rguenther@suse.de>
23040         PR middle-end/60750
23041         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
23042         for noreturn calls.
23043         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
23045 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
23047         PR debug/55794
23048         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
23049         size accounting for thunks.
23050         (pa_asm_output_mi_thunk): Use final_start_function() and
23051         final_end_function() to output function start and end directives.
23053 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
23055         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
23056         device specific ISA/ feature information. Remove short_sp and
23057         errata_skip ds.  Add avr_device_specific_features enum to have device
23058         specific info.
23059         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
23060         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
23061         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
23062         updated device specific info.
23063         * config/avr/avr-mcus.def: Merge device specific details to
23064         dev_attribute field.
23065         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
23066         errata_skip.
23067         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
23068         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
23069         assembler if RMW isa supported by current device.
23070         * config/avr/genmultilib.awk: Update as device info structure changed.
23071         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
23073 2014-04-04  Cong Hou  <congh@google.com>
23075         PR tree-optimization/60656
23076         * tree-vect-stmts.c (supportable_widening_operation):
23077         Fix a bug that elements in a vector with vect_used_by_reduction
23078         property are incorrectly reordered when the operation on it is not
23079         consistant with the one in reduction operation.
23081 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
23083         PR rtl-optimization/60155
23084         * gcse.c (record_set_data): New function.
23085         (single_set_gcse): New function.
23086         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
23087         (hoist_code): Likewise.
23088         (get_pressure_class_and_nregs): Likewise.
23090 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
23092         * explow.c (probe_stack_range): Emit a final optimization blockage.
23094 2014-04-04  Anthony Green  <green@moxielogic.com>
23096         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
23097         typos.
23099 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
23101         PR ipa/59626
23102         * lto-cgraph.c (input_overwrite_node): Check that partitioning
23103         flags are set only during streaming.
23104         * ipa.c (process_references, walk_polymorphic_call_targets,
23105         symtab_remove_unreachable_nodes): Drop bodies of always inline
23106         after early inlining.
23107         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
23109 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
23110         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23112         PR debug/60655
23113         * dwarf2out.c (const_ok_for_output_1): Reject expressions
23114         containing a NOT.
23116 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23118         PR bootstrap/60743
23119         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
23120         duration.
23121         (cortex_a53_fdivd): Likewise.
23123 2014-04-04  Martin Jambor  <mjambor@suse.cz>
23125         PR ipa/60640
23126         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
23127         Adjust all callers.
23128         * cgraph.c (clone_of_p): Also return true if thunks match.
23129         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
23130         cgraph_function_or_thunk_node and an obsolete comment.
23131         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
23132         file.
23133         (build_function_decl_skip_args): Likewise.
23134         (set_new_clone_decl_and_node_flags): New function.
23135         (duplicate_thunk_for_node): Likewise.
23136         (redirect_edge_duplicating_thunks): Likewise.
23137         (cgraph_clone_node): New parameter args_to_skip, pass it to
23138         redirect_edge_duplicating_thunks which is called instead of
23139         cgraph_redirect_edge_callee.
23140         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
23141         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
23143 2014-04-04  Jeff Law  <law@redhat.com>
23145         PR target/60657
23146         * config/arm/predicates.md (const_int_I_operand): New predicate.
23147         (const_int_M_operand): Similarly.
23148         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
23149         const_int_operand.
23150         (insv_t2, extv_reg, extzv_t2): Likewise.
23151         (load_multiple_with_writeback): Similarly for const_int_I_operand.
23152         (pop_multiple_with_writeback_and_return): Likewise.
23153         (vfp_pop_multiple_with_writeback): Likewise
23155 2014-04-04  Richard Biener  <rguenther@suse.de>
23157         PR ipa/60746
23158         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
23159         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
23160         non-GIMPLE_LABELs.
23161         * gimplify.h (gimple_add_tmp_var_fn): Declare.
23162         * gimplify.c (gimple_add_tmp_var_fn): New function.
23163         * gimple-expr.h (create_tmp_reg_fn): Declare.
23164         * gimple-expr.c (create_tmp_reg_fn): New function.
23165         * gimple-low.c (record_vars_into): Don't change cfun.
23166         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
23167         code generation without cfun.
23169 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
23171         PR bootstrap/60719
23172         * Makefile.in (install-driver): Fix shell scripting.
23174 2014-04-03  Cong Hou  <congh@google.com>
23176         PR tree-optimization/60505
23177         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
23178         threshold of number of iterations below which no vectorization
23179         will be done.
23180         * tree-vect-loop.c (new_loop_vec_info):
23181         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
23182         * tree-vect-loop.c (vect_analyze_loop_operations):
23183         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
23184         * tree-vect-loop.c (vect_transform_loop):
23185         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
23186         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
23187         of iterations of the loop and see if we should build the epilogue.
23189 2014-04-03  Richard Biener  <rguenther@suse.de>
23191         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
23192         (streamer_tree_cache_create): Adjust.
23193         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
23194         to allow optional nodes array.
23195         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
23196         (streamer_tree_cache_append): Likewise.
23197         (streamer_tree_cache_create): Create nodes array optionally
23198         as specified by parameter.
23199         * lto-streamer-out.c (create_output_block): Avoid maintaining
23200         the node array in the writer cache.
23201         (DFS_write_tree): Remove assertion.
23202         (produce_asm_for_decls): Free the out decl state hash table early.
23203         * lto-streamer-in.c (lto_data_in_create): Adjust for
23204         streamer_tree_cache_create prototype change.
23206 2014-04-03  Richard Biener  <rguenther@suse.de>
23208         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
23209         set TREE_CHAIN to NULL_TREE.
23211 2014-04-03  Richard Biener  <rguenther@suse.de>
23213         PR tree-optimization/60740
23214         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
23215         over all GIMPLE_COND operands.
23217 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
23219         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
23220         (Weffc++): Remove Scott's numbering, merge lists and reference
23221         Wnon-virtual-dtor.
23223 2014-04-03  Nick Clifton  <nickc@redhat.com>
23225         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
23226         properly.
23228 2014-04-03  Martin Jambor  <mjambor@suse.cz>
23230         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
23231         mention gcc_unreachable before failing.
23232         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
23233         removed symbols.
23235 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
23237         PR ipa/60659
23238         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
23239         inconsistent code and instead mark the context inconsistent.
23240         (possible_polymorphic_call_targets): For inconsistent contexts
23241         return empty complete list.
23243 2014-04-02  Anthony Green  <green@moxielogic.com>
23245         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
23246         (extendqisi2, extendhisi2): Define.
23247         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
23248         (WCHAR_TYPE): Change to unsigned int.
23250 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23252         PR tree-optimization/60733
23253         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
23254         insertion point for PHI candidates to be the end of the feeding
23255         block for the PHI argument.
23257 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
23259         PR rtl-optimization/60650
23260         * lra-constraints.c (process_alt_operands): Decrease reject for
23261         earlyclobber matching.
23263 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23265         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
23267 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23269         * config/spu/spu.c (pad_bb): Do not crash when the last
23270         insn is CODE_FOR_blockage.
23272 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23274         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
23275         lies outside the target mode.
23277 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23279         PR target/60735
23280         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23281         software floating point or no floating point registers, do not
23282         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
23283         in GPRs that occurs after we tested for GPRs that would never be
23284         true.
23286         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23287         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23288         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
23289         specifically allow DDmode, since that does not use the SPE SIMD
23290         instructions.
23292 2014-04-02  Richard Biener  <rguenther@suse.de>
23294         PR middle-end/60729
23295         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
23296         MODE_INTs.  Properly use negv_optab.
23297         (expand_abs): Likewise.
23299 2014-04-02  Richard Biener  <rguenther@suse.de>
23301         PR bootstrap/60719
23302         * Makefile.in (install-driver): Guard extra installs with special
23303         names properly.
23305 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
23307         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23308         Document vec_vgbbd.
23310 2014-04-01  Richard Henderson  <rth@redhat.com>
23312         PR target/60704
23313         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
23314         alternative enabled before register allocation.
23316 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
23318         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
23319         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
23320         typo.
23321         (nios2_large_got_address): Remove unneeded 'sym' parameter.
23322         (nios2_got_address): Update nios2_large_got_address call site.
23323         (nios2_delegitimize_address): New function.
23324         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
23325         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
23326         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
23328 2014-04-01  Martin Husemann  <martin@duskware.de>
23330         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
23331         for -mabi=32.
23333 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
23335         PR rtl-optimization/60604
23336         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
23337         check from register_operand.
23338         (register_operand): Redefine in terms of general_operand.
23339         (nonmemory_operand): Use register_operand for the non-constant cases.
23341 2014-04-01  Richard Biener  <rguenther@suse.de>
23343         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
23345 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23347         * doc/invoke.texi (mapp-regs): Clarify.
23349 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
23351         * config/i386/avx512fintrin.h (__v32hi): Define type.
23352         (__v64qi): Likewise.
23353         (_mm512_set1_epi8): Define.
23354         (_mm512_set1_epi16): Define.
23355         (_mm512_set4_epi32): Define.
23356         (_mm512_set4_epi64): Define.
23357         (_mm512_set4_pd): Define.
23358         (_mm512_set4_ps): Define.
23359         (_mm512_setr4_epi64): Define.
23360         (_mm512_setr4_epi32): Define.
23361         (_mm512_setr4_pd): Define.
23362         (_mm512_setr4_ps): Define.
23363         (_mm512_setzero_epi32): Define.
23365 2014-03-31  Martin Jambor  <mjambor@suse.cz>
23367         PR middle-end/60647
23368         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
23369         callsite_arguments_match_p.  Updated all callers.  Also check types of
23370         corresponding formal parameters and actual arguments.
23371         (not_all_callers_have_enough_arguments_p) Renamed to
23372         some_callers_have_mismatched_arguments_p.
23374 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
23376         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
23378 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
23380         PR target/60034
23381         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
23382         section anchor.
23384 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
23386         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
23387         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
23388         Split out
23389         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
23390         Use FMAMODE_NOVF512 mode iterator.
23391         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
23392         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
23393         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
23394         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
23395         Split out
23396         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
23397         Use VF_128_256 mode iterator.
23398         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
23399         Ditto.
23401 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
23403         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
23404         static chain if needed.
23406 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
23408         PR target/60697
23409         * lra-constraints.c (index_part_to_reg): New.
23410         (process_address): Use it.
23412 2014-03-27  Jeff Law  <law@redhat.com>
23413             Jakub Jelinek  <jakub@redhat.com>
23415         PR target/60648
23416         * expr.c (do_tablejump): Use simplify_gen_binary rather than
23417         gen_rtx_{PLUS,MULT} to build up the address expression.
23419         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
23420         creating non-canonical RTL.
23422 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
23424         PR ipa/60243
23425         * ipa-inline.c (want_inline_small_function_p): Short circuit large
23426         functions; reorganize to make cheap checks first.
23427         (inline_small_functions): Do not estimate growth when dumping;
23428         it is expensive.
23429         * ipa-inline.h (inline_summary): Add min_size.
23430         (growth_likely_positive): New function.
23431         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
23432         (set_cond_stmt_execution_predicate): Cleanup.
23433         (estimate_edge_size_and_time): Compute min_size.
23434         (estimate_calls_size_and_time): Likewise.
23435         (estimate_node_size_and_time): Likewise.
23436         (inline_update_overall_summary): Update min_size.
23437         (do_estimate_edge_time): Likewise.
23438         (do_estimate_edge_size): Update.
23439         (do_estimate_edge_hints): Update.
23440         (growth_likely_positive): New function.
23442 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
23444         PR target/60693
23445         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
23446         also if addr has VOIDmode.
23448 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23450         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
23451         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
23452         Declare extern.
23453         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
23454         instructions as well as AdvancedSIMD loads.
23456 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23458         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
23459         Use crypto_aese type.
23460         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
23461         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
23462         crypto_aese, crypto_aesmc.  Move to types.md.
23463         * config/arm/types.md (crypto_aes): Split into crypto_aese,
23464         crypto_aesmc.
23465         * config/arm/iterators.md (crypto_type): Likewise.
23467 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
23469         * cgraph.c: Include expr.h and tree-dfa.h.
23470         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
23471         remove LHS.
23473 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
23475         PR target/60675
23476         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
23477         regs from checking multi-reg pseudos.
23479 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23481         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
23483 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23485         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
23486         if it would clobber the stack pointer, even temporarily.
23488 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
23490         * mode-switching.c: Make small adjustments to the top comment.
23492 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
23494         * config/rs6000/constraints.md (wD constraint): New constraint to
23495         match the constant integer to get the top DImode/DFmode out of a
23496         vector in a VSX register.
23498         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
23499         match the constant integer to get the top DImode/DFmode out of a
23500         vector in a VSX register.
23502         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
23503         for ISA 2.07.
23505         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23506         vbpermq builtins.
23508         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
23509         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
23511         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
23512         Optimize vec_extract of 64-bit values, where the value being
23513         extracted is in the top word, where we can use scalar
23514         instructions.  Add direct move and store support.  Combine the big
23515         endian/little endian vector select load support into a single insn.
23516         (vsx_extract_<mode>_internal1): Likewise.
23517         (vsx_extract_<mode>_internal2): Likewise.
23518         (vsx_extract_<mode>_load): Likewise.
23519         (vsx_extract_<mode>_store): Likewise.
23520         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
23521         combined into vsx_extract_<mode>_load.
23522         (vsx_extract_<mode>_one_le): Likewise.
23524         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
23525         define the top 64-bit vector element.
23527         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
23528         constraint.
23530         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23531         Document vec_vbpermq builtin.
23533         PR target/60672
23534         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
23535         enable use of xxsldwi and xxpermdi builtin functions.
23536         (vec_xxpermdi): Likewise.
23538         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23539         Document use of vec_xxsldwi and vec_xxpermdi builtins.
23541 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
23543         PR rtl-optimization/60650
23544         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
23545         first_p.  Use it.
23546         (find_spills_for): New.
23547         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
23548         Spill all pseudos on the second iteration.
23550 2014-03-27  Marek Polacek  <polacek@redhat.com>
23552         PR c/50347
23553         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
23554         types.
23556 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23558         * config/s390/s390.c (s390_can_use_return_insn): Check for
23559         call-saved FPRs on 31 bit.
23561 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
23563         PR middle-end/60682
23564         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
23565         if they need regimplification, just drop them instead of
23566         calling gimple_regimplify_operands on them.
23568 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23570         PR target/60580
23571         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
23572         (aarch64_frame_pointer_required): Adjust logic.
23573         (aarch64_can_eliminate): Adjust logic.
23574         (aarch64_override_options_after_change): Adjust logic.
23576 2014-03-27  Dehao Chen  <dehao@google.com>
23578         * ipa-inline.c (early_inliner): Update node's inline info.
23580 2014-03-26  Dehao Chen  <dehao@google.com>
23582         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
23583         compiler inserted conditional jumps for NAN float check.
23585 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
23587         * ubsan.h (ubsan_create_data): Change second argument's type
23588         to const location_t *.
23589         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
23590         _("<unknown>").
23591         (ubsan_create_data): Change second argument to const location_t *PLOC.
23592         Create Loc field whenever PLOC is non-NULL.
23593         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
23594         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
23595         callers.
23597         PR other/59545
23598         * real.c (real_to_integer2): Change type of low to UHWI.
23600 2014-03-26  Tobias Burnus  <burnus@net-b.de>
23602         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
23603         (CILK_SELF_SPECS): New define.
23604         (driver_self_specs): Use it.
23606 2014-03-26  Richard Biener  <rguenther@suse.de>
23608         * tree-pretty-print.c (percent_K_format): Implement special
23609         case for LTO and its stripped down BLOCK tree.
23611 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
23613         PR sanitizer/60636
23614         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
23616         * tree-vrp.c (simplify_internal_call_using_ranges): If only
23617         one range is range_int_cst_p, but not both, at least optimize
23618         addition/subtraction of 0 and multiplication by 0 or 1.
23619         * gimple-fold.c (gimple_fold_call): Fold
23620         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
23621         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
23622         INTEGER_CSTs, try to fold at least x * 0 and y - y.
23624 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
23626         PR rtl-optimization/60452
23627         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
23628         <case REG>: Return 1 for invalid offsets from the frame pointer.
23630 2014-03-26  Marek Polacek  <polacek@redhat.com>
23632         PR c/37428
23633         * doc/extend.texi (C Extensions): Mention variable-length arrays in
23634         a structure/union.
23636 2014-03-26  Marek Polacek  <polacek@redhat.com>
23638         PR c/39525
23639         * doc/extend.texi (Designated Inits): Describe what happens to omitted
23640         field members.
23642 2014-03-26  Marek Polacek  <polacek@redhat.com>
23644         PR other/59545
23645         * ira-color.c (update_conflict_hard_regno_costs): Perform the
23646         multiplication in unsigned type.
23648 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
23650         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
23652 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
23654         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
23656 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
23658         PR ipa/60315
23659         * cif-code.def (UNREACHABLE) New code.
23660         * ipa-inline.c (inline_small_functions): Skip edges to
23661         __builtlin_unreachable.
23662         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
23663         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
23664         predicate to __bulitin_unreachable.
23665         (set_cond_stmt_execution_predicate): Fix issue when
23666         invert_tree_comparison returns ERROR_MARK.
23667         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
23668         propagate to inline clones.
23669         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
23670         to unreachable.
23671         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
23672         * cgraphclones.c (cgraph_clone_node): If call destination is already
23673         ureachable, do not redirect it back.
23674         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
23675         unreachable.
23677 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
23679         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
23680         Do not modify inline clones.
23682 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
23684         * config/i386/i386.md (general_sext_operand): New mode attr.
23685         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
23686         don't generate (sign_extend (const_int)).
23687         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
23688         operands[2].  Use We constraint instead of <i> and
23689         <general_sext_operand> predicate instead of <general_operand>.
23690         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
23691         * config/i386/constraints.md (We): New constraint.
23692         * config/i386/predicates.md (x86_64_sext_operand,
23693         sext_operand): New predicates.
23695 2014-03-25  Martin Jambor  <mjambor@suse.cz>
23697         PR ipa/60600
23698         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
23699         inconsistent devirtualizations to __builtin_unreachable.
23701 2014-03-25  Marek Polacek  <polacek@redhat.com>
23703         PR c/35449
23704         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
23706 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
23708         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
23709         order of elements for big-endian.
23711 2014-03-25  Richard Biener  <rguenther@suse.de>
23713         PR middle-end/60635
23714         * gimplify-me.c (gimple_regimplify_operands): Update the
23715         re-gimplifed stmt.
23717 2014-03-25  Martin Jambor  <mjambor@suse.cz>
23719         PR ipa/59176
23720         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
23721         (lto_output_varpool_node): Likewise.
23722         (input_overwrite_node): Likewise.
23723         (input_varpool_node): Likewise.
23725 2014-03-25  Richard Biener  <rguenther@suse.de>
23727         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
23728         (run_gcc): Likewise.
23730 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
23732         * combine.c (simplify_compare_const): Add MODE argument.
23733         Handle mode_width 0 as very large mode_width.
23734         (try_combine, simplify_comparison): Adjust callers.
23736         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
23737         type to avoid signed integer overflow.
23738         * explow.c (plus_constant): Likewise.
23740 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23742         * doc/generic.texi: Correct typos.
23744 2014-03-24  Tobias Burnus  <burnus@net-b.de>
23746         * doc/invoke.texi (-flto): Expand section about
23747         using static libraries with LTO.
23749 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23751         PR rtl-optimization/60501
23752         * optabs.def (addptr3_optab): New optab.
23753         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
23754         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
23755         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
23757         * lra.c (emit_add3_insn): Use the addptr pattern if available.
23759         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
23761 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
23763         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
23764         _mm512_set1_pd.
23766         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
23767         (_mm256_undefined_ps): Define.
23768         (_mm256_undefined_pd): Define.
23769         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
23770         (_mm_undefined_pd): Define.
23771         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
23772         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
23773         (_mm512_undefined_ps): Define.
23774         (_mm512_undefined_pd): Define.
23775         Use _mm*_undefined_*.
23776         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
23778 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
23780         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
23781         (lshr_simd): DI mode added.
23782         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
23783         (aarch64_ushr_simddi): Likewise.
23784         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
23785         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
23786         (vshrd_n_u64): Likewise.
23788 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23790         * Makefile.in (s-macro_list): Depend on cc1.
23792 2014-03-23  Teresa Johnson  <tejohnson@google.com>
23794         * ipa-utils.c (ipa_print_order): Use specified dump file.
23796 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
23798         PR rtl-optimization/60601
23799         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
23801         * gcc.c (eval_spec_function): Initialize save_growing_value.
23803 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
23805         PR sanitizer/60613
23806         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
23807         code == MINUS_EXPR, never swap op0 with op1.
23809         * toplev.c (init_local_tick): Avoid signed integer multiplication
23810         overflow.
23811         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
23812         shift by first operand's bitsize.
23814 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
23816         PR target/60610
23817         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
23818         redefine to 1 or 0.
23819         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
23820         TARGET_ISA_64BIT_P(x).
23822 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23824         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
23825         pattern for vector nor instead of subtract from splat(-1).
23826         (altivec_expand_vec_perm_const_le): Likewise.
23828 2014-03-21  Richard Henderson  <rth@twiddle.net>
23830         PR target/60598
23831         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
23832         related insns after epilogue_completed.
23834 2014-03-21  Martin Jambor  <mjambor@suse.cz>
23836         PR ipa/59176
23837         * cgraph.h (symtab_node): New flag body_removed.
23838         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
23839         when removing bodies.
23840         * symtab.c (dump_symtab_base): Dump body_removed flag.
23841         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
23842         had their bodies removed.
23844 2014-03-21  Martin Jambor  <mjambor@suse.cz>
23846         PR ipa/60419
23847         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
23848         in the border.
23850 2014-03-21  Richard Biener  <rguenther@suse.de>
23852         PR tree-optimization/60577
23853         * tree-core.h (struct tree_base): Document nothrow_flag use
23854         in DECL_NONALIASED.
23855         * tree.h (DECL_NONALIASED): New.
23856         (may_be_aliased): Adjust.
23857         * coverage.c (build_var): Set DECL_NONALIASED.
23859 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23861         * expr.c (expand_expr_real_1): Remove outdated comment.
23863 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
23865         PR middle-end/60597
23866         * ira.c (adjust_cleared_regs): Call copy_rtx on
23867         *reg_equiv[REGNO (loc)].src_p before passing it to
23868         simplify_replace_fn_rtx.
23870         PR target/60568
23871         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
23872         into CONST, put pic register as first operand of PLUS.  Use
23873         gen_const_mem for both 32-bit and 64-bit PIC got loads.
23875 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23877         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
23879 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23881         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
23882         around for store forwarding issue in the FPU on the UT699.
23883         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
23884         loads and operations if -mfix-ut699 is specified.
23885         (divtf3_hq): Tweak attribute.
23886         (sqrttf2_hq): Likewise.
23888 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23890         * calls.c (store_one_arg): Remove incorrect const qualification on the
23891         type of the temporary.
23892         * cfgexpand.c (expand_return): Likewise.
23893         * expr.c (expand_constructor): Likewise.
23894         (expand_expr_real_1): Likewise.
23896 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23898         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
23899         of parts.
23901 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
23903         PR target/60039
23904         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
23906 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
23908         * config/arm/aarch-common-protos.h
23909         (alu_cost_table): Fix spelling of "extend".
23910         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
23912 2014-03-19  Richard Biener  <rguenther@suse.de>
23914         PR middle-end/60553
23915         * tree-core.h (tree_type_common): Re-order pointer members
23916         to reduce recursion depth during GC walks.
23918 2014-03-19  Marek Polacek  <polacek@redhat.com>
23920         PR sanitizer/60569
23921         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
23922         before accessing it.
23924 2014-03-19  Richard Biener  <rguenther@suse.de>
23926         PR lto/59543
23927         * lto-streamer-in.c (input_function): In WPA stage do not drop
23928         debug stmts.
23930 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
23932         PR tree-optimization/60559
23933         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
23934         with build_zero_cst assignment.
23936 2014-03-18  Kai Tietz  <ktietz@redhat.com>
23938         PR rtl-optimization/56356
23939         * sdbout.c (sdbout_parms): Verify that parms'
23940         incoming argument is valid.
23941         (sdbout_reg_parms): Likewise.
23943 2014-03-18  Richard Henderson  <rth@redhat.com>
23945         PR target/60562
23946         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
23947         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
23948         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
23950 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
23952         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
23953         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
23954         Italicize plugin event names in description.  Explain that
23955         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
23956         Remind that no GCC functions should be called after PLUGIN_FINISH.
23957         Explain what pragmas with expansion are.
23959 2014-03-18  Martin Liska  <mliska@suse.cz>
23961         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
23962         gimple call statement is update.
23963         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
23964         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
23966 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
23968         PR sanitizer/60557
23969         * ubsan.c (ubsan_instrument_unreachable): Call
23970         initialize_sanitizer_builtins.
23971         (ubsan_pass): Likewise.
23973         PR sanitizer/60535
23974         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
23975         varpool_finalize_decl instead of rest_of_decl_compilation.
23977 2014-03-18  Richard Biener  <rguenther@suse.de>
23979         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
23980         by using bitmap_and_compl instead of bitmap_and_compl_into.
23981         (df_rd_transfer_function): Likewise.
23983 2014-03-18  Richard Biener  <rguenther@suse.de>
23985         * doc/lto.texi (fresolution): Fix typo.
23987 2014-03-18  Richard Biener  <rguenther@suse.de>
23989         * doc/invoke.texi (flto): Update for changes in 4.9.
23991 2014-03-18  Richard Biener  <rguenther@suse.de>
23993         * doc/loop.texi: Remove section on the removed lambda framework.
23994         Update loop docs with recent changes in preserving loop structure.
23996 2014-03-18  Richard Biener  <rguenther@suse.de>
23998         * doc/lto.texi (-fresolution): Document.
24000 2014-03-18  Richard Biener  <rguenther@suse.de>
24002         * doc/contrib.texi: Adjust my name.
24004 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
24006         PR ipa/58721
24007         * internal-fn.c: Include diagnostic-core.h.
24008         (expand_BUILTIN_EXPECT): New function.
24009         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
24010         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
24011         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
24012         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
24013         IFN_BUILTIN_EXPECT.
24014         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
24015         Revert 3 argument __builtin_expect code.
24016         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
24017         * gimple-fold.c (gimple_fold_call): Likewise.
24018         * tree.h (fold_builtin_expect): New prototype.
24019         * builtins.c (build_builtin_expect_predicate): Add predictor
24020         argument, if non-NULL, create 3 argument __builtin_expect.
24021         (fold_builtin_expect): No longer static.  Add ARG2 argument,
24022         pass it through to build_builtin_expect_predicate.
24023         (fold_builtin_2): Adjust caller.
24024         (fold_builtin_3): Handle BUILT_IN_EXPECT.
24025         * internal-fn.def (BUILTIN_EXPECT): New.
24027 2014-03-18  Tobias Burnus  <burnus@net-b.de>
24029         PR ipa/58721
24030         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
24031         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
24032         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
24034 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
24036         PR ipa/58721
24037         * predict.c (combine_predictions_for_bb): Fix up formatting.
24038         (expr_expected_value_1, expr_expected_value): Add predictor argument,
24039         fill what it points to if non-NULL.
24040         (tree_predict_by_opcode): Adjust caller, use the predictor.
24041         * predict.def (PRED_COMPARE_AND_SWAP): Add.
24043 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
24045         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
24046         proper constant for the store mode.
24048 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
24050         * symtab.c (change_decl_assembler_name): Fix transparent alias
24051         chain construction.
24053 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
24055         * config/aarch64/aarch64.c: Correct the comments about the
24056         aarch64 stack layout.
24058 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
24060         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
24061         check for GF_OMP_FOR_KIND_FOR.
24063 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
24065         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
24066         ymm and zmm register names.
24068 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
24070         PR target/60516
24071         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
24072         note creation for the 2010-08-31 changes.
24074 2014-03-17  Marek Polacek  <polacek@redhat.com>
24076         PR middle-end/60534
24077         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
24078         as -fno-tree-loop-vectorize.
24079         (expand_omp_simd): Likewise.
24081 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
24083         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
24084         (eligible_for_call_delay): New prototype.
24085         * config/sparc/sparc.c (tls_call_delay): Rename into...
24086         (eligible_for_call_delay): ...this.  Return false if the instruction
24087         cannot be put in the delay slot of a branch.
24088         (eligible_for_restore_insn): Simplify.
24089         (eligible_for_return_delay): Return false if the instruction cannot be
24090         put in the delay slot of a branch and simplify.
24091         (eligible_for_sibcall_delay): Return false if the instruction cannot be
24092         put in the delay slot of a branch.
24093         * config/sparc/sparc.md (fix_ut699): New attribute.
24094         (tls_call_delay): Delete.
24095         (in_call_delay): Reimplement.
24096         (eligible_for_sibcall_delay): Rename into...
24097         (in_sibcall_delay): ...this.
24098         (eligible_for_return_delay): Rename into...
24099         (in_return_delay): ...this.
24100         (in_branch_delay): Reimplement.
24101         (in_uncond_branch_delay): Delete.
24102         (in_annul_branch_delay): Delete.
24104 2014-03-14  Richard Henderson  <rth@redhat.com>
24106         PR target/60525
24107         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
24108         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
24109         (*floathi<X87MODEF>2_i387_with_temp): Remove.
24110         (floathi splitters): Remove.
24111         (float<SWI48x>xf2): New pattern.
24112         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
24113         code that tried to handle DImode for 32-bit, but which was excluded
24114         by the pattern's condition.  Drop allocation of stack temporary.
24115         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
24116         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
24117         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
24118         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
24119         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
24120         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
24121         (*float<SWI48><MODEF>2_sse_interunit): Remove.
24122         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
24123         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
24124         (*float<SWI48x><X87MODEF>2_i387): Remove.
24125         (all float _with_temp splitters): Remove.
24126         (*float<SWI48x><MODEF>2_i387): New pattern.
24127         (*float<SWI48><MODEF>2_sse): New pattern.
24128         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
24129         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
24131 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
24132             Marek Polacek  <polacek@redhat.com>
24134         PR middle-end/60484
24135         * common.opt (dump_base_name_prefixed): New Variable.
24136         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
24137         if x_dump_base_name_prefixed is already set, set it at the end.
24139 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
24141         PR rtl-optimization/60508
24142         * lra-constraints.c (get_reload_reg): Add new parameter
24143         in_subreg_p.
24144         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
24145         Pass the new parameter values.
24147 2014-03-14  Richard Biener  <rguenther@suse.de>
24149         * common.opt: Revert unintented changes from r205065.
24150         * opts.c: Likewise.
24152 2014-03-14  Richard Biener  <rguenther@suse.de>
24154         PR middle-end/60518
24155         * cfghooks.c (split_block): Properly adjust all loops the
24156         block was a latch of.
24158 2014-03-14  Martin Jambor  <mjambor@suse.cz>
24160         PR lto/60461
24161         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
24162         and simplify it.
24164 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
24166         PR target/59396
24167         * config/avr/avr.c (avr_set_current_function): Pass function name
24168         through default_strip_name_encoding before sanity checking instead
24169         of skipping the first char of the assembler name.
24171 2014-03-13  Richard Henderson  <rth@redhat.com>
24173         PR debug/60438
24174         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
24175         (ix86_force_to_memory, ix86_free_from_memory): Remove.
24176         * config/i386/i386-protos.h: Likewise.
24177         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
24178         in the expander instead of a splitter.
24179         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
24180         any possibility of requiring a memory.
24181         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
24182         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
24183         (fp branch splitters): Update for ix86_split_fp_branch.
24184         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
24185         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
24186         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
24187         (*fop_<MODEF>_2_i387): Remove f/r alternative.
24188         (*fop_<MODEF>_3_i387): Likewise.
24189         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
24190         (splitters for the fop_* register patterns): Remove.
24191         (fscalexf4_i387): Rename from *fscalexf4_i387.
24192         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
24194 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
24196         PR tree-optimization/59779
24197         * tree-dfa.c (get_ref_base_and_extent): Use double_int
24198         type for bitsize and maxsize instead of HOST_WIDE_INT.
24200 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
24202         PR rtl-optimization/57320
24203         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
24204         the CFG after thread_prologue_and_epilogue_insns.
24206 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
24208         PR rtl-optimization/57189
24209         * lra-constraints.c (process_alt_operands): Disfavor spilling
24210         vector pseudos.
24212 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
24214         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
24216 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
24218         PR tree-optimization/59025
24219         PR middle-end/60418
24220         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
24221         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
24223 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
24225         PR target/60486
24226         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
24227         calls of avr_out_plus_1.
24229 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
24231         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
24232         BB's single pred and update the father loop's latch info later.
24234 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
24236         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
24237         (VEC_M): Likewise.
24238         (VEC_N): Likewise.
24239         (VEC_R): Likewise.
24240         (VEC_base): Likewise.
24241         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
24242         registers, we need to swap double words in little endian mode.
24244         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
24245         to be a container mode for 128-bit integer operations added in ISA
24246         2.07.  Unlike TImode and PTImode, the preferred register set is
24247         the Altivec/VMX registers for the 128-bit operations.
24249         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
24250         declarations.
24251         (rs6000_split_128bit_ok_p): Likewise.
24253         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
24254         macros for creating ISA 2.07 normal and overloaded builtin
24255         functions with 3 arguments.
24256         (BU_P8V_OVERLOAD_3): Likewise.
24257         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
24258         for use as overloaded functions.
24259         (VPERM_1TI_UNS): Likewise.
24260         (VSEL_1TI): Likewise.
24261         (VSEL_1TI_UNS): Likewise.
24262         (ST_INTERNAL_1ti): Likewise.
24263         (LD_INTERNAL_1ti): Likewise.
24264         (XXSEL_1TI): Likewise.
24265         (XXSEL_1TI_UNS): Likewise.
24266         (VPERM_1TI): Likewise.
24267         (VPERM_1TI_UNS): Likewise.
24268         (XXPERMDI_1TI): Likewise.
24269         (SET_1TI): Likewise.
24270         (LXVD2X_V1TI): Likewise.
24271         (STXVD2X_V1TI): Likewise.
24272         (VEC_INIT_V1TI): Likewise.
24273         (VEC_SET_V1TI): Likewise.
24274         (VEC_EXT_V1TI): Likewise.
24275         (EQV_V1TI): Likewise.
24276         (NAND_V1TI): Likewise.
24277         (ORC_V1TI): Likewise.
24278         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
24279         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
24280         overloaded builtin.
24281         (VADDUQM): Likewise.
24282         (VSUBCUQ): Likewise.
24283         (VADDEUQM): Likewise.
24284         (VADDECUQ): Likewise.
24285         (VSUBEUQM): Likewise.
24286         (VSUBECUQ): Likewise.
24288         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
24289         __int128_t and __uint128_t types.
24290         (__uint128_type): Likewise.
24291         (altivec_categorize_keyword): Add support for vector __int128_t,
24292         vector __uint128_t, vector __int128, and vector unsigned __int128
24293         as a container type for TImode operations that need to be done in
24294         VSX/Altivec registers.
24295         (rs6000_macro_to_expand): Likewise.
24296         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
24297         to support 128-bit integer instructions vaddcuq, vadduqm,
24298         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
24299         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
24301         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
24302         for V1TImode, and set up preferences to use VSX/Altivec registers.
24303         Setup VSX reload handlers.
24304         (rs6000_debug_reg_global): Likewise.
24305         (rs6000_init_hard_regno_mode_ok): Likewise.
24306         (rs6000_preferred_simd_mode): Likewise.
24307         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
24308         (easy_altivec_constant): Likewise.
24309         (output_vec_const_move): Likewise.
24310         (rs6000_expand_vector_set): Convert V1TImode set and extract to
24311         simple move.
24312         (rs6000_expand_vector_extract): Likewise.
24313         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
24314         addressing.
24315         (rs6000_const_vec): Add support for V1TImode.
24316         (rs6000_emit_le_vsx_load): Swap double words when loading or
24317         storing TImode/V1TImode.
24318         (rs6000_emit_le_vsx_store): Likewise.
24319         (rs6000_emit_le_vsx_move): Likewise.
24320         (rs6000_emit_move): Add support for V1TImode.
24321         (altivec_expand_ld_builtin): Likewise.
24322         (altivec_expand_st_builtin): Likewise.
24323         (altivec_expand_vec_init_builtin): Likewise.
24324         (altivec_expand_builtin): Likewise.
24325         (rs6000_init_builtins): Add support for V1TImode type.  Add
24326         support for ISA 2.07 128-bit integer builtins.  Define type names
24327         for the VSX/Altivec vector types.
24328         (altivec_init_builtins): Add support for overloaded vector
24329         functions with V1TImode type.
24330         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
24331         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
24332         external function.
24333         (rs6000_split_128bit_ok_p): Likewise.
24334         (rs6000_handle_altivec_attribute): Create V1TImode from vector
24335         __int128_t and vector __uint128_t.
24337         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
24338         and mode attributes.
24339         (VSX_M): Likewise.
24340         (VSX_M2): Likewise.
24341         (VSm): Likewise.
24342         (VSs): Likewise.
24343         (VSr): Likewise.
24344         (VSv): Likewise.
24345         (VS_scalar): Likewise.
24346         (VS_double): Likewise.
24347         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
24349         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
24350         we support the ISA 2.07 128-bit integer arithmetic instructions.
24351         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
24352         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
24353         and TImode types for use with the builtin functions.
24354         (V1TI_type_node): Likewise.
24355         (unsigned_V1TI_type_node): Likewise.
24356         (intTI_type_internal_node): Likewise.
24357         (uintTI_type_internal_node): Likewise.
24359         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
24360         128-bit builtin functions.
24361         (UNSPEC_VADDEUQM): Likewise.
24362         (UNSPEC_VADDECUQ): Likewise.
24363         (UNSPEC_VSUBCUQ): Likewise.
24364         (UNSPEC_VSUBEUQM): Likewise.
24365         (UNSPEC_VSUBECUQ): Likewise.
24366         (VM): Add V1TImode to vector mode iterators.
24367         (VM2): Likewise.
24368         (VI_unit): Likewise.
24369         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
24370         (altivec_vaddcuq): Likewise.
24371         (altivec_vsubuqm): Likewise.
24372         (altivec_vsubcuq): Likewise.
24373         (altivec_vaddeuqm): Likewise.
24374         (altivec_vaddecuq): Likewise.
24375         (altivec_vsubeuqm): Likewise.
24376         (altivec_vsubecuq): Likewise.
24378         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
24379         mode iterators.
24380         (BOOL_128): Likewise.
24381         (BOOL_REGS_OUTPUT): Likewise.
24382         (BOOL_REGS_OP1): Likewise.
24383         (BOOL_REGS_OP2): Likewise.
24384         (BOOL_REGS_UNARY): Likewise.
24385         (BOOL_REGS_AND_CR0): Likewise.
24387         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
24388         128-bit integer builtin support.
24389         (vec_vadduqm): Likewise.
24390         (vec_vaddecuq): Likewise.
24391         (vec_vaddeuqm): Likewise.
24392         (vec_vsubecuq): Likewise.
24393         (vec_vsubeuqm): Likewise.
24394         (vec_vsubcuq): Likewise.
24395         (vec_vsubuqm): Likewise.
24397         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24398         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
24399         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
24400         128-bit integer add/subtract to ISA 2.07.
24402 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
24404         * config/arc/arc.c (arc_predicate_delay_insns):
24405         Fix third argument passed to conditionalize_nonjump.
24407 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
24409         * config/aarch64/aarch64-builtins.c
24410         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
24411         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
24412         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
24413         instead of __builtin_lfloor.
24414         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
24416 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
24418         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
24419         (tree_ssa_ifcombine_bb_1): New function.
24420         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
24421         is an empty forwarder block to then_bb or vice versa and then_bb
24422         and else_bb are effectively swapped.
24424 2014-03-12  Christian Bruel  <christian.bruel@st.com>
24426         PR target/60264
24427         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
24428         REG_CFA_DEF_CFA note.
24429         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
24430         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
24432 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24434         PR tree-optimization/60454
24435         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
24437 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24439         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
24440         Do not define target_cpu_default2 to generic.
24441         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
24442         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
24443         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
24445 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
24446             Marc Glisse  <marc.glisse@inria.fr>
24448         PR tree-optimization/60502
24449         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
24450         instead of build_low_bits_mask.
24452 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
24454         PR middle-end/60482
24455         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
24456         if there are multiple uses, but op doesn't live on E edge.
24457         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
24458         clobber stmts before __builtin_unreachable.
24460 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
24462         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
24463         hard_frame_pointer_rtx.
24464         * cse.c (cse_insn): Remove volatile check.
24465         * cselib.c (cselib_process_insn): Likewise.
24466         * dse.c (scan_insn): Likewise.
24468 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24470         * config/arc/arc.c (conditionalize_nonjump): New function,
24471         broken out of ...
24472         (arc_ifcvt): ... this.
24473         (arc_predicate_delay_insns): Use it.
24475 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24477         * config/arc/predicates.md (extend_operand): During/after reload,
24478         allow const_int_operand.
24479         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
24480         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
24481         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
24482         to "i".
24483         (umulsi3_highpart_i): Likewise.
24485 2014-03-11  Richard Biener  <rguenther@suse.de>
24487         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
24488         Add asserts to guard possible wrong-code bugs.
24490 2014-03-11  Richard Biener  <rguenther@suse.de>
24492         PR tree-optimization/60429
24493         PR tree-optimization/60485
24494         * tree-ssa-structalias.c (set_union_with_increment): Properly
24495         take into account all fields that overlap the shifted vars.
24496         (do_sd_constraint): Likewise.
24497         (do_ds_constraint): Likewise.
24498         (get_constraint_for_ptr_offset): Likewise.
24500 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
24502         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
24503         (nios2_compute_frame_layout):
24504         Add calculation of cfun->machine->fp_save_offset.
24505         (nios2_expand_prologue): Correct setting of frame pointer register
24506         in prologue.
24507         (nios2_expand_epilogue): Update recovery of stack pointer from
24508         frame pointer accordingly.
24509         (nios2_initial_elimination_offset): Update calculation of offset
24510         for eliminating to HARD_FRAME_POINTER_REGNUM.
24512 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
24514         PR ipa/60457
24515         * ipa.c (symtab_remove_unreachable_nodes): Don't call
24516         cgraph_get_create_node on VAR_DECLs.
24518 2014-03-10  Richard Biener  <rguenther@suse.de>
24520         PR middle-end/60474
24521         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
24523 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
24525         * config/vms/vms.opt (vms_float_format): New variable.
24527 2014-03-08  Tobias Burnus  <burnus@net-b.de>
24529         * doc/invoke.texi (-fcilkplus): Update implementation status.
24531 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
24532             Richard Biener  <rguenther@suse.de>
24534         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
24535         consistently accross all TUs.
24536         (run_gcc): Enable -fshort-double automatically at link at link-time
24537         and disallow override.
24539 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
24541         PR target/58271
24542         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
24543         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
24544         if they can't be used.
24546 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24548         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
24549         for Solaris 11/x86 ld.
24550         * configure: Regenerate.
24552 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24554         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
24555         (LIB_TLS_SPEC): Save as ld_tls_libs.
24556         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
24557         (HAVE_AS_IX86_TLSLDM): New test.
24558         * configure, config.in: Regenerate.
24559         * config/i386/i386.c (legitimize_tls_address): Fall back to
24560         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
24561         cannot support TLS_MODEL_LOCAL_DYNAMIC.
24562         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
24563         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
24565 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
24567         * common.opt (fira-loop-pressure): Mark as optimization.
24569 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
24571         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
24572         an OpenMP mappable type.
24574 2014-03-06  Matthias Klose  <doko@ubuntu.com>
24576         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
24577         MULTILIB_OSDIRNAMES is not defined.
24579 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
24580             Meador Inge  <meadori@codesourcery.com>
24582         PR target/58595
24583         * config/arm/arm.c (arm_tls_symbol_p): Remove.
24584         (arm_legitimize_address): Call legitimize_tls_address for any
24585         arm_tls_referenced_p expression, handle constant addend.  Call it
24586         before testing for !TARGET_ARM.
24587         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
24589 2014-03-06  Richard Biener  <rguenther@suse.de>
24591         PR middle-end/60445
24592         PR lto/60424
24593         PR lto/60427
24594         Revert
24595         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
24597         * tree-streamer.c (record_common_node): Assert we don't record
24598         nodes with type double.
24599         (preload_common_node): Skip type double, complex double and double
24600         pointer since it is now frontend dependent due to fshort-double option.
24602 2014-03-06  Richard Biener  <rguenther@suse.de>
24604         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
24605         or -fno-lto is specified and the linker has full plugin support.
24606         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
24607         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
24608         * lto-wrapper.c (merge_and_complain): Merge compile-time
24609         optimization levels.
24610         (run_gcc): And pass it through to the link options.
24612 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
24614         PR debug/60381
24615         Revert:
24616         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24617         PR debug/59992
24618         * cselib.c (remove_useless_values): Skip to avoid quadratic
24619         behavior if the condition moved from...
24620         (cselib_process_insn): ... here holds.
24622 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
24624         PR plugins/59335
24625         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
24626         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
24628         PR plugins/59335
24629         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
24630         (TM_H): Add x86-tune.def.
24632 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24634         * config/aarch64/aarch64.c (generic_tunings):
24635         Use cortexa57_extra_costs.
24637 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
24639         PR lto/60404
24640         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
24641         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
24642         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
24643         cost for in_lto_p.
24645 2014-03-04  Heiher  <r@hev.cc>
24647         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
24648         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
24650 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
24652         * config/i386/predicates.md (const2356_operand): Change to ...
24653         (const2367_operand): ... this.
24654         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
24655         const2367_operand.
24656         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24657         (*avx512pf_scatterpf<mode>sf): Ditto.
24658         (avx512pf_scatterpf<mode>df): Ditto.
24659         (*avx512pf_scatterpf<mode>df_mask): Ditto.
24660         (*avx512pf_scatterpf<mode>df): Ditto.
24661         * config/i386/i386.c (ix86_expand_builtin): Update
24662         incorrect hint operand error message.
24664 2014-03-04  Richard Biener  <rguenther@suse.de>
24666         * lto-section-in.c (lto_get_section_data): Fix const cast.
24668 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
24670         * tree-streamer.c (record_common_node): Assert we don't record
24671         nodes with type double.
24672         (preload_common_node): Skip type double, complex double and double
24673         pointer since it is now frontend dependent due to fshort-double option.
24675 2014-03-04  Richard Biener  <rguenther@suse.de>
24677         PR lto/60405
24678         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
24679         (lto_input_toplevel_asms): Likewise.
24680         * lto-section-in.c (lto_get_section_data): Instead do it here
24681         for every section.
24683 2014-03-04  Richard Biener  <rguenther@suse.de>
24685         PR tree-optimization/60382
24686         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
24687         dead PHIs a reduction.
24689 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
24691         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
24692         hint value.
24693         (_mm_prefetch): Move out of GCC target("sse") pragma.
24694         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
24695         GCC target("prfchw") pragma.
24696         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
24697         for locality <= 2.
24698         * config/i386/i386.c (ix86_option_override_internal): Enable
24699         -mprfchw with -mprefetchwt1.
24701 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
24703         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
24704         Mark as varying.
24706 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
24708         * opts.h (CL_PCH_IGNORE): Define.
24709         * targhooks.c (option_affects_pch_p):
24710         Return false for options that have CL_PCH_IGNORE set.
24711         * opt-functions.awk: Process PchIgnore.
24712         * doc/options.texi: Document PchIgnore.
24714         * config/arc/arc.opt (misize): Add PchIgnore property.
24716 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24718         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
24719         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
24720         constraint on constants to permit them being loaded into
24721         GENERAL_REGS or BASE_REGS.
24723 2014-03-03  Nick Clifton  <nickc@redhat.com>
24725         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
24726         anti-cacnonical alternatives.
24727         (negandhi3_real): New pattern.
24728         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
24730 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
24732         * config/avr/avr-mcus.def: Remove atxmega16x1.
24733         * config/avr/avr-tables.opt: Regenerate.
24734         * config/avr/t-multilib: Regenerate.
24735         * doc/avr-mmcu.texi: Regenerate.
24737 2014-03-03  Tobias Grosser  <tobias@grosser.es>
24738             Mircea Namolaru  <mircea.namolaru@inria.fr>
24740         PR tree-optimization/58028
24741         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
24742         scalar dimensions.
24744 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24746         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
24747         not handled by recognizers.
24749 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
24751         PR middle-end/60175
24752         * function.c (expand_function_end): Don't emit
24753         clobber_return_register sequence if clobber_after is a BARRIER.
24754         * cfgexpand.c (construct_exit_block): Append instructions before
24755         return_label to prev_bb.
24757 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24759         * config/rs6000/constraints.md: Document reserved use of "wc".
24761 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
24763         PR ipa/60150
24764         * ipa.c (function_and_variable_visibility): When dissolving comdat
24765         group, also set all symbols to local.
24767 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
24769         PR ipa/60306
24771         Revert:
24772         2013-12-14  Jan Hubicka  <jh@suse.cz>
24773         PR middle-end/58477
24774         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
24776 2014-03-02  Jon Beniston  <jon@beniston.com>
24778         PR bootstrap/48230
24779         PR bootstrap/50927
24780         PR bootstrap/52466
24781         PR target/46898
24782         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
24783           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
24784         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
24785         (simple_return, *simple_return): New patterns
24786         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
24787         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
24789 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
24791         * dwarf2out.c (gen_subprogram_die): Tidy.
24793 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
24795         PR target/60071
24796         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
24797         (*mov_t_msb_neg_negc): ... this new insn.
24799 2014-02-28  Jason Merrill  <jason@redhat.com>
24801         PR c++/58678
24802         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
24803         function.
24805 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
24807         PR c++/60314
24808         * dwarf2out.c (decltype_auto_die): New static.
24809         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
24810         (gen_type_die_with_usage): Handle 'decltype(auto)'.
24811         (is_cxx_auto): Likewise.
24813 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
24815         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
24816         we are not using general regs only.
24818 2014-02-28  Richard Biener  <rguenther@suse.de>
24820         PR target/60280
24821         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
24822         previous fix and only allow to remove trivial pre-headers
24823         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
24824         (remove_forwarder_block): Properly update the latch of a loop.
24826 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24828         PR debug/59992
24829         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
24830         (cselib_preserved_hash_table): New.
24831         (preserve_constants_and_equivs): Move preserved vals to it.
24832         (cselib_find_slot): Look it up first.
24833         (cselib_init): Initialize it.
24834         (cselib_finish): Release it.
24835         (dump_cselib_table): Dump it.
24837 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24839         PR debug/59992
24840         * cselib.c (remove_useless_values): Skip to avoid quadratic
24841         behavior if the condition moved from...
24842         (cselib_process_insn): ... here holds.
24844 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24846         PR debug/57232
24847         * var-tracking.c (vt_initialize): Apply the same condition to
24848         preserve the CFA base value.
24850 2014-02-28  Joey Ye  <joey.ye@arm.com>
24852         PR target/PR60169
24853         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
24854         if reload in progress or completed.
24856 2014-02-28  Tobias Burnus  <burnus@net-b.de>
24858         PR middle-end/60147
24859         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
24860         NAMELIST_DECL.
24862 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
24864         * doc/tm.texi.in (Condition Code Status): Update documention for
24865         relative locations of cc0-setter and cc0-user.
24867 2014-02-27  Jeff Law  <law@redhat.com>
24869         PR rtl-optimization/52714
24870         * combine.c (try_combine): When splitting an unrecognized PARALLEL
24871         into two independent simple sets, if I3 is a jump, ensure the
24872         pattern we place into I3 is a (set (pc) ...).
24874 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
24875             Jeff Law  <law@redhat.com>
24877         PR rtl-optimization/49847
24878         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
24879         are in different blocks.
24880         * doc/tm.texi (Condition Code Status): Update documention for
24881         relative locations of cc0-setter and cc0-user.
24883 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
24885         PR target/59222
24886         * lra.c (lra_emit_add): Check SUBREG too.
24888 2014-02-27  Andreas Schwab  <schwab@suse.de>
24890         * config/m68k/m68k.c (m68k_option_override): Disable
24891         -flive-range-shrinkage for classic m68k.
24892         (m68k_override_options_after_change): Likewise.
24894 2014-02-27  Marek Polacek  <polacek@redhat.com>
24896         PR middle-end/59223
24897         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
24898         -Wmaybe-uninitialized.
24900 2014-02-27  Alan Modra  <amodra@gmail.com>
24902         PR target/57936
24903         * reload1.c (emit_input_reload_insns): When reload_override_in,
24904         set old to rl->in_reg when rl->in_reg is a subreg.
24906 2014-02-26  Richard Biener  <rguenther@suse.de>
24908         PR bootstrap/60343
24909         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
24911 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
24913         * common/config/i386/predicates.md (const1256_operand): Remove.
24914         (const2356_operand): New.
24915         (const_1_to_2_operand): Remove.
24916         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24917         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24918         (*avx512pf_gatherpf<mode>sf): Ditto.
24919         (avx512pf_gatherpf<mode>df): Ditto.
24920         (*avx512pf_gatherpf<mode>df_mask): Ditto.
24921         (*avx512pf_gatherpf<mode>df): Ditto.
24922         (avx512pf_scatterpf<mode>sf): Ditto.
24923         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24924         (*avx512pf_scatterpf<mode>sf): Ditto.
24925         (avx512pf_scatterpf<mode>df): Ditto.
24926         (*avx512pf_scatterpf<mode>df_mask): Ditto.
24927         (*avx512pf_scatterpf<mode>df): Ditto.
24928         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
24930 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
24932         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
24933         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
24934         (_mm512_mask_testn_epi64_mask): Move to ...
24935         * config/i386/avx512cdintrin.h: Here.
24936         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
24937         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
24938         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
24939         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
24940         TARGET_AVX512F from TARGET_AVX512CD.
24942 2014-02-26  Richard Biener  <rguenther@suse.de>
24944         PR ipa/60327
24945         * ipa.c (walk_polymorphic_call_targets): Properly guard
24946         call to inline_update_overall_summary.
24948 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
24950         PR target/60280
24951         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
24952         and latches only if requested.  Fix latch if it is removed.
24953         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
24954         LOOPS_HAVE_PREHEADERS.
24956 2014-02-25  Andrew Pinski  <apinski@cavium.com>
24958         * builtins.c (expand_builtin_thread_pointer): Create a new target
24959         when the target is NULL.
24961 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
24963         PR rtl-optimization/60317
24964         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24965         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24966         * lra-assigns.c: Include params.h.
24967         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
24968         other reload pseudos considerations.
24970 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24972         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
24973         to use canonical form for nor<mode>3.
24975 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24977         PR target/55426
24978         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
24979         conversions.
24981 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
24983         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
24984         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
24985         (ix86_handle_option): Handle OPT_mprefetchwt1.
24986         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
24987         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
24988         PREFETCHWT1 CPUID.
24989         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24990         OPTION_MASK_ISA_PREFETCHWT1.
24991         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
24992         (PTA_PREFETCHWT1): New.
24993         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
24994         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
24995         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
24996         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
24997         (*prefetch_avx512pf_<mode>_: Change into ...
24998         (*prefetch_prefetchwt1_<mode>: This.
24999         * config/i386/i386.opt (mprefetchwt1): New.
25000         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
25001         (_mm_prefetch): Handle intent to write.
25002         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
25004 2014-02-25  Richard Biener  <rguenther@suse.de>
25006         PR middle-end/60291
25007         * emit-rtl.c (mem_attrs_htab): Remove.
25008         (mem_attrs_htab_hash): Likewise.
25009         (mem_attrs_htab_eq): Likewise.
25010         (set_mem_attrs): Always allocate new mem-attrs when something changed.
25011         (init_emit_once): Do not allocate mem_attrs_htab.
25013 2014-02-25  Richard Biener  <rguenther@suse.de>
25015         PR lto/60319
25016         * lto-opts.c (lto_write_options): Output non-explicit conservative
25017         -fwrapv, -fno-trapv and -fno-strict-overflow.
25018         * lto-wrapper.c (merge_and_complain): Handle merging those options.
25019         (run_gcc): And pass them through.
25021 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
25023         * sel-sched.c (calculate_new_fences): New parameter ptime.
25024         Calculate it as a maximum over all fence cycles.
25025         (sel_sched_region_2): Adjust the call to calculate_new_fences.
25026         Print the final schedule timing when sched_verbose.
25028 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
25030         PR rtl-optimization/60292
25031         * sel-sched.c (fill_vec_av_set): Do not reset target availability
25032         bit fot the fence instruction.
25034 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
25036         * calls.h: Fix typo in comment.
25038 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
25040         * config/pa/pa.c (pa_output_move_double): Don't valididate when
25041         adjusting offsetable addresses.
25043 2014-02-24  Guozhi Wei  <carrot@google.com>
25045         * sparseset.h (sparseset_pop): Fix the wrong index.
25047 2014-02-24  Walter Lee  <walt@tilera.com>
25049         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
25050         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
25051         triplet.
25052         * common/config/tilegx/tilegx-common.c
25053         (TARGET_DEFAULT_TARGET_FLAGS): Define.
25054         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
25055         (LINK_SPEC): Ditto.
25056         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
25057         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
25058         (tilegx_gimplify_va_arg_expr): Handle big endian.
25059         (tilegx_expand_unaligned_load): Ditto.
25060         (tilegx_expand_unaligned_store): Ditto.
25061         (TARGET_RETURN_IN_MSB): New.
25062         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
25063         (TARGET_ENDIAN_DEFAULT): New.
25064         (TARGET_BIG_ENDIAN): Handle big endian.
25065         (BYTES_BIG_ENDIAN): Ditto.
25066         (WORDS_BIG_ENDIAN): Ditto.
25067         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
25068         (ENDIAN_SPEC): New.
25069         (EXTRA_SPECS): New.
25070         * config/tilegx/tilegx.md (extv): Handle big endian.
25071         (extzv): Ditto.
25072         (insn_st<n>): Ditto.
25073         (insn_st<n>_add<bitsuffix>): Ditto.
25074         (insn_stnt<n>): Ditto.
25075         (insn_stnt<n>_add<bitsuffix>):Ditto.
25076         (vec_interleave_highv8qi): Handle big endian.
25077         (vec_interleave_highv8qi_be): New.
25078         (vec_interleave_highv8qi_le): New.
25079         (insn_v1int_h): Handle big endian.
25080         (vec_interleave_lowv8qi): Handle big endian.
25081         (vec_interleave_lowv8qi_be): New.
25082         (vec_interleave_lowv8qi_le): New.
25083         (insn_v1int_l): Handle big endian.
25084         (vec_interleave_highv4hi): Handle big endian.
25085         (vec_interleave_highv4hi_be): New.
25086         (vec_interleave_highv4hi_le): New.
25087         (insn_v2int_h): Handle big endian.
25088         (vec_interleave_lowv4hi): Handle big endian.
25089         (vec_interleave_lowv4hi_be): New.
25090         (vec_interleave_lowv4hi_le): New.
25091         (insn_v2int_l): Handle big endian.
25092         (vec_interleave_highv2si): Handle big endian.
25093         (vec_interleave_highv2si_be): New.
25094         (vec_interleave_highv2si_le): New.
25095         (insn_v4int_h): Handle big endian.
25096         (vec_interleave_lowv2si): Handle big endian.
25097         (vec_interleave_lowv2si_be): New.
25098         (vec_interleave_lowv2si_le): New.
25099         (insn_v4int_l): Handle big endian.
25100         * config/tilegx/tilegx.opt (mbig-endian): New option.
25101         (mlittle-endian): New option.
25102         * doc/install.texi: Document tilegxbe-linux.
25103         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
25105 2014-02-24  Martin Jambor  <mjambor@suse.cz>
25107         PR ipa/60266
25108         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
25109         there are no parameter descriptors.
25111 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
25113         PR rtl-optimization/60268
25114         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
25115         initialization to ...
25116         (sched_rgn_init): ... here.
25117         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
25119 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
25121         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
25122         names.
25124 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
25126         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
25127         definition.
25129 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
25131         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
25132         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
25134 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
25136         * config/microblaze/predicates.md: Add cmp_op predicate.
25137         * config/microblaze/microblaze.md: Add branch_compare instruction
25138         which uses cmp_op predicate and emits cmp insn before branch.
25139         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
25140         to microblaze_expand_conditional_branch and consolidate logic.
25141         (microblaze_expand_conditional_branch): emit branch_compare
25142         insn instead of handling cmp op separate from branch insn.
25144 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25146         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
25147         to permit subregs.
25149 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25151         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
25152         define_insn with define_expand and new define_insn
25153         *altivec_lve<VI_char>x_internal.
25154         (altivec_stve<VI_char>x): Replace define_insn with define_expand
25155         and new define_insn *altivec_stve<VI_char>x_internal.
25156         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
25157         prototype.
25158         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
25159         lve*x built-ins.
25160         (altivec_expand_stvex_be): New function.
25162 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
25164         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
25165         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
25166         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
25167         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
25169 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
25171         PR target/60298
25172         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
25173         instead of emit_move_insn.
25175 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25177         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
25178         vspltw with vsldoi.
25179         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
25180         gen_altivec_vsumsws.
25182 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25184         * config/rs6000/altivec.md (altivec_lvxl): Rename as
25185         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
25186         (altivec_lvxl_<mode>): New define_expand incorporating
25187         -maltivec=be semantics where needed.
25188         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
25189         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
25190         semantics where needed.
25191         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
25192         (altivec_stvx_<mode>): New define_expand incorporating
25193         -maltivec=be semantics where needed.
25194         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
25195         VM2 iterator instead of V4SI.
25196         (altivec_stvxl_<mode>): New define_expand incorporating
25197         -maltivec=be semantics where needed.
25198         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
25199         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
25200         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
25201         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
25202         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
25203         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
25204         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
25205         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
25206         ALTIVEC_BUILTIN_STVXL.
25207         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
25208         (altivec_expand_stvx_be): Likewise.
25209         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
25210         (altivec_expand_lvx_be): Likewise.
25211         (altivec_expand_stvx_be): Likewise.
25212         (altivec_expand_builtin): Add cases for
25213         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
25214         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
25215         (altivec_init_builtins): Add definitions for
25216         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
25217         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
25219 2014-02-21  Catherine Moore  <clm@codesourcery.com>
25221         * doc/invoke.texi (mvirt, mno-virt): Document.
25222         * config/mips/mips.opt (mvirt): New option.
25223         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
25225 2014-02-21  Richard Biener  <rguenther@suse.de>
25227         PR tree-optimization/60276
25228         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
25229         (STMT_VINFO_MIN_NEG_DIST): New macro.
25230         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
25231         STMT_VINFO_MIN_NEG_DIST.
25232         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
25233         made for negative dependence distances still hold.
25235 2014-02-21  Richard Biener  <rguenther@suse.de>
25237         PR middle-end/60291
25238         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
25239         DECL_INITIAL for globals not in the current function context.
25241 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
25243         PR tree-optimization/56490
25244         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
25245         * tree-ssa-uninit.c: Include params.h.
25246         (compute_control_dep_chain): Add num_calls argument, return false
25247         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
25248         num_calls to recursive call.
25249         (find_predicates): Change dep_chain into normal array,
25250         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
25251         variable and adjust compute_control_dep_chain caller.
25252         (find_def_preds): Likewise.
25254 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
25256         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
25257         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
25259 2014-02-21  Nick Clifton  <nickc@redhat.com>
25261         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
25262         (pushhi1): Likewise.
25263         (popqi1): Add mode to pre_dec.
25264         (pophi1): Likewise.
25266 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
25268         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
25269         mode for mask of V8SFmode permutation.
25271 2014-02-20  Richard Henderson  <rth@redhat.com>
25273         PR c++/60272
25274         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
25275         a new pseudo for OLDVAL.
25277 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
25279         PR target/57896
25280         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
25281         gen_reg_rtx if d->testing_p.
25282         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
25283         if d->testing_p and we will certainly return true.
25284         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
25285         if d->testing_p.
25287 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
25289         * emit-rtl.c (gen_reg_rtx): Assert that
25290         crtl->emit.regno_pointer_align_length is non-zero.
25292 2014-02-20  Richard Henderson  <rth@redhat.com>
25294         PR c++/60272
25295         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
25296         on failure the store back into EXPECT.
25298 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
25299             Sandra Loosemore  <sandra@codesourcery.com>
25301         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
25302         * config/nios2/nios2.c (nios2_function_profiler): Add
25303         -fPIC (flag_pic == 2) support.
25304         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
25305         (nios2_large_offset_p): New function.
25306         (nios2_unspec_reloc_p): Move up position, update to use
25307         nios2_large_offset_p.
25308         (nios2_unspec_address): Remove function.
25309         (nios2_unspec_offset): New function.
25310         (nios2_large_got_address): New function.
25311         (nios2_got_address): Add large offset support.
25312         (nios2_legitimize_tls_address): Update usage of removed and new
25313         functions.
25314         (nios2_symbol_binds_local_p): New function.
25315         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
25316         (nios2_legitimize_address): Update to use nios2_large_offset_p.
25317         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
25318         (nios2_print_operand): Merge H/L processing, add hiadj/lo
25319         processing for (const (unspec ...)).
25320         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
25322 2014-02-20  Richard Biener  <rguenther@suse.de>
25324         * tree-cfg.c (replace_uses_by): Mark altered BBs before
25325         doing the substitution.
25326         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
25328 2014-02-20  Martin Jambor  <mjambor@suse.cz>
25330         PR ipa/55260
25331         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
25332         info when checking whether lattices are bottom.
25334 2014-02-20  Richard Biener  <rguenther@suse.de>
25336         PR middle-end/60221
25337         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
25338         regions at -O0.
25340 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
25342         PR ipa/58555
25343         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
25344         parameter specifying the scaling.
25345         (inline_call): Update.
25346         (want_inline_recursively): Guard division by zero.
25347         (recursive_inlining): Update.
25348         * ipa-inline.h (clone_inlined_nodes): Update.
25350 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
25352         PR target/60204
25353         * config/i386/i386.c (classify_argument): Pass structures of size
25354         64 bytes or less in register.
25356 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
25357             Kirill Yukhin  <kirill.yukhin@intel.com>
25359         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
25360         (_mm_rcp28_round_ss): Ditto.
25361         (_mm_rsqrt28_round_sd): Ditto.
25362         (_mm_rsqrt28_round_ss): Ditto.
25363         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
25364         (_mm_rcp14_round_ss): Ditto.
25365         (_mm_rsqrt14_round_sd): Ditto.
25366         (_mm_rsqrt14_round_ss): Ditto.
25367         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
25368         the first input operand, get rid of match_dup.
25369         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
25370         attribute to sse.
25371         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25372         Ditto.
25373         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
25374         operand as the first input operand, set type attribute.
25375         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25376         Set type attribute.
25377         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
25378         operand as the first input operand, set type attribute.
25380 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25382         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
25383         bit of zero.
25385 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
25387         PR target/60207
25388         * config/i386/i386.c (construct_container): Remove TFmode check
25389         for X86_64_INTEGER_CLASS.
25391 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
25393         PR target/59794
25394         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
25395         only when -Wpsabi is enabled.
25397 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
25399          PR target/59799
25400         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
25401         passing arrays in registers are the same as for structs, so remove the
25402         special case for them.
25404 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
25406         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
25407         destination type, extract only the valid bits if the source type is not
25408         integral and has a different mode.
25410 2014-02-19  Richard Biener  <rguenther@suse.de>
25412         PR ipa/60243
25413         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
25414         for all calls.
25416 2014-02-19  Richard Biener  <rguenther@suse.de>
25418         PR ipa/60243
25419         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
25420         (ipa_modify_call_arguments): Emit an argument load explicitely and
25421         preserve virtual SSA form there and for the replacement call.
25422         Do not update SSA form nor free dominance info.
25424 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
25426         * ipa.c (function_and_variable_visibility): Also clear WEAK
25427         flag when disolving COMDAT_GROUP.
25429 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
25431         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
25432         * ipa-prop.c (ipa_set_jf_known_type): Return early when
25433         not devirtualizing.
25434         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
25435         do more sanity checks.
25436         (detect_type_change): Return true when giving up early.
25437         (compute_complex_assign_jump_func): Fix type parameter of
25438         ipa_set_ancestor_jf.
25439         (compute_complex_ancestor_jump_func): Likewise.
25440         (update_jump_functions_after_inlining): Fix updating of
25441         ancestor function.
25442         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
25444 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
25446         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
25447         inline clones when edge disappears.
25449 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
25451         PR target/60203
25452         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
25453         Split 64-bit moves into 2 patterns.  Do not allow the use of
25454         direct move for TDmode in little endian, since the decimal value
25455         has little endian bytes within a word, but the 64-bit pieces are
25456         ordered in a big endian fashion, and normal subreg's of TDmode are
25457         not allowed.
25458         (mov<mode>_64bit_dm): Likewise.
25459         (movtd_64bit_nodm): Likewise.
25461 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
25463         PR tree-optimization/60174
25464         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
25465         statement of an SSA_NAME that occurs in an abnormal PHI node.
25467 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
25469         PR sanitizer/60142
25470         * final.c (SEEN_BB): Remove.
25471         (SEEN_NOTE, SEEN_EMITTED): Renumber.
25472         (final_scan_insn): Don't force_source_line on second
25473         NOTE_INSN_BASIC_BLOCK.
25475 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
25477         PR target/60205
25478         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
25479         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
25480         (type_natural_mode): Warn ABI change when %zmm register is not
25481         available for AVX512F vector value passing.
25483 2014-02-18  Kai Tietz  <ktietz@redhat.com>
25485         PR target/60193
25486         * config/i386/i386.c (ix86_expand_prologue): Use value in
25487         rax register as displacement when restoring %r10 or %rax.
25488         Fix wrong offset when restoring both registers.
25490 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
25492         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
25493         assertion with conditional return.
25495 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
25496             Uros Bizjak  <ubizjak@gmail.com>
25498         PR driver/60233
25499         * config/i386/driver-i386.c (host_detect_local_cpu): If
25500         YMM state is not saved by the OS, also clear has_f16c.  Move
25501         CPUID 0x80000001 handling before YMM state saving checking.
25503 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
25505         PR rtl-optimization/58960
25506         * haifa-sched.c (alloc_global_sched_pressure_data): New,
25507         factored out from ...
25508         (sched_init): ... here.
25509         (free_global_sched_pressure_data): New, factored out from ...
25510         (sched_finish): ... here.
25511         * sched-int.h (free_global_sched_pressure_data): Declare.
25512         * sched-rgn.c (nr_regions_initial): New static global.
25513         (haifa_find_rgns): Initialize it.
25514         (schedule_region): Disable sched-pressure for the newly
25515         generated regions.
25517 2014-02-17  Richard Biener  <rguenther@suse.de>
25519         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
25520         release SSA defs of pattern stmts.
25522 2014-02-17  Richard Biener  <rguenther@suse.de>
25524         * tree-inline.c (expand_call_inline): Release the virtual
25525         operand defined by the call we are about to inline.
25527 2014-02-17  Richard Biener  <rguenther@suse.de>
25529         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
25531 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
25532             Ilya Tocar  <ilya.tocar@intel.com>
25534         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
25535         arguments order in builtin.
25536         (_mm512_permutexvar_epi64): Ditto.
25537         (_mm512_mask_permutexvar_epi64): Ditto
25538         (_mm512_maskz_permutexvar_epi32): Ditto
25539         (_mm512_permutexvar_epi32): Ditto
25540         (_mm512_mask_permutexvar_epi32): Ditto
25542 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25544         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
25545         (p8_vmrgow): Likewise.
25547 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25549         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
25550         endian targets.
25552 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
25554         PR target/60203
25555         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
25556         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
25557         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
25558         using direct move instructions on ISA 2.07.  Also adjust
25559         instruction length for 64-bit.
25560         (mov<mode>_64bit, TFmode/TDmode): Likewise.
25561         (mov<mode>_32bit, TFmode/TDmode): Likewise.
25563 2014-02-15  Alan Modra  <amodra@gmail.com>
25565         PR target/58675
25566         PR target/57935
25567         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
25568         find_replacement on parts of insn rtl that might be reloaded.
25570 2014-02-15  Richard Biener  <rguenther@suse.de>
25572         PR tree-optimization/60183
25573         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
25574         (tree_ssa_phiprop): Calculate and free post-dominators.
25576 2014-02-14  Jeff Law  <law@redhat.com>
25578         PR rtl-optimization/60131
25579         * ree.c (get_extended_src_reg): New function.
25580         (combine_reaching_defs): Use it rather than assuming location of REG.
25581         (find_and_remove_re): Verify first operand of extension is
25582         a REG before adding the insns to the copy list.
25584 2014-02-14  Roland McGrath  <mcgrathr@google.com>
25586         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
25587         * configure: Regenerated.
25588         * config.in: Regenerated.
25589         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
25590         instead of ASM_SHORT.
25592 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
25593             Richard Earnshaw  <rearnsha@arm.com>
25595         PR rtl-optimization/59535
25596         * lra-constraints.c (process_alt_operands): Encourage alternative
25597         when unassigned pseudo class is superset of the alternative class.
25598         (inherit_reload_reg): Don't inherit when optimizing for code size.
25599         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
25600         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
25601         modes not less than 4 for Thumb1.
25603 2014-02-14  Kyle McMartin  <kyle@redhat.com>
25605         PR pch/60010
25606         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
25608 2014-02-14  Richard Biener  <rguenther@suse.de>
25610         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
25611         (get_frame_arg): Drop the assert with langhook types_compatible_p.
25612         Do not strip INDIRECT_REFs.
25614 2014-02-14  Richard Biener  <rguenther@suse.de>
25616         PR lto/60179
25617         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
25618         DECL_FUNCTION_SPECIFIC_TARGET.
25619         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
25620         * tree-streamer-out.c (pack_ts_target_option): Remove.
25621         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
25622         (write_ts_function_decl_tree_pointers): Do not stream
25623         DECL_FUNCTION_SPECIFIC_TARGET.
25624         * tree-streamer-in.c (unpack_ts_target_option): Remove.
25625         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
25626         (lto_input_ts_function_decl_tree_pointers): Do not stream
25627         DECL_FUNCTION_SPECIFIC_TARGET.
25629 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
25631         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
25632         (get_initial_def_for_induction, vectorizable_induction): Ignore
25633         debug stmts when looking for exit_phi.
25634         (vectorizable_live_operation): Fix up condition.
25636 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25638         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
25639         nreverse() because it changes the content of original tree list.
25641 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25643         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
25644         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
25646 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25648         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
25649         GNU coding standards.
25651 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
25653         PR debug/60152
25654         * dwarf2out.c (gen_subprogram_die): Don't call
25655         add_calling_convention_attribute if subr_die is old_die.
25657 2014-02-13  Sharad Singhai  <singhai@google.com>
25659         * doc/optinfo.texi: Fix order of nodes.
25661 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
25663         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
25664         operands[2], not operands[3].
25666 2014-02-13  Richard Biener  <rguenther@suse.de>
25668         PR bootstrap/59878
25669         * doc/install.texi (ISL): Update recommended version to 0.12.2,
25670         mention the possibility of an in-tree build.
25671         (CLooG): Update recommended version to 0.18.1, mention the
25672         possibility of an in-tree build and clarify that the ISL
25673         bundled with CLooG does not work.
25675 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
25677         PR target/43546
25678         * expr.c (compress_float_constant): If x is a hard register,
25679         extend into a pseudo and then move to x.
25681 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25683         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
25684         caused by bad second argument to warning_at() with -mhotpatch and
25685         nested functions (e.g. with gfortran).
25687 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
25689         * opts.c (option_name): Remove "enabled by default" rider.
25691 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
25693         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
25695 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
25696             Uros Bizjak  <ubizjak@gmail.com>
25698         PR target/60151
25699         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
25700         * configure: Regenerated.
25702 2014-02-12  Richard Biener  <rguenther@suse.de>
25704         * vec.c (vec_prefix::calculate_allocation): Move as
25705         inline variant to vec.h.
25706         (vec_prefix::calculate_allocation_1): New out-of-line version.
25707         * vec.h (vec_prefix::calculate_allocation_1): Declare.
25708         (vec_prefix::m_has_auto_buf): Rename to ...
25709         (vec_prefix::m_using_auto_storage): ... this.
25710         (vec_prefix::calculate_allocation): Inline the easy cases
25711         and dispatch to calculate_allocation_1 which doesn't need the
25712         prefix address.
25713         (va_heap::reserve): Use gcc_checking_assert.
25714         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
25715         m_using_auto_storage.
25716         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
25717         member and adjust.
25718         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
25719         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
25720         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
25722 2014-02-12  Richard Biener  <rguenther@suse.de>
25724         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
25725         when we found a dependence.
25727 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
25729         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
25730         common code...
25731         (maybe_fold_stmt): ... into this new function.
25732         * omp-low.c (lower_omp): Update comment.
25734         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
25735         last use.
25737         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
25738         dereference.
25740 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
25742         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
25743         identifiers in comments.
25744         (cortexa53_extra_costs): Likewise.
25745         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
25746         (cortexa7_extra_costs): Likewise.
25747         (cortexa12_extra_costs): Likewise.
25748         (cortexa15_extra_costs): Likewise.
25749         (v7m_extra_costs): Likewise.
25751 2014-02-12  Richard Biener  <rguenther@suse.de>
25753         PR middle-end/60092
25754         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
25755         of posix_memalign being successful.
25756         (lower_stmt): Restrict lowering of posix_memalign to when
25757         -ftree-bit-ccp is enabled.
25759 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
25761         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
25762         arg_loc.
25763         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
25765 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
25767         PR rtl-optimization/60116
25768         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
25769         other_insn once the combination has been validated.
25771 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
25773         PR lto/59468
25774         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
25775         and wrapper.
25776         * ipa-devirt.c: Include demangle.h
25777         (odr_violation_reported): New static variable.
25778         (add_type_duplicate): Update odr_violations.
25779         (maybe_record_node): Add completep parameter; update it.
25780         (record_target_from_binfo): Add COMPLETEP parameter;
25781         update it as needed.
25782         (possible_polymorphic_call_targets_1): Likewise.
25783         (struct polymorphic_call_target_d): Add nonconstruction_targets;
25784         rename FINAL to COMPLETE.
25785         (record_targets_from_bases): Sanity check we found the binfo;
25786         fix COMPLETEP updating.
25787         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
25788         parameter, fix computing of COMPLETEP.
25789         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
25790         at LTO time do demangling.
25791         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
25792         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
25793         parameter.
25794         (gimple_get_virt_method_for_binfo): Likewise.
25795         * gimple-fold.h (gimple_get_virt_method_for_binfo,
25796         gimple_get_virt_method_for_vtable): Update prototypes.
25798 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
25800         PR target/49008
25801         * genautomata.c (add_presence_absence): Fix typo with
25802         {final_}presence_list.
25804 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
25806         PR target/60137
25807         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
25808         for VSX/Altivec vectors that land in GPR registers.
25810 2014-02-11  Richard Henderson  <rth@redhat.com>
25811             Jakub Jelinek  <jakub@redhat.com>
25813         PR debug/59776
25814         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
25815         around drhs if type conversion to lacc->type is not useless.
25817 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25819         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
25820         tuning struct.
25821         (cortex-a57.cortex-a53): Likewise.
25822         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
25824 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25826         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
25827         arm_restrict_it.
25829 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
25831         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
25832         add_options_for_arm_vfp3.
25834 2014-02-11  Jeff Law  <law@redhat.com>
25836         PR middle-end/54041
25837         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
25838         object with an undesirable mode.
25840 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25842         PR libgomp/60107
25843         * config/i386/sol2-9.h: New file.
25844         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
25845         *-*-solaris2.9*): Use it.
25847 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
25849         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
25850         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
25852 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
25854         * config/microblaze/microblaze.c: Extend mcpu version format
25856 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
25858         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
25860 2014-02-10  Richard Henderson  <rth@redhat.com>
25862         PR target/59927
25863         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
25864         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
25865         ms-abi vs -mno-accumulate-outgoing-args.
25866         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
25867         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
25868         respect to ms-abi.
25870 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25872         PR middle-end/60080
25873         * cfgexpand.c (expand_asm_operands): Attach source location to
25874         ASM_INPUT rtx objects.
25875         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
25877 2014-02-10  Nick Clifton  <nickc@redhat.com>
25879         * config/mn10300/mn10300.c (popcount): New function.
25880         (mn10300_expand_prologue): Include saved registers in stack usage
25881         count.
25883 2014-02-10  Jeff Law  <law@redhat.com>
25885         PR middle-end/52306
25886         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
25887         when changing the SET_DEST of a prior insn to avoid an input reload.
25889 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25891         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
25892         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
25893         -mcall-openbsd, or -mcall-linux.
25894         (CC1_ENDIAN_BIG_SPEC): Remove.
25895         (CC1_ENDIAN_LITTLE_SPEC): Remove.
25896         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25897         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
25898         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
25899         and %cc1_endian_default.
25900         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25902 2014-02-10  Richard Biener  <rguenther@suse.de>
25904         PR tree-optimization/60115
25905         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
25906         MEM_REF handling.  Properly verify that the accesses are not
25907         out of the objects bound.
25909 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25911         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
25912         coretex to cortex.
25914 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
25916         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
25917         proper constants and fix formatting.
25918         (possible_polymorphic_call_targets): Fix formatting.
25920 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
25921             Ilya Tocar  <ilya.tocar@intel.com>
25923         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
25924         (_mm512_loadu_epi32): Renamed into...
25925         (_mm512_loadu_si512): This.
25926         (_mm512_storeu_epi32): Renamed into...
25927         (_mm512_storeu_si512): This.
25928         (_mm512_maskz_ceil_ps): Removed.
25929         (_mm512_maskz_ceil_pd): Ditto.
25930         (_mm512_maskz_floor_ps): Ditto.
25931         (_mm512_maskz_floor_pd): Ditto.
25932         (_mm512_floor_round_ps): Ditto.
25933         (_mm512_floor_round_pd): Ditto.
25934         (_mm512_ceil_round_ps): Ditto.
25935         (_mm512_ceil_round_pd): Ditto.
25936         (_mm512_mask_floor_round_ps): Ditto.
25937         (_mm512_mask_floor_round_pd): Ditto.
25938         (_mm512_mask_ceil_round_ps): Ditto.
25939         (_mm512_mask_ceil_round_pd): Ditto.
25940         (_mm512_maskz_floor_round_ps): Ditto.
25941         (_mm512_maskz_floor_round_pd): Ditto.
25942         (_mm512_maskz_ceil_round_ps): Ditto.
25943         (_mm512_maskz_ceil_round_pd): Ditto.
25944         (_mm512_expand_pd): Ditto.
25945         (_mm512_expand_ps): Ditto.
25946         * config/i386/i386.c (ix86_builtins): Remove
25947         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
25948         (bdesc_args): Ditto.
25949         * config/i386/predicates.md (const1256_operand): New.
25950         (const_1_to_2_operand): Ditto.
25951         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25952         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25953         (*avx512pf_gatherpf<mode>sf): Ditto.
25954         (avx512pf_gatherpf<mode>df): Ditto.
25955         (*avx512pf_gatherpf<mode>df_mask): Ditto.
25956         (*avx512pf_gatherpf<mode>df): Ditto.
25957         (avx512pf_scatterpf<mode>sf): Ditto.
25958         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25959         (*avx512pf_scatterpf<mode>sf): Ditto.
25960         (avx512pf_scatterpf<mode>df): Ditto.
25961         (*avx512pf_scatterpf<mode>df_mask): Ditto.
25962         (*avx512pf_scatterpf<mode>df): Ditto.
25963         (avx512f_expand<mode>): Removed.
25964         (<shift_insn><mode>3<mask_name>): Change predicate type.
25966 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
25968         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
25969         not at the end of datarefs vector use ordered_remove to avoid
25970         reordering datarefs vector.
25972         PR c/59984
25973         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
25974         mark local addressable non-static vars as GOVD_PRIVATE
25975         instead of GOVD_LOCAL.
25976         * omp-low.c (lower_omp_for): Move gimple_bind_vars
25977         and BLOCK_VARS of gimple_bind_block to new_stmt rather
25978         than copying them.
25980         PR middle-end/60092
25981         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
25982         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
25983         assume_aligned or alloc_align attributes.
25984         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
25985         arguments.  Handle also assume_aligned and alloc_align attributes.
25986         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
25987         calls to functions with assume_aligned or alloc_align attributes.
25988         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
25990 2014-02-08  Terry Guo  <terry.guo@arm.com>
25992         * doc/invoke.texi: Document ARM -march=armv7e-m.
25994 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
25996         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
25997         flag on __cilkrts_rethrow builtin.
25999         PR ipa/60026
26000         * ipa-cp.c (determine_versionability): Fail at -O0
26001         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
26002         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
26004         Revert:
26005         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
26007         PR ipa/60026
26008         * tree-inline.c (copy_forbidden): Fail for
26009         __attribute__((optimize (0))) functions.
26011 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
26013         * varpool.c: Include pointer-set.h.
26014         (varpool_remove_unreferenced_decls): Variables in other partitions
26015         will not be output; be however careful to not lose information
26016         about partitioning.
26018 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
26020         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
26021         lookup in the vtable constructor.
26023 2014-02-07  Jeff Law  <law@redhat.com>
26025         PR target/40977
26026         * config/m68k/m68k.md (ashldi_extsi): Turn into a
26027         define_insn_and_split.
26029         * ipa-inline.c (inline_small_functions): Fix typos.
26031 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26033         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
26034         (s390_can_use_return_insn): Declare.
26035         * config/s390/s390.h (EPILOGUE_USES): Define.
26036         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
26037         instructions.
26038         (s390_chunkify_start): Handle return JUMP_LABELs.
26039         (s390_early_mach): Emit a main_pool instruction on the entry edge.
26040         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
26041         (s390_can_use_return_insn): New functions.
26042         (s390_fix_long_loop_prediction): Handle conditional returns.
26043         (TARGET_SET_UP_BY_PROLOGUE): Define.
26044         * config/s390/s390.md (ANY_RETURN): New code iterator.
26045         (*creturn, *csimple_return, return, simple_return): New patterns.
26047 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26049         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
26050         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
26051         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
26052         REG_CFA_RESTORE list when deciding not to restore a register.
26054 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26056         * config/s390/s390.c: Include tree-pass.h and context.h.
26057         (s390_early_mach): New function, split out from...
26058         (s390_emit_prologue): ...here.
26059         (pass_data_s390_early_mach): New pass structure.
26060         (pass_s390_early_mach): New class.
26061         (s390_option_override): Create and register early_mach pass.
26062         Move to end of file.
26064 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26066         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
26067         to match for the exit block.
26069 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26071         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
26072         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
26073         Reject misaligned operands.
26075 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26077         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
26079 2014-02-07  Richard Biener  <rguenther@suse.de>
26081         PR middle-end/60092
26082         * gimple-low.c (lower_builtin_posix_memalign): New function.
26083         (lower_stmt): Call it to lower posix_memalign in a way
26084         to make alignment info accessible.
26086 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
26088         PR c++/60082
26089         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
26090         __builtin_setjmp_receiver.
26092 2014-02-07  Richard Biener  <rguenther@suse.de>
26094         PR middle-end/60092
26095         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
26096         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
26097         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26098         Handle BUILT_IN_POSIX_MEMALIGN.
26099         (find_func_clobbers): Likewise.
26100         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
26101         (call_may_clobber_ref_p_1): Likewise.
26103 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
26105         PR ipa/59918
26106         * ipa-devirt.c (record_target_from_binfo): Remove overactive
26107         sanity check.
26109 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
26111         PR ipa/59469
26112         * lto-cgraph.c (lto_output_node): Use
26113         symtab_get_symbol_partitioning_class.
26114         (lto_output_varpool_node): likewise.
26115         (symtab_get_symbol_partitioning_class): Move here from
26116         lto/lto-partition.c
26117         * cgraph.h (symbol_partitioning_class): Likewise.
26118         (symtab_get_symbol_partitioning_class): Declare.
26120 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
26122         * ggc.h (ggc_internal_cleared_alloc): New macro.
26123         * vec.h (vec_safe_copy): Handle memory stats.
26124         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
26125         * target-globals.c (save_target_globals): Likewise.
26127 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
26129         PR target/60077
26130         * expr.c (emit_move_resolve_push): Export; be bit more selective
26131         on when to clear alias set.
26132         * expr.h (emit_move_resolve_push): Declare.
26133         * function.h (struct function): Add tail_call_marked.
26134         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
26135         * config/i386/i386-protos.h (ix86_expand_push): Remove.
26136         * config/i386/i386.md (TImode move expander): De not call
26137         ix86_expand_push.
26138         (FP push expanders): Preserve memory attributes.
26139         * config/i386/sse.md (push<mode>1): Remove.
26140         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
26141         (ix86_expand_push): Remove.
26142         * config/i386/mmx.md (push<mode>1): Remove.
26144 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
26146         PR rtl-optimization/60030
26147         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
26148         lopart with paradoxical subreg before shifting it up by hprec.
26150 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26152         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
26153         Remove extra newline at end of file.
26154         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
26155         (arm_issue_rate): Handle cortexa57.
26156         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
26157         (cortex-a57.cortex-a53): Likewise.
26159 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
26161         PR target/59575
26162         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
26163         don't record in REG_FRAME_RELATED_EXPR registers not set in that
26164         bitmask.
26165         (arm_expand_prologue): Adjust all callers.
26166         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
26167         info, registers also at the lowest numbered registers side.  Use
26168         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
26169         XEXP.
26171         PR debug/59992
26172         * var-tracking.c (adjust_mems): Before adding a SET to
26173         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
26175 2014-02-06  Alan Modra  <amodra@gmail.com>
26177         PR target/60032
26178         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
26179         change SDmode to DDmode when lra_in_progress.
26181 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
26183         PR middle-end/59150
26184         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
26185         free_data_ref on the dr first, and before goto again also set dr
26186         to the next dr.  For simd_lane_access, free old datarefs[i] before
26187         overwriting it.  For get_vectype_for_scalar_type failure, don't
26188         free_data_ref if simd_lane_access.
26190         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
26192         PR target/60062
26193         * tree.h (opts_for_fn): New inline function.
26194         (opt_for_fn): Define.
26195         * config/i386/i386.c (ix86_function_regparm): Use
26196         opt_for_fn (decl, optimize) instead of optimize.
26198 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26200         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
26201         for SYMBOL_REF in large memory model.
26203 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26205         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
26206         and crypto support.
26207         (cortex-a57): Likewise.
26208         (cortex-a57.cortex-a53): Likewise.
26210 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
26211             Kugan Vivekanandarajah  <kuganv@linaro.org>
26213         * config/arm/arm.c (arm_vector_alignment_reachable): Check
26214         unaligned_access.
26215         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
26217 2014-02-06  Richard Biener  <rguenther@suse.de>
26219         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
26220         set_loop_copy and initialize_original_copy_tables.
26222 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
26224         * config/aarch64/aarch64-simd.md
26225         (aarch64_ashr_simddi): Change QI to SI.
26227 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
26228             Jakub Jelinek  <jakub@redhat.com>
26230         PR middle-end/60013
26231         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
26232         of the dataflow.
26234 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26236         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
26237         CODE_FOR_altivec_vpku[hw]um to
26238         CODE_FOR_altivec_vpku[hw]um_direct.
26239         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
26240         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
26241         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
26242         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
26244 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26246         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
26247         generation for -maltivec=be.
26248         (altivec_vsumsws): Simplify redundant test.
26250 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26252         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
26253         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
26254         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
26255         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
26256         gen_altivec_vpkuwum.
26257         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
26258         BYTES_BIG_ENDIAN.
26259         (altivec_vpks<VI_char>ss): Likewise.
26260         (altivec_vpks<VI_char>us): Likewise.
26261         (altivec_vpku<VI_char>us): Likewise.
26262         (altivec_vpku<VI_char>um): Likewise.
26263         (altivec_vpku<VI_char>um_direct): New (copy of
26264         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
26265         internal use).
26266         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
26267         target is little endian and -maltivec=be is not specified.
26268         (*altivec_vupkhs<VU_char>_direct): New (copy of
26269         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
26270         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
26271         target is little endian and -maltivec=be is not specified.
26272         (*altivec_vupkls<VU_char>_direct): New (copy of
26273         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
26274         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
26275         little endian and -maltivec=be is not specified.
26276         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
26277         little endian and -maltivec=be is not specified.
26279 2014-02-05  Richard Henderson  <rth@redhat.com>
26281         PR debug/52727
26282         * combine-stack-adj.c: Revert r206943.
26283         * sched-int.h (struct deps_desc): Add last_args_size.
26284         * sched-deps.c (init_deps): Initialize it.
26285         (sched_analyze_insn): Add OUTPUT dependencies between insns that
26286         contain REG_ARGS_SIZE notes.
26288 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
26290         * lto-cgraph.c (asm_nodes_output): Make global.
26291         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
26292         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
26293         (driver_handle_option): Handle OPT_fwpa.
26295 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
26297         PR ipa/59947
26298         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
26299         a comment typo and formatting issue.  If odr_hash hasn't been
26300         created, return vNULL and set *completep to false.
26302         PR middle-end/57499
26303         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
26304         bb with no successors.
26306 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
26308         PR target/59718
26309         * doc/invoke.texi (-march): Clarify documentation for ARM.
26310         (-mtune): Likewise.
26311         (-mcpu): Likewise.
26313 2014-02-05  Richard Biener  <rguenther@suse.de>
26315         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
26316         when not vectorizing because of too many alias checks.
26317         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
26318         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
26320 2014-02-05  Nick Clifton  <nickc@redhat.com>
26322         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
26323         accept extended registers in any mode when compiling for the MN10300.
26325 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
26327         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
26328         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
26329         sanitization attributes.
26330         (can_inline_edge_p): Likewise.
26331         (sanitize_attrs_match_for_inline_p): New function.
26333 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
26335         * ipa-prop.c (detect_type_change): Shor circuit testing of
26336         type changes on THIS pointer.
26338 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
26340         PR target/59777
26341         * config/pa/pa.c (legitimize_tls_address): Return original address
26342         if not passed a SYMBOL_REF rtx.
26343         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
26344         addresses.
26345         (pa_emit_move_sequence): Simplify TLS source operands.
26346         (pa_legitimate_constant_p): Reject all TLS constants.
26347         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
26348         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
26350 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
26352         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
26353         groups when we know they are controlled by LTO.
26354         * varasm.c (default_binds_local_p_1): If object is in other partition,
26355         it will be resolved locally.
26357 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26359         * config/host-linux.c (linux_gt_pch_use_address): Don't
26360         use SSIZE_MAX because it is not always defined.
26362 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
26364         PR bootstrap/59913
26365         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
26366         threshold for pseudo splitting.
26367         (update_ebb_live_info): Process call argument hard registers and
26368         hard registers from insn definition too.
26369         (max_small_class_regs_num): New constant.
26370         (inherit_in_ebb): Update live hard regs through EBBs.  Update
26371         reloads_num only for small register classes.  Don't split for
26372         outputs of jumps.
26374 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
26376         PR ipa/60058
26377         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
26378         is non-null.
26380 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
26382         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
26383         visibility is safe.
26385 2014-02-04  Marek Polacek  <polacek@redhat.com>
26387         * gdbinit.in (pel): Define.
26389 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26391         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
26392         behavior.
26394 2014-02-04  Richard Biener  <rguenther@suse.de>
26396         PR lto/59723
26397         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
26398         in function context local.
26399         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
26400         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
26401         similar to LTO_imported_decl_ref.
26403 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
26405         PR tree-optimization/60002
26406         * cgraphclones.c (build_function_decl_skip_args): Clear
26407         DECL_LANG_SPECIFIC.
26409         PR tree-optimization/60023
26410         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
26411         false to gsi_replace.
26412         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
26413         has been in some EH region and vec_stmt could throw, add
26414         vec_stmt into the same EH region.
26415         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
26416         has no lhs, ignore it.
26417         * internal-fn.c (expand_MASK_LOAD): Likewise.
26419         PR ipa/60026
26420         * tree-inline.c (copy_forbidden): Fail for
26421         __attribute__((optimize (0))) functions.
26423         PR other/58712
26424         * omp-low.c (simd_clone_struct_copy): If from->inbranch
26425         is set, copy one less argument.
26426         (expand_simd_clones): Don't subtract clone_info->inbranch
26427         from simd_clone_struct_alloc argument.
26429         PR rtl-optimization/57915
26430         * recog.c (simplify_while_replacing): If all unary/binary/relational
26431         operation arguments are constant, attempt to simplify those.
26433         PR middle-end/59261
26434         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
26435         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
26437 2014-02-04  Richard Biener  <rguenther@suse.de>
26439         PR tree-optimization/60012
26440         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
26441         TBAA disambiguation to all DDRs.
26443 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26445         PR target/59788
26446         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
26447         (LINK_SPEC): Use it for -shared, -shared-libgcc.
26449 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26451         PR ipa/59882
26452         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
26454 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26456         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
26457         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
26459 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26461         PR ipa/59831
26462         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
26463         to figure out targets of polymorphic calls with known decl.
26464         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26465         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
26466         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
26467         (get_polymorphic_call_info): ... here.
26468         (get_polymorphic_call_info_from_invariant): New function.
26470 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26472         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
26473         lookup via vtable pointer; check for type consistency
26474         and turn inconsitent facts into UNREACHABLE.
26475         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26476         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
26477         type inconsistent querries; return UNREACHABLE instead.
26479 2014-02-03  Richard Henderson  <rth@twiddle.net>
26481         PR tree-opt/59924
26482         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
26483         already processed this node.
26484         (normalize_one_pred_1): Pass along mark_set.
26485         (normalize_one_pred): Create and destroy a pointer_set_t.
26486         (normalize_one_pred_chain): Likewise.
26488 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
26490         PR gcov-profile/58602
26491         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
26493 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26495         PR ipa/59831
26496         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
26497         -fno-devirtualize; try to devirtualize by the knowledge of
26498         virtual table pointer given by aggregate propagation.
26499         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26500         (ipa_print_node_jump_functions): Dump also offset that
26501         is relevant for polymorphic calls.
26502         (determine_known_aggregate_parts): Add arg_type parameter; use it
26503         instead of determining the type from pointer type.
26504         (ipa_compute_jump_functions_for_edge): Update call of
26505         determine_known_aggregate_parts.
26506         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
26507         (gimple_get_virt_method_for_binfo): ... here; simplify using
26508         vtable_pointer_value_to_vtable.
26509         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
26510         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
26511         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
26512         (vtable_pointer_value_to_vtable): Break out from ...; handle also
26513         POINTER_PLUS_EXPR.
26514         (vtable_pointer_value_to_binfo): ... here.
26515         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
26517 2014-02-03  Teresa Johnson  <tejohnson@google.com>
26519         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
26520         redef of outer loop index variable.
26522 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
26524         PR c++/53017
26525         PR c++/59211
26526         * doc/extend.texi (Function Attributes): Typo.
26528 2014-02-03  Cong Hou  <congh@google.com>
26530         PR tree-optimization/60000
26531         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
26532         if the vectorized statement is a store.  A store statement can only
26533         appear at the end of pattern statements.
26535 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
26537         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
26538         (ix86_option_override_internal): Default long double to 64-bit for
26539         32-bit Bionic and to 128-bit for 64-bit Bionic.
26541         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
26542         TARGET_LONG_DOUBLE_128 is true.
26543         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
26545         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
26546         (mlong-double-64): Negate -mlong-double-128.
26547         (mlong-double-128): New option.
26549         * config/i386/i386-c.c (ix86_target_macros): Define
26550         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
26552         * doc/invoke.texi: Document -mlong-double-128.
26554 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
26556         PR rtl-optimization/60024
26557         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
26559 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
26561         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
26563 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
26565         PR rtl-optimization/57662
26566         * sel-sched.c (code_motion_path_driver): Do not mark already not
26567         existing blocks in the visiting bitmap.
26569 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
26571         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
26572         on the insn being emitted.
26574 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
26575             Will Deacon  <will.deacon@arm.com>
26577         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
26579 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26581         * config/arm/arm-tables.opt: Regenerate.
26583 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26585         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
26586         for vector types other than V16QImode.
26587         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
26588         define_expand, and call altivec_expand_vec_perm_le when producing
26589         code with little endian element order.
26590         (*altivec_vperm_<mode>_internal): New insn having previous
26591         behavior of altivec_vperm_<mode>.
26592         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
26593         altivec_expand_vec_perm_le when producing code with little endian
26594         element order.
26595         (*altivec_vperm_<mode>_uns_internal): New insn having previous
26596         behavior of altivec_vperm_<mode>_uns.
26598 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26600         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
26601         (altivec_vsumsws): Add handling for -maltivec=be with a little
26602         endian target.
26603         (altivec_vsumsws_direct): New.
26604         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
26605         gen_altivec_vsumsws.
26607 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
26609         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
26610         vtable_pointer_value_to_binfo): New functions.
26611         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
26612         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
26614 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
26616         * config/nios2/nios2.md (load_got_register): Initialize GOT
26617         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
26618         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
26620 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
26622         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
26623         preserverd by passthrough, do not propagate the type.
26625 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26627         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
26628         (mips_atomic_assign_expand_fenv): New function.
26629         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26631 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26633         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
26634         (__builtin_mips_set_fcsr): Likewise.
26635         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
26636         MIPS_USI_FTYPE_VOID.
26637         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
26638         (mips16_expand_set_fcsr): Likewise.
26639         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
26640         (mips16_set_fcsr_stub): Likewise.
26641         (mips16_get_fcsr_one_only_stub): New class.
26642         (mips16_set_fcsr_one_only_stub): Likewise.
26643         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
26644         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
26645         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
26646         (hard_float): New availability predicate.
26647         (mips_builtins): Add get_fcsr and set_fcsr.
26648         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
26649         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
26650         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
26651         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
26652         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
26653         patterns.
26655 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26657         * config/mips/mips.c (mips_one_only_stub): New class.
26658         (mips_need_mips16_rdhwr_p): Replace with...
26659         (mips16_rdhwr_stub): ...this new variable.
26660         (mips16_stub_call_address): New function.
26661         (mips16_rdhwr_one_only_stub): New class.
26662         (mips_expand_thread_pointer): Use mips16_stub_call_address.
26663         (mips_output_mips16_rdhwr): Delete.
26664         (mips_finish_stub): New function.
26665         (mips_code_end): Use it to handle rdhwr stubs.
26667 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
26669         PR target/60017
26670         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
26671         when calculating size of integer atomic types.
26673 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
26675         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
26677 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
26679         PR tree-optimization/60003
26680         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
26681         * profile.c (branch_prob): Use gimple_call_builtin_p
26682         to check for BUILT_IN_SETJMP_RECEIVER.
26683         * tree-inline.c (copy_bb): Call notice_special_calls.
26685 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
26687         PR bootstrap/59985
26688         * lra-constraints.c (process_alt_operands): Update reload_sum only
26689         on the first pass.
26691 2014-01-31  Richard Henderson  <rth@redhat.com>
26693         PR middle-end/60004
26694         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
26695         until after else_eh is processed.
26697 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
26699         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
26700         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
26701         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
26702         in smmintrin.h, remove them.
26703         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
26704         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
26705         * config/i386/i386.md (ROUND_SAE): Fix value.
26706         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
26707         (const48_operand): New.
26708         * config/i386/subst.md (round), (round_expand): Use
26709         const_4_or_8_to_11_operand.
26710         (round_saeonly), (round_saeonly_expand): Use const48_operand.
26712 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
26714         * config/i386/constraints.md (Yk): Swap meaning with k.
26715         * config/i386/i386.md (movhi_internal): Change Yk to k.
26716         (movqi_internal): Ditto.
26717         (*k<logic><mode>): Ditto.
26718         (*andhi_1): Ditto.
26719         (*andqi_1): Ditto.
26720         (kandn<mode>): Ditto.
26721         (*<code>hi_1): Ditto.
26722         (*<code>qi_1): Ditto.
26723         (kxnor<mode>): Ditto.
26724         (kortestzhi): Ditto.
26725         (kortestchi): Ditto.
26726         (kunpckhi): Ditto.
26727         (*one_cmplhi2_1): Ditto.
26728         (*one_cmplqi2_1): Ditto.
26729         * config/i386/sse.md (): Change k to Yk.
26730         (avx512f_load<mode>_mask): Ditto.
26731         (avx512f_blendm<mode>): Ditto.
26732         (avx512f_store<mode>_mask): Ditto.
26733         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
26734         (avx512f_storedqu<mode>_mask): Ditto.
26735         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
26736         Ditto.
26737         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
26738         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
26739         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
26740         (avx512f_maskcmp<mode>3): Ditto.
26741         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
26742         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
26743         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
26744         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
26745         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
26746         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
26747         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
26748         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
26749         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
26750         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
26751         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
26752         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
26753         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
26754         (vec_extract_lo_<mode>_maskm): Ditto.
26755         (vec_extract_hi_<mode>_maskm): Ditto.
26756         (avx512f_vternlog<mode>_mask): Ditto.
26757         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
26758         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
26759         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
26760         (avx512f_<code>v8div16qi2_mask): Ditto.
26761         (avx512f_<code>v8div16qi2_mask_store): Ditto.
26762         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
26763         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
26764         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
26765         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
26766         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26767         (*avx512pf_gatherpf<mode>df_mask): Ditto.
26768         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26769         (*avx512pf_scatterpf<mode>df_mask): Ditto.
26770         (avx512cd_maskb_vec_dupv8di): Ditto.
26771         (avx512cd_maskw_vec_dupv16si): Ditto.
26772         (avx512f_vpermi2var<mode>3_maskz): Ditto.
26773         (avx512f_vpermi2var<mode>3_mask): Ditto.
26774         (avx512f_vpermi2var<mode>3_mask): Ditto.
26775         (avx512f_vpermt2var<mode>3_maskz): Ditto.
26776         (*avx512f_gathersi<mode>): Ditto.
26777         (*avx512f_gathersi<mode>_2): Ditto.
26778         (*avx512f_gatherdi<mode>): Ditto.
26779         (*avx512f_gatherdi<mode>_2): Ditto.
26780         (*avx512f_scattersi<mode>): Ditto.
26781         (*avx512f_scatterdi<mode>): Ditto.
26782         (avx512f_compress<mode>_mask): Ditto.
26783         (avx512f_compressstore<mode>_mask): Ditto.
26784         (avx512f_expand<mode>_mask): Ditto.
26785         * config/i386/subst.md (mask): Change k to Yk.
26786         (mask_scalar_merge): Ditto.
26787         (sd): Ditto.
26789 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
26791         * doc/extend.texi (Vector Extensions): Document ?: in C++.
26793 2014-01-31  Richard Biener  <rguenther@suse.de>
26795         PR middle-end/59990
26796         * builtins.c (fold_builtin_memory_op): Make sure to not
26797         use a floating-point mode or a boolean or enumeral type for
26798         the copy operation.
26800 2014-01-30  DJ Delorie  <dj@redhat.com>
26802         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
26803         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
26804         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
26805         whenever main() has an epilogue.
26807 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26809         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
26810         unused variable "field".
26811         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
26812         (vsx_mergeh_<mode>): Likewise.
26813         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
26814         (altivec_vmrghh): Likewise.
26815         (altivec_vmrghw): Likewise.
26816         (altivec_vmrglb): Likewise.
26817         (altivec_vmrglh): Likewise.
26818         (altivec_vmrglw): Likewise.
26819         (altivec_vspltb): Add missing uses.
26820         (altivec_vsplth): Likewise.
26821         (altivec_vspltw): Likewise.
26822         (altivec_vspltsf): Likewise.
26824 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
26826         PR target/59923
26827         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
26828         frame related instructions.
26830 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
26832         PR rtl-optimization/59959
26833         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
26834         any reload of register whose subreg is invalid.
26836 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
26838         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
26839         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
26840         Add missing return type - void.
26842 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26844         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
26845         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
26846         remove element index adjustment for endian (now handled in vsx.md
26847         and altivec.md).
26848         (altivec_expand_vec_perm_const): Use
26849         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
26850         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
26851         (vsx_xxspltw_<mode>): Adjust element index for little endian.
26852         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
26853         define_expand and a new define_insn *altivec_vspltb_internal;
26854         adjust for -maltivec=be on a little endian target.
26855         (altivec_vspltb_direct): New.
26856         (altivec_vsplth): Divide into a define_expand and a new
26857         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
26858         little endian target.
26859         (altivec_vsplth_direct): New.
26860         (altivec_vspltw): Divide into a define_expand and a new
26861         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
26862         little endian target.
26863         (altivec_vspltw_direct): New.
26864         (altivec_vspltsf): Divide into a define_expand and a new
26865         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
26866         a little endian target.
26868 2014-01-30  Richard Biener  <rguenther@suse.de>
26870         PR tree-optimization/59993
26871         * tree-ssa-forwprop.c (associate_pointerplus): Check we
26872         can propagate form the earlier stmt and avoid the transform
26873         when the intermediate result is needed.
26875 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
26877         * README.Portability: Fix typo.
26879 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
26881         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
26882         comparison_operator with ordered_comparison_operator.
26884 2014-01-30  Nick Clifton  <nickc@redhat.com>
26886         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
26887         Rename to mn10300_store_multiple_regs.
26888         * config/mn10300/mn10300.c: Likewise.
26889         * config/mn10300/mn10300.md (store_movm): Fix typo: call
26890         store_multiple_regs.
26891         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
26892         Call mn10300_store_multiple_regs.
26894 2014-01-30  Nick Clifton  <nickc@redhat.com>
26895             DJ Delorie  <dj@redhat.com>
26897         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
26898         %fp 2 to keep registers after it properly word-aligned.
26899         (rl78_alloc_physical_registers_umul): Handle the case where both
26900         input operands are the same.
26902 2014-01-30  Richard Biener  <rguenther@suse.de>
26904         PR tree-optimization/59903
26905         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
26906         check properly.
26908 2014-01-30  Jason Merrill  <jason@redhat.com>
26910         PR c++/59633
26911         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
26913         PR c++/59645
26914         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
26916 2014-01-30  Richard Biener  <rguenther@suse.de>
26918         PR tree-optimization/59951
26919         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
26921 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
26923         PR target/59784
26924         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
26925         SFmode to DFmode case.
26927 2014-01-29  DJ Delorie  <dj@redhat.com>
26929         * config/msp430/msp430.opt (-minrt): New.
26930         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
26931         if -minrt given.
26932         (ENDFILE_SPEC): Likewise.
26934 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
26936         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
26937         (estimate_function_body_sizes): Use it.
26939 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
26941         PR c++/58561
26942         * dwarf2out.c (is_cxx_auto): New.
26943         (is_base_type): Use it.
26944         (gen_type_die_with_usage): Likewise.
26946 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26948         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
26949         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
26950         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
26951         -maltivec=be with LE targets.
26952         (vsx_mergeh_<mode>): Likewise.
26953         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
26954         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
26955         (altivec_vmrghb): Replace with define_expand and new
26956         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
26957         (altivec_vmrghb_direct): New define_insn.
26958         (altivec_vmrghh): Replace with define_expand and new
26959         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
26960         (altivec_vmrghh_direct): New define_insn.
26961         (altivec_vmrghw): Replace with define_expand and new
26962         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
26963         (altivec_vmrghw_direct): New define_insn.
26964         (*altivec_vmrghsf): Adjust for endianness.
26965         (altivec_vmrglb): Replace with define_expand and new
26966         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
26967         (altivec_vmrglb_direct): New define_insn.
26968         (altivec_vmrglh): Replace with define_expand and new
26969         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
26970         (altivec_vmrglh_direct): New define_insn.
26971         (altivec_vmrglw): Replace with define_expand and new
26972         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
26973         (altivec_vmrglw_direct): New define_insn.
26974         (*altivec_vmrglsf): Adjust for endianness.
26975         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26976         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26977         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
26978         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
26979         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26980         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26981         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
26982         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
26984 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26986         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
26987         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
26988         whitespace.
26990 2014-01-29  Richard Biener  <rguenther@suse.de>
26992         PR tree-optimization/58742
26993         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
26994         associate_pointerplus_align.
26995         (associate_pointerplus_diff): New function.
26996         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
26997         and associate_pointerplus_diff.
26999 2014-01-29  Richard Biener  <rguenther@suse.de>
27001         * lto-streamer.h (LTO_major_version): Bump to 3.
27002         (LTO_minor_version): Reset to 0.
27004 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
27006         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
27007         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
27008         (arm_file_start): Generate correct asm header for armv7ve.
27009         * config/arm/bpabi.h: Add multilib support for armv7ve.
27010         * config/arm/driver-arm.c: Change the architectures of cortex-a7
27011         and cortex-a15 to armv7ve.
27012         * config/arm/t-aprofile: Add multilib support for armv7ve.
27013         * doc/invoke.texi: Document -march=armv7ve.
27015 2014-01-29  Richard Biener  <rguenther@suse.de>
27017         PR tree-optimization/58742
27018         * tree-ssa-forwprop.c (associate_plusminus): Return true
27019         if we changed sth, defer EH cleanup to ...
27020         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
27021         (simplify_mult): New function.
27023 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
27025         PR middle-end/59917
27026         PR tree-optimization/59920
27027         * tree.c (build_common_builtin_nodes): Remove
27028         __builtin_setjmp_dispatcher initialization.
27029         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
27030         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
27031         instead of gsi_after_labels + manually skipping debug stmts.
27032         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
27033         ignore bbs with IFN_ABNORMAL_DISPATCHER.
27034         * tree-inline.c (copy_edges_for_bb): Remove
27035         can_make_abnormal_goto argument, instead add abnormal_goto_dest
27036         argument.  Ignore computed_goto_p stmts.  Don't call
27037         make_abnormal_goto_edges.  If a call might need abnormal edges
27038         for non-local gotos, see if it already has an edge to
27039         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
27040         with true argument, don't do anything then, otherwise add
27041         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
27042         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
27043         caller.
27044         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
27045         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
27046         (lower_stmt): Don't set data->calls_builtin_setjmp.
27047         (lower_builtin_setjmp): Adjust comment.
27048         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
27049         * tree-cfg.c (found_computed_goto): Remove.
27050         (factor_computed_gotos): Remove.
27051         (make_goto_expr_edges): Return bool, true for computed gotos.
27052         Don't call make_abnormal_goto_edges.
27053         (build_gimple_cfg): Don't set found_computed_goto, don't call
27054         factor_computed_gotos.
27055         (computed_goto_p): No longer static.
27056         (make_blocks): Don't set found_computed_goto.
27057         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
27058         (make_edges): If make_goto_expr_edges returns true, push bb
27059         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
27060         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
27061         vector.  Record mapping between bbs and OpenMP regions if there
27062         are any, adjust make_gimple_omp_edges caller.  Call
27063         handle_abnormal_edges.
27064         (make_abnormal_goto_edges): Remove.
27065         * tree-cfg.h (make_abnormal_goto_edges): Remove.
27066         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
27067         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
27068         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
27069         * internal-fn.def (ABNORMAL_DISPATCHER): New.
27070         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
27071         filling *region also set *region_idx to (*region)->entry->index.
27073         PR other/58712
27074         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
27075         For REGs set ORIGINAL_REGNO.
27077 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
27079         * doc/md.texi: Mention that a target shouldn't implement
27080         vec_widen_(s|u)mul_even/odd pair if it is less efficient
27081         than hi/lo pair.
27083 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
27085         PR tree-optimization/59594
27086         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
27087         a copy of the datarefs vector rather than the vector itself.
27089 2014-01-28  Jason Merrill  <jason@redhat.com>
27091         PR c++/53756
27092         * dwarf2out.c (auto_die): New static.
27093         (gen_type_die_with_usage): Handle C++1y 'auto'.
27094         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
27095         on definition.
27097 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
27099         PR target/59672
27100         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
27101         (SPEC_X32): Likewise.
27102         (SPEC_64): Likewise.
27103         * config/i386/i386.c (ix86_option_override_internal): Turn off
27104         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
27105         for TARGET_16BIT.
27106         (x86_file_start): Output .code16gcc for TARGET_16BIT.
27107         * config/i386/i386.h (TARGET_16BIT): New macro.
27108         (TARGET_16BIT_P): Likewise.
27109         * config/i386/i386.opt: Add m16.
27110         * doc/invoke.texi: Document -m16.
27112 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
27114         PR preprocessor/59935
27115         * input.c (location_get_source_line): Bail out on when line number
27116         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
27118 2014-01-28  Richard Biener  <rguenther@suse.de>
27120         PR tree-optimization/58742
27121         * tree-ssa-forwprop.c (associate_plusminus): Handle
27122         pointer subtraction of the form (T)(P + A) - (T)P.
27124 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27126         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
27127         at const_int_cost.
27129 2014-01-28  Richard Biener  <rguenther@suse.de>
27131         Revert
27132         2014-01-28  Richard Biener  <rguenther@suse.de>
27134         PR rtl-optimization/45364
27135         PR rtl-optimization/59890
27136         * var-tracking.c (local_get_addr_clear_given_value): Handle
27137         already cleared slot.
27138         (val_reset): Handle not allocated local_get_addr_cache.
27139         (vt_find_locations): Use post-order on the inverted CFG.
27141 2014-01-28  Richard Biener  <rguenther@suse.de>
27143         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
27145 2014-01-28  Richard Biener  <rguenther@suse.de>
27147         PR rtl-optimization/45364
27148         PR rtl-optimization/59890
27149         * var-tracking.c (local_get_addr_clear_given_value): Handle
27150         already cleared slot.
27151         (val_reset): Handle not allocated local_get_addr_cache.
27152         (vt_find_locations): Use post-order on the inverted CFG.
27154 2014-01-28  Alan Modra  <amodra@gmail.com>
27156         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
27157         * configure.ac <recursive call for build != host>: Define
27158         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
27159         and LD_FOR_BUILD too.
27160         * configure: Regenerate.
27162 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
27164         * config/i386/i386.c (get_builtin_code_for_version): Separate
27165         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
27166         Broadwell from Haswell.
27168 2014-01-27  Steve Ellcey  <sellcey@mips.com>
27170         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27171         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
27172         * config/mips/mips.c (mips_option_override): Change setting
27173         of TARGET_DSP.
27174         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
27175         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
27176         Change from Mask to Var.
27178 2014-01-27  Jeff Law  <law@redhat.com>
27180         * ipa-inline.c (inline_small_functions): Fix typo.
27182 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
27184         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
27185         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
27186         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
27187         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
27188         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
27189         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
27190         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
27191         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
27192         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
27193         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
27194         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
27195         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
27196         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
27197         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
27198         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
27199         (_mm512_storeu_epi64): Ditto.
27200         (_mm512_cmpge_epi32_mask): Ditto.
27201         (_mm512_cmpge_epu32_mask): Ditto.
27202         (_mm512_cmpge_epi64_mask): Ditto.
27203         (_mm512_cmpge_epu64_mask): Ditto.
27204         (_mm512_cmple_epi32_mask): Ditto.
27205         (_mm512_cmple_epu32_mask): Ditto.
27206         (_mm512_cmple_epi64_mask): Ditto.
27207         (_mm512_cmple_epu64_mask): Ditto.
27208         (_mm512_cmplt_epi32_mask): Ditto.
27209         (_mm512_cmplt_epu32_mask): Ditto.
27210         (_mm512_cmplt_epi64_mask): Ditto.
27211         (_mm512_cmplt_epu64_mask): Ditto.
27212         (_mm512_cmpneq_epi32_mask): Ditto.
27213         (_mm512_cmpneq_epu32_mask): Ditto.
27214         (_mm512_cmpneq_epi64_mask): Ditto.
27215         (_mm512_cmpneq_epu64_mask): Ditto.
27216         (_mm512_expand_pd): Ditto.
27217         (_mm512_expand_ps): Ditto.
27218         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
27219         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
27220         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
27221         * config/i386/i386.c (ix86_builtins): Add
27222         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
27223         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
27224         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
27225         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
27226         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
27227         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
27228         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
27229         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
27230         IX86_BUILTIN_PMOVUSQW512_MEM.
27231         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
27232         __builtin_ia32_pmovsqd512mem_mask,
27233         __builtin_ia32_pmovqd512mem_mask,
27234         __builtin_ia32_pmovusqw512mem_mask,
27235         __builtin_ia32_pmovsqw512mem_mask,
27236         __builtin_ia32_pmovqw512mem_mask,
27237         __builtin_ia32_pmovusdw512mem_mask,
27238         __builtin_ia32_pmovsdw512mem_mask,
27239         __builtin_ia32_pmovdw512mem_mask,
27240         __builtin_ia32_pmovqb512mem_mask,
27241         __builtin_ia32_pmovusqb512mem_mask,
27242         __builtin_ia32_pmovsqb512mem_mask,
27243         __builtin_ia32_pmovusdb512mem_mask,
27244         __builtin_ia32_pmovsdb512mem_mask,
27245         __builtin_ia32_pmovdb512mem_mask.
27246         (bdesc_args): Add __builtin_ia32_expanddf512,
27247         __builtin_ia32_expandsf512.
27248         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
27249         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
27250         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
27251         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
27252         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
27253         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
27254         (avx512f_<code>v8div16qi2_mask_store): This.
27255         (avx512f_expand<mode>): New.
27257 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
27259         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
27260         New.
27261         (_mm512_mask_prefetch_i64gather_pd): Ditto.
27262         (_mm512_prefetch_i32scatter_pd): Ditto.
27263         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
27264         (_mm512_prefetch_i64scatter_pd): Ditto.
27265         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
27266         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
27267         (_mm512_mask_prefetch_i64gather_ps): Ditto.
27268         (_mm512_prefetch_i32scatter_ps): Ditto.
27269         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
27270         (_mm512_prefetch_i64scatter_ps): Ditto.
27271         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
27272         * config/i386/i386-builtin-types.def: Define
27273         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
27274         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
27275         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
27276         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
27277         IX86_BUILTIN_SCATTERPFQPD.
27278         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
27279         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
27280         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
27281         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
27282         __builtin_ia32_scatterpfqps.
27283         (ix86_expand_builtin): Expand new built-ins.
27284         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
27285         fix memory access data type.
27286         (*avx512pf_gatherpf<mode>_mask): Ditto.
27287         (*avx512pf_gatherpf<mode>): Ditto.
27288         (avx512pf_scatterpf<mode>): Ditto.
27289         (*avx512pf_scatterpf<mode>_mask): Ditto.
27290         (*avx512pf_scatterpf<mode>): Ditto.
27291         (GATHER_SCATTER_SF_MEM_MODE): New.
27292         (avx512pf_gatherpf<mode>df): Ditto.
27293         (*avx512pf_gatherpf<mode>df_mask): Ditto.
27294         (*avx512pf_scatterpf<mode>df): Ditto.
27296 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
27298         PR bootstrap/59934
27299         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
27300         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
27301         reached.
27303 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
27305         * common/config/arm/arm-common.c
27306         (arm_rewrite_mcpu): Handle multiple names.
27307         * config/arm/arm.h
27308         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
27310 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
27312         * gimple-builder.h (create_gimple_tmp): Delete.
27314 2014-01-27  Christian Bruel  <christian.bruel@st.com>
27316         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
27317         words comparisons.
27319 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
27321         * config/pa/pa.md (call): Generate indirect long calls to non-local
27322         functions when outputing 32-bit code.
27323         (call_value): Likewise except for special call to buggy powf function.
27325         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
27326         portable runtime and PIC indirect calls.
27327         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
27328         and PIC call sequences.  Use ldo instead of blr to set return register
27329         in PIC call sequence.
27331 2014-01-25  Walter Lee  <walt@tilera.com>
27333         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
27334         avoid clobbering a live register.
27336 2014-01-25  Walter Lee  <walt@tilera.com>
27338         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
27339         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
27340         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
27341         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
27343 2014-01-25  Walter Lee  <walt@tilera.com>
27345         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
27346         arguments on even registers.
27347         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
27348         STACK_BOUNDARY.
27349         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
27350         (BIGGEST_ALIGNMENT): Ditto.
27351         (BIGGEST_FIELD_ALIGNMENT): Ditto.
27353 2014-01-25  Walter Lee  <walt@tilera.com>
27355         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
27356         insns before bundling.
27357         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
27359 2014-01-25  Walter Lee  <walt@tilera.com>
27361         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
27362         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
27363         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
27365 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
27367         * config/mips/constraints.md (kl): Delete.
27368         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
27369         define expands, using...
27370         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
27371         instructions for MIPS16.
27372         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
27373         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
27375 2014-01-25  Walter Lee  <walt@tilera.com>
27377         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
27378         (clzdi2): Ditto.
27379         (ffsdi2): Ditto.
27381 2014-01-25  Walter Lee  <walt@tilera.com>
27383         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
27384         (TARGET_EXPAND_TO_RTL_HOOK): Define.
27386 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
27388         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
27389         Handle XOR.
27391 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
27393         * print-rtl.c (in_call_function_usage): New var.
27394         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
27395         EXPR_LIST mode as mode and not as reg note name.
27397         PR middle-end/59561
27398         * cfgloopmanip.c (copy_loop_info): If
27399         loop->warned_aggressive_loop_optimizations, make sure
27400         the flag is set in target loop too.
27402 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
27404         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
27405         flag_cilkplus.
27406         * builtins.def: Likewise.
27407         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
27408         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
27409         * ira.c (ira_setup_eliminable_regset): Likewise.
27410         * omp-low.c (gate_expand_omp): Likewise.
27411         (execute_lower_omp): Likewise.
27412         (diagnose_sb_0): Likewise.
27413         (gate_diagnose_omp_blocks): Likewise.
27414         (simd_clone_clauses_extract): Likewise.
27415         (gate): Likewise.
27417 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27419         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
27420         correction for little endian...
27421         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
27422         here.
27424 2014-01-24  Jeff Law  <law@redhat.com>
27426         PR tree-optimization/59919
27427         * tree-vrp.c (find_assert_locations_1): Do not register asserts
27428         for non-returning calls.
27430 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
27432         * common/config/aarch64/aarch64-common.c
27433         (aarch64_rewrite_mcpu): Handle multiple names.
27434         * config/aarch64/aarch64.h
27435         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
27437 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
27439         * input.c (add_file_to_cache_tab): Handle the case where fopen
27440         returns NULL.
27442 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27444         PR target/59929
27445         * config/i386/i386.md (pushsf splitter): Get stack adjustment
27446         from push operand if code of push isn't PRE_DEC.
27448 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
27450         PR target/59909
27451         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
27452         -mquad-memory-atomic.  Update -mquad-memory documentation to say
27453         it is only used for non-atomic loads/stores.
27455         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
27456         -mquad-memory or -mquad-memory-atomic switches.
27458         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
27459         -mquad-memory-atomic to ISA 2.07 support.
27461         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
27462         to separate support of normal quad word memory operations (ldq, stq)
27463         from the atomic quad word memory operations.
27465         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
27466         support to separate non-atomic quad word operations from atomic
27467         quad word operations.  Disable non-atomic quad word operations in
27468         little endian mode so that we don't have to swap words after the
27469         load and before the store.
27470         (quad_load_store_p): Add comment about atomic quad word support.
27471         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
27472         options printed with -mdebug=reg.
27474         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
27475         -mquad-memory-atomic as the test for whether we have quad word
27476         atomic instructions.
27477         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
27478         or -mp8-vector are used, allow byte/half-word atomic operations.
27480         * config/rs6000/sync.md (load_lockedti): Insure that the address
27481         is a proper indexed or indirect address for the lqarx instruction.
27482         On little endian systems, swap the hi/lo registers after the lqarx
27483         instruction.
27484         (load_lockedpti): Use indexed_or_indirect_operand predicate to
27485         insure the address is valid for the lqarx instruction.
27486         (store_conditionalti): Insure that the address is a proper indexed
27487         or indirect address for the stqcrx. instruction.  On little endian
27488         systems, swap the hi/lo registers before doing the stqcrx.
27489         instruction.
27490         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
27491         insure the address is valid for the stqcrx. instruction.
27493         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
27494         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
27495         type of quad memory support is available.
27497 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
27499         PR regression/59915
27500         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
27501         there is a danger of looping.
27503 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
27505         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27506         force flag_ira_loop_pressure if set via command line.
27508 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
27510         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
27511         (ashr_simd): New builtin handling DI mode.
27512         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
27513         (aarch64_sshr_simddi): New match pattern.
27514         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
27515         (vshrd_n_s64): Likewise.
27516         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
27518 2014-01-23  Nick Clifton  <nickc@redhat.com>
27520         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
27521         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
27522         favour of mcu specific scripts.
27523         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
27524         430x multilibs.
27526 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
27527             Alex Velenko  <Alex.Velenko@arm.com>
27529         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
27530         (vaddv_s16): Likewise.
27531         (vaddv_s32): Likewise.
27532         (vaddv_u8): Likewise.
27533         (vaddv_u16): Likewise.
27534         (vaddv_u32): Likewise.
27535         (vaddvq_s8): Likewise.
27536         (vaddvq_s16): Likewise.
27537         (vaddvq_s32): Likewise.
27538         (vaddvq_s64): Likewise.
27539         (vaddvq_u8): Likewise.
27540         (vaddvq_u16): Likewise.
27541         (vaddvq_u32): Likewise.
27542         (vaddvq_u64): Likewise.
27543         (vaddv_f32): Likewise.
27544         (vaddvq_f32): Likewise.
27545         (vaddvq_f64): Likewise.
27546         (vmaxv_f32): Likewise.
27547         (vmaxv_s8): Likewise.
27548         (vmaxv_s16): Likewise.
27549         (vmaxv_s32): Likewise.
27550         (vmaxv_u8): Likewise.
27551         (vmaxv_u16): Likewise.
27552         (vmaxv_u32): Likewise.
27553         (vmaxvq_f32): Likewise.
27554         (vmaxvq_f64): Likewise.
27555         (vmaxvq_s8): Likewise.
27556         (vmaxvq_s16): Likewise.
27557         (vmaxvq_s32): Likewise.
27558         (vmaxvq_u8): Likewise.
27559         (vmaxvq_u16): Likewise.
27560         (vmaxvq_u32): Likewise.
27561         (vmaxnmv_f32): Likewise.
27562         (vmaxnmvq_f32): Likewise.
27563         (vmaxnmvq_f64): Likewise.
27564         (vminv_f32): Likewise.
27565         (vminv_s8): Likewise.
27566         (vminv_s16): Likewise.
27567         (vminv_s32): Likewise.
27568         (vminv_u8): Likewise.
27569         (vminv_u16): Likewise.
27570         (vminv_u32): Likewise.
27571         (vminvq_f32): Likewise.
27572         (vminvq_f64): Likewise.
27573         (vminvq_s8): Likewise.
27574         (vminvq_s16): Likewise.
27575         (vminvq_s32): Likewise.
27576         (vminvq_u8): Likewise.
27577         (vminvq_u16): Likewise.
27578         (vminvq_u32): Likewise.
27579         (vminnmv_f32): Likewise.
27580         (vminnmvq_f32): Likewise.
27581         (vminnmvq_f64): Likewise.
27583 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
27585         * config/aarch64/aarch64-simd.md
27586         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
27587         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
27588         (*aarch64_mul3_elt<mode>): Likewise.
27589         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
27590         (*aarch64_mul3_elt_to_64v2df): Likewise.
27591         (*aarch64_mla_elt<mode>): Likewise.
27592         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
27593         (*aarch64_mls_elt<mode>): Likewise.
27594         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
27595         (*aarch64_fma4_elt<mode>): Likewise.
27596         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
27597         (*aarch64_fma4_elt_to_64v2df): Likewise.
27598         (*aarch64_fnma4_elt<mode>): Likewise.
27599         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
27600         (*aarch64_fnma4_elt_to_64v2df): Likewise.
27601         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
27602         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
27603         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
27604         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
27605         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
27606         (aarch64_sqdmull_lane<mode>_internal): Likewise.
27607         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
27609 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
27611         * config/aarch64/aarch64-simd.md
27612         (aarch64_be_checked_get_lane<mode>): New define_expand.
27613         * config/aarch64/aarch64-simd-builtins.def
27614         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
27615         New builtin definition.
27616         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
27617         Use new safe be builtin.
27619 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
27621         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
27622         New define_insn.
27623         (aarch64_be_st1<mode>): Likewise.
27624         (aarch_ld1<VALL:mode>): Define_expand modified.
27625         (aarch_st1<VALL:mode>): Likewise.
27626         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
27627         (UNSPEC_ST1): Likewise.
27629 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
27631         * config/microblaze/microblaze.md: Add trap insn and attribute
27633 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
27635         PR preprocessor/58580
27636         * input.h (location_get_source_line): Take an additional line_size
27637         parameter.
27638         (void diagnostics_file_cache_fini): Declare new function.
27639         * input.c (struct fcache): New type.
27640         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
27641         New static constants.
27642         (diagnostic_file_cache_init, total_lines_num)
27643         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
27644         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
27645         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
27646         (get_next_line, read_next_line, goto_next_line, read_line_num):
27647         New static function definitions.
27648         (diagnostic_file_cache_fini): New function.
27649         (location_get_source_line): Take an additional output line_len
27650         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
27651         read_line_num.
27652         * diagnostic.c (diagnostic_finish): Call
27653         diagnostic_file_cache_fini.
27654         (adjust_line): Take an additional input parameter for the length
27655         of the line, rather than calculating it with strlen.
27656         (diagnostic_show_locus): Adjust the use of
27657         location_get_source_line and adjust_line with respect to their new
27658         signature.  While displaying a line now, do not stop at the first
27659         null byte.  Rather, display the zero byte as a space and keep
27660         going until we reach the size of the line.
27661         * Makefile.in: Add vec.o to OBJS-libcommon
27663 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
27664             Ilya Tocar  <ilya.tocar@intel.com>
27666         * config/i386/avx512fintrin.h (_mm512_kmov): New.
27667         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
27668         (__builtin_ia32_kmov16): Ditto.
27669         * config/i386/i386.md (UNSPEC_KMOV): New.
27670         (kmovw): Ditto.
27672 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
27674         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
27675         (_mm512_storeu_si512): Ditto.
27677 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
27679         PR target/52125
27680         * rtl.h (get_referenced_operands): Declare.
27681         * recog.c (get_referenced_operands): New function.
27682         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
27683         operands have been referenced when recording LO_SUM references.
27685 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
27687         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
27689 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
27691         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
27692         Enable for generic and recent AMD targets.
27694 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
27696         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
27697         ARG_SIZE note when adjustment was eliminated.
27699 2014-01-22  Jeff Law  <law@redhat.com>
27701         PR tree-optimization/59597
27702         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
27703         in file.  Accept new argument REGISTERING and use it to modify
27704         dump output appropriately.
27705         (register_jump_thread): Corresponding changes.
27706         (mark_threaded_blocks): Reinstate code to cancel unprofitable
27707         thread paths involving joiner blocks.  Add code to dump cancelled
27708         jump threading paths.
27710 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
27712         PR rtl-optimization/59477
27713         * lra-constraints.c (inherit_in_ebb): Process call for living hard
27714         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
27716 2014-01-22  Tom Tromey  <tromey@redhat.com>
27718         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
27719         PARAMS.
27720         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
27722 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27724         PR rtl-optimization/59896
27725         * lra-constraints.c (process_alt_operands): Check unused note for
27726         matched operands of insn with no output reloads.
27728 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
27730         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
27731         (mips_move_from_gpr_cost): Likewise.
27733 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27735         PR rtl-optimization/59858
27736         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
27737         ira_class_hard_regs_num.
27738         (process_alt_operands): Increase reject for dying matched operand.
27740 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
27742         PR target/59003
27743         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
27744         smaller than size, perform several stores or loads and stores
27745         at dst + count - size to store or copy all of size bytes, rather
27746         than just last modesize bytes.
27748 2014-01-20  DJ Delorie  <dj@redhat.com>
27750         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
27751         that CLOBBERs are REGs before propogating their values.
27753 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
27755         PR middle-end/59789
27756         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
27757         (cgraph_inline_failed_type): New function.
27758         * cgraph.h (DEFCIFCODE): Add type.
27759         (cgraph_inline_failed_type_t): New enum.
27760         (cgraph_inline_failed_type): New prototype.
27761         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
27762         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27763         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
27764         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
27765         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
27766         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
27767         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
27768         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
27769         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
27770         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
27771         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
27772         OPTIMIZATION_MISMATCH.
27773         * tree-inline.c (expand_call_inline): Emit errors during
27774         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
27776 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
27778         PR target/59685
27779         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
27780         mode attribute in insn output.
27782 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
27784         * output.h (output_constant): Delete.
27785         * varasm.c (output_constant): Make private.
27787 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
27789         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
27791 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
27793         PR middle-end/59860
27794         * tree.h (fold_builtin_strcat): New prototype.
27795         * builtins.c (fold_builtin_strcat): No longer static.  Add len
27796         argument, if non-NULL, don't call c_strlen.  Optimize
27797         directly into __builtin_memcpy instead of __builtin_strcpy.
27798         (fold_builtin_2): Adjust fold_builtin_strcat caller.
27799         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
27801 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
27803         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27804         for SImode_address_operand operands, having only a REG argument.
27806 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27808         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
27809         loader name using mbig-endian.
27810         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
27812 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
27814         * doc/invoke.texi (-march): Clarify documentation for AArch64.
27815         (-mtune): Likewise.
27816         (-mcpu): Likewise.
27818 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
27820         * config/aarch64/aarch64-protos.h
27821         (aarch64_cannot_change_mode_class_ptr): Declare.
27822         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
27823         aarch64_cannot_change_mode_class_ptr): New.
27824         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
27825         backend hook aarch64_cannot_change_mode_class.
27827 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
27829         * common/config/aarch64/aarch64-common.c
27830         (aarch64_handle_option): Don't handle any option order logic here.
27831         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
27832         selected_cpu, warn on architecture version mismatch.
27833         (aarch64_override_options): Fix parsing order for option strings.
27835 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27836             Iain Sandoe  <iain@codesourcery.com>
27838         PR bootstrap/59496
27839         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
27840         warning.  Amend comment to reflect current functionality.
27842 2014-01-20  Richard Biener  <rguenther@suse.de>
27844         PR middle-end/59860
27845         * builtins.c (fold_builtin_strcat): Remove case better handled
27846         by tree-ssa-strlen.c.
27848 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
27850         * config/aarch64/aarch64.opt
27851         (mcpu, march, mtune): Make case-insensitive.
27853 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
27855         PR target/59880
27856         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27857         if operands[1] is a REG or ZERO_EXTEND of a REG.
27859 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
27861         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
27863 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
27865         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
27866         long non-pic millicode calls.
27868 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27870         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
27872 2014-01-19  Kito Cheng  <kito@0xlab.org>
27874         * builtins.c (expand_movstr): Check movstr expand done or fail.
27876 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
27877             H.J. Lu  <hongjiu.lu@intel.com>
27879         PR target/59379
27880         * config/i386/i386.md (*lea<mode>): Zero-extend return register
27881         to DImode for zero-extended addresses.
27883 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
27885         PR rtl-optimization/57763
27886         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
27887         on the new indirect jump_insn and increment LABEL_NUSES (label).
27889 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
27891         PR bootstrap/59580
27892         PR bootstrap/59583
27893         * config.gcc (x86_archs): New variable.
27894         (x86_64_archs): Likewise.
27895         (x86_cpus): Likewise.
27896         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
27897         --with-arch/--with-cpu= options.
27898         Support --with-arch=/--with-cpu={nehalem,westmere,
27899         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
27901 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
27903         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
27904         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
27906 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
27908         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
27910 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
27912         PR target/58944
27913         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
27914         clear cpp_get_options (parse_in)->warn_unused_macros for
27915         ix86_target_macros_internal with cpp_define.
27917 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
27919         * jump.c (delete_related_insns): Keep (use (insn))s.
27920         * reorg.c (redundant_insn): Check for barriers too.
27922 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27924         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
27926 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
27928         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
27929         call to $$dyncall when TARGET_LONG_CALLS is true.
27931 2014-01-17  Jeff Law  <law@redhat.com>
27933         * ree.c (combine_set_extension): Temporarily disable test for
27934         changing number of hard registers.
27936 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
27938         PR middle-end/58125
27939         * ipa-inline-analysis.c (inline_free_summary):
27940         Do not free summary of aliases.
27942 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
27944         PR middle-end/59706
27945         * gimplify.c (gimplify_expr): Use create_tmp_var
27946         instead of create_tmp_var_raw.  If cond doesn't have
27947         integral type, don't add the IFN_ANNOTATE builtin at all.
27949 2014-01-17  Martin Jambor  <mjambor@suse.cz>
27951         PR ipa/59736
27952         * ipa-cp.c (prev_edge_clone): New variable.
27953         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
27954         Also resize prev_edge_clone vector.
27955         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
27956         (ipcp_edge_removal_hook): New function.
27957         (ipcp_driver): Register ipcp_edge_removal_hook.
27959 2014-01-17  Andrew Pinski  <apinski@cavium.com>
27960             Steve Ellcey  <sellcey@mips.com>
27962         PR target/59462
27963         * config/mips/mips.c (mips_print_operand): Check operand mode instead
27964         of operator mode.
27966 2014-01-17  Jeff Law  <law@redhat.com>
27968         PR middle-end/57904
27969         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
27970         so that pass_ccp runs first.
27972 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27974         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
27975         (ix86_adjust_cost): Use !TARGET_XXX.
27976         (do_reorder_for_imul): Likewise.
27977         (swap_top_of_ready_list): Likewise.
27978         (ix86_sched_reorder): Likewise.
27980 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27982         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
27983         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
27984         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
27985         (intel_memset): New.  Duplicate slm_memset.
27986         (intel_cost): New.  Duplicate slm_cost.
27987         (m_INTEL): New macro.
27988         (processor_target_table): Add "intel".
27989         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
27990         with PROCESSOR_INTEL for "intel".
27991         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
27992         PROCESSOR_SILVERMONT.
27993         (ix86_issue_rate): Likewise.
27994         (ix86_adjust_cost): Likewise.
27995         (ia32_multipass_dfa_lookahead): Likewise.
27996         (swap_top_of_ready_list): Likewise.
27997         (ix86_sched_reorder): Likewise.
27998         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
27999         instead of TARGET_OPT_AGU.
28000         * config/i386/i386.h (TARGET_INTEL): New.
28001         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
28002         (processor_type): Add PROCESSOR_INTEL.
28003         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
28004         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
28006 2014-01-17  Marek Polacek  <polacek@redhat.com>
28008         PR c/58346
28009         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
28010         size is zero.
28012 2014-01-17  Richard Biener  <rguenther@suse.de>
28014         PR tree-optimization/46590
28015         * opts.c (default_options_table): Add entries for
28016         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
28017         all enabled at -O1 but not for -Og.
28018         * common.opt (fbranch-count-reg): Remove Init(1).
28019         (fmove-loop-invariants): Likewise.
28020         (ftree-pta): Likewise.
28022 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
28024         * config/i386/i386.c (ix86_data_alignment): For compatibility with
28025         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
28026         decls to at least the GCC 4.8 used alignments.
28028         PR fortran/59440
28029         * tree-nested.c (convert_nonlocal_reference_stmt,
28030         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
28031         of GIMPLE_BIND stmts, adjust associated decls.
28033 2014-01-17  Richard Biener  <rguenther@suse.de>
28035         PR tree-optimization/46590
28036         * vec.h (vec<>::bseach): New member function implementing
28037         binary search according to C89 bsearch.
28038         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
28039         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
28040         bitmap pointer again.  Make accesses_in_loop a flat array.
28041         (mem_ref_obstack): New global.
28042         (outermost_indep_loop): Adjust for mem_ref->stored changes.
28043         (mark_ref_stored): Likewise.
28044         (ref_indep_loop_p_2): Likewise.
28045         (set_ref_stored_in_loop): New helper function.
28046         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
28047         (memref_free): Adjust.
28048         (record_mem_ref_loc): Simplify.
28049         (gather_mem_refs_stmt): Adjust.
28050         (sort_locs_in_loop_postorder_cmp): New function.
28051         (analyze_memory_references): Sort accesses_in_loop after
28052         loop postorder number.
28053         (find_ref_loc_in_loop_cmp): New function.
28054         (for_all_locs_in_loop): Find relevant cluster of locs in
28055         accesses_in_loop and iterate without recursion.
28056         (execute_sm): Avoid uninit warning.
28057         (struct ref_always_accessed): Simplify.
28058         (ref_always_accessed::operator ()): Likewise.
28059         (ref_always_accessed_p): Likewise.
28060         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
28061         loop postorder numbers here.
28062         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
28063         numbers.
28065 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
28067         PR c++/57945
28068         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
28069         on decls for which assemble_alias has been called.
28071 2014-01-17  Nick Clifton  <nickc@redhat.com>
28073         * config/msp430/msp430.opt: (mcpu): New option.
28074         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
28075         (msp430_option_override): Parse target_cpu.  If the MCU name
28076         matches a generic string, clear target_mcu.
28077         (msp430_attr): Allow numeric interrupt values up to 63.
28078         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
28079         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
28080         option.
28081         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
28082         Add mcpu matches.
28083         * config/msp430/msp430.md (popm): Use %J rather than %I.
28084         (addsi3): Use msp430_nonimmediate_operand for operand 2.
28085         (addhi_cy_i): Use immediate_operand for operand 2.
28086         * doc/invoke.texi: Document -mcpu option.
28088 2014-01-17  Richard Biener  <rguenther@suse.de>
28090         PR rtl-optimization/38518
28091         * df.h (df_analyze_loop): Declare.
28092         * df-core.c: Include cfgloop.h.
28093         (df_analyze_1): Split out main part of df_analyze.
28094         (df_analyze): Adjust.
28095         (loop_inverted_post_order_compute): New function.
28096         (loop_post_order_compute): Likewise.
28097         (df_analyze_loop): New function avoiding whole-function
28098         postorder computes.
28099         * loop-invariant.c (find_defs): Use df_analyze_loop.
28100         (find_invariants): Adjust.
28101         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
28103 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
28105         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
28106         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
28108 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
28110         * ipa-ref.c (ipa_remove_stmt_references): Fix references
28111         traversal when removing references.
28113 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
28115         PR ipa/59775
28116         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
28118 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
28120         PR middle-end/56791
28121         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
28122         pushing a reload for an autoinc when we had previously reloaded an
28123         inner part of the address.
28125 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
28127         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
28128         field.
28129         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
28130         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
28131         when not giving up or versioning for alias only because of
28132         loop->safelen.
28133         (vect_analyze_data_ref_dependences): Set to true.
28134         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
28135         is a GIMPLE_PHI.
28136         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
28137         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
28138         to the condition.
28140         PR middle-end/58344
28141         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
28143         PR target/59839
28144         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
28145         operand 0 predicate for gathers, use a new pseudo as subtarget.
28147 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
28149         PR middle-end/59609
28150         * lra-constraints.c (process_alt_operands): Add printing debug info.
28151         Check absence of input/output reloads for matched operands too.
28153 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
28155         PR rtl-optimization/59835
28156         * ira.c (ira_init_register_move_cost): Increase cost for
28157         impossible modes.
28159 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
28161         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
28163 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
28165         PR target/59780
28166         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
28167         non-register objects.  Use gen_(high/low)part more consistently.
28168         Fix assertions.
28170 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
28172         PR target/59844
28173         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
28174         endian support, remove tests for WORDS_BIG_ENDIAN.
28175         (p8_mfvsrd_3_<mode>): Likewise.
28176         (reload_gpr_from_vsx<mode>): Likewise.
28177         (reload_gpr_from_vsxsf): Likewise.
28178         (p8_mfvsrd_4_disf): Likewise.
28180 2014-01-16  Richard Biener  <rguenther@suse.de>
28182         PR rtl-optimization/46590
28183         * lcm.c (compute_antinout_edge): Use postorder iteration.
28184         (compute_laterin): Use inverted postorder iteration.
28186 2014-01-16  Nick Clifton  <nickc@redhat.com>
28188         PR middle-end/28865
28189         * varasm.c (output_constant): Return the number of bytes actually
28190         emitted.
28191         (output_constructor_array_range): Update the field size with the
28192         number of bytes emitted by output_constant.
28193         (output_constructor_regular_field): Likewise.  Also do not
28194         complain if the total number of bytes emitted is now greater
28195         than the expected fieldpos.
28196         * output.h (output_constant): Update prototype and descriptive comment.
28198 2014-01-16  Marek Polacek  <polacek@redhat.com>
28200         PR middle-end/59827
28201         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
28202         it is error_mark_node.
28204 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
28206         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
28207         VALID_AVX256_REG_OR_OI_MODE.
28209 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
28211         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
28212         current procedure should be profiled.
28214 2014-01-15  Andrew Pinski  <apinski@cavium.com>
28216         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
28217         of moving from/to the STACK_REG register class.
28219 2014-01-15  Richard Henderson  <rth@redhat.com>
28221         PR debug/54694
28222         * reginfo.c (global_regs_decl): Globalize.
28223         * rtl.h (global_regs_decl): Declare.
28224         * ira.c (do_reload): Diagnose frame_pointer_needed and it
28225         reserved via global_regs.
28227 2014-01-15  Teresa Johnson  <tejohnson@google.com>
28229         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
28231 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
28233         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
28234         and vmulosh rather than call gen_vec_widen_smult_*.
28235         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
28236         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
28237         (vec_widen_smult_even_v16qi): Likewise.
28238         (vec_widen_umult_even_v8hi): Likewise.
28239         (vec_widen_smult_even_v8hi): Likewise.
28240         (vec_widen_umult_odd_v16qi): Likewise.
28241         (vec_widen_smult_odd_v16qi): Likewise.
28242         (vec_widen_umult_odd_v8hi): Likewise.
28243         (vec_widen_smult_odd_v8hi): Likewise.
28244         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
28245         vmuloub rather than call gen_vec_widen_umult_*.
28246         (vec_widen_umult_lo_v16qi): Likewise.
28247         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
28248         vmulosb rather than call gen_vec_widen_smult_*.
28249         (vec_widen_smult_lo_v16qi): Likewise.
28250         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
28251         rather than call gen_vec_widen_umult_*.
28252         (vec_widen_umult_lo_v8hi): Likewise.
28253         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
28254         rather than call gen_vec_widen_smult_*.
28255         (vec_widen_smult_lo_v8hi): Likewise.
28257 2014-01-15  Jeff Law  <law@redhat.com>
28259         PR tree-optimization/59747
28260         * ree.c (find_and_remove_re): Properly handle case where a second
28261         eliminated extension requires widening a copy created for elimination
28262         of a prior extension.
28263         (combine_set_extension): Ensure that the number of hard regs needed
28264         for a destination register does not change when we widen it.
28266 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28268         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
28269         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
28270         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
28271         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
28272         (avr-*-rtems*): Likewise.
28273         (bfin*-rtems*): Likewise.
28274         (moxie-*-rtems*): Likewise.
28275         (h8300-*-rtems*): Likewise.
28276         (i[34567]86-*-rtems*): Likewise.
28277         (lm32-*-rtems*): Likewise.
28278         (m32r-*-rtems*): Likewise.
28279         (m68k-*-rtems*): Likewise.
28280         (microblaze*-*-rtems*): Likewise.
28281         (mips*-*-rtems*): Likewise.
28282         (powerpc-*-rtems*): Likewise.
28283         (sh-*-rtems*): Likewise.
28284         (sparc-*-rtems*): Likewise.
28285         (sparc64-*-rtems*): Likewise.
28286         (v850-*-rtems*): Likewise.
28287         (m32c-*-rtems*): Likewise.
28289 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
28291         PR rtl-optimization/59511
28292         * ira.c (ira_init_register_move_cost): Use memory costs for some
28293         cases of register move cost calculations.
28294         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
28295         instead of BB frequency.
28296         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
28297         * lra-assigns.c (find_hard_regno_for): Ditto.
28299 2014-01-15  Richard Biener  <rguenther@suse.de>
28301         PR tree-optimization/59822
28302         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
28303         (vectorizable_load): Use it to hoist defs of uses of invariant
28304         loads out of the loop.
28306 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
28307             Kugan Vivekanandarajah  <kuganv@linaro.org>
28309         PR target/59695
28310         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
28311         truncation.
28313 2014-01-15  Richard Biener  <rguenther@suse.de>
28315         PR rtl-optimization/59802
28316         * lcm.c (compute_available): Use inverted postorder to seed
28317         the initial worklist.
28319 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28321         PR target/59803
28322         * config/s390/s390.c (s390_preferred_reload_class): Don't return
28323         ADDR_REGS for invalid symrefs in non-PIC code.
28325 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
28327         PR other/58712
28328         * builtins.c (determine_block_size): Initialize *probable_max_size
28329         even if len_rtx is CONST_INT.
28331 2014-01-14  Andrew Pinski  <apinski@cavium.com>
28333         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
28334         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
28335         (cortexa53_tunings): Likewise.
28336         (aarch64_sched_issue_rate): New function.
28337         (TARGET_SCHED_ISSUE_RATE): Define.
28339 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
28341         * ira-costs.c (find_costs_and_classes): Add missed
28342         ira_init_register_move_cost_if_necessary.
28344 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
28346         PR target/59787
28347         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
28349 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
28351         PR target/59794
28352         * config/i386/i386.c (type_natural_mode): Add a bool parameter
28353         to indicate if type is used for function return value.  Warn ABI
28354         change if the vector mode isn't available for function return value.
28355         (ix86_function_arg_advance): Pass false to type_natural_mode.
28356         (ix86_function_arg): Likewise.
28357         (ix86_gimplify_va_arg): Likewise.
28358         (function_arg_32): Don't warn ABI change.
28359         (ix86_function_value): Pass true to type_natural_mode.
28360         (ix86_return_in_memory): Likewise.
28361         (ix86_struct_value_rtx): Removed.
28362         (TARGET_STRUCT_VALUE_RTX): Likewise.
28364 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28366         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
28367         converting a conditional jump into a conditional return.
28369 2014-01-14  Richard Biener  <rguenther@suse.de>
28371         PR tree-optimization/58921
28372         PR tree-optimization/59006
28373         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
28374         hoisting invariant stmts.
28375         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
28376         invariant loads on the preheader edge if possible.
28378 2014-01-14  Joey Ye  <joey.ye@arm.com>
28380         * doc/plugin.texi (Building GCC plugins): Update to C++.
28382 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
28384         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
28385         (_mm_rcp28_round_ss): Ditto.
28386         (_mm_rsqrt28_round_sd): Ditto.
28387         (_mm_rsqrt28_round_ss): Ditto.
28388         (_mm_rcp28_sd): Ditto.
28389         (_mm_rcp28_ss): Ditto.
28390         (_mm_rsqrt28_sd): Ditto.
28391         (_mm_rsqrt28_ss): Ditto.
28392         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
28393         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
28394         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
28395         (IX86_BUILTIN_RCP28SD): Ditto.
28396         (IX86_BUILTIN_RCP28SS): Ditto.
28397         (IX86_BUILTIN_RSQRT28SD): Ditto.
28398         (IX86_BUILTIN_RSQRT28SS): Ditto.
28399         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
28400         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
28401         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
28402         (ix86_expand_special_args_builtin): Expand new FTYPE.
28403         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
28404         (srcp14<mode>): Make insn unary.
28405         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
28406         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
28407         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
28408         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
28409         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
28410         Fix rounding: make it SAE only.
28411         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
28412         Ditto.
28413         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
28414         Ditto.
28415         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
28416         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
28417         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
28418         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
28419         (round_saeonly_mask_scalar_operand4): Ditto.
28420         (round_saeonly_mask_scalar_op3): Ditto.
28421         (round_saeonly_mask_scalar_op4): Ditto.
28423 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28425         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28426         Implement -maltivec=be for vec_insert and vec_extract.
28428 2014-01-10  DJ Delorie  <dj@redhat.com>
28430         * config/msp430/msp430.md (call_internal): Don't allow memory
28431         references with SP as the base register.
28432         (call_value_internal): Likewise.
28433         * config/msp430/constraints.md (Yc): New.  For memory references
28434         that don't use SP as a base register.
28436         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
28437         "an integer without a # prefix"
28438         * config/msp430/msp430.md (epilogue_helper): Use it.
28440 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
28442         PR target/59617
28443         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
28444         AVX512F gather builtins.
28445         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
28446         on gather decls with INTEGER_TYPE masktype.
28447         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
28448         directly into the builtin rather than hoisting it before loop.
28450         PR tree-optimization/59387
28451         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
28452         (scev_const_prop): If folded_casts and type has undefined overflow,
28453         use force_gimple_operand instead of force_gimple_operand_gsi and
28454         for each added stmt if it is assign with
28455         arith_code_with_undefined_signed_overflow, call
28456         rewrite_to_defined_overflow.
28457         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
28458         gimple-fold.h instead.
28459         (arith_code_with_undefined_signed_overflow,
28460         rewrite_to_defined_overflow): Moved to ...
28461         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
28462         rewrite_to_defined_overflow): ... here.  No longer static.
28463         Include gimplify-me.h.
28464         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
28465         rewrite_to_defined_overflow): New prototypes.
28467 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28469         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
28471 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
28473         * builtins.c (get_object_alignment_2): Minor tweak.
28474         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
28476 2014-01-13  Christian Bruel  <christian.bruel@st.com>
28478         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
28479         optimized non constant lengths.
28481 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
28483         PR libgomp/59194
28484         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
28485         load as __atomic_load_N if possible.
28487 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
28489         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
28490         target parameter.
28491         (rs6000_expand_builtin): Adjust call.
28493 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
28495         PR target/58115
28496         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
28497         * config/rs6000/rs6000.c: Include target-globals.h.
28498         (rs6000_set_current_function): Instead of doing target_reinit
28499         unconditionally, use save_target_globals_default_opts and
28500         restore_target_globals.
28502         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
28503         FPSCR.
28504         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
28505         (rs6000_expand_builtin): Handle mffs and mtfsf.
28506         (rs6000_init_builtins): Define mffs and mtfsf.
28507         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
28508         (rs6000_mffs): New pattern.
28509         (rs6000_mtfsf): New pattern.
28511 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
28513         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
28514         Start narrowing with START.  Apply candidate-use pair
28515         and check overall cost in narrowing.
28516         (iv_ca_prune): Pass new argument.
28518 2014-01-10  Jeff Law  <law@redhat.com>
28520         PR middle-end/59743
28521         * ree.c (combine_reaching_defs): Ensure the defining statement
28522         occurs before the extension when optimizing extensions with
28523         different source and destination hard registers.
28525 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
28527         PR ipa/58585
28528         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
28529         vtables into the type inheritance graph.
28531 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
28533         PR rtl-optimization/59754
28534         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
28535         modes in the REGNO != REGNO case.
28537 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28539         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
28541 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
28543         PR tree-optimization/59745
28544         * tree-predcom.c (tree_predictive_commoning_loop): Call
28545         free_affine_expand_cache if giving up because components is NULL.
28547         * target-globals.c (save_target_globals): Allocate < 4KB structs using
28548         GC in payload of target_globals struct instead of allocating them on
28549         the heap and the larger structs separately using GC.
28550         * target-globals.h (struct target_globals): Make regs, hard_regs,
28551         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
28552         of GTY((skip)) and change type to void *.
28553         (reset_target_globals): Cast loads from those fields to corresponding
28554         types.
28556 2014-01-10  Steve Ellcey  <sellcey@mips.com>
28558         PR plugins/59335
28559         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
28560         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
28561         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
28563 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
28565         PR target/59744
28566         * aarch64-modes.def (CC_Zmode): New flags mode.
28567         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
28568         represents an equality.
28569         (aarch64_get_condition_code): Handle CC_Zmode.
28570         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
28572 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28574         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
28575         extraction in good case.
28577 2014-01-10  Richard Biener  <rguenther@suse.de>
28579         PR tree-optimization/59374
28580         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
28581         checking after SLP discovery.  Mark stmts not participating
28582         in any SLP instance properly.
28584 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28586         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
28587         when handling a SET rtx.
28589 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28591         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
28592         (cortex-a57): Likewise.
28593         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
28595 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28597         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
28598         non-iwmmxt builtins.
28600 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
28602         PR ipa/58252
28603         PR ipa/59226
28604         * ipa-devirt.c record_target_from_binfo): Take as argument
28605         stack of binfos and lookup matching one for virtual inheritance.
28606         (possible_polymorphic_call_targets_1): Update.
28608 2014-01-10  Huacai Chen  <chenhc@lemote.com>
28610         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
28611         kernel strings for Loongson-2E/2F/3A.
28613 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
28615         PR middle-end/59670
28616         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
28617         is_gimple_call before calling gimple_call_internal_p.
28619 2014-01-09  Steve Ellcey  <sellcey@mips.com>
28621         * Makefile.in (TREE_FLOW_H): Remove.
28622         (TREE_SSA_H): Add file names from tree-flow.h.
28623         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
28624         * tree.h: Remove tree-flow.h reference.
28625         * hash-table.h: Remove tree-flow.h reference.
28626         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
28627         reference with tree-ssa-loop.h.
28629 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28631         * doc/invoke.texi: Add -maltivec={be,le} options, and document
28632         default element-order behavior for -maltivec.
28633         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
28634         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
28635         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
28636         when targeting big endian, at least for now.
28637         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
28639 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
28641         PR middle-end/47735
28642         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
28643         var satisfies use_register_for_decl, just take into account type
28644         alignment, rather than decl alignment.
28646         PR tree-optimization/59622
28647         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
28648         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
28649         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
28650         Don't devirtualize for inplace at all.  For targets.length () == 1,
28651         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
28653 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
28655         * config/i386/i386.md (cpu): Remove the unused btver1.
28657 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
28659         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
28661 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
28663         PR target/58115
28664         * tree-core.h (struct target_globals): New forward declaration.
28665         (struct tree_target_option): Add globals field.
28666         * tree.h (TREE_TARGET_GLOBALS): Define.
28667         (prepare_target_option_nodes_for_pch): New prototype.
28668         * target-globals.h (struct target_globals): Define even if
28669         !SWITCHABLE_TARGET.
28670         * tree.c (prepare_target_option_node_for_pch,
28671         prepare_target_option_nodes_for_pch): New functions.
28672         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
28673         * config/i386/i386.c: Include target-globals.h.
28674         (ix86_set_current_function): Instead of doing target_reinit
28675         unconditionally, use save_target_globals_default_opts and
28676         restore_target_globals.
28678 2014-01-09  Richard Biener  <rguenther@suse.de>
28680         PR tree-optimization/59715
28681         * tree-cfg.h (split_critical_edges): Declare.
28682         * tree-cfg.c (split_critical_edges): Export.
28683         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
28685 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
28687         * cfgexpand.c (expand_stack_vars): Optionally disable
28688         asan stack protection.
28689         (expand_used_vars): Likewise.
28690         (partition_stack_vars): Likewise.
28691         * asan.c (asan_emit_stack_protection): Optionally disable
28692         after return stack usage.
28693         (instrument_derefs): Optionally disable memory access instrumentation.
28694         (instrument_builtin_call): Likewise.
28695         (instrument_strlen_call): Likewise.
28696         (asan_protect_global): Optionally disable global variables protection.
28697         * doc/invoke.texi: Added doc for new options.
28698         * params.def: Added new options.
28699         * params.h: Likewise.
28701 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
28703         PR rtl-optimization/59724
28704         * ifcvt.c (cond_exec_process_if_block): Don't call
28705         flow_find_head_matching_sequence with 0 longest_match.
28706         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
28707         non-active insns if !stop_after.
28708         (try_head_merge_bb): Revert 2014-01-07 changes.
28710 2014-01-08  Jeff Law  <law@redhat.com>
28712         * ree.c (get_sub_rtx): New function, extracted from...
28713         (merge_def_and_ext): Here.
28714         (combine_reaching_defs): Use get_sub_rtx.
28716 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
28718         * cgraph.h (varpool_variable_node): Do not choke on null node.
28720 2014-01-08  Catherine Moore  <clm@codesourcery.com>
28722         * config/mips/mips.md (simple_return): Attempt to use JRC
28723         for microMIPS.
28724         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
28726 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
28728         PR rtl-optimization/59137
28729         * reorg.c (steal_delay_list_from_target): Call update_block for
28730         elided insns.
28731         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
28733 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28735         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
28736         two duplicate entries.
28738 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
28740         Revert:
28741         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
28743         * config/mips/mips.c (mips_truncated_op_cost): New function.
28744         (mips_rtx_costs): Adjust test for BADDU.
28745         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
28747         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
28749         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
28750         (*baddu_si): ...this new pattern.
28752 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
28754         PR ipa/59722
28755         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
28757 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28759         PR middle-end/57748
28760         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
28761         inner_reference_p.
28762         (expand_expr, expand_normal): Adjust.
28763         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
28764         inner_reference_p. Use inner_reference_p to expand inner references.
28765         (store_expr): Adjust.
28766         * cfgexpand.c (expand_call_stmt): Adjust.
28768 2014-01-08  Rong Xu  <xur@google.com>
28770         * gcov-io.c (gcov_var): Move from gcov-io.h.
28771         (gcov_position): Ditto.
28772         (gcov_is_error): Ditto.
28773         (gcov_rewrite): Ditto.
28774         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
28775         only part to libgcc/libgcov.h.
28777 2014-01-08  Marek Polacek  <polacek@redhat.com>
28779         PR middle-end/59669
28780         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
28782 2014-01-08  Marek Polacek  <polacek@redhat.com>
28784         PR sanitizer/59667
28785         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
28787 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
28789         PR rtl-optimization/59649
28790         * stor-layout.c (get_mode_bounds): For BImode return
28791         0 and STORE_FLAG_VALUE.
28793 2014-01-08  Richard Biener  <rguenther@suse.de>
28795         PR middle-end/59630
28796         * gimple.h (is_gimple_builtin_call): Remove.
28797         (gimple_builtin_call_types_compatible_p): New.
28798         (gimple_call_builtin_p): New overload.
28799         * gimple.c (is_gimple_builtin_call): Remove.
28800         (validate_call): Rename to ...
28801         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
28802         check return types.
28803         (validate_type): New static function.
28804         (gimple_call_builtin_p): New overload and adjust.
28805         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
28806         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
28807         (gimple_fold_stmt_to_constant_1): Likewise.
28808         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
28810 2014-01-08  Richard Biener  <rguenther@suse.de>
28812         PR middle-end/59471
28813         * gimplify.c (gimplify_expr): Gimplify register-register type
28814         VIEW_CONVERT_EXPRs to separate stmts.
28816 2014-01-07  Jeff Law  <law@redhat.com>
28818         PR middle-end/53623
28819         * ree.c (combine_set_extension): Handle case where source
28820         and destination registers in an extension insn are different.
28821         (combine_reaching_defs): Allow source and destination registers
28822         in extension to be different under limited circumstances.
28823         (add_removable_extension): Remove restriction that the
28824         source and destination registers in the extension are the same.
28825         (find_and_remove_re): Emit a copy from the extension's
28826         destination to its source after the defining insn if
28827         the source and destination registers are different.
28829         PR middle-end/59285
28830         * ifcvt.c (merge_if_block): If we are merging a block with more than
28831         one successor with a block with no successors, remove any BARRIER
28832         after the second block.
28834 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
28836         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
28838 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
28840         PR target/59652
28841         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
28842         for 14-bit register offsets when INT14_OK_STRICT is false.
28844 2014-01-07  Roland Stigge  <stigge@antcom.de>
28845             Michael Meissner  <meissner@linux.vnet.ibm.com>
28847         PR 57386/target
28848         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
28849         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
28851 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
28853         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
28854         -mcpu.
28856 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
28858         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
28859         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
28860         rtx is const0_rtx or not.
28862 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
28864         PR target/58115
28865         * target-globals.c (save_target_globals): Remove this_fn_optab
28866         handling.
28867         * toplev.c: Include optabs.h.
28868         (target_reinit): Temporarily restore the global options if another
28869         set of options are in force.
28871 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
28873         PR rtl-optimization/58668
28874         * cfgcleanup.c (flow_find_cross_jump): Don't count
28875         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
28876         to determine what is counted.
28877         (flow_find_head_matching_sequence): Use active_insn_p to determine
28878         what is counted.
28879         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
28880         counting change.
28881         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
28882         determine what is counted.
28884         PR tree-optimization/59643
28885         * tree-predcom.c (split_data_refs_to_components): If one dr is
28886         read and one write, determine_offset fails and the write isn't
28887         in the bad component, just put the read into the bad component.
28889 2014-01-07  Mike Stump  <mikestump@comcast.net>
28890             Jakub Jelinek  <jakub@redhat.com>
28892         PR pch/59436
28893         * tree-core.h (struct tree_optimization_option): Change optabs
28894         type from unsigned char * to void *.
28895         * optabs.c (init_tree_optimization_optabs): Adjust
28896         TREE_OPTIMIZATION_OPTABS initialization.
28898 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
28900         PR target/59644
28901         * config/i386/i386.h (struct machine_function): Add
28902         no_drap_save_restore field.
28903         * config/i386/i386.c (ix86_save_reg): Use
28904         !cfun->machine->no_drap_save_restore instead of
28905         crtl->stack_realign_needed.
28906         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
28907         this function clears frame_pointer_needed.  Set
28908         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
28909         and DRAP reg is needed.
28911 2014-01-06  Marek Polacek  <polacek@redhat.com>
28913         PR c/57773
28914         * doc/implement-c.texi: Mention that other integer types are
28915         permitted as bit-field types in strictly conforming mode.
28917 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
28919         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
28920         is newly allocated.
28922 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
28924         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
28926 2014-01-06  Martin Jambor  <mjambor@suse.cz>
28928         PR ipa/59008
28929         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
28930         to int.
28931         * ipa-prop.c (ipa_print_node_params): Fix indentation.
28933 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
28935         PR debug/59350
28936         PR debug/59510
28937         * var-tracking.c (add_stores): Preserve the value of the source even if
28938         we don't record the store.
28940 2014-01-06  Terry Guo  <terry.guo@arm.com>
28942         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
28944 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
28946         PR bootstrap/59541
28947         * config/darwin.c (darwin_function_section): Adjust return values to
28948         correspond to optimisation changes made in r206070.
28950 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
28952         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
28953         from prefetch_block tune setting.
28954         (nocona_cost): Correct size of prefetch block to 64.
28956 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28958         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
28959         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
28960         used to save the static chain register in the computation of the offset
28961         from which the FP registers need to be restored.
28963 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
28965         PR tree-optimization/59519
28966         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
28967         ICE if get_current_def (current_new_name) is already non-NULL, as long
28968         as it is a phi result of some other phi in *new_exit_bb that has
28969         the same argument.
28971         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
28972         or vmovdqu* for misaligned_operand.
28973         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
28974         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
28975         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
28976         aligned_mem for AVX512F masked aligned load and store builtins and for
28977         non-temporal moves.
28979 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
28981         PR tree-optimization/59651
28982         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
28983         Address range for negative step should be added by TYPE_SIZE_UNIT.
28985 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
28987         * config/m68k/m68k.c (handle_move_double): Handle pushes with
28988         overlapping registers also for registers other than the stack pointer.
28990 2014-01-03  Marek Polacek  <polacek@redhat.com>
28992         PR other/59661
28993         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
28994         __builtin_FILE.
28996 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
28998         PR target/59625
28999         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
29000         asm goto as jump.
29002         * config/i386/i386.md (MODE_SIZE): New mode attribute.
29003         (push splitter): Use <P:MODE_SIZE> instead of
29004         GET_MODE_SIZE (<P:MODE>mode).
29005         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
29006         (mov -1, reg peephole2): Likewise.
29007         * config/i386/sse.md (*mov<mode>_internal,
29008         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
29009         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
29010         *<code><mode>3, *andnot<mode>3<mask_name>,
29011         <mask_codefor><code><mode>3<mask_name>): Likewise.
29012         * config/i386/subst.md (mask_mode512bit_condition,
29013         sd_mask_mode512bit_condition): Likewise.
29015 2014-01-02  Xinliang David Li  <davidxl@google.com>
29017         PR tree-optimization/59303
29018         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
29019         (dump_predicates): Better output format.
29020         (pred_equal_p): New function.
29021         (is_neq_relop_p): Ditto.
29022         (is_neq_zero_form_p): Ditto.
29023         (pred_expr_equal_p): Ditto.
29024         (pred_neg_p): Ditto.
29025         (simplify_pred): Ditto.
29026         (simplify_preds_2): Ditto.
29027         (simplify_preds_3): Ditto.
29028         (simplify_preds_4): Ditto.
29029         (simplify_preds): Ditto.
29030         (push_pred): Ditto.
29031         (push_to_worklist): Ditto.
29032         (get_pred_info_from_cmp): Ditto.
29033         (is_degenerated_phi): Ditto.
29034         (normalize_one_pred_1): Ditto.
29035         (normalize_one_pred): Ditto.
29036         (normalize_one_pred_chain): Ditto.
29037         (normalize_preds): Ditto.
29038         (normalize_cond_1): Remove function.
29039         (normalize_cond): Ditto.
29040         (is_gcond_subset_of): Ditto.
29041         (is_subset_of_any): Ditto.
29042         (is_or_set_subset_of): Ditto.
29043         (is_and_set_subset_of): Ditto.
29044         (is_norm_cond_subset_of): Ditto.
29045         (pred_chain_length_cmp): Ditto.
29046         (convert_control_dep_chain_into_preds): Type change.
29047         (find_predicates): Ditto.
29048         (find_def_preds): Ditto.
29049         (destroy_predicates_vecs): Ditto.
29050         (find_matching_predicates_in_rest_chains): Ditto.
29051         (use_pred_not_overlap_with_undef_path_pred): Ditto.
29052         (is_pred_expr_subset): Ditto.
29053         (is_pred_chain_subset_of): Ditto.
29054         (is_included_in): Ditto.
29055         (is_superset_of): Ditto.
29057 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
29059         Update copyright years.
29061 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
29063         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
29064         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
29065         config/arc/arc.md, config/arc/arc.opt,
29066         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
29067         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
29068         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
29069         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
29070         config/linux-protos.h, config/linux.c, config/winnt-c.c,
29071         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
29072         vtable-verify.c, vtable-verify.h: Use the standard form for the
29073         copyright notice.
29075 2014-01-02  Tobias Burnus  <burnus@net-b.de>
29077         * gcc.c (process_command): Update copyright notice dates.
29078         * gcov-dump.c: Ditto.
29079         * gcov.c: Ditto.
29080         * doc/cpp.texi: Bump @copying's copyright year.
29081         * doc/cppinternals.texi: Ditto.
29082         * doc/gcc.texi: Ditto.
29083         * doc/gccint.texi: Ditto.
29084         * doc/gcov.texi: Ditto.
29085         * doc/install.texi: Ditto.
29086         * doc/invoke.texi: Ditto.
29088 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29090         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
29092 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
29094         * config/i386/sse.md (*mov<mode>_internal): Guard
29095         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
29097         PR rtl-optimization/59647
29098         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
29099         new_rtx into UNSIGNED_FLOAT rtxes.
29101 Copyright (C) 2014 Free Software Foundation, Inc.
29103 Copying and distribution of this file, with or without modification,
29104 are permitted in any medium without royalty provided the copyright
29105 notice and this notice are preserved.