2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
[official-gcc.git] / gcc / ChangeLog
blob9d37057c94d6de81799a8fd487e4553bd7937e93
1 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
3         PR target/63165
4         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
5         indexed_or_indirect_operand instead of memory_operand.
6         (floatsi<mode>2_lfiwzx_mem): Ditto.
8 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
10         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
11         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
12         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
14 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
16         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
17         rtx.
18         (get_last_nonnote_insn): Likewise.
19         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
20         * resource.c (find_basic_block): Likewise.
21         * rtl.h: Adjust.
22         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
23         const_rtx.
25 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
27         * genattr.c (main): Within the prototype of insn_latency written
28         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
29         * genautomata.c (output_internal_maximal_insn_latency_func):
30         Within the implementation of insn_latency written out to
31         insn-automata.c, strengthen both params from rtx to rtx_insn *,
32         eliminating a pair of checked casts.
34 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
36         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
37         rtx_insn *.
39         * rtl.h (eh_returnjump_p): Likewise.
41 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
43         * Makefile.in (TAGS): Handle constructs in timevar.def.
45 2014-09-04  Guozhi Wei  <carrot@google.com>
47         PR target/62040
48         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
49         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
50         it into two patterns.
51         (move_lo_quad_internal_be_<mode>): Likewise.
53 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
55         * doc/options.texi: Document that Var and Init are required if CPP
56         is given.
57         * optc-gen.awk: Require Var and Init if CPP is given.
58         * common.opt (Wpedantic): Use Init.
60 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
62         * config/rs6000/rs6000.c (special_handling_values): Add
63         SH_EXTRACT.
64         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
65         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
66         as swappable with special handling SH_EXTRACT.  Remove
67         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
68         optimization.
69         (adjust_extract): New function.
70         (handle_special_swappables): Add default to case statement; add
71         case for SH_EXTRACT that calls adjust_extract.
72         (dump_swap_insn_table): Handle SH_EXTRACT.
74 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
76         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
77         selection of 0th memory doubleword, regardless of endianness.
79 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
81         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
83 2014-09-04  Alan Modra  <amodra@gmail.com>
85         PR debug/60655
86         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
87         can't be output.
89 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
91         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
92         * targhooks.c (default_dwarf_frame_reg_mode): New function.
93         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
94         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
95         * doc/tm.texi: Regenerate.
96         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
97         selection logic to default_dwarf_frame_reg_mode.
99 2014-09-03  Marek Polacek  <polacek@redhat.com>
101         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
102         by -Wall.
104 2014-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
106         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
107         the automodified register.
109 2014-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
111         * output.h (get_some_local_dynamic_name): Declare.
112         * final.c (some_local_dynamic_name): New variable.
113         (get_some_local_dynamic_name): New function.
114         (final_end_function): Clear some_local_dynamic_name.
115         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
116         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
117         (print_operand): Report an error if '%&' is used inappropriately.
118         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
119         (get_some_local_dynamic_name_1): Delete.
120         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
121         (rs6000_get_some_local_dynamic_name): Delete.
122         (rs6000_get_some_local_dynamic_name_1): Delete.
123         (print_operand): Report an error if '%&' is used inappropriately.
124         * config/s390/s390.c (machine_function): Remove some_ld_name.
125         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
126         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
127         * config/sparc/sparc.c: Include rtl-iter.h.
128         (machine_function): Remove some_ld_name.
129         (sparc_print_operand): Report an error if '%&' is used inappropriately.
130         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
132 2014-09-03  Richard Henderson  <rth@redhat.com>
134         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
135         (aarch64_popwb_pair_reg): Remove.
136         (aarch64_set_frame_expr): Remove.
137         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
138         the restore ops performed by the insns generated.
139         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
140         insn.  Perform the calls_eh_return addition later; do not attempt to
141         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
142         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
143         special markup at all.  Load cfun->machine->frame.hard_fp_offset
144         into a local variable.
145         (aarch64_frame_pointer_required): Don't check calls_alloca.
147 2014-09-03  Richard Biener  <rguenther@suse.de>
149         * opts.c (default_options_optimization): Adjust
150         max-combine-insns to 2 for -Og.
152 2014-09-03  Martin Jambor  <mjambor@suse.cz>
154         PR ipa/62015
155         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
156         pass-trough jump functions correctly.
158 2014-09-03  Martin Jambor  <mjambor@suse.cz>
160         PR ipa/61986
161         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
162         created replacements in ascending order of offsets.
163         (known_aggs_to_agg_replacement_list): Likewise.
165 2014-09-03  Martin Liska  <mliska@suse.cz>
167         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
168         is set to set uninitialized value for vnresult.
170 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
172         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
173         for TARGET_MUST_PASS_IN_STACK.
175 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
177         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
178         for TARGET_ARG_PARTIAL_BYTES.
180 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
182         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
183         instructions for varargs implementation.
184         (nds32_expand_epilogue): Emit stack adjustment instructions for
185         varargs implementation.
187 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
189         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
190         optimization detection.
192 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
194         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
195         arguments.
196         (nds32_function_arg_advance): Deal with nameless arguments.
197         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
198         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
199         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
201 2014-09-03  Richard Biener  <rguenther@suse.de>
203         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
204         (struct bb_bitmap_sets): Remove deferred member.
205         (BB_DEFERRED): Remove.
206         (defer_or_phi_translate_block): Remove.
207         (compute_antic_aux): Remove deferring of blocks, assert
208         proper iteration order.
209         (compute_antic): Do not set BB_DEFERRED.
210         (eliminate): Allocate el_avail of proper size initially.
212 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
214         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
215         according to the value of crtl->args.pretend_args_size.
217 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
219         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
220         varargs information.
222 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
224         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
225         implementation for TARGET_SETUP_INCOMING_VARARGS.
226         (nds32_strict_argument_naming): Refine comment.
227         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
228         Define for future implementation.
230 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
232         * config/i386/adxintrin.h (_subborrow_u32): New.
233         (_addcarry_u32): Ditto.
234         (_subborrow_u64): Ditto.
235         (_addcarry_u64): Ditto.
236         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
237         IX86_BUILTIN_SBB64.
238         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
239         __builtin_ia32_sbb_u64
241 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
243         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
244         GPR-specific stuff.
245         (nds32_function_arg_advance): Likewise.
246         (nds32_init_cumulative_args): Likewise.
247         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
248         (NDS32_FIRST_GPR_REGNUM): Define.
249         (NDS32_LAST_GPR_REGNUM): Define.
250         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
251         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
252         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
253         (machine_function): Use GRP-specific stuff.
255 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
257         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
258         (nds32_expand_epilogue): Likewise.
259         (nds32_expand_prologue_v3push): Likewise.
260         (nds32_expand_epilogue_v3pop): Likewise.
262 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
264         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
265         v3push/v3pop for variadic function.
266         * config/nds32/nds32.md (prologue, epilogue): Likewise.
268 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
270         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
271         Check rtx for varargs implementation.
272         (nds32_output_stack_pop): Likewise.
273         * config/nds32/nds32-protos.h: Have a rtx argument for
274         nds32_output_stack_push and nds32_output_stack_pop.
275         * config/nds32/nds32.md: Likewise.
277 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
279         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
280         to check if FUNC is an interrupt service routine.
281         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
283 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
285         * config/nds32/nds32.h (machine_function): Add some fields for variadic
286         arguments implementation.
288 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
290         * config/nds32/nds32-predicates.c
291         (nds32_valid_stack_push_pop): Rename to ...
292         (nds32_valid_stack_push_pop_p): ... this.
293         * config/nds32/nds32-protos.h: Likewise.
294         * config/nds32/predicates.md: Likewise.
296 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
298         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
299         (nds32_emit_stack_v3push): ... this.
300         (nds32_gen_stack_v3pop): Rename to ...
301         (nds32_emit_stack_v3pop): ... this and consider CFA restore
302         information.
304 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
306         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
307         (nds32_emit_stack_push_multiple): ... this.
308         (nds32_gen_stack_pop_multiple): Rename to ...
309         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
310         information.
312 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
314         PR target/61078
315         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
316         and add a second splitter to handle the remaining cases.
318 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
320         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
322 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
324         * cfgexpand.c (label_rtx_for_bb): Change type to
325         hash_map<basic_block, rtx_code_label *> *.
326         (expand_gimple_basic_block): Adjust.
327         (pass_expand::execute): Likewise.
329 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
331         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
332         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
333         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
334         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
335         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
336         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
337         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
338         of rtx.
340 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
342         * alloc-pool.c: Include coretypes.h.
343         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
344         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
345         hash_set instead of htab.
346         * ggc-page.c (in_gc): New variable.
347         (ggc_free): Do nothing if a collection is taking place.
348         (ggc_collect): Set in_gc appropriately.
349         * ggc.h (gt_ggc_mx(const char *)): New function.
350         (gt_pch_nx(const char *)): Likewise.
351         (gt_ggc_mx(int)): Likewise.
352         (gt_pch_nx(int)): Likewise.
353         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
354         (hash_map::hash_entry::pch_nx): Likewise.
355         (hash_map::hash_entry::pch_nx_helper): Likewise.
356 (hash_map::hash_map): Adjust.
357 (hash_map::create_ggc): New function.
358 (gt_ggc_mx): Likewise.
359 (gt_pch_nx): Likewise.
360         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
361 (default_hashset_traits::pch_nx): Likewise.
362 (hash_set::hash_entry::ggc_mx): Likewise.
363 (hash_set::hash_entry::pch_nx): Likewise.
364 (hash_set::hash_entry::pch_nx_helper): Likewise.
365 (hash_set::hash_set): Adjust.
366 (hash_set::create_ggc): New function.
367 (hash_set::elements): Likewise.
368 (gt_ggc_mx): Likewise.
369 (gt_pch_nx): Likewise.
370         * hash-table.h (hash_table::hash_table): Adjust.
371 (hash_table::m_ggc): New member.
372         (hash_table::~hash_table): Adjust.
373         (hash_table::expand): Likewise.
374         (hash_table::empty): Likewise.
375 (gt_ggc_mx): New function.
376         (hashtab_entry_note_pointers): Likewise.
377 (gt_pch_nx): Likewise.
379 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
381         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
382         built-in definition.
383         (XVCVUXDDP_SCALE): Likewise.
384         (XVCVDPSXDS_SCALE): Likewise.
385         (XVCVDPUXDS_SCALE): Likewise.
386         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
387         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
388         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
389         VSX_BUILTIN_XVCVDPUXDS_SCALE.
390         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
391         prototype.
392         * config/rs6000/rs6000.c (real.h): New include.
393         (rs6000_scale_v2df): New function.
394         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
395         (UNSPEC_VSX_XVCVUXDDP): Likewise.
396         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
397         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
398         (vsx_xvcvsxddp_scale): New define_expand.
399         (vsx_xvcvsxddp): New define_insn.
400         (vsx_xvcvuxddp_scale): New define_expand.
401         (vsx_xvcvuxddp): New define_insn.
402         (vsx_xvcvdpsxds_scale): New define_expand.
403         (vsx_xvcvdpsxds): New define_insn.
404         (vsx_xvcvdpuxds_scale): New define_expand.
405         (vsx_xvcvdpuxds): New define_insn.
406         * doc/extend.texi (vec_ctf): Add new prototypes.
407         (vec_cts): Likewise.
408         (vec_ctu): Likewise.
409         (vec_splat): Likewise.
410         (vec_div): Likewise.
411         (vec_mul): Likewise.
413 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
415         PR target/62275
416         * config/arm/neon.md
417         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
418         <v_cmp_result>): New pattern.
419         * config/arm/iterators.md (NEON_VCVT): New int iterator.
420         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
421         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
422         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
423         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
424         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
426 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
428         PR target/62275
429         * config/arm/iterators.md (FIXUORS): New code iterator.
430         (VCVT): New int iterator.
431         (su_optab): New code attribute.
432         (su): Likewise.
433         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
435 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
437         * config/aarch64/predicates.md (aarch64_comparison_operation):
438         New special predicate.
439         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
440         aarch64_comparison_operation instead of matching an operator.
441         Update operand numbers.
442         (csinc3<mode>_insn): Likewise.
443         (*csinv3<mode>_insn): Likewise.
444         (*csneg3<mode>_insn): Likewise.
445         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
446         * config/aarch64/aarch64.c (aarch64_get_condition_code):
447         Return -1 instead of aborting on invalid condition codes.
448         (aarch64_print_operand): Update aarch64_get_condition_code callsites
449         to assert that the returned condition code is valid.
450         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
452 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
454         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
455         tree.def, and gimple.def
457 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
458             Balaji V. Iyer  <balaji.v.iyer@intel.com>
459             Igor Zamyatin  <igor.zamyatin@intel.com>
461         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
462         (__cilkrts_cilk_for_64): Likewise.
463         * cilk-common.c (declare_cilk_for_builtin): New function.
464         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
465         __cilkrts_cilk_for_64 bultins.
466         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
467         CILK_TI_F_LOOP_64.
468         (cilk_for_32_fndecl): New define.
469         (cilk_for_64_fndecl): Likewise.
470         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
471         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
472         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
473         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
474         GF_OMP_FOR_COMBINED_INTO.
475         * gimplify.c (gimplify_scan_omp_clauses): Added
476         OMP_CLAUSE__CILK_FOR_COUNT_ case.
477         (gimplify_adjust_omp_clauses): Ditto.
478         (gimplify_omp_for): Added CILK_FOR case.
479         (gimplify_expr): Ditto.
480         * omp-low.c: Include cilk.h.
481         (extract_omp_for_data): Set appropriate kind for
482         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
483         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
484         (create_omp_child_function_name): Added second argument to handle
485         cilk_for case.
486         (cilk_for_check_loop_diff_type): New function.
487         (expand_cilk_for_call): Likewise.
488         (expand_cilk_for): Likewise.
489         (create_omp_child_function): Set cilk_for_count; handle the cases when
490         it is true; call create_omp_child_function_name with second argument.
491         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
492         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
493         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
494         * tree-nested.c (convert_nonlocal_omp_clauses): Added
495         OMP_CLAUSE__CILK_FOR_COUNT_ case.
496         (convert_local_omp_clauses): Ditto.
497         * tree-pretty-print.c (dump_omp_clause): Added
498         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
499         (dump_generic_node): Added CILK_FOR case.
500         * tree.c (omp_clause_num_ops): New element
501         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
502         (omp_clause_code_name): New element _Cilk_for_count_.
503         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
504         * tree.def: Add tree code for CILK_FOR.
506 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
508         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
509         (ppc403-compare): Add "exts with dot" case.
510         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
511         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
512         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
513         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
514         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
515         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
516         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
517         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
518         cell-cmp-microcoded): Similarly.
519         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
520         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
521         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
522         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
523         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
524         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
525         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
526         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
527         (power6-compare): Add "exts with dot" case.
528         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
529         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
530         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
532         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
533         if avoiding Cell microcode.
534         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
535         (is_cracked_insn): Ditto.
536         (insn_must_be_first_in_group): Ditto.
537         * config/rs6000/rs6000.md (dot): Adjust comment.
538         (cell_micro): Handle exts+dot.
539         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
540         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
541         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
542         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
543         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
544         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
545         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
547 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
549         * config/rs6000/rs6000.md (QHSI): Delete.
550         (EXTQI, EXTHI, EXTSI): New mode iterators.
551         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
552         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
553         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
554         9 anonymous instructions, and 8 splitters): Delete.
555         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
556         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
557         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
558         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
559         *zero_extendsi<mode>2_dot2): New.
561 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
563         * config/rs6000/rs6000.md (any_extend): New code iterator.
564         (u, su): New code attributes.
565         (dmode, DMODE): New mode attributes.
566         (<su>mul<mode>3_highpart): New.
567         (*<su>mul<mode>3_highpart): New.
568         (<su>mulsi3_highpart_le): New.
569         (<su>muldi3_highpart_le): New.
570         (<su>mulsi3_highpart_64): New.
571         (<u>mul<mode><dmode>3): New.
572         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
573         splitters): Delete.
574         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
575         splitters): Delete.
577 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
579         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
580         *mulsi3_internal2, and two splitters): Delete.
581         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
582         Delete.
583         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
585 2014-09-02  Richard Biener  <rguenther@suse.de>
587         PR tree-optimization/62695
588         * tree-ssa-structalias.c (find_func_clobbers): Add missing
589         vector truncate.
591 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
593         PR target/62312
594         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
596 2014-09-01  Andi Kleen  <ak@linux.intel.com>
598         * file-find.c (add_prefix_begin): Add.
599         (do_add_prefix): Rename from add_prefix with first argument.
600         (add_prefix): Add new wrapper.
601         * file-find.h (add_prefix_begin): Add.
602         * gcc-ar.c (main): Support -B option.
604 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
606         * genemit.c: Include dumpfile.h.
607         (gen_split): Print name of splitter function to dump file.
609 2014-09-01  Richard Biener  <rguenther@suse.de>
611         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
612         Use stack auto_vecs for constraint expressions.
613         (find_func_aliases_for_call): Likewise.
614         (find_func_aliases): Likewise.
615         (find_func_clobbers): Likewise.
617 2014-09-01  Richard Biener  <rguenther@suse.de>
619         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
620         operands vector in most cases.  Remove redundant code.
622 2014-09-01  Olivier Hainque  <hainque@adacore.com>
624         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
625         $WIND_BASE instead of designating a harcoded arbitrary home dir.
626         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
628 2014-09-01  Richard Biener  <rguenther@suse.de>
630         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
631         copy_reference_ops_from_call, vn_nary_op_compute_hash,
632         vn_reference_compute_hash, vn_reference_insert): Remove.
633         (vn_reference_lookup_call): New function.
634         * tree-ssa-sccvn.c (vn_reference_compute_hash,
635         copy_reference_ops_from_ref, copy_reference_ops_from_call,
636         vn_reference_insert, vn_nary_op_compute_hash): Make static.
637         (create_reference_ops_from_call): Remove.
638         (vn_reference_lookup_3): Properly update shared_lookup_references.
639         (vn_reference_lookup_pieces): Assert that we updated
640         shared_lookup_references properly.
641         (vn_reference_lookup): Likewise.
642         (vn_reference_lookup_call): New function.
643         (visit_reference_op_call): Use it.  Avoid re-building the
644         reference ops.
645         (visit_reference_op_load): Remove redundant lookup.
646         (visit_reference_op_store): Perform special tail-merging work
647         only when possibly doing tail-merging.
648         (visit_use): Likewise.
649         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
651 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
653         PR target/62025
654         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
655         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
656         (find_inc): Revert 2014-08-13 change.
658 2014-09-01  Marek Polacek  <polacek@redhat.com>
660         PR middle-end/61903
661         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
662         Change the type of V to unsigned HOST_WIDE_INT.
664 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
666         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
667         the size of byte markers.
668         (do_shift_rotate): Fix confusion between host, target and marker byte
669         size.
670         (verify_symbolic_number_p): Likewise.
671         (find_bswap_or_nop_1): Likewise.
672         (find_bswap_or_nop): Likewise.
674 2014-09-01  Olivier Hainque  <hainque@adacore.com>
676         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
677         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
679 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
681         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
682         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
683         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
685 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
687         PR sanitizer/61897
688         PR sanitizer/62140
689         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
690         (build_check_stmt): Likewise.
691         (instrument_strlen_call): Likewise.
692         (asan_expand_check_ifn): Likewise and fix types.
693         (maybe_cast_to_ptrmode): New function.
695 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
697         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
699 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
701         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
703 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
705         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
706         prefix to function labels when generating fast indirect calls.
708 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
710         PR bootstrap/62304
712         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
713         param back from rtx_insn * to rtx.  Rename param from "label" to
714         "label_or_return", reintroducing "label" as an rtx_insn * after
715         we've ensured it's not a RETURN.
716         (first_active_target_insn): Likewise for return type and param;
717         add a checked cast to rtx_insn * once we've ensured "insn" is not
718         a RETURN.
719         (steal_delay_list_from_target): Convert param "pnew_thread" back
720         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
721         with JUMP_LABEL.
722         (own_thread_p): Convert param "thread" back from an rtx_insn * to
723         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
724         cast once we've established we're not dealing with a RETURN,
725         renaming subsequent uses of "thread" to "thread_insn".
726         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
727         to JUMP_LABEL.
728         (follow_jumps): Convert return type and param "label" from
729         rtx_insn * back to rtx.  Move initialization of "value" to after
730         the handling for ANY_RETURN_P, adding a checked cast there to
731         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
732         rename to "this_label_or_return", reintroducing "this_label" as
733         an rtx_insn * once we've handled the case where it could be an
734         ANY_RETURN_P.
735         (fill_slots_from_thread): Rename param "thread" to
736         "thread_or_return", converting from an rtx_insn * back to an rtx.
737         Reintroduce name "thread" as an rtx_insn * local with a checked
738         cast once we've handled the case of it being an ANY_RETURN_P.
739         Convert local "new_thread" from an rtx_insn * back to an rtx.
740         Add a checked cast when assigning to "trial" from "new_thread".
741         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
742         checked cast to rtx_insn * from "new_thread" when invoking
743         get_label_before.
744         (fill_eager_delay_slots): Convert locals "target_label",
745         "insn_at_target" from rtx_insn * back to rtx.
746         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
747         (relax_delay_slots): Convert locals "trial", "target_label" from
748         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
749         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
750         invoking update_block.
751         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
752         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
754         * resource.h (mark_target_live_regs): Undo erroneous conversion
755         of second param of r214693, converting it back from rtx_insn * to
756         rtx, since it could be a RETURN.
758         * resource.c (find_dead_or_set_registers): Similarly, convert
759         param "jump_target" back from an rtx_insn ** to an rtx *, as we
760         could be writing back a RETURN.  Rename local rtx_insn * "next" to
761         "next_insn", and introduce "lab_or_return" as a local rtx,
762         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
763         (mark_target_live_regs): Undo erroneous conversion
764         of second param of r214693, converting it back from rtx_insn * to
765         rtx, since it could be a RETURN.  Rename it from "target" to
766         "target_maybe_return", reintroducing the name "target" as a local
767         rtx_insn * with a checked cast, after we've handled the case of
768         ANY_RETURN_P.
770 2014-08-29  DJ Delorie  <dj@redhat.com>
772         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
773         pointer size up to a power of two.
774         * defaults.h (DWARF2_ADDR_SIZE): Round up.
775         (POINTER_SIZE_UNITS): New, rounded up value.
776         * dwarf2asm.c (size_of_encoded_value): Use it.
777         (dw2_output_indirect_constant_1): Likewise.
778         * expmed.c (init_expmed_one_conv): We now know the sizes of
779         partial int modes.
780         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
781         * optabs.c (expand_float): Use precision, not size.
782         (expand_fix): Likewise.
783         * simplify-rtx (simplify_unary_operation_1): Likewise.
784         * tree-dfa.c (get_ref_base_and_extent): Likewise.
785         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
786         (default_assemble_integer) Likewise.
787         (dump_tm_clone_pairs): Likewise.
788         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
789         * var-tracking.c (adjust_mems): Allow partial-int modes also.
790         (prepare_call_arguments): Likewise.
791         * stor-layout.c (finalize_type_size): Preserve precision.
792         (layout_type): Use precision, not size.
794         * expr.c (convert_move): If the target has an explicit converter,
795         use it.
797 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
799         * gdbinit.in: Skip various inline functions in rtl.h when
800         stepping.
802 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
804         PR bootstrap/62301
805         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
807 2014-08-29  Richard Biener  <rguenther@suse.de>
809         PR tree-optimization/62291
810         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
811         exactly the vector size needed and use quick_push.
812         (phi_translate_1): Adjust comment.
813         (valid_in_sets): Remove block argument and remove pointless
814         checking of NAMEs.
815         (dependent_clean): Adjust for removal of block argument.
816         (clean): Likewise.
817         (compute_antic_aux): Likewise.
818         (compute_partial_antic_aux): Likewise.
820 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
821             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
822             Anna Tikhonova  <anna.tikhonova@intel.com>
823             Ilya Tocar  <ilya.tocar@intel.com>
824             Andrey Turetskiy  <andrey.turetskiy@intel.com>
825             Ilya Verbin  <ilya.verbin@intel.com>
826             Kirill Yukhin  <kirill.yukhin@intel.com>
827             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
829         * config/i386/sse.md
830         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
831         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
832         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
833         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
835 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
836             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
837             Anna Tikhonova  <anna.tikhonova@intel.com>
838             Ilya Tocar  <ilya.tocar@intel.com>
839             Andrey Turetskiy  <andrey.turetskiy@intel.com>
840             Ilya Verbin  <ilya.verbin@intel.com>
841             Kirill Yukhin  <kirill.yukhin@intel.com>
842             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
844         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
845         * config/i386/sse.md
846         (define_mode_iterator VI4_128_8_256): New.
847         (define_mode_iterator VI2_128_4_256): Ditto.
848         (define_mode_iterator PMOV_DST_MODE): Rename into
849         (define_mode_iterator PMOV_DST_MODE_1): this.
850         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
851         Use PMOV_DST_MODE_1 mode iterator.
852         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
853         Ditto.
854         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
855         Ditto.
856         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
857         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
858         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
859         (define_mode_iterator PMOV_DST_MODE_2): New.
860         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
861         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
862         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
863         Ditto.
864         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
865         (define_mode_attr pmov_dst_3): Ditto.
866         (define_mode_attr pmov_dst_zeroed_3): Ditto.
867         (define_mode_attr pmov_suff_3): Ditto.
868         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
869         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
870         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
871         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
872         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
873         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
874         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
875         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
876         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
877         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
878         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
879         (define_mode_attr pmov_dst_4): Ditto.
880         (define_mode_attr pmov_dst_zeroed_4): Ditto.
881         (define_mode_attr pmov_suff_4): Ditto.
882         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
883         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
884         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
885         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
886         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
887         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
888         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
889         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
890         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
891         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
892         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
894 2014-08-29  Richard Biener  <rguenther@suse.de>
896         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
897         NON_LVALUE_EXPR in gimple.
899 2014-08-29  Richard Biener  <rguenther@suse.de>
901         PR middle-end/62292
902         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
903         from previous refactoring.
904         (gimple_fold_builtin_strncpy): Likewise.
906 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
908         PR bootstrap/62300
909         * function.c (assign_parm_setup_reg): Remove erroneous checked
910         cast to rtx_insn * on result of gen_extend_insn in favor of
911         introducing a new local rtx "pat".
913 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
915         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
916         to silence warning.
917         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
919 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
921         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
922         (next_insn): Likewise.
923         * emit-rtl.c (next_insn): Likewise.
924         (previous_insn): Likewise.
925         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
926         "insn" and "next" from rtx to rtx_insn *.
927         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
928         "insn", "insn1", "vliw_start",  "prologue_end_note",
929         "last_insn_in_packet".
931 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
933         * shrink-wrap.h (active_insn_between): Strengthen both params from
934         rtx to rtx_insn *.
935         * function.c (active_insn_between): Likewise.
937 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
939         * genattr.c (main): When writing out insn-attr.h, strengthen param
940         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
941         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
942         writing out the definition of dfa_clear_single_insn_cache to the
943         generated insn-automata.c
945 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
947         * resource.h (clear_hashed_info_for_insn): Strengthen param from
948         rtx to rtx_insn *.
949         (incr_ticks_for_insn): Likewise.
950         (init_resource_info): Likewise.
952         * resource.c (init_resource_info): Likewise.
953         (clear_hashed_info_for_insn): Likewise.
954         (incr_ticks_for_insn): Likewise.
956         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
957         rtx to rtx_insn *.
958         (steal_delay_list_from_target): Use methods of "seq".
959         (try_merge_delay_insns): Use methods of "merged_insns".
960         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
961         (reorg_redirect_jump): Likewise for param "jump".
963 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
965         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
966         rtx to rtx_insn *.
967         * config/s390/s390.c (s390_split_branches): Eliminate top-level
968         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
969         "set_insn".
970         (s390_mainpool_finish): In three places, split out a local rtx
971         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
972         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
973          and split another local rtx "insn" out into rtx "pat" and
974         rtx_insn * "insn".
975         * config/sh/sh.c (output_branchy_insn): Rather than working
976         directly on operands[9], introduce local rtx_code_label *
977         variables named "lab" in two places, working on them, and then
978         assigning them to operands[9], so that the intervening operations
979         are known by the type system to be on insns.
981 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
983         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
984         const rtx_insn *.
986         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
987         in invocation of INSN_HAS_LOCATION.
989 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
991         * config/rs6000/altivec.h (vec_xl): New #define.
992         (vec_xst): Likewise.
993         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
994         (XXSPLTD_V2DI): Likewise.
995         (DIV_V2DI): Likewise.
996         (UDIV_V2DI): Likewise.
997         (MUL_V2DI): Likewise.
998         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
999         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
1000         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
1001         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
1002         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
1003         (UNSPEC_VSX_DIVSD): Likewise.
1004         (UNSPEC_VSX_DIVUD): Likewise.
1005         (UNSPEC_VSX_MULSD): Likewise.
1006         (vsx_mul_v2di): New insn-and-split.
1007         (vsx_div_v2di): Likewise.
1008         (vsx_udiv_v2di): Likewise.
1009         (vsx_xxspltd_<mode>): New insn.
1011 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1013         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
1014         NEXT_INSN.
1015         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
1016         (NEXT_INSN): Likewise.
1017         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
1018         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
1019         const rtx_insn *.
1020         (no_labels_between_p): Likewise for both params.
1022         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
1023         cast when using NEXT_INSN on operands[2].
1024         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
1025         "insn" from rtx to rtx_insn *, adding a checked cast.
1026         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
1027         rtx_insn *.
1028         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
1029         for third param.
1030         (arc_text_label): Likewise for param "insn".
1031         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
1032         "insn".
1033         (arc_ccfsm_record_condition): Likewise for param "jump".
1034         (arc_text_label): Likewise for local "label".
1035         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
1036         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
1037         a method for typesafety.  Add a checked cast.
1038         * config/arc/constraints.md (Clb): Add a checked cast when getting
1039         the CODE_LABEL from a LABEL_REF.
1040         * config/arm/arm.c (require_pic_register): Strengthen locals
1041         "seq", "insn" from rtx to rtx_insn *.
1042         (create_fix_barrier): Likewise for locals "selected", "next".
1043         (thumb1_reorg): Likewise for locals "prev", "insn".
1044         (arm_expand_prologue): Likewise for local "last".
1045         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
1046         operands[0].
1047         (thumb2_output_casesi): Likewise for operands[2].
1048         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
1049         strengthen local "insn" from rtx to rtx_insn *.
1050         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
1051         type and param "insn".
1052         (find_prev_insn_start): Likewise.
1053         (hwloop_optimize): Likewise for locals "insn", "last_insn",
1054         "prev".
1055         (gen_one_bundle): Likewise for loal "t".
1056         (find_load): Likewise for param "insn".
1057         (workaround_speculation): Likewise for locals "insn", "next",
1058         "target", "next_tgt".
1059         * config/c6x/c6x.c (assign_reservations): Likewise for both params
1060         and for locals "insn", "within", "last".
1061         (count_unit_reqs): Likewise for params "head", "tail" and local
1062         "insn".
1063         (try_rename_operands): Likewise for params "head", "tail".
1064         (reshuffle_units): Likewise for locals "head", "tail", "insn".
1065         (struct c6x_sched_context): Likewise for fields
1066         "last_scheduled_insn", "last_scheduled_iter0".
1067         (init_sched_state): Replace NULL_RTX with NULL.
1068         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
1069         to rtx_insn *.
1070         (undo_split_delayed_nonbranch): Likewise for param and for local
1071         "prev".
1072         (conditionalize_after_sched): Likewise for local "insn".
1073         (bb_earliest_end_cycle): Likewise.
1074         (filter_insns_above): Likewise for locals "insn", "next".
1075         (hwloop_optimize): Remove redundant checked cast.
1076         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
1077         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
1078         NULL_RTX with NULL.
1079         (cris_simple_epilogue): Likewise.
1080         (cris_expand_prologue): Likewise.
1081         (cris_expand_epilogue): Likewise.
1082         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
1083         local "insn" from rtx to rtx_insn *.
1084         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
1085         (struct frv_packet_group): Likewise for the elements within array
1086         fields "insns", "sorted", and for field "nop".
1087         (frv_packet): Likewise for the elements within array field
1088         "insns".
1089         (frv_add_insn_to_packet): Likewise for param "insn".
1090         (frv_insert_nop_in_packet): Likewise for param "insn" and local
1091         "last".
1092         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
1093         (frv_sort_insn_group_1): Likewise for local "insn".
1094         (frv_optimize_membar_local): Likewise.
1095         (frv_align_label): Likewise for locals "x", "last", "barrier",
1096         "label".
1097         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
1098         local.
1099         (ia64_sched_init): Likewise for local "insn".
1100         (scheduled_good_insn): Likewise for param "last".
1101         (struct _ia64_sched_context): Likewise for field
1102         "last_scheduled_insn".
1103         (ia64_init_sched_context): Replace NULL_RTX with NULL.
1104         (struct bundle_state): Likewise for field "insn".
1105         (issue_nops_and_insn): Likewise for param "insn".
1106         (get_next_important_insn): Likewise for return type and both
1107         params.
1108         (ia64_add_bundle_selector_before): Likewise for param "insn".
1109         (bundling): Likewise for params "prev_head_insn", "tail" and
1110         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
1111         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
1112         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
1113         Strengthen final param from rtx to rtx_insn *.
1114         (iq2000_move_1word): Likewise for second param.
1115         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
1116         param "cur_insn" and local "next_insn".
1117         (iq2000_move_1word): Likewise for param "insn".
1118         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
1119         casts when using NEXT_INSN on operands[1].
1120         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
1121         "insn" from rtx to rtx_insn *.
1122         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
1123         "x", introducing local rtx_insn * "insn" for when working with the
1124         CODE_LABEL of the LABEL_REF.
1125         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
1126         rtx_insn *.
1127         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
1128         param.
1129         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
1130         type.
1131         (conditionalize_block): Likewise for return type and param.
1132         (mcore_is_dead): Likewise for param "first" and local "insn".
1133         (emit_new_cond_insn): Likewise for return type.
1134         (conditionalize_block): Likewise for return type, param, and
1135         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
1136         "newinsn".
1137         (conditionalize_optimization): Likewise for local "insn".
1138         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
1139         using NEXT_INSN.
1140         * config/microblaze/microblaze.md: Add checked casts when using
1141         NEXT_INSN.
1142         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
1143         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
1144         and rtx_insn * "insn".
1145         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
1146         checked cast when using NEXT_INSN on operands[2].
1147         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
1148         local "insn" from rtx to rtx_insn *.
1149         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
1150         Likewise.
1151         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
1152         Add a checked cast when using NEXT_INSN on operands[1].
1153         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
1154         rtx to rtx_insn *.
1155         (pa_output_cbranch): Likewise for final param.
1156         (pa_output_lbranch): Likewise for second param.
1157         (pa_output_bb): Likewise for third param.
1158         (pa_output_bvb): Likewise.
1159         (pa_output_dbra): Likewise for second param.
1160         (pa_output_movb): Likewise.
1161         (pa_output_parallel_movb): Likewise.
1162         (pa_output_parallel_addb): Likewise.
1163         (pa_output_millicode_call): Likewise for first param.
1164         (pa_output_mul_insn): Likewise for second param.
1165         (pa_output_div_insn): Likewise for third param.
1166         (pa_output_mod_insn): Likewise for second param.
1167         (pa_jump_in_call_delay): Likewise for param.
1168         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
1169         (pa_output_div_insn): Likewise.
1170         (pa_output_mod_insn): Likewise.
1171         (pa_output_cbranch): Likewise.
1172         (pa_output_lbranch): Likewise.
1173         (pa_output_bb): Likewise.
1174         (pa_output_bvb): Likewise.
1175         (pa_output_dbra): Likewise.
1176         (pa_output_movb): Likewise.
1177         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
1178         to simplify and for typesafety.
1179         (pa_output_call): Use method of rtx_sequence *.
1180         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
1181         (pa_jump_in_call_delay): Likewise.
1182         (pa_output_parallel_movb): Likewise.
1183         (pa_output_parallel_addb): Likewise.
1184         (pa_following_call): Likewise.
1185         (pa_combine_instructions): Likewise for locals "anchor",
1186         "floater".
1187         (pa_can_combine_p): Likewise for params "anchor", "floater" and
1188         locals "start", "end".
1189         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
1190         param "insn" and local "local_insn".
1191         (picochip_final_prescan_insn): Likewise for local "local_insn".
1192         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
1193         local "insn".
1194         (uses_TOC): Likewise.
1195         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
1196         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
1197         splitting out to more tightly-scoped locals, 3 as rtx and one as
1198         rtx_insn *.
1199         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
1200         to rtx_insn *.
1201         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
1202         where needed.
1203         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
1204         to rtx_insn *.
1205         (fixup_addr_diff_vecs): Likewise.
1206         (reg_unused_after): Likewise for param 2.
1207         (sh_can_redirect_branch): Likewise for both params.
1208         (check_use_sfunc_addr): Likewise for param 1.
1209         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
1210         (find_barrier): Likewise for local "last_got".
1211         (gen_block_redirect): Likewise for return type, param "jump" and
1212         locals "prev", "scan", "next", "insn".
1213         (struct far_branch): Likewise for fields "near_label",
1214         "insert_place", "far_label".
1215         (gen_far_branch): Likewise for local "jump".
1216         (fixup_addr_diff_vecs): Likewise for param "first" and locals
1217         "insn", "prev".
1218         (barrier_align): Likewise for param and for locals "prev", "x".
1219         Introduce local rtx_sequence * "prev_seq" and use insn method for
1220         typesafety and clarity.
1221         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
1222         (get_dest_uid): Likewise for local "dest".
1223         (split_branches): Likewise for locals "next", "beyond", "label",
1224         "block", "far_label".  Add checked casts when assigning to
1225         bp->far_label and "far_label".
1226         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
1227         (sequence_insn_p): Likewise.
1228         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
1229         more loop-scoped rtx "insn" when walking LABEL_REFS.
1230         (sh_can_redirect_branch): Strengthen both params from rtx to
1231         rtx_insn *.
1232         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
1233         new local rtx_sequence * "seq" via a dyn_cast, and use a method
1234         for clarity and typesafety.
1235         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
1236         "insn" from rtx to rtx_insn *.
1237         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
1238         when using NEXT_INSN on the CODE_LABEL in operands[2].
1239         (define_insn "casesi_worker_2"): Likewise.
1240         (define_insn "casesi_shift_media"): Likewise.
1241         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
1242         operands[3].
1243         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
1244         Strengthen field "insn" from rtx to rtx_insn *.
1245         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
1246         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
1247         param "start_insn" and local "start_insn".
1248         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
1249         field "insn".
1250         (find_set_of_reg_bb): Likewise for param "insn".
1251         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
1252         (trace_reg_uses): Likewise for param "start_insn".
1253         (sh_treg_combine::cbranch_trace): Likewise for field
1254         "cbranch_insn".
1255         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
1256         param "insn".
1257         (sh_treg_combine::record_set_of_reg): Likewise for param
1258         "start_insn" and local "i".
1259         (sh_treg_combine::can_remove_cstore): Likewise for local
1260         "prev_insn".
1261         (sh_treg_combine::try_optimize_cbranch): Likewise for param
1262         "insn".
1263         (sh_treg_combine::execute): Likewise for local "i".
1264         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
1265         param.
1266         (sparc_check_64): Likewise for second param.
1267         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1268         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
1269         dyn_cast, using its insn method for typesafety and clarity.
1270         (empty_delay_slot): Strengthen param "insn" from rtx to
1271         rtx_insn *.
1272         (set_extends): Likewise.
1273         (sparc_check_64): Likewise.
1274         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
1275         for locals "seq", "last_insn".
1276         (combine_bnp): Likewise for param "insn".
1277         (xstormy16_reorg): Likewise for local "insn".
1278         * config/v850/v850.c (substitute_ep_register): Likewise for params
1279         "first_insn", "last_insn" and local "insn".
1280         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
1281         elements of "regs" array, and local "insn".
1282         * except.c (emit_note_eh_region_end): Likewise for param "insn".
1283         * final.c (final_sequence): Strengthen this global from rtx to
1284         rtx_sequence *.
1285         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
1286         rtx_insn *.
1287         (final_scan_insn): Update assignment to "final_sequence" to be
1288         from "seq", the cast version of "body", for type-safety.
1289         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
1290         "insns" from rtx to rtx_insn *.
1291         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
1292         * genattr.c (main): When writing out generated insn-attr.h,
1293         strengthen params 1 and 3 of eligible_for_delay,
1294         eligible_for_annul_true, eligible_for_annul_false from rtx to
1295         rtx_insn *.
1296         * genattrtab.c (write_eligible_delay): Likewise when writing out
1297         generated insn-attrtab.c; also local "insn" the generated
1298         functions.
1299         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
1300         to rtx_insn *.
1301         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
1302         "start_label" from rtx to rtx_insn *.
1303         * ira.c (decrease_live_ranges_number): Likewise for local "p".
1304         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
1305         "insns" and local "insn".
1306         (validate_equiv_mem): Likewise for param "start" and local "insn".
1307         (memref_used_between_p): Likewise for params "start", "end" and
1308         local "insn".
1309         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
1310         final param.
1311         * loop-doloop.c (doloop_optimize): Within region guarded by
1312         INSN_P (doloop_pat), introduce a new local rtx_insn *
1313         "doloop_insn" via a checked cast, and use it for typesafety,
1314         eventually writing the value back into doloop_pat.
1315         * output.h (final_sequence): Strengthen this global from rtx to
1316         rtx_sequence *.
1317         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
1318         reintroducing "insn" as an rtx_insn * via a checked cast.
1319         Strengthen param "attempt" and local "new_insn"from rtx to
1320         rtx_insn *.
1321         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
1322         to rtx_insn *.
1323         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
1324         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
1325         "p" in favor of more tightly-scoped replacements, sometimes rtx
1326         and sometimes rtx_insn *, as appropriate.
1327         (delete_output_reload): Eliminate top-level rtx "i1", splitting
1328         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
1329         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
1330         local "trial" from rtx to rtx_insn *.
1331         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
1332         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
1333         rtx_sequence * and use methods for clarity and typesafety.
1334         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
1335         rtx to rtx_insn *.  Strenghten local "li" from rtx to
1336         rtx_insn_list * and use its methods for clarity and typesafety.
1337         (steal_delay_list_from_target): Strengthen param "insn" from rtx
1338         to rtx_insn *.
1339         (steal_delay_list_from_fallthrough): Likewise.
1340         (try_merge_delay_insns): Likewise for param "thread" and locals
1341         "trial", "next_trial", "delay_insn".
1342         (redundant_insn): Likewise for param "target" and local "trial".
1343         (own_thread_p): Likewise for param "thread" and locals
1344         "active_insn", "insn".
1345         (get_label_before): Likewise for param "insn".
1346         (fill_simple_delay_slots): Likewise for local "new_label"; use
1347         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
1348         (label_before_next_insn): Strengthen return type and local "insn"
1349         from rtx to rtx_insn *.
1350         (relax_delay_slots): Likewise for locals "other", "tmp".
1351         (make_return_insns): Likewise for param "first" and locals "insn",
1352         "jump_insn", "prev".  Move declaration of "pat" to its assignment
1353         and strengthen from rtx to rtx_sequence *.  Use its methods for
1354         clarity and typesafety.
1355         * rtlanal.c (no_labels_between_p): Strengthen params from
1356         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
1357         rtx_insn *.
1358         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
1359         from const_rtx to const rtx_insn *.
1360         (reg_set_between_p): Rename param "from_insn" to
1361         "uncast_from_insn", and reintroduce "from_insn" as a
1362         const rtx_insn * via a checked cast.
1363         (modified_between_p): Likewise for param "start" as "uncast_start".
1364         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
1365         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
1366         "tmp", head" from rtx to rtx_insn *.
1367         (recompute_rev_top_order): Likewise for local "insn".
1368         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
1369         * store-motion.c (build_store_vectors): Likewise for local "insn".
1370         Strengthen local "st" from rtx to rtx_insn_list * and use methods
1371         for clarity and typesafety.
1372         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
1373         rtx to rtx_insn *.
1374         (computation_cost): Likewise for local "seq".
1375         (get_address_cost): Likewise.
1377 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1379         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
1380         const rtx_insn *.
1381         (label_is_jump_target_p): Likewise for second param.
1383         * rtlanal.c (tablejump_p): Likewise for param "insn".
1384         (label_is_jump_target_p): Likewise for param "jump_insn".
1386 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1388         * rtl.h (find_first_parameter_load): Strengthen return type and
1389         both params from rtx to rtx_insn *.
1390         * rtlanal.c (find_first_parameter_load): Strengthen return type,
1391         both params and locals "before", "first_set" from rtx to
1392         rtx_insn *.  Remove now-redundant cast.
1393         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
1395 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1397         * rtl.h (find_last_value): Delete.
1398         * rtlanal.c (find_last_value): Delete.
1400 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1402         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
1403         from rtx to rtx_insn *.
1404         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
1405         rtx "note" with new local rtx_insn * "new_head" when calculating
1406         head insn of new basic block.
1407         * combine.c (combine_split_insns): Strengthen return type and local
1408         "ret" from rtx to rtx_insn *.
1409         (likely_spilled_retval_p): Likewise for locals "use" and "p".
1410         (try_combine): Eliminate local "m_split", splitting into new
1411         locals "m_split_insn" and "m_split_pat".
1412         (find_split_point): Strengthen local "seq" from rtx into
1413         rtx_insn *.
1414         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
1415         locals "label", "branch".
1416         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
1417         for local "insn".
1418         (define_expand "umulsi3_highpart"): Likewise for local "insn".
1419         * dse.c (note_add_store_info): Likewise for fields "first",
1420         "current".
1421         (note_add_store): Likewise for local "insn".
1422         (emit_inc_dec_insn_before): Likewise for locals "insn",
1423         "new_insn", "cur".
1424         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
1425         (replace_read): Likewise for locals "insns", "this_insn".
1426         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
1427         (notice_eh_throw): Likewise for param "insn".
1428         (before_next_cfi_note): Likewise for return type, param, and local
1429         "prev".
1430         (connect_traces): Likewise for local "note".
1431         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
1432         (verify_rtl_sharing): Likewise.
1433         (unshare_all_rtl_in_chain): Likewise for param "insn".
1434         (get_first_nonnote_insn): Likewise for local "insn".
1435         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
1436         "seq" and use its methods to clarify things.
1437         (next_insn): Strengthen return type from rtx to rtx_insn *.
1438         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
1439         local rtx_insn * using a checked cast, dropping a checked cast
1440         made redundant by this change.  Use a cast to and method of
1441         rtx_sequence to clarify the code.
1442         (previous_insn): Rename param "insn" to "uncast_insn" and
1443         reintroduce "insn" as a local rtx_insn * using a checked cast,
1444         dropping a checked cast made redundant by this change.  Use a cast
1445         to and method of rtx_sequence to clarify the code.
1446         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
1447         reintroduce "insn" as a local rtx_insn * using a checked cast,
1448         dropping a checked cast made redundant by this change.
1449         (next_nonnote_insn_bb): Likewise.
1450         (prev_nonnote_insn): Likewise.
1451         (prev_nonnote_insn_bb): Likewise.
1452         (next_nondebug_insn): Likewise.
1453         (prev_nondebug_insn): Likewise.
1454         (next_nonnote_nondebug_insn): Likewise.
1455         (prev_nonnote_nondebug_insn): Likewise.
1456         (next_real_insn): Likewise.
1457         (prev_real_insn): Likewise.
1458         (next_active_insn): Likewise.
1459         (prev_active_insn): Likewise.
1460         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
1461         clarity.
1462         (prev_cc0_setter): Likewise.
1463         (try_split): Rename param "trial" to "uncast_trial" and
1464         reintroduce "insn" as a local rtx_insn * using a checked cast,
1465         dropping checked casts made redundant by this change.
1466         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
1467         rtx to rtx_insn *.
1468         (remove_insn): Rename param "insn" to "uncast_insn" and
1469         reintroduce "insn" as a local rtx_insn * using a checked cast.
1470         (emit_pattern_after_setloc): Likewise for param "after", as
1471         "uncast_after".
1472         (emit_pattern_after): Likewise.  Strengthen local "prev" from
1473         rtx to rtx_insn *.
1474         (emit_pattern_before_setloc): Rename param "before" to
1475         "uncast_before" and reintroduce "before" as a local rtx_insn *
1476         using a checked cast.  Strengthen locals "first", "last" from
1477         rtx to rtx_insn *.
1478         (emit_pattern_before): Likewise rename/cast param "before" to
1479         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
1480         * except.c (copy_reg_eh_region_note_forward): Strengthen param
1481         "first" and local "insn" from rtx to rtx_insn *.
1482         (copy_reg_eh_region_note_backward): Likewise for param "last"
1483         and local "insn".
1484         * expr.c (fixup_args_size_notes): Rename param "last" to
1485         "uncast_last" and reintroduce "last" as a local rtx_insn *
1486         using a checked cast.  Strengthen local "insn" from rtx to
1487         rtx_insn *.
1488         * function.c (set_insn_locations): Strengthen param "insn" from
1489         rtx to rtx_insn *.
1490         (record_insns): Likewise for param "insns" and local "tmp".
1491         (active_insn_between): Rename param "tail" to
1492         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
1493         using a checked cast.
1494         (thread_prologue_and_epilogue_insns): Split out top-level local
1495         rtx "seq" into three different rtx_insn * locals.  Strengthen
1496         local "prologue_seq" from rtx to rtx_insn *.
1497         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
1498         from rtx to rtx_insn *.
1499         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
1500         (priority): Likewise for locals "prev_first", "twin".
1501         (setup_insn_max_reg_pressure): Likewise for param "after".
1502         (sched_setup_bb_reg_pressure_info): Likewise.
1503         (no_real_insns_p): Strengthen params from const_rtx to
1504         const rtx_insn *.
1505         (schedule_block): Strengthen local "next_tail" from rtx to
1506         rtx_insn *.
1507         * ifcvt.c (find_active_insn_before): Strengthen return type and
1508         param "insn" from rtx to rtx_insn *.
1509         (find_active_insn_after): Likewise.
1510         (cond_exec_process_insns): Likewise for param "start" and local "insn".
1511         (cond_exec_process_if_block): Likewise for locals "then_start",
1512         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
1513         (noce_process_if_block): Likewise for local "jump".
1514         (merge_if_block): Likewise for two locals named "end".
1515         (cond_exec_find_if_block): Likewise for local "last_insn".
1516         * jump.c (delete_related_insns): Rename param "insn" to
1517         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
1518         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
1519         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
1520         NULL.
1521         (split_reg): Likewise.
1522         * lra.c (lra_process_new_insns): Likewise.
1523         * modulo-sched.c (permute_partial_schedule): Strengthen param
1524         "last" from rtx to rtx_insn *.
1525         * optabs.c (add_equal_note): Likewise for param "insns" and local
1526         "last_insn".
1527         (expand_binop_directly): Add checked casts to rtx_insn * within
1528         NEXT_INSN (pat) uses.
1529         (expand_unop_direct): Likewise.
1530         (maybe_emit_unop_insn): Likewise.
1531         * recog.c (peep2_attempt): Strengthen locals "last",
1532         "before_try", "x" from rtx to rtx_insn *.
1533         * reorg.c (optimize_skip): Strengthen return type and local
1534         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
1535         and locals "trial", "next_trial" from rtx to rtx_insn *.
1536         * resource.c (next_insn_no_annul): Strengthen return type and
1537         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
1538         rtx_sequence to clarify the code.
1539         (mark_referenced_resources): Add a checked cast to rtx_insn *
1540         within PREV_INSN (x).
1541         (find_dead_or_set_registers): Strengthen return type, param
1542         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
1543         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
1544         to rtx_insn **.
1545         (mark_target_live_regs): Strengthen params "insns" and "target",
1546         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
1547         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
1548         the code.
1549         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
1550         from rtx to rtx_insn *.
1551         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
1552         from rtx to rtx_insn *.
1553         (copy_reg_eh_region_note_backward): Likewise.
1554         (unshare_all_rtl_in_chain): Likewise for sole param.
1555         (dump_rtl_slim): Strengthen second and third params from const_rtx
1556         to const rtx_insn *.
1557         * sched-deps.c (sched_free_deps): Strengthen params "head" and
1558         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
1559         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
1560         "next_tail" from rtx to rtx_insn *.
1561         (begin_move_insn): Likewise for local "next".
1562         * sched-int.h (sched_free_deps): Likewise for first and second
1563         params.
1564         (no_real_insns_p): Strengthen both params from const_rtx to
1565         const rtx_insn *.
1566         (sched_setup_bb_reg_pressure_info): Strengthen second params from
1567         rtx to rtx_insn *.
1568         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
1569         "next_tail".
1570         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
1571         and locals "insn", "tail" from const_rtx to const rtx_insn *.
1572         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
1573         rtx_insn *.
1574         (debug_rtl_slim): Strengthen params "first" and "last" from
1575         const_rtx to const rtx_insn *.
1576         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
1577         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
1578         (convert_to_simple_return): Likewise for param "returnjump".
1579         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
1580         "prologue_seq".
1581         (convert_to_simple_return): Likewise for param "returnjump".
1582         * valtrack.c (propagate_for_debug): Likewise for params
1583         "insn", "last".
1584         * valtrack.h (propagate_for_debug): Likewise for second param.
1586 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1588         * output.h (insn_current_reference_address): Strengthen param
1589         from rtx to rtx_insn *.
1590         * final.c (insn_current_reference_address): Likewise.
1592 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1594         * basic-block.h (inside_basic_block_p): Strengthen param from
1595         const_rtx to const rtx_insn *.
1596         * cfgbuild.c (inside_basic_block_p): Likewise.
1598 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1600         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
1601         rtx_insn *.
1602         (get_trace_info): Likewise for param "insn".
1603         (save_point_p): Likewise.
1604         (maybe_record_trace_start): Likewise for both params.
1605         (maybe_record_trace_start_abnormal): Likewise.
1606         (create_trace_edges): Likewise for sole param and for three of the
1607         locals named "lab".
1608         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
1609         to rtx_insn *, and update a call to pat->element to pat->insn.
1611 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1613         * function.h (struct expr_status): Convert field "x_forced_labels"
1614         from rtx_expr_list * to rtx_insn_list *.
1616         * cfgbuild.c (make_edges): Convert local "x" from an
1617         rtx_expr_list * to an rtx_insn_list *, replacing use of
1618         "element" method with "insn" method.
1619         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1620         * except.c (sjlj_emit_dispatch_table): Replace use of
1621         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
1622         forced_labels.
1623         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
1624         rtx_expr_list * to an rtx_insn_list *, replacing use of
1625         "element" method with "insn" method.
1626         * reload1.c (set_initial_label_offsets): Likewise for local "x".
1627         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
1628         rtx_insn *, adding a checked cast.  Replace use of
1629         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
1630         forced_labels.
1631         (expand_label): Likewise for local "label_r".
1633 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1635         * function.h (struct rtl_data): Convert field
1636         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
1637         rtx_insn_list *.
1638         * rtl.h (remove_node_from_insn_list): New prototype.
1640         * builtins.c (expand_builtin): When prepending to
1641         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
1642         gen_rtx_EXPR_LIST.
1643         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
1644         to rtx_insn_list *, and use its "insn" method rather than
1645         "element" method.
1646         * cfgrtl.c (delete_insn): Use new function
1647         remove_node_from_insn_list rather than
1648         remove_node_from_expr_list.
1649         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
1650         to rtx_insn_list *, and use its "insn" method rather than
1651         "element" method.
1652         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1653         * reload1.c (set_initial_label_offsets): Likewise for local "x".
1654         * rtlanal.c (remove_node_from_insn_list): New function, adapted
1655         from remove_node_from_expr_list.
1656         * stmt.c (expand_label): When prepending to
1657         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
1658         gen_rtx_EXPR_LIST.
1660 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1662         * function.h (struct rtl_data): Strengthen fields "x_return_label"
1663         and "x_naked_return_label" from rtx to rtx_code_label *.
1665 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1667         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
1668         (SET_NEXT_INSN): Likewise.
1669         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
1671         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
1672         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
1673         to split out the SEQUENCE from local "bundle", strengthening the
1674         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
1675         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
1676         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
1677         and the type of the elements of the "slot" array from rtx to
1678         rtx_insn *.
1679         (reorg_split_calls): Likewise for locals "insn" and "next", and
1680         the type of the elements of the "slot" array.
1682         * config/frv/frv.c (frv_nops): Likewise for the elements of this
1683         array.
1684         (frv_function_prologue): Likewise for locals "insn", "next",
1685         "last_call".
1686         (frv_register_nop): Introduce a local "nop_insn" to be the
1687         rtx_insn * containing rtx "nop".
1689         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
1690         used as an insn and sometimes as a pattern, so rename it to
1691         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
1692         using it where dealing with the core insn.
1694         * config/picochip/picochip.c (reorder_var_tracking_notes):
1695         Strengthen locals "insn", "next", "last_insn", "queue",
1696         "next_queue", "prev" from rtx to rtx_insn *.
1698         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
1699         the second param is an rtx_insn ** rather than an rtx **.
1700         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
1701         from rtx to rtx_sequence *, and introduce local named "sequence",
1702         using methods of rtx_sequence to clarify the code.
1703         (remove_insn): Introduce local rtx_sequence * named "sequence" and
1704         use its methods.
1705         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
1706         Rename param "after" to "uncast_after", reintroducing "after" as a
1707         local rtx_insn * with a checked cast.
1708         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
1709         reintroducing "after" as a local rtx_insn * with a checked cast.
1710         Strengthen local "last" from rtx to rtx_insn * and remove the
1711         now-redundant checked casts.
1712         (copy_delay_slot_insn): Strengthen return type and param from rtx
1713         to rtx_insn *.
1715         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
1716         "last" from rtx to rtx_insn *.
1718 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1720         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
1721         param from rtx to rtx_insn *.
1723         * emit-rtl.c (copy_delay_slot_insn): Likewise.
1725         * reorg.c (skip_consecutive_labels): Strengthen return type, param
1726         and local "insn" from rtx to rtx_insn *.
1727         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
1728         (unfilled_slots_next): Likewise.
1729         (function_return_label): Strengthen from rtx to rtx_code_label *.
1730         (function_simple_return_label): Likewise.
1731         (first_active_target_insn): Strengthen return type and param from
1732         rtx to rtx_insn *.
1733         (find_end_label): Strengthen return type from rtx to
1734         rtx_code_label *; strengthen locals as appropriate.
1735         (emit_delay_sequence): Strengthen return type, param "insn" and
1736         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
1737         and local "li" from rtx to rtx_insn_list *, using methods of
1738         rtx_insn_list for clarity and typesafety.
1739         (add_to_delay_list): Strengthen return type and param "insn" from
1740         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
1741         rtx_insn_list * and use methods of rtx_insn_list.
1742         (delete_from_delay_slot): Strengthen return type, param "insn",
1743         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
1744         Strengthen local "seq" from rtx to rtx_sequence *, and local
1745         "delay_list" from rtx to rtx_insn_list *, using methods of
1746         rtx_sequence for clarity and type-safety.
1747         (delete_scheduled_jump): Add checked cast when invoking
1748         delete_from_delay_slot.  Strengthen local "trial" from rtx to
1749         rtx_insn *.
1750         (optimize_skip): Strengthen return type and local "delay_list"
1751         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
1752         rtx_insn *.
1753         (steal_delay_list_from_target): Strengthen return type, param
1754         "delay_list" and local "new_delay_list" from rtx to
1755         rtx_insn_list *.  Strengthen param "seq" from rtx to
1756         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
1757         rtx_insn **.
1758         Split out local "temp" into multiple more-tightly scoped locals:
1759         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
1760         of rtx_insn_list and rtx_sequence for clarity and typesafety.
1761         Strengthen locals named "trial" from rtx to rtx_insn *.
1762         (steal_delay_list_from_fallthrough): Strengthen return type and
1763         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
1764         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
1765         Strengthen local "trial" from rtx to rtx_insn *.
1766         (try_merge_delay_insns): Strength local "merged_insns" from rtx
1767         to rtx_insn_list * and use its methods.  Strengthen local "pat"
1768         from rtx to rtx_sequence * and use its methods.  Strengthen locals
1769         "dtrial" and "new_rtx" from rtx to rtx_insn *.
1770         (get_label_before): Strengthen return type and local "label" from
1771         rtx to rtx_insn *.
1772         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
1773         "next_trial", "next", prev".  Strengthen local "delay_list" from
1774         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
1775         rtx_insn **.
1776         (follow_jumps): Strengthen return type, param "label" and locals
1777         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
1778         (fill_slots_from_thread): Strengthen return type, param
1779         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
1780         "insn", "thread", "opposite_thread" and locals "new_thread",
1781         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
1782         "sequence" from a checked cast to rtx_sequence so that we can call
1783         steal_delay_list_from_target and steal_delay_list_from_fallthrough
1784         with an rtx_sequence *.
1785         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
1786         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
1787         Strengthen local "delay_list" from rtx to rtx_insn_list *.
1788         (relax_delay_slots): Strengthen param "first" and locals "insn",
1789         "next", "trial", "delay_insn", "target_label" from rtx to
1790         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
1791         Introduce a local "trial_seq" for PATTERN (trial) of type
1792         rtx_sequence *, in both cases using methods of rtx_sequence.
1793         (dbr_schedule): Strengthen param "first" and locals "insn",
1794         "next", "epilogue_insn" from rtx to rtx_insn *.
1796 2014-08-28  Richard Biener  <rguenther@suse.de>
1798         PR tree-optimization/62283
1799         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1800         Do not peel loops for alignment where the vector loop likely
1801         doesn't run at least VF times.
1803 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
1805         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
1806         important_candidates.  Consider all important candidates if
1807         IVS doesn't give any result.  Remove check on ivs->upto.
1808         (try_add_cand_for): Call iv_ca_add_use only once.
1810 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1811             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1812             Anna Tikhonova  <anna.tikhonova@intel.com>
1813             Ilya Tocar  <ilya.tocar@intel.com>
1814             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1815             Ilya Verbin  <ilya.verbin@intel.com>
1816             Kirill Yukhin  <kirill.yukhin@intel.com>
1817             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1819         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
1820         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
1821         masking.
1822         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
1823         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1824         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1825         (define_insn "*mul<mode>3"): Add EVEX version.
1827 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1828             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1829             Anna Tikhonova  <anna.tikhonova@intel.com>
1830             Ilya Tocar  <ilya.tocar@intel.com>
1831             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1832             Ilya Verbin  <ilya.verbin@intel.com>
1833             Kirill Yukhin  <kirill.yukhin@intel.com>
1834             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1836         * config/i386/sse.md
1837         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
1838         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
1839         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
1840         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
1841         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
1842         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
1843         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
1844         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
1845         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
1846         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
1847         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
1848         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
1849         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
1850         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
1851         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
1852         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
1854 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1855             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1856             Anna Tikhonova  <anna.tikhonova@intel.com>
1857             Ilya Tocar  <ilya.tocar@intel.com>
1858             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1859             Ilya Verbin  <ilya.verbin@intel.com>
1860             Kirill Yukhin  <kirill.yukhin@intel.com>
1861             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1863         * config/i386/sse.md
1864         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
1865         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
1866         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
1868 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1869             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1870             Anna Tikhonova  <anna.tikhonova@intel.com>
1871             Ilya Tocar  <ilya.tocar@intel.com>
1872             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1873             Ilya Verbin  <ilya.verbin@intel.com>
1874             Kirill Yukhin  <kirill.yukhin@intel.com>
1875             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1877         * config/i386/sse.md
1878         (define_mode_iterator VI128_256): New.
1879         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1881 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1882             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1883             Anna Tikhonova  <anna.tikhonova@intel.com>
1884             Ilya Tocar  <ilya.tocar@intel.com>
1885             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1886             Ilya Verbin  <ilya.verbin@intel.com>
1887             Kirill Yukhin  <kirill.yukhin@intel.com>
1888             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1890         * config/i386/sse.md
1891         (define_mode_iterator VI8_256_512): New.
1892         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
1893         Ditto.
1894         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
1895         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
1896         Ditto.
1897         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
1899 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1901         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
1902         pointer to the cumulative reloc value and return the value for
1903         this reloc instead.
1904         (compute_reloc_for_rtx): Take a const_rtx.  Call
1905         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
1906         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
1907         for_each_rtx for the CONST case.
1909 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1911         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
1912         (mark_constants_in_pattern): ...this new function to iterate over
1913         all the subrtxes.
1914         (mark_constants): Update accordingly.
1916 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1918         * varasm.c: Include rtl-iter.h.
1919         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
1920         Remove the pointer to the cumulative hashval_t and just return
1921         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
1922         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
1923         Accumulate the hashval_ts here instead of const_rtx_hash_1.
1925 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1927         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
1928         Give real type of data parameter.  Remove return value.
1929         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
1930         to iterate over subrtxes.
1932 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1934         * var-tracking.c (use_narrower_mode_test): Turn from being a
1935         for_each_rtx callback to being a function that examines each
1936         subrtx itself.
1937         (adjust_mems): Update accordingly.
1939 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1941         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
1942         callback to being a function that examines each subrtx itself.
1943         Remove handling of null rtxes.
1944         (add_uses): Update accordingly.
1946 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1948         * var-tracking.c: Include rtl-iter.h.
1949         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
1950         to being a function that examines each subrtx itself.
1951         (use_type): Update accordingly.
1953 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1955         * store-motion.c: Include rtl-iter.h.
1956         (extract_mentioned_regs_1): Delete.
1957         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
1958         for_each_rtx to iterate over subrtxes.
1960 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1962         * sel-sched.c: Include rtl-iter.h
1963         (count_occurrences_1): Delete.
1964         (count_occurrences_equiv): Turn rtxes into const_rtxes.
1965         Use FOR_EACH_SUBRTX rather than for_each_rtx.
1967 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1969         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
1970         * rtlanal.c (tls_referenced_p_1): Delete.
1971         (tls_referenced_p): Take a const_rtx rather than an rtx.
1972         Use FOR_EACH_SUBRTX rather than for_each_rtx.
1974 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1976         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
1977         (for_each_inc_dec): Take an rtx rather than an rtx *.
1978         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
1979         (cselib_record_sets): Likewise.
1980         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
1981         (check_for_inc_dec): Likewise.
1982         * rtlanal.c (for_each_inc_dec_ops): Delete.
1983         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
1984         rather than a pointer to the memory address.  Replace
1985         for_each_inc_dec_ops argument with separate function and data
1986         arguments.  Abort on non-autoinc addresses.
1987         (for_each_inc_dec_find_mem): Delete.
1988         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
1989         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
1991 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
1993         * rtl.h (find_all_hard_regs): Declare.
1994         * rtlanal.c (find_all_hard_regs): New function.
1995         (record_hard_reg_uses_1): Delete.
1996         (record_hard_reg_uses): Use find_all_hard_regs.
1998 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2000         * rtl.h (replace_label_data): Delete.
2001         (replace_label): Take the old label, new label and update-nuses flag
2002         as direct arguments.  Return void.
2003         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
2004         * rtlanal.c (replace_label): Update interface as above.  Handle
2005         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
2006         iterator.  Use FOR_EACH_SUBRTX_PTR.
2008 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2010         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
2011         with const_rtx parameters.
2012         * varasm.c (get_pool_constant): Likewise.
2013         * rtlanal.c (rtx_referenced_p_1): Delete.
2014         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2015         Assert that the rtx we're looking for is nonnull.  Allow searches
2016         for constant pool SYMBOL_REFs.
2018 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2020         * reload1.c: Include rtl-iter.h.
2021         (note_reg_elim_costly): Turn from being a for_each_rtx callback
2022         to being a function that examines each subrtx itself.
2023         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
2025 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2027         * regcprop.c (cprop_find_used_regs_1): Delete.
2028         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2030 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2032         * regcprop.c: Include rtl-iter.h.
2033         (kill_value): Take a const_rtx.
2034         (kill_autoinc_value): Turn from being a for_each_rtx callback
2035         to being a function that examines each subrtx itself.
2036         (copyprop_hardreg_forward_1): Update accordingly.
2038 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2040         * reg-stack.c: Include rtl-iter.h.
2041         (subst_stack_regs_in_debug_insn): Delete.
2042         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
2043         instead of for_each_rtx.
2045 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2047         * lower-subreg.c (find_decomposable_subregs): Turn from being
2048         a for_each_rtx callback to being a function that examines each
2049         subrtx itself.  Remove handling of null rtxes.
2050         (decompose_multiword_subregs): Update accordingly.
2052 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2054         * lower-subreg.c (adjust_decomposed_uses): Delete.
2055         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
2056         Remove handling of null rtxes.
2058 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2060         * lower-subreg.c: Include rtl-iter.h.
2061         (resolve_subreg_use): Turn from being a for_each_rtx callback
2062         to being a function that examines each subrtx itself.  Remove
2063         handling of null rtxes.
2064         (resolve_reg_notes, resolve_simple_move): Update accordingly.
2065         (decompose_multiword_subregs): Likewise.
2067 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2069         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
2070         to being a function that examines each subrtx itself.
2071         (simplify_using_condition, simplify_using_initial_values): Update
2072         accordingly.
2074 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2076         * loop-iv.c: Include rtl-iter.h.
2077         (find_single_def_src): New function.
2078         (replace_single_def_regs): Turn from being a for_each_rtx callback
2079         to being a function that examines each subrtx itself.
2080         (replace_in_expr, simplify_using_initial_values): Update accordingly.
2082 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2084         * jump.c (eh_returnjump_p_1): Delete.
2085         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2086         Remove handling of null rtxes.
2088 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2090         * jump.c: Include rtl-iter.h.
2091         (returnjump_p_1): Delete.
2092         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2093         Remove handling of null rtxes.
2095 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2097         * ira.c: Include rtl-iter.h.
2098         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
2099         to being a function that examines each subrtx itself.  Remove
2100         handling of null rtxes.
2101         (update_equiv_regs): Update call accordingly.
2103 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2105         * fwprop.c: Include rtl-iter.h.
2106         (varying_mem_p): Turn from being a for_each_rtx callback to being
2107         a function that examines each subrtx itself.
2108         (propagate_rtx): Update accordingly.
2110 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2112         * function.c: Include rtl-iter.h
2113         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
2114         callback to being a function that examines each subrtx itself.
2115         Return the changed flag.
2116         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
2117         (instantiate_virtual_regs): Update calls accordingly.
2119 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2121         * final.c: Include rtl-iter.h.
2122         (mark_symbol_ref_as_used): Delete.
2123         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
2124         for_each_rtx.
2126 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2128         * emit-rtl.c: Include rtl-iter.h.
2129         (find_auto_inc): Turn from being a for_each_rtx callback to being
2130         a function that examines each subrtx itself.  Assume the first operand
2131         to an RTX_AUTOINC is the automodified register.
2132         (try_split): Update call accordingly.
2134 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2136         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
2137         Return a bool, inverting the result so that 0/false means "not ok".
2138         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
2139         subrtxes of a CONST.
2140         (mem_loc_descriptor, add_const_value_attribute)
2141         (resolve_addr_in_expr): Update calls accordingly.
2143 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2145         * dwarf2out.c: Include rtl-iter.h.
2146         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
2147         Remove unused data parameter.  Return a bool, inverting the result
2148         so that 0/false means "not ok".
2149         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
2150         instead of for_each_rtx.
2152 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2154         * dse.c: Include rtl-iter.h.
2155         (check_mem_read_rtx): Change void * parameter to real type.
2156         Remove return value.
2157         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
2158         for_each_rtx.  Don't handle null rtxes.
2160 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2162         * df-problems.c: Include rtl-iter.h.
2163         (find_memory): Turn from being a for_each_rtx callback to being
2164         a function that examines each subrtx itself.  Continue to look for
2165         volatile references even after a nonvolatile one has been found.
2166         (can_move_insns_across): Update calls accordingly.
2168 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2170         * ddg.c (walk_mems_2, walk_mems_1): Delete.
2171         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
2172         to iterate over subrtxes.  Return a bool rather than an int.
2174 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2176         * ddg.c: Include rtl-iter.h.
2177         (mark_mem_use_1): Rename to...
2178         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
2179         instead of for_each_rtx.
2180         (mem_read_insn_p): Update accordingly.
2182 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2184         * cse.c (change_cc_mode_args): Delete.
2185         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
2186         a function that examines each subrtx itself.  Take the fields of
2187         change_cc_mode_args as argument and return void.
2188         (cse_change_cc_mode_insn): Update calls accordingly.
2190 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2192         * cse.c (is_dead_reg): Change argument to const_rtx.
2193         (dead_debug_insn_data): Delete.
2194         (is_dead_debug_insn): Expand commentary.  Turn from being a
2195         for_each_rtx callback to being a function that examines
2196         each subrtx itself.  Take the fields of dead_debug_insn_data
2197         as argument.
2198         (delete_trivially_dead_insns): Update call accordingly.
2200 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2202         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
2203         being a for_each_rtx callback to being a function that examines
2204         each subrtx itself.
2205         (cse_extended_basic_block): Update call accordingly.
2207 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2209         * cse.c (check_dependence_data): Delete.
2210         (check_dependence): Change from being a for_each_rtx callback to being
2211         a function that examines all subrtxes itself.  Don't handle null rtxes.
2212         (invalidate): Update call accordingly.
2214 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2216         * cse.c: Include rtl-iter.h.
2217         (approx_reg_cost_1): Delete.
2218         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2219         Don't handle null rtxes.
2221 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2223         * cfgcleanup.c: Include rtl-iter.h.
2224         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
2225         to being a function that examines each subrtx itself.
2226         (thread_jump): Update accordingly.
2228 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2230         * combine-stack-adj.c: Include rtl-iter.h.
2231         (record_stack_refs_data): Delete.
2232         (record_stack_refs): Turn from being a for_each_rtx callback
2233         to being a function that examines each subrtx itself.
2234         Take a pointer to the reflist.  Invert sense of return value
2235         so that true means success and false means failure.  Don't
2236         handle null rtxes.
2237         (combine_stack_adjustments_for_block): Update accordingly.
2239 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2241         * combine.c (record_truncated_value): Turn from being a for_each_rtx
2242         callback to a function that takes an rtx and returns a bool
2243         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
2244         for_each_rtx.
2246 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2248         * combine.c: Include rtl-iter.h.
2249         (unmentioned_reg_p_1): Delete.
2250         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2251         Don't handle null rtxes.
2253 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2255         * calls.c: Include rtl-iter.h.
2256         (internal_arg_pointer_based_exp_1): Delete.
2257         (internal_arg_pointer_based_exp): Take a const_rtx.
2258         Use FOR_EACH_SUBRTX to iterate over subrtxes.
2260 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2262         * caller-save.c: Include rtl-iter.h.
2263         (add_used_regs_1): Delete.
2264         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
2265         to iterate over subrtxes.  Assert that any remaining pseudos
2266         have been spilled.
2268 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2270         * bt-load.c: Include rtl-iter.h.
2271         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
2272         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
2273         to iterate over subrtxes.
2274         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
2275         find_btr_use rather than btr_referenced_p.
2277 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2279         * alias.c: Include rtl-iter.h.
2280         (refs_newer_value_cb): Delete.
2281         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2283 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2285         * rtl-iter.h: New file.
2286         * rtlanal.c: Include it.
2287         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
2288         (generic_subrtx_iterator <T>::add_single_to_queue)
2289         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
2290         (generic_subrtx_iterator <T>::free_array): New functions.
2291         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
2292         (generic_subrtx_iterator <const_rtx_accessor>)
2293         (generic_subrtx_iterator <rtx_var_accessor>
2294         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
2295         (setup_reg_subrtx_bounds): New function.
2296         (init_rtlanal): Call it.
2298 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
2300         PR target/62261
2301         * config/sh/sh.md (ashlsi3): Handle negative shift count for
2302         TARGET_SHMEDIA.
2303         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
2305 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
2307         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
2309 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2311         * rtl.h (JUMP_LABEL_AS_INSN): New.
2313 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2315         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
2316         rtx_expr_list **.
2317         (alloc_EXPR_LIST): Strengthen return type from rtx to
2318         rtx_expr_list *.
2319         (remove_free_EXPR_LIST_node): Likewise for param.
2320         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
2321         from rtx to rtx_expr_list *.
2322         * sched-int.h (struct deps_desc): Strengthen fields
2323         "pending_read_mems" and "pending_write_mems" from rtx to
2324         rtx_expr_list *.
2326         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
2327         rtx to rtx_expr_list *.
2328         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
2329         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
2330         rtx_expr_list **.
2331         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
2332         from rtx to rtx_expr_list *.
2333         * loop-iv.c (simplify_using_initial_values): Strengthen local
2334         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
2335         "pnote_next" from rtx * to rtx_expr_list **.
2336         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
2337         param "exprp" from rtx * to rtx_expr_list **.
2338         (add_insn_mem_dependence): Strengthen local "mem_list" from
2339         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
2340         to rtx_expr_list *.
2341         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
2342         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
2343         param "old_mems_p" from rtx * to rtx_expr_list **.
2344         * var-tracking.c (struct adjust_mem_data): Strengthen field
2345         "side_effects" from rtx to rtx_expr_list *.
2346         (adjust_insn): Replace NULL_RTX with NULL when assigning to
2347         rtx_expr_list *.
2348         (prepare_call_arguments): Likewise.
2350 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2352         * function.h (struct rtl_data): Strengthen field
2353         "x_stack_slot_list" from rtx to rtx_expr_list *.
2355         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
2356         when assigning to stack_slot_list.
2358 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2360         * function.h (struct rtl_data): Strengthen field
2361         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
2362         * rtl.h (remove_node_from_expr_list): Strengthen second param from
2363         rtx * to rtx_expr_list **.
2365         * cfgbuild.c (make_edges): In loop over
2366         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
2367         rtx_expr_list *, and use methods of the latter class to clarify
2368         the code.
2369         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
2370         rtx_expr_list *, and use methods of the latter class to clarify
2371         the code.
2372         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2373         * reload1.c (set_initial_label_offsets): Likewise for local "x".
2374         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
2375         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
2376         to rtx_expr_list *.  Use methods of the latter class to clarify
2377         the code.
2379 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2381         * function.h (struct expr_status): Strengthen field
2382         "x_forced_labels" from rtx to rtx_expr_list *.
2384         * cfgbuild.c (make_edges): Split local "x" into two locals,
2385         strengthening one from rtx to rtx_expr_list *, and using methods
2386         of said class.
2387         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
2388         loop over forced_labels, introduce strengthen it from rtx to
2389         rtx_expr_list *, using methods to clarify the code.
2390         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
2391         to rtx_expr_list *, using methods of said class to clarify the
2392         code.
2393         * reload1.c (set_initial_label_offsets): Split local "x" into two
2394         per-loop variables, strengthening the first from rtx to
2395         rtx_expr_list * and using methods.
2397 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2399         * coretypes.h (class rtx_expr_list): Add forward declaration.
2400         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
2401         * gengenrtl.c (special_rtx): Add EXPR_LIST.
2402         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
2403         invariant: GET_CODE (X) == EXPR_LIST.
2404         (is_a_helper <rtx_expr_list *>::test): New.
2405         (rtx_expr_list::next): New.
2406         (rtx_expr_list::element): New.
2407         (gen_rtx_EXPR_LIST): New.
2409 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2411         * varasm.c (mark_constants): Convert a GET_CODE check into a
2412         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
2413         Use methods of rtx_sequence to clarify the code.
2415 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2417         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
2418         local "seq" via a checked cast, and use methods of rtx_sequence
2419         to simplify the code.
2421 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2423         * resource.c (mark_referenced_resources): Strengthen local
2424         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
2425         using methods of rtx_sequence to clarify the code.
2426         (find_dead_or_set_registers): Within the switch statement, convert
2427         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
2428         the JUMP_P handling, introduce another local "seq", adding a
2429         checked cast to rtx_sequence *.  In both cases, use methods of
2430         rtx_sequence to clarify the code.
2431         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
2432         via a checked cast, and use methods of rtx_sequence to simplify
2433         the code.
2435 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2437         * reorg.c (redundant_insn): In two places in the function, replace
2438         a check of GET_CODE with a dyn_cast, introducing local "seq", and
2439         usings methods of rtx_sequence to clarify the code.
2441 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2443         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
2444         local "seq" with a checked cast, and use methods of rtx_sequence
2445         to clarify the code.
2447 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2449         * function.c (contains): Introduce local "seq" for PATTERN (insn),
2450         with a checked cast, in the region for where we know it's a
2451         SEQUENCE.  Use methods of rtx_sequence.
2453 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2455         * final.c (get_attr_length_1): Replace GET_CODE check with a
2456         dyn_cast, introducing local "seq" and the use of methods of
2457         rtx_sequence.
2458         (shorten_branches): Likewise, introducing local "body_seq".
2459         Strengthen local "inner_insn" from rtx to rtx_insn *.
2460         (reemit_insn_block_notes): Replace GET_CODE check with a
2461         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
2462         Use methods of rtx_sequence.
2463         (final_scan_insn): Likewise, introducing local "seq" for when
2464         "body" is known to be a SEQUENCE, using its methods.
2466 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2468         * except.c (can_throw_external): Strengthen local "seq" from rtx
2469         to rtx_sequence *.  Use methods of rtx_sequence.
2470         (insn_nothrow_p): Likewise.
2472 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2474         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
2475         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
2476         Use methods of rtx_sequence.
2477         (scan_trace): Likewise for local "pat".
2479 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2481         * coretypes.h (class rtx_sequence): Add forward declaration.
2482         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
2483         invariant: GET_CODE (X) == SEQUENCE.
2484         (is_a_helper <rtx_sequence *>::test): New.
2485         (is_a_helper <const rtx_sequence *>::test): New.
2486         (rtx_sequence::len): New.
2487         (rtx_sequence::element): New.
2488         (rtx_sequence::insn): New.
2490 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2492         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
2493         rtx_insn_list **.
2494         (alloc_INSN_LIST): Strengthen return type from rtx to
2495         rtx_insn_list *.
2496         (copy_INSN_LIST): Likewise for return type and param.
2497         (concat_INSN_LIST): Likewise for both params and return type.
2498         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
2499         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
2500         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
2501         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
2503         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
2504         "implicit_sets", "control_uses", "clobbers" from rtx to
2505         rtx_insn_list *.
2506         (struct deps_desc): Likewise for fields "pending_read_insns",
2507         "pending_write_insns", "pending_jump_insns",
2508         "last_pending_memory_flush", "last_function_call",
2509         "last_function_call_may_noreturn", "sched_before_next_call",
2510         "sched_before_next_jump".
2511         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
2512         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
2514         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
2515         from rtx to rtx_insn_list *.
2516         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
2517         rtx_insn_list *.
2519         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
2520         to rtx_insn_list **.
2521         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
2522         rtx_insn_list *.
2523         (queue_insn): Likewise for local "link".
2524         (struct haifa_saved_data): Strengthen field "insn_queue" from
2525         rtx * to rtx_insn_list **.
2526         (save_backtrack_point): Update allocation of save->insn_queue to
2527         reflect the strengthening of elements from rtx to rtx_insn_list *.
2528         (queue_to_ready): Strengthen local "link" from rtx to
2529         rtx_insn_list *; use methods "next" and "insn" when traversing the
2530         list.
2531         (early_queue_to_ready): Likewise for locals "link", "next_link",
2532         "prev_link".
2533         (schedule_block): Update allocation of insn_queue to reflect the
2534         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
2535         local "link" from rtx to rtx_insn_list *, and use methods when
2536         working it.
2537         (add_to_speculative_block): Strengthen locals "twins" and
2538         "next_node" from rtx to rtx_insn_list *, and use methods when
2539         working with them.  Strengthen local "twin" from rtx to
2540         rtx_insn *, eliminating a checked cast.
2541         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
2542         from rtx to rtx_insn_list *, and use methods when working with
2543         them.
2545         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
2546         from rtx to rtx_insn_list *, adding a checked cast.
2547         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
2548         rtx_insn_list **.
2549         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
2550         "newlink" from rtx to rtx_insn_list *.  Strengthen local
2551         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
2552         from rtx to rtx_insn *.
2553         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
2554         from rtx to rtx_insn_list *.  Use methods of the latter class.
2555         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
2556         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
2557         (remove_free_INSN_LIST_node): Strengthen return type and local
2558         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
2559         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
2560         rtx_insn_list *, using "insn" method.
2562         * sched-deps.c (add_dependence_list):  Strengthen param "list"
2563         from rtx to rtx_insn_list *, and use methods when working with it.
2564         (add_dependence_list_and_free):  Strengthen param "listp" from
2565         rtx * to rtx_insn_list **.
2566         (remove_from_dependence_list): Strenghten param "listp" from rtx *
2567         to rtx_insn_list **, and use methods when working with *listp.
2568         (remove_from_both_dependence_lists): Strengthen param "listp" from
2569         rtx * to rtx_insn_list **
2570         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
2571         to rtx_insn_list **.  Eliminate local "link", in favor of two new
2572         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
2573         respectively.
2574         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
2575         by introducing local "cond_deps".
2576         (remove_from_deps): Strengthen param "insn" from rtx to
2577         rtx_insn *.
2579         * sched-rgn.c (concat_insn_mem_list): Strengthen param
2580         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
2581         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
2582         Use methods of rtx_insn_list.
2584         * store-motion.c (struct st_expr): Strengthen fields
2585         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
2586         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
2587         rtx_insn_list *.
2588         (find_moveable_store): Split out "tmp" into multiple more-tightly
2589         scoped locals.  Use methods of rtx_insn_list *.
2590         (compute_store_table): Strengthen local "tmp" from rtx to
2591         rtx_insn *.  Use methods of rtx_insn_list *.
2593 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2595         * coretypes.h (class rtx_insn_list): Add forward declaration.
2596         * rtl.h (class rtx_insn_list): New subclass of rtx_def
2597         (is_a_helper <rtx_insn_list *>::test): New.
2598         (rtx_insn_list::next): New.
2599         (rtx_insn_list::insn): New.
2600         (gen_rtx_INSN_LIST): Add prototype.
2601         * emit-rtl.c (gen_rtx_INSN_LIST): New.
2602         * gengenrtl.c (special_rtx): Add INSN_LIST.
2604 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2606         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
2607         "prev" from rtx to rtx_insn *.
2609 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2611         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
2612         functions.  Require merely an rtx for now, not an rtx_insn *.
2613         (BLOCK_FOR_INSN): Likewise.
2614         (INSN_LOCATION): Likewise.
2615         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
2617 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2619         * rtl.h (PATTERN): Convert this macro into a pair of inline
2620         functions, for now, requiring const_rtx and rtx.
2622 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2624         * target.def (unwind_emit): Strengthen param "insn" from rtx to
2625         rtx_insn *.
2626         (final_postscan_insn): Likewise.
2627         (adjust_cost): Likewise.
2628         (adjust_priority): Likewise.
2629         (variable_issue): Likewise.
2630         (macro_fusion_pair_p): Likewise.
2631         (dfa_post_cycle_insn): Likewise.
2632         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
2633         (first_cycle_multipass_issue): Likewise.
2634         (dfa_new_cycle): Likewise.
2635         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
2636         (speculate_insn): Likewise for param "insn".
2637         (gen_spec_check): Likewise for params "insn" and "label".
2638         (get_insn_spec_ds): Likewise for param "insn".
2639         (get_insn_checked_ds): Likewise.
2640         (dispatch_do): Likewise.
2641         (dispatch): Likewise.
2642         (cannot_copy_insn_p): Likewise.
2643         (invalid_within_doloop): Likewise.
2644         (legitimate_combined_insn): Likewise.
2645         (needed): Likewise.
2646         (after): Likewise.
2648         * doc/tm.texi: Automatically updated to reflect changes to
2649         target.def.
2651         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
2652         working with insn.
2653         (schedule_block): Likewise.
2654         (sched_init): Likewise.
2655         (sched_speculate_insn): Strengthen param "insn" from rtx to
2656         rtx_insn *.
2657         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
2658         working with insn.
2659         * hooks.c (hook_bool_rtx_true): Rename to...
2660         hook_bool_rtx_insn_true): ...this, and strengthen first param from
2661         rtx to rtx_insn *.
2662         (hook_constcharptr_const_rtx_null): Rename to...
2663         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2664         first param from const_rtx to const rtx_insn *.
2665         (hook_bool_rtx_int_false): Rename to...
2666         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2667         param from rtx to rtx_insn *.
2668         (hook_void_rtx_int): Rename to...
2669         (hook_void_rtx_insn_int): ...this, and strengthen first param from
2670         rtx to rtx_insn *.
2672         * hooks.h (hook_bool_rtx_true): Rename to...
2673         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
2674         rtx to rtx_insn *.
2675         (hook_bool_rtx_int_false): Rename to...
2676         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2677         param from rtx to rtx_insn *.
2678         (hook_void_rtx_int): Rename to...
2679         (hook_void_rtx_insn_int): ...this, and strengthen first param from
2680         rtx to rtx_insn *.
2681         (hook_constcharptr_const_rtx_null): Rename to...
2682         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2683         first param from const_rtx to const rtx_insn *.
2685         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
2686         and local "prev" from rtx to rtx_insn *.
2688         * sched-int.h (sched_speculate_insn): Strengthen first param from
2689         rtx to rtx_insn *.
2691         * sel-sched.c (create_speculation_check): Likewise for local "label".
2692         * targhooks.c (default_invalid_within_doloop): Strengthen param
2693         "insn" from const_rtx to const rtx_insn *.
2694         * targhooks.h (default_invalid_within_doloop): Strengthen param
2695         from const_rtx to const rtx_insn *.
2697         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
2698         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
2700         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
2701         "insn".
2702         (arc_invalid_within_doloop): Likewise, with const.
2704         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
2705         (arm_cannot_copy_insn_p): Likewise for param "insn".
2706         (arm_unwind_emit): Likewise.
2708         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
2709         "dep_insn".
2711         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
2712         (c6x_variable_issue): Likewise.  Removed now-redundant checked
2713         cast.
2714         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
2716         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
2717         Likewise for param "insn".
2718         (epiphany_mode_after): Likewise.
2719         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
2720         params "insn", "dep_insn".
2721         (epiphany_mode_needed): Likewise for param "insn".
2722         (epiphany_mode_after): Likewise.
2724         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
2725         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2726         (ix86_avx_u128_mode_needed): Likewise.
2727         (ix86_i387_mode_needed): Likewise.
2728         (ix86_mode_needed): Likewise.
2729         (ix86_avx_u128_mode_after): Likewise.
2730         (ix86_mode_after): Likewise.
2731         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
2732         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
2733         (ix86_adjust_priority): Likewise for param "insn".
2734         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
2735         (do_dispatch): Likewise.
2736         (has_dispatch): Likewise.
2737         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
2739         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
2740         reflect renaming of default hook implementation from
2741         hook_constcharptr_const_rtx_null to
2742         hook_constcharptr_const_rtx_insn_null.
2743         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
2744         rtx to rtx_insn *.
2745         (ia64_variable_issue): Likewise for param "insn".
2746         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
2747         (ia64_dfa_new_cycle): Likewise.
2748         (ia64_get_insn_spec_ds): Likewise.
2749         (ia64_get_insn_checked_ds): Likewise.
2750         (ia64_speculate_insn): Likewise.
2751         (ia64_gen_spec_check): Likewise for params "insn", "label".
2752         (ia64_asm_unwind_emit): Likewise for param "insn".
2754         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
2756         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
2757         "insn", "def_insn".
2758         (m68k_sched_variable_issue): Likewise for param "insn".
2760         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
2761         "def_insn".
2763         * config/microblaze/microblaze.c (microblaze_adjust_cost):
2764         Likewise for params "insn", "dep".
2766         * config/mips/mips.c (mips_adjust_cost): Likewise.
2767         (mips_variable_issue): Likewise for param "insn".
2768         (mips_final_postscan_insn): Likewise.
2770         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
2771         for params "insn", "dep".
2773         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
2774         "dep_insn".
2775         (pa_adjust_priority): Likewise for param "insn".
2777         * config/picochip/picochip.c (picochip_sched_adjust_cost):
2778         Likewise for params "insn", "dep_insn".
2780         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
2781         param "insn".
2782         (rs6000_variable_issue): Likewise.
2783         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
2784         (rs6000_debug_adjust_cost): Likewise.
2785         (rs6000_adjust_priority): Likewise for param "insn".
2786         (rs6000_use_sched_lookahead_guard): Likewise.
2787         (get_next_active_insn): Likewise for return type and both params.
2788         (redefine_groups): Likewise for params "prev_head_insn", "tail"
2789         and locals "insn", "next_insn".
2790         (pad_groups): Likewise.
2792         * config/s390/s390.c (s390_adjust_priority): Likewise for param
2793         "insn".
2794         (s390_cannot_copy_insn_p): Likewise.
2795         (s390_sched_variable_issue): Likewise for third param, eliminating
2796         checked cast.
2797         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
2798         default hook implementation from hook_constcharptr_const_rtx_null
2799         to hook_constcharptr_const_rtx_insn_null.
2801         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
2802         from rtx to rtx_insn *.
2803         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
2804         (sh_variable_issue): Likewise for param "insn".
2805         (sh_dfa_new_cycle): Likewise.
2806         (sh_mode_needed): Likewise.
2807         (sh_mode_after): Likewise.
2809         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
2810         params "insn", "dep_insn".
2811         (hypersparc_adjust_cost): Likewise.
2812         (sparc_adjust_cost): Likewise.
2814         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
2815         param, eliminated checked cast.
2816         (spu_sched_adjust_cost): Likewise for first and third params.
2818         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
2819         params "insn" and "dep_insn" from rtx to rtx_insn *.
2821         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
2823 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2825         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
2826         (set_is_load_p): ...this, updating to work on a SET pattern rather
2827         than an insn.
2828         (is_store_insn): Rename to...
2829         (set_is_store_p): ...this, updating to work on a SET pattern
2830         rather than an insn.
2831         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
2832         top of function to where it is needed.  Rewrite the bogus
2833         condition that checks for "insn" and "dep" being PARALLEL to
2834         instead use single_set, introducing locals "insn_set" and
2835         "dep_set".  Given that we only ever returned "cost" for a non-pair
2836         of SETs, bail out early if we don't have a pair of SET.
2837         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
2838         use the new locals "insn_set" and "dep_set", and update calls to
2839         is_load_insn and is_store_insn to be calls to set_is_load_p and
2840         set_is_store_p.
2842 2014-08-27  Guozhi Wei  <carrot@google.com>
2844         PR target/62262
2845         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
2846         amount before using it.
2848 2014-08-27  Richard Biener  <rguenther@suse.de>
2850         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
2851         get_maxval_strlen inside a more useful API.
2852         (gimple_fold_builtin_with_strlen): Remove and fold into ...
2853         (gimple_fold_builtin): ... caller.
2854         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
2855         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
2856         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
2857         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
2858         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
2859         gimple_fold_builtin_sprintf): Adjust to compute maxval
2860         themselves.
2862 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
2864         PR other/62248
2865         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
2867 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2868             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2869             Anna Tikhonova  <anna.tikhonova@intel.com>
2870             Ilya Tocar  <ilya.tocar@intel.com>
2871             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2872             Ilya Verbin  <ilya.verbin@intel.com>
2873             Kirill Yukhin  <kirill.yukhin@intel.com>
2874             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2876         * config/i386/sse.md
2877         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
2878         Use `concat_tg_mode' attribute to determine asm register size.
2880 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2881             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2882             Anna Tikhonova  <anna.tikhonova@intel.com>
2883             Ilya Tocar  <ilya.tocar@intel.com>
2884             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2885             Ilya Verbin  <ilya.verbin@intel.com>
2886             Kirill Yukhin  <kirill.yukhin@intel.com>
2887             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2889         * config/i386/sse.md
2890         (define_mode_iterator VI48_AVX512VL): New.
2891         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
2892         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
2893         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
2894         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2895         with VI1): Change mode iterator.
2896         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2897         with VI_ULOADSTORE_BW_AVX512VL): New.
2898         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2899         with VI_ULOADSTORE_F_AVX512VL): Ditto.
2900         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2901         with VI1): Change mode iterator.
2902         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2903         with VI_ULOADSTORE_BW_AVX512VL): New.
2904         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
2905         with VI_ULOADSTORE_F_AVX512VL): Ditto.
2906         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2907         with VI1): Change mode iterator.
2908         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2909         with VI_ULOADSTORE_BW_AVX512VL): New.
2910         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
2911         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
2912         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
2913         (define_insn "<avx512>_storedqu<mode>_mask" with
2914         VI48_AVX512VL): New.
2915         (define_insn "<avx512>_storedqu<mode>_mask" with
2916         VI12_AVX512VL): Ditto.
2918 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2919             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2920             Anna Tikhonova  <anna.tikhonova@intel.com>
2921             Ilya Tocar  <ilya.tocar@intel.com>
2922             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2923             Ilya Verbin  <ilya.verbin@intel.com>
2924             Kirill Yukhin  <kirill.yukhin@intel.com>
2925             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2927         * config/i386/sse.md
2928         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
2929         (define_mode_iterator VI48_AVX512BW): New.
2930         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
2931         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2932         with VI48_AVX2_48_AVX512F): New.
2933         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
2934         with VI2_AVX512VL): Ditto.
2936 2014-08-27  Richard Biener  <rguenther@suse.de>
2938         PR middle-end/62239
2939         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
2940         (fold_builtin_3): Do not fold strcat_chk here.
2941         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
2942         from builtins.c.
2943         (gimple_fold_builtin): Fold strcat_chk here.
2945 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
2947         * dwarf2out.h (dwarf2out_decl): Remove prototype.
2948         * dwarf2out.c (dwarf2out_decl): Make static.
2950 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
2952         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
2954 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2956         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
2957         from rtx to rtx_insn *.
2958         (cselib_lookup_from_insn): Likewise for final param.
2959         (cselib_subst_to_values_from_insn): Likewise.
2960         (cselib_add_permanent_equiv): Likewise.
2962         * cselib.c (cselib_current_insn): Likewise for this variable.
2963         (cselib_subst_to_values_from_insn): Likewise for param "insn".
2964         (cselib_lookup_from_insn): Likewise.
2965         (cselib_add_permanent_equiv): Likewise for param "insn" and local
2966         "save_cselib_current_insn".
2967         (cselib_process_insn): Replace use of NULL_RTX with NULL.
2969         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
2970         from rtx to rtx_insn *.
2972 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2974         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
2975         rtx_insn *.
2977 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
2979         * df.h (df_dump_insn_problem_function): Strengthen first param of
2980         this callback from const_rtx to const rtx_insn *.
2981         (struct df_insn_info): Strengthen field "insn" from rtx to
2982         rtx_insn *.
2983         (DF_REF_INSN): Eliminate this function, reinstating the older
2984         macro definition.
2985         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
2986         (df_reg_defined): Likewise.
2987         (df_find_use): Likewise.
2988         (df_reg_used): Likewise.
2989         (df_dump_insn_top): Strengthen param 1 from const_rtx to
2990         const rtx_insn *.
2991         (df_dump_insn_bottom): Likewise.
2992         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
2993         (df_insn_debug_regno): Likewise.
2994         (debug_df_insn): Likewise.
2995         (df_rd_simulate_one_insn): Likewise for param 2.
2996         (df_word_lr_simulate_defs): Likewise for param 1.
2997         (df_word_lr_simulate_uses): Likewise.
2998         (df_md_simulate_one_insn): Likewise for param 2.
2999         (df_simulate_find_noclobber_defs): Likewise for param 1.
3000         (df_simulate_find_defs): Likewise.
3001         (df_simulate_defs): Likewise.
3002         (df_simulate_uses): Likewise.
3003         (df_simulate_one_insn_backwards): Likewise for param 2.
3004         (df_simulate_one_insn_forwards): Likewise.
3005         (df_uses_create): Likewise for param 2.
3006         (df_insn_create_insn_record): Likewise for param 1.
3007         (df_insn_delete): Likewise.
3008         (df_insn_rescan): Likewise.
3009         (df_insn_rescan_debug_internal): Likewise.
3010         (df_insn_change_bb): Likewise.
3011         (df_notes_rescan): Likewise.
3012         * rtl.h (remove_death): Likewise for param 2.
3013         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
3014         const rtx_insn *.
3015         * sched-int.h (reemit_notes): Strengthen param from rtx to
3016         rtx_insn *.
3017         * valtrack.h (propagate_for_debug): Likewise for param 1.
3019         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
3020         local "tmp_rtx" from const_rtx to const rtx_insn *.
3021         * combine.c (remove_death): Strengthen param "insn" from rtx to
3022         rtx_insn *.
3023         (move_deaths): Likewise for local "where_dead".
3024         * cse.c (delete_trivially_dead_insns): Introduce local
3025         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
3026         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
3027         rtx_insn *.
3028         (df_reg_defined): Likewise.
3029         (df_find_use): Likewise.
3030         (df_reg_used): Likewise.
3031         (df_dump_insn_problem_data): Strengthen param "insn" from
3032         const_rtx to const rtx_insn *.
3033         (df_dump_insn_top): Likewise.
3034         (df_dump_insn_bottom): Likewise.
3035         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
3036         (df_insn_debug_regno): Likewise.
3037         (debug_df_insn): Likewise.
3038         (DF_REF_INSN): Delete.
3039         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
3040         from rtx to rtx_insn *.
3041         (df_chain_insn_top_dump): Strengthen param "insn" from
3042         const_rtx to const rtx_insn *.
3043         (df_chain_insn_bottom_dump): Likewise.
3044         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
3045         rtx_insn *.
3046         (df_word_lr_simulate_uses): Likewise.
3047         (df_print_note): Likewise.
3048         (df_remove_dead_and_unused_notes): Likewise.
3049         (df_set_unused_notes_for_mw): Likewise.
3050         (df_set_dead_notes_for_mw): Likewise.
3051         (df_create_unused_note): Likewise.
3052         (df_simulate_find_defs): Likewise.
3053         (df_simulate_find_uses): Likewise.
3054         (df_simulate_find_noclobber_defs): Likewise.
3055         (df_simulate_defs): Likewise.
3056         (df_simulate_uses): Likewise.
3057         (df_simulate_one_insn_backwards): Likewise.
3058         (df_simulate_one_insn_forwards): Likewise.
3059         (df_md_simulate_one_insn): Likewise.
3060         * df-scan.c (df_uses_create): Likewise.
3061         (df_insn_create_insn_record): Likewise.
3062         (df_insn_delete): Likewise.
3063         (df_insn_rescan): Likewise.
3064         (df_insn_rescan_debug_internal): Likewise.
3065         (df_insn_change_bb): Likewise.
3066         (df_notes_rescan): Likewise.
3067         (df_refs_add_to_chains): Likewise.
3068         (df_insn_refs_verify): Likewise.
3069         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
3070         when invoking df_insn_delete.
3071         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
3072         (set_unique_reg_note): Add checked cast.
3073         * final.c (cleanup_subreg_operands): Likewise.
3074         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
3075         "insn" from rtx to rtx_insn *.
3076         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
3077         "last" from rtx to rtx_insn *.
3078         * ira-emit.c (change_regs_in_insn): New function.
3079         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
3080         Invoke change_regs_in_insn rather than change_regs.
3081         * ira.c (update_equiv_regs): Strengthen locals "insn",
3082         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
3083         for_each_rtx_in_insn rather than for_each_rtx.
3084         * recog.c (confirm_change_group): Add checked casts.
3085         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
3086         Add checked cast.
3087         (peep2_fill_buffer): Add checked cast.
3088         * rtlanal.c (remove_note): Likewise.
3089         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
3090         locals "next" "end" from rtx to rtx_insn *.
3092 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3094         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
3095         to rtx_insn *.
3096         (struct reg_use_data): Likewise for field "insn".
3097         (insn_cost): Likewise for param.
3098         (real_insn_for_shadow): Likewise for return type and param.
3099         (increase_insn_priority): Likewise for param 1.
3100         (debug_dependencies): Likewise for both params.
3102         * haifa-sched.c (insn_delay): Likewise for param "insn".
3103         (real_insn_for_shadow): Likewise for return type and param "insn".
3104         (update_insn_after_change): Likewise for param "insn".
3105         (recompute_todo_spec): Likewise for param "next" and locals "pro",
3106         "other".
3107         (insn_cost): Likewise for param "insn".
3108         (increase_insn_priority): Likewise.
3109         (calculate_reg_deaths): Likewise.
3110         (setup_insn_reg_pressure_info): Likewise.
3111         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
3112         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
3113         (model_recompute): Likewise.
3114         (must_restore_pattern_p): Likewise for param "next".
3115         (model_excess_cost): Likewise for param "insn".
3116         (queue_remove): Likewise.
3117         (adjust_priority): Likewise for param "prev".
3118         (update_register_pressure): Likewise for param "insn".
3119         (setup_insn_max_reg_pressure): Likewise for local "insn".
3120         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
3121         (model_add_to_schedule): Likewise.
3122         (model_reset_queue_indices): Likewise for local "insn".
3123         (unschedule_insns_until): Strengthen local "recompute_vec" from
3124         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
3125         "con" from rtx to rtx_insn *.
3126         (restore_last_backtrack_point): Likewise for both locals "x". Add
3127         checked casts.
3128         (estimate_insn_tick): Likewise for param "insn".
3129         (commit_schedule): Likewise for params "prev_head", "tail" and
3130         local "x".
3131         (verify_shadows): Likewise for locals "i1", "i2".
3132         (dump_insn_stream): Likewise for params "head", "tail" and locals
3133         "next_tail", "insn".
3134         (schedule_block): Likewise for locals "insn", "x".  Add a checked
3135         cast.
3136         (fix_inter_tick): Likewise for params "head", "tail".
3137         (create_check_block_twin): Likewise for local "jump".
3138         (haifa_change_pattern): Likewise for param "insn".
3139         (haifa_speculate_insn): Likewise.
3140         (dump_new_block_header): Likewise for params "head", "tail".
3141         (fix_jump_move): Likewise for param "jump".
3142         (move_block_after_check): Likewise.
3143         (sched_init_insn_luid): Likewise for param "insn".
3144         (sched_init_luids): Likewise for local "insn".
3145         (insn_luid): Likewise for param "insn".
3146         (init_h_i_d): Likewise.
3147         (haifa_init_h_i_d): Likewise for local "insn".
3148         (haifa_init_insn): Likewise for param "insn".
3149         * sched-deps.c (add_dependence): Likewise for local "real_pro",
3150         "other".
3151         (create_insn_reg_use): Likewise for param "insn".
3152         (setup_insn_reg_uses): Likewise.  Add a checked cast.
3153         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
3154         "tail" from rtx to rtx_insn *.
3155         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
3156         "insn", "next_tail".
3158 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3160         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
3161         from rtx to rtx_insn *.
3162         (model_add_to_schedule): Likewise for locals "start", "end",
3163         "iter".
3165 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3167         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
3168         rtx_insn *.
3169         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
3170         "to" and locals "insn", "next", "copy".  Remove now-redundant
3171         checked cast.
3173 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3175         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
3176         rtx_insn * and param 4 from rtx * to rtx_insn **.
3177         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
3178         param 2 from rtx * to rtx_insn **.
3180         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
3181         rtx_insn * and final param from rtx * to rtx_insn **.
3183         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
3184         from rtx to rtx_insn *.
3185         (try_head_merge_bb): Likewise for both locals named "move_upto".
3186         * df-problems.c (can_move_insns_across): Likewise for params
3187         "from", "to", "across_from", "across_to" and locals "insn",
3188         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
3189         rtx_insn **.
3190         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
3191         from rtx to rtx_insn *.
3192         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
3193         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
3194         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
3195         rtx_insn *.
3196         (noce_try_abs): Likewise.
3197         (noce_get_condition): Likewise for param "jump".  Strengthen param
3198         "earliest" from rtx * to rtx_insn **.
3199         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
3200         rtx_insn *.
3201         (find_cond_trap): Likewise.
3202         (dead_or_predicable): Likewise for local "earliest".
3203         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
3204         checked cast.
3205         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
3206         and local "prev".  Strengthen param "earliest" from rtx * to
3207         rtx_insn **.
3208         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
3209         Strengthen param "earliest" from rtx * to rtx_insn **.
3211 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3213         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
3214         "to" and local "insn" from rtx to rtx_insn *.
3216 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3218         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
3219         from rtx to rtx_insn *.
3220         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
3221         (code_motion_path_driver): Likewise for local "last_insn".
3222         (simplify_changed_insns): Likewise for local "insn".
3224 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3226         * rtl.h (push_to_sequence): Strengthen param from rtx to
3227         rtx_insn *.
3228         (push_to_sequence2): Likewise for both params.
3229         (delete_insns_since): Likewise for param.
3230         (reorder_insns_nobb): Likewise for all three params.
3231         (set_new_first_and_last_insn): Likewise for both params.
3233         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
3234         rtx_insn *.  Remove now-redundant cast.
3235         (set_last_insn): Likewise.
3237         * builtins.c (expand_builtin_return): Strengthen local
3238         "call_fusage" from rtx to rtx_insn *.
3239         * cfgrtl.c (create_basic_block_structure): Likewise for local
3240         "after".
3241         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
3242         "first", "last" and local "insn".
3243         (delete_insns_since): Likewise for param "from".
3244         (reorder_insns_nobb): Likewise for params "from", "to", "after"
3245         and local "x".
3246         (push_to_sequence): Likewise for param "first" and local "last".
3247         (push_to_sequence2): Likewise for params "first" and "last".
3248         * lra.c (emit_add3_insn): Likewise for local "last".
3249         (lra_emit_add): Likewise.
3250         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
3251         "last_insn".
3252         (process_address_1): Likewise for locals "insn", last".
3253         * modulo-sched.c (ps_first_note): Likewise for return type.
3254         * optabs.c (expand_binop_directly): Likewise for param "last".
3256 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3258         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
3259         to rtx_insn*.
3260         * emit-rtl.c (get_last_insn_anywhere): Likewise.
3262 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3264         * function.h (struct sequence_stack): Strengthen fields "first"
3265         and "last" from rtx to rtx_insn *.
3266         (struct emit_status): Likewise for fields "x_first_insn" and
3267         "x_last_insn".
3269         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
3270         (set_first_insn): Add checked cast.
3271         (get_last_insn): Remove now-redundant checked cast.
3272         (set_last_insn): Add checked cast.
3274         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
3275         "saved_first" and "saved_last" from rtx to rtx_insn *.
3277 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3279         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
3280         (unlink_insn_chain): Strengthen both params from rtx to
3281         rtx_insn *.
3283         * cfgrtl.c (cfg_layout_function_header): Likewise for this
3284         variable.
3285         (unlink_insn_chain): Likewise for params "first" and "last".
3286         Remove now-redundant checked cast.
3287         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
3288         (fixup_reorder_chain): Strengthen local "insn" from rtx to
3289         rtx_insn *.
3290         * emit-rtl.c (link_insn_into_chain): Likewise for all three
3291         params.
3292         (add_insn): Likewise for param "insn" and local "prev".
3293         (add_insn_after_nobb): Likewise for both params and local "next".
3294         (add_insn_before_nobb): Likewise for both params and local "prev".
3295         (add_insn_after): Rename param "after" to "uncast_after",
3296         introducing local "after" with another checked cast.
3297         (add_insn_before): Rename params "insn" and "before", giving them
3298         "uncast_" prefixes, adding the old names back using checked casts.
3299         (emit_note_after): Likewise for param "after".
3300         (emit_note_before): Likewise for param "before".
3301         (emit_label): Add a checked cast.
3303 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3305         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
3306         "insn" from rtx to rtx_insn *.
3308         * cselib.c (cselib_record_sets_hook): Likewise.
3310         * var-tracking.c (add_with_sets): Likewise, renaming back from
3311         "uncast_insn" to "insn" and eliminating the checked cast from rtx
3312         to rtx_insn *.
3314 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3316         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
3317         and "header_" from rtx to rtx_insn *.
3318         (struct basic_block_d): Likewise for field "head_" within "x"
3319         field of union basic_block_il_dependent.
3320         (BB_HEAD): Drop function...
3321         (SET_BB_HEAD): ...and this function in favor of...
3322         (BB_HEAD): ...reinstate macro.
3323         (BB_END): Drop function...
3324         (SET_BB_END): ...and this function in favor of...
3325         (BB_END): ...reinstate macro.
3326         (BB_HEADER): Drop function...
3327         (SET_BB_HEADER): ...and this function in favor of...
3328         (BB_HEADER): ...reinstate macro.
3330         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
3331         (fix_crossing_unconditional_branches): Likewise.
3332         * caller-save.c (save_call_clobbered_regs): Likewise.
3333         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
3334         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
3335         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
3336         (merge_blocks_move_successor_nojumps): Likewise.
3337         (outgoing_edges_match): Update use of for_each_rtx to
3338         for_each_rtx_in_insn.
3339         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
3340         (expand_gimple_cond): Likewise.
3341         (expand_gimple_tailcall): Likewise.
3342         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
3343         SET_BB_END.
3344         (construct_exit_block): Drop use of SET_BB_END.
3345         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
3346         rtx_insn *.
3347         (delete_insn): Rename param "insn" to "uncast_insn", introducing
3348         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
3349         SET_BB_HEAD and SET_BB_END.
3350         (create_basic_block_structure): Drop use of SET_BB_HEAD and
3351         SET_BB_END.
3352         (rtl_delete_block): Drop use of SET_BB_HEAD.
3353         (rtl_split_block): Drop use of SET_BB_END.
3354         (emit_nop_for_unique_locus_between): Likewise.
3355         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
3356         (block_label): Drop use of SET_BB_HEAD.
3357         (fixup_abnormal_edges): Drop use of SET_BB_END.
3358         (record_effective_endpoints): Drop use of SET_BB_HEADER.
3359         (relink_block_chain): Likewise.
3360         (fixup_reorder_chain): Drop use of SET_BB_END.
3361         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
3362         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
3363         rtx_insn **.  Drop use of SET_BB_HEADER.
3364         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
3365         SET_BB_HEAD.
3366         (BB_HEAD): Delete this function.
3367         (SET_BB_HEAD): Likewise.
3368         (BB_END): Likewise.
3369         (SET_BB_END): Likewise.
3370         (BB_HEADER): Likewise.
3371         (SET_BB_HEADER): Likewise.
3372         * emit-rtl.c (add_insn_after):  Rename param "insn" to
3373         "uncast_insn", adding a new local "insn" and a checked cast to
3374         rtx_insn *.  Drop use of SET_BB_END.
3375         (remove_insn): Strengthen locals "next" and "prev" from rtx to
3376         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
3377         (reorder_insns): Drop use of SET_BB_END.
3378         (emit_insn_after_1): Strengthen param "first" and locals "last",
3379         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
3380         (emit_pattern_after_noloc): Add checked cast.
3381         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
3382         (restore_other_notes): Likewise.
3383         (move_insn): Likewise.
3384         (sched_extend_bb): Likewise.
3385         (fix_jump_move): Likewise.
3386         * ifcvt.c (noce_process_if_block): Likewise.
3387         (dead_or_predicable): Likewise.
3388         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
3389         * reg-stack.c (change_stack): Drop use of SET_BB_END.
3390         * sel-sched-ir.c (sel_move_insn): Likewise.
3391         * sel-sched.c (move_nop_to_previous_block): Likewise.
3393         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
3394         SET_BB_END.
3395         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
3397 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3399         * basic-block.h (create_basic_block_structure): Strengthen params
3400         1 "head" and 2 "end" from rtx to rtx_insn *.
3401         * cfgrtl.c (create_basic_block_structure): Likewise.
3402         (rtl_create_basic_block): Update casts from void * to rtx to
3403         rtx_insn *, so that we can pass them as rtx_insn * to
3404         create_basic_block_structure.
3405         * sel-sched-ir.c (sel_create_basic_block): Likewise.
3407 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3409         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
3410         rtx_insn **.
3411         (check_for_inc_dec): Strengthen param "insn" from rtx to
3412         rtx_insn *.
3414         * cselib.h (cselib_process_insn): Likewise.
3416         * cselib.c (cselib_record_sets): Likewise.
3417         (cselib_process_insn): Likewise.
3419         * dse.c (struct insn_info): Likewise for field "insn".
3420         (check_for_inc_dec_1): Likewise for local "insn".
3421         (check_for_inc_dec): Likewise for param "insn".
3422         (scan_insn): Likewise.
3423         (dse_step1): Likewise for local "insn".
3425         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
3426         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
3428 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3430         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
3431         from rtx to rtx_insn *.
3432         (DEP_PRO): Delete this function and...
3433         (SET_DEP_PRO): ...this function in favor of...
3434         (DEP_PRO): ...reinstate this macro.
3435         (DEP_CON): Delete this function and...
3436         (SET_DEP_CON): ...this function in favor of...
3437         (DEP_CON): ...reinstate this old macro.
3438         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
3439         (init_dep): Likewise.
3440         (set_priorities): Likewise for both params.
3441         (sd_copy_back_deps): Likewise for params 1 and 2.
3443         * haifa-sched.c (priority): Likewise for param "insn" and local
3444         "next".
3445         (set_priorities): Likewise for params "head" and "tail" and local
3446         "insn".
3447         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
3448         local "consumer".
3449         (add_to_speculative_block): Add a checked cast.
3450         (create_check_block_twin): Drop use of SET_DEP_CON.
3451         (add_jump_dependencies): Strengthen params "insn" and "jump" from
3452         rtx to rtx_insn *.
3454         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
3455         Drop use of SET_DEP_PRO
3456         (init_dep): Strengthen params "pro" and "con" from rtx to
3457         rtx_insn *.
3458         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
3459         use of SET_DEP_CON.
3460         (DEP_PRO): Delete.
3461         (DEP_CON): Delete.
3462         (SET_DEP_PRO): Delete.
3463         (SET_DEP_CON): Delete.
3465 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3467         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
3468         from rtx to rtx_insn *.
3469         (VINSN_INSN_RTX): Eliminate rvalue function and...
3470         (SET_VINSN_INSN): ...lvalue function in favor of...
3471         (VINSN_INSN_RTX): reinstate this old macro.
3473         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
3474         in favor of VINSN_INSN_RTX.
3475         (VINSN_INSN_RTX): Delete this function.
3476         (SET_VINSN_INSN_RTX): Likewise.
3478 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3480         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
3481         (BND_TO): Delete this function and...
3482         (SET_BND_TO): ...this functions in favor of...
3483         (BND_TO): ...reinstating this macro.
3484         (struct _fence): Strengthen field "executing_insns" from
3485         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
3486         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
3487         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
3488         and param "insn" from rtx to insn_t.
3489         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
3490         rtx_insn *.
3492         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
3493         vec<rtx_insn *> .
3494         (rtx_vec_t): Likewise.
3495         (struct sched_deps_info_def): Strengthen param of "start_insn"
3496         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
3497         "note_mem_dep" callback and first param of "note_dep" callback.
3499         * haifa-sched.c (add_to_speculative_block): Strengthen param
3500         "insn" from rtx to rtx_insn *.
3501         (clear_priorities): Likewise.
3502         (calc_priorities): Likewise for local "insn".
3504         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
3505         Remove redundant checked cast.
3506         (haifa_note_mem_dep): Likewise for param "pending_insn".
3507         (haifa_note_dep): Likewise for param "elem".
3508         (note_mem_dep): Likewise for param "e".
3509         (sched_analyze_1): Add checked casts.
3510         (sched_analyze_2): Likewise.
3512         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
3513         from rtx to rtx_insn *.
3514         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
3515         from vec<rtx> * to vec<rtx_insn *> *.
3517         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
3518         scaffolding.
3519         (flist_add): Strengthen param "executing_insns" from
3520         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
3521         (advance_deps_context): Remove now-redundant checked cast.
3522         (init_fences): Replace uses of NULL_RTX with NULL.
3523         (merge_fences): Strengthen params "last_scheduled_insn" and
3524         "sched_next" from rtx to rtx_insn * and "executing_insns" from
3525         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
3526         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
3527         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
3528         an instruction, rather than doing double-duty as a pattern.
3529         (return_nop_to_pool): Update for change of insn_t.
3530         (deps_init_id): Remove now-redundant checked cast.
3531         (struct sched_scan_info_def): Strengthen param of "init_insn"
3532         callback from rtx to insn_t.
3533         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
3534         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
3535         NULL.
3536         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
3537         "end" from rtx to rtx_insn *.
3538         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
3539         (rtx insn_rtx, bool force_unique_p)
3540         (BND_TO): Delete function.
3541         (SET_BND_TO): Delete function.
3543         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
3544         rtx to rtx_insn *.
3545         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
3546         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
3547         rtx to rtx_insn *.
3548         (undo_transformations): Likewise for param "insn".
3549         (update_liveness_on_insn): Likewise.
3550         (compute_live_below_insn): Likewise for param "insn" and local
3551         "succ".
3552         (update_data_sets): Likewise for param "insn".
3553         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
3554         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
3555         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
3556         rtx_insn *.
3557         (move_cond_jump): Likewise for param "insn".
3558         (move_cond_jump): Drop use of SET_BND_TO.
3559         (compute_av_set_on_boundaries): Likewise.
3560         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
3561         (update_and_record_unavailable_insns): Strengthen local "bb_end"
3562         from rtx to rtx_insn *.
3563         (maybe_emit_renaming_copy): Likewise for param "insn".
3564         (maybe_emit_speculative_check): Likewise.
3565         (handle_emitting_transformations): Likewise.
3566         (remove_insn_from_stream): Likewise.
3567         (code_motion_process_successors): Strengthen local "succ" from rtx
3568         to insn_t.
3570 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3572         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
3573         ilist_t, not _xlist_t;
3574         (ILIST_INSN): Define in terms of new union field "insn".
3575         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
3576         _XLIST_NEXT.
3577         (struct _list_node): Add new field "insn" to the union, of type
3578         insn_t.
3579         (ilist_add): Replace macro with an inline function, requiring an
3580         insn_t.
3581         (ilist_remove): Define this macro directly in terms of
3582         _list_remove, rather than indirectly via _xlist_remove.
3583         (ilist_clear): Likewise, in terms of _list_clear rather than
3584         _xlist_clear.
3585         (ilist_is_in_p): Replace macro with an inline function, requiring
3586         an insn_t.
3587         (_list_iter_cond_insn): New function.
3588         (ilist_iter_remove): Define this macro directly in terms of
3589         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
3590         (ilist_iterator): Define directly in terms of _list_iterator
3591         rather than indirectly through _xlist_iterator.
3592         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
3593         than in terms of _FOR_EACH_X.
3594         (FOR_EACH_INSN_1): Likewise.
3596 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
3598         PR target/60606
3599         PR target/61330
3600         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
3601         DECL_HARD_REGISTER and return for invalid register specifications.
3602         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
3603         DECL_HARD_REGISTER, call expand_one_error_var.
3604         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
3605         CC_REGNUM with non-MODE_CC modes.
3606         (arm_regno_class): Return NO_REGS for PC_REGNUM.
3608 2014-08-26  Marek Polacek  <polacek@redhat.com>
3610         PR c/61271
3611         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
3613 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
3615         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
3616         qi cost; add di cost.
3617         (cortexa57_addrcost_table): Likewise.
3619 2014-08-26  Marek Polacek  <polacek@redhat.com>
3621         PR c/61271
3622         * expr.c (is_aligning_offset): Remove logical not.
3624 2014-08-26  Marek Polacek  <polacek@redhat.com>
3626         PR c/61271
3627         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
3628         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
3630 2014-08-26  Richard Biener  <rguenther@suse.de>
3632         PR tree-optimization/62175
3633         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
3634         expand possibly trapping operations.
3636 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3638         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
3639         "insn" from rtx to rtx_insn *.
3640         (permute_load): Likewise for param "insn".
3641         (permute_store): Likewise.
3642         (handle_special_swappables): Likewise for local "insn".
3643         (replace_swap_with_copy): Likewise for locals "insn" and
3644         "new_insn".
3645         (rs6000_analyze_swaps): Likewise for local "insn".
3647 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3649         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
3650         to rtx_insn *.
3652 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3654         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
3655         "note_list" from rtx to rtx_insn *.
3656         (BB_NOTE_LIST): Replace this function and...
3657         (SET_BB_NOTE_LIST): ...this function with...
3658         (BB_NOTE_LIST): ...the former macro implementation.
3660         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
3661         local "from_start" from rtx to rtx_insn *.  Strengthen param
3662         "to_endp" from rtx * to rtx_insn **.
3664         * haifa-sched.c (concat_note_lists): Likewise.
3665         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
3666         BB_NOTE_LIST.
3667         (sel_restore_notes): Likewise.
3668         (move_bb_info): Likewise.
3669         (BB_NOTE_LIST): Delete this function.
3670         (SET_BB_NOTE_LIST): Delete this function.
3671         * sel-sched.c (create_block_for_bookkeeping): Eliminate
3672         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
3674 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3676         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
3677         from rtx * to rtx_insn **.
3678         (reorder2): Likewise.
3679         (dependencies_evaluation_hook): Strengthen params "head", "tail"
3680         from rtx to rtx_insn *.
3682         * doc/tm.texi: Update mechanically for above change to target.def.
3684         * sched-int.h (note_list): Strengthen this variable from rtx to
3685         rtx_insn *.
3686         (remove_notes): Likewise for both params.
3687         (restore_other_notes): Likewise for return type and first param.
3688         (struct ready_list): Strengthen field "vec" from rtx * to
3689         rtx_insn **.
3690         (struct dep_replacement): Strenghten field "insn" from rtx to
3691         rtx_insn *.
3692         (struct deps_desc): Likewise for fields "last_debug_insn",
3693         "last_args_size".
3694         (struct haifa_sched_info): Likewise for callback field
3695         "can_schedule_ready_p"'s param, for first param of "new_ready"
3696         callback field, for both params of "rank" callback field, for
3697         first field of "print_insn" callback field (with a const), for
3698         both params of "contributes_to_priority" callback, for param
3699         of "insn_finishes_block_p" callback, for fields "prev_head",
3700         "next_tail", "head", "tail", for first param of "add_remove_insn"
3701         callback, for first param of "begin_schedule_ready" callback, for
3702         both params of "begin_move_insn" callback, and for second param
3703         of "advance_target_bb" callback.
3704         (add_dependence): Likewise for params 1 and 2.
3705         (sched_analyze): Likewise for params 2 and 3.
3706         (deps_analyze_insn): Likewise for param 2.
3707         (ready_element): Likewise for return type.
3708         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3709         (try_ready): Strenghten param from rtx to rtx_insn *.
3710         (sched_emit_insn): Likewise for return type.
3711         (record_delay_slot_pair): Likewise for params 1 and 2.
3712         (add_delay_dependencies): Likewise for param.
3713         (contributes_to_priority): Likewise for both params.
3714         (find_modifiable_mems): Likewise.
3716         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
3717         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
3718         "first_older_only_insn" from rtx to rtx_insn *.
3719         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
3720         rtx_insn **.
3722         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
3723         "last_scheduled_iter0" from rtx to rtx_insn *.
3724         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
3725         (c6x_sched_reorder_1): Strengthen param "ready" and locals
3726         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
3727         "insn" from rtx to rtx_insn *.
3728         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
3729         rtx_insn **.
3730         (c6x_sched_reorder2): Strengthen param "ready" and locals
3731         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
3732         "insn" from rtx to rtx_insn *.
3733         (c6x_variable_issue):  Add a checked cast when assigning from insn
3734         to ss.last_scheduled_iter0.
3735         (split_delayed_branch): Strengthen param "insn" and local "i1"
3736         from rtx to rtx_insn *.
3737         (split_delayed_nonbranch): Likewise.
3738         (undo_split_delayed_nonbranch): Likewise for local "insn".
3739         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
3740         "entry_after", "end_packet", "head_insn", "tail_insn",
3741         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
3742         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
3743         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
3744         but add a checked cast on loop->start_label.  Consolidate calls to
3745         avoid assigning result of gen_spkernel to "insn", now an
3746         rtx_insn *.
3748         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
3749         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
3750         rtx to rtx_insn *.
3751         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
3752         rtx_insn **.  Strengthen locals "top", "next" from rtx to
3753         rtx_insn *.
3754         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
3755         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
3756         (add_parameter_dependencies): Strengthen params "call", "head" and
3757         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
3758         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
3759         (add_dependee_for_func_arg): Likewise for param "arg" and local
3760         "insn".
3761         (ix86_dependencies_evaluation_hook): Likewise for params "head",
3762         "tail" and locals "insn", "first_arg".
3764         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
3765         for params "head", "tail" and locals "insn", "next", "next_tail".
3766         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
3767         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
3768         "insn", "lowest", "highest" from rtx to rtx_insn *.
3769         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
3770         rtx_insn **.
3771         (ia64_sched_reorder2): Likewise.
3773         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
3774         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
3775         from rtx * to rtx_insn **.
3776         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
3777         rtx_insn **.
3778         (mep_print_sched_insn): Strengthen param "insn" from rtx to
3779         rtx_insn *.
3780         (mep_sched_reorder): Strengthen param "ready" from rtx * to
3781         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
3782         to rtx_insn *.
3784         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
3785         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
3786         to rtx_insn *.
3787         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
3788         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
3789         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
3790         rtx_insn **.
3791         (vr4130_reorder): Likewise.
3792         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
3793         rtx to rtx_insn *.
3794         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
3795         rtx_insn **.
3796         (mips_sched_reorder): Likewise.
3797         (mips_sched_reorder2): Likewise.
3799         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
3801         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
3802         Strengthen local "tmp" from rtx to rtx_insn *.
3803         (rs6000_sched_reorder2): Likewise.
3805         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
3806         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
3807         (s390_sched_reorder): Strengthen param "ready" from rtx * to
3808         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
3810         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
3811         "tmp2" from rtx to rtx_insn *.
3812         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
3813         Strengthen local "insn" from rtx to rtx_insn *.
3814         (ready_reorder): Strengthen param "ready" from rtx * to
3815         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
3816         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
3817         (sh_reorder2): Likewise.
3819         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
3820         local "insn" from rtx to rtx_insn *.
3822         * haifa-sched.c (note_list): Strengthen this variable from rtx to
3823         rtx_insn *.
3824         (scheduled_insns): Strengthen this variable from vec<rtx> to
3825         vec<rtx_insn *>.
3826         (set_modulo_params): Likewise for locals "i1", "i2".
3827         (record_delay_slot_pair): Likewise for params "i1", "i2".
3828         (add_delay_dependencies): Likewise for param "insn".
3829         (cond_clobbered_p): Likewise.
3830         (recompute_todo_spec): Likewise for local "prev".
3831         (last_scheduled_insn): Likewise for this variable.
3832         (nonscheduled_insns_begin): Likewise.
3833         (model_set_excess_costs): Strengthen param "insns" from rtx * to
3834         rtx_insn **.
3835         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
3836         rtx_insn *.
3837         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
3838         Strengthen local "insn" from rtx to rtx_insn *.
3839         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
3840         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3841         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
3842         (ready_remove_first): Likewise for return type and local "t".
3843         (ready_element): Likewise for return type.
3844         (ready_remove): Likewise for return type and local "t".
3845         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
3846         (check_clobbered_conditions): Strengthen local "x" from rtx to
3847         rtx_insn *, adding a checked cast.
3848         (schedule_insn): Likewise for param "insn".
3849         (remove_notes): Likewise for params "head", "tail" and locals
3850         "next_tail", "insn", "next".
3851         (struct haifa_saved_data): Likewise for fields
3852         "last_scheduled_insn", "nonscheduled_insns_begin".
3853         (save_backtrack_point): Update for change to field "vec" of
3854         struct ready_list.
3855         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
3856         rtx_insn **.
3857         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
3858         from rtx to rtx_insn *
3859         (resolve_dependencies): Strengthen param "insn" from rtx to
3860         rtx_insn *
3861         (restore_other_notes): Likewise for return type, for param "head"
3862         and local "note_head".
3863         (undo_all_replacements): Likewise for local "insn".
3864         (first_nonscheduled_insn): Likewise for return type and local "insn".
3865         (queue_to_ready): Likewise for local "insn", adding checked casts.
3866         (early_queue_to_ready): Likewise for local "insn".
3867         (debug_ready_list_1): Strengthen local "p" from rtx * to
3868         rtx_insn **.
3869         (move_insn): Strengthen param "insn" and local "note" from rtx to
3870         rtx_insn *
3871         (insn_finishes_cycle_p): Likewise for param "insn".
3872         (max_issue): Likewise for local "insn".
3873         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
3874         to rtx_insn **.
3875         (commit_schedule): Strengthen param "prev_head" and local "insn"
3876         from rtx to rtx_insn *
3877         (prune_ready_list): Likewise for local "insn".
3878         (schedule_block): Likewise for locals "prev_head", "head", "tail",
3879         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
3880         (set_priorities): Likewise for local "prev_head".
3881         (try_ready): Likewise for param "next".
3882         (fix_tick_ready): Likewise.
3883         (change_queue_index): Likewise.
3884         (sched_extend_ready_list): Update for change to field "vec" of
3885         struct ready_list.
3886         (generate_recovery_code): Strengthen param "insn" from rtx to
3887         rtx_insn *.
3888         (begin_speculative_block): Likewise.
3889         (create_check_block_twin): Likewise for param "insn" and locals
3890         "label", "check", "twin".  Introduce local "check_pat" to avoid
3891         "check" being used as a plain rtx before being used as an insn.
3892         (fix_recovery_deps): Add a checked cast to rtx_insn * when
3893         extracting elements from ready_list.
3894         (sched_remove_insn): Strengthen param "insn" from rtx to
3895         rtx_insn *.
3896         (sched_emit_insn): Likewise for return type.
3897         (ready_remove_first_dispatch): Likewise for return type and local
3898         "insn".
3900         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
3902         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
3903         const rtx_insn *.
3905         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
3906         from rtx to rtx_insn *.
3907         (add_dependence_list): Likewise for param "insn".  Add a checked
3908         cast.
3909         (add_dependence_list_and_free): Strengthen param "insn" from rtx
3910         to rtx_insn *.  Strengthen param "list_p" from rtx * to
3911         rtx_insn **.
3912         (chain_to_prev_insn): Strengthen param "insn" and locals
3913         "prec_nonnote", "i" from rtx to rtx_insn *.
3914         (flush_pending_lists): Likewise for param "insn".
3915         (cur_insn): Likewise for this variable.
3916         (haifa_start_insn): Add a checked cast.
3917         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
3918         (sched_analyze_reg): Likewise for param "insn".
3919         (sched_analyze_1): Likewise.
3920         (sched_analyze_2): Likewise.  Add checked casts.
3921         (sched_analyze_insn): Likewise.  Also for local "prev".
3922         (deps_analyze_insn): Likewise for param "insn".
3923         (sched_analyze): Likewise for params "head", "tail" and local "insn".
3924         (add_dependence_1): Likewise for params "insn", "elem".
3925         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
3926         (parse_add_or_inc): Likewise for param "insn".
3927         (find_inc): Likewise for local "inc_cand".
3928         (find_modifiable_mems): Likewise for params "head", "tail" and
3929         locals "insn", "next_tail".
3931         * sched-ebb.c (init_ready_list): Likewise for local "insn".
3932         (begin_schedule_ready): Likewise for param "insn".
3933         (begin_move_insn): Likewise for params "insn" and "last".
3934         (ebb_print_insn): Strengthen param "insn" from const_rtx to
3935         const rtx_insn *.
3936         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
3937         (ebb_contributes_to_priority): Likewise for params "next", "insn".
3938         (ebb_add_remove_insn): Likewise for param "insn".
3939         (advance_target_bb): Likewise.
3941         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
3942         "insn".
3943         (check_live): Likewise for param "insn".
3944         (init_ready_list): Likewise for local "insn".
3945         (can_schedule_ready_p): Likewise for param "insn".
3946         (begin_schedule_ready): Likewise.
3947         (new_ready): Likewise for param "next".
3948         (rgn_print_insn): Likewise for param "insn".
3949         (rgn_rank): Likewise for params "insn1", "insn2".
3950         (contributes_to_priority): Likewise for params "next", "insn".
3951         (rgn_insn_finishes_block_p): Likewise for param "insn".
3952         (add_branch_dependences): Likewise for params "head", "tail" and
3953         locals "insn", "last".
3954         (rgn_add_remove_insn): Likewise for param "insn".
3955         (advance_target_bb): Likewise.
3957         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
3958         const_rtx to const rtx_insn *.
3960         * sel-sched-dump.h (sel_print_insn): Likewise.
3962         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
3963         (deps_init_id): Likewise.
3965         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
3966         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
3967         rtx_insn **.
3969 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3971         * output.h (final_start_function): Strengthen param 1 from rtx to
3972         rtx_insn *.
3974         * final.c (final_start_function): Likewise, renaming back from
3975         "uncast_first" to "first", and dropping the checked cast from rtx
3976         to rtx_insn *.
3978 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3980         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
3981         * final.c (final): Likewise.  Rename param back from
3982         "uncast_first" to "first" and eliminate the checked cast from rtx
3983         to rtx_insn *.
3985 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3987         * output.h (shorten_branches): Strengthen param from rtx to
3988         rtx_insn *.
3990         * final.c (shorten_branches): Likewise, renaming param back from
3991         "uncast_first" to "first", and dropping the checked cast from rtx
3992         to rtx_insn *.
3994         * genattr.c (gen_attr): Likewise when writing out the prototype of
3995         shorten_branches.
3997 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3999         * sched-int.h (struct haifa_sched_info): Strengthen fields
4000         "prev_head" and "next_tail" from rtx to rtx_insn *.
4002 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4004         * rtl.h (rtx_jump_table_data::get_labels): New method.
4005         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
4006         with use of the new rtx_jump_table_data::get_labels method.
4007         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
4008         to rtx_jump_table_data *.  Simplify by using get_labels method.
4009         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
4010         a dyn_cast, introducing local "table", using it to replace
4011         label-lookup logic with a get_labels method call.
4012         (patch_jump_insn): Simplify using get_labels method.
4013         * dwarf2cfi.c (create_trace_edges): Likewise.
4014         * rtlanal.c (label_is_jump_target_p): Likewise.
4016 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4018         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
4019         to rtx_insn *.
4021         * emit-rtl.c (unshare_all_rtl_1): Likewise.
4022         (unshare_all_rtl_again): Likewise, also for local "p".
4024 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4026         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
4027         to rtx_insn *.
4028         * cfgrtl.c (delete_insn_and_edges): Likewise.
4030 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4032         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
4033         from rtx to rtx_insn *.
4035         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
4037 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4039         * function.c (thread_prologue_and_epilogue_insns): Likewise for
4040         locals "returnjump", "epilogue_end", "insn", "next".
4042         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
4043         "returnjump" from rtx * to rtx_insn **.
4044         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
4046 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4048         * basic-block.h (struct edge_def). Strengthen "r" within
4049         union edge_def_insns from rtx to rtx_insn *.
4051         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
4052         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
4053         rtx_insn *.
4054         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
4055         from rtx to rtx_insn *.
4056         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
4057         rtx_insn *.
4058         * postreload-gcse.c (reg_killed_on_edge): Likewise.
4059         (reg_used_on_edge): Likewise.
4060         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
4061         (gt_pch_nx): New overload for rtx_insn *&.
4062         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
4063         from rtx to rtx_insn *.
4065 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4067         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
4068         from rtx to rtx_insn *.
4069         (BB_FOOTER): Replace function with access macro.
4070         (SET_BB_FOOTER): Delete.
4072         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
4073         with BB_FOOTER.
4074         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4075         (emit_barrier_after_bb): Likewise.
4076         (record_effective_endpoints): Likewise.
4077         (relink_block_chain): Likewise.
4078         (fixup_fallthru_exit_predecessor): Likewise.
4079         (cfg_layout_duplicate_bb): Likewise.
4080         (cfg_layout_split_block): Likewise.
4081         (cfg_layout_delete_block): Likewise.
4082         (cfg_layout_merge_blocks): Likewise.
4083         (BB_FOOTER): Delete function.
4084         (SET_BB_FOOTER): Delete function.
4085         * combine.c (update_cfg_for_uncondjump): Replace uses of
4086         SET_BB_FOOTER with BB_FOOTER.
4088 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4090         * except.h (struct eh_landing_pad_d): Strengthen field
4091         "landing_pad" from rtx to rtx_code_label *.
4093         * except.c (sjlj_emit_dispatch_table): Likewise for param
4094         "dispatch_label"
4095         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
4097 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4099         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
4100         first param from rtx to rtx_insn *.
4101         * config/xtensa/xtensa.c (struct machine_function): Likewise for
4102         field "set_frame_ptr_insn".
4103         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
4104         "csend" from rtx to rtx_code_label *.
4105         (xtensa_expand_atomic): Likewise for local "csloop".
4106         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
4107         rtx_insn *.
4108         (xtensa_call_tls_desc): Likewise for return type and locals
4109         "call_insn", "insns".
4110         (xtensa_legitimize_tls_address): Likewise for local "insns".
4111         (xtensa_expand_prologue): Likewise for locals "insn", "first".
4113 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4115         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
4116         first param from rtx to rtx_insn *.
4117         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
4118         "insn".
4120 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4122         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
4123         Strengthen param 1 from rtx to rtx_insn *.
4124         (tilepro_output_cbranch): Likewise.
4125         (tilepro_adjust_insn_length): Likewise.
4126         (tilepro_final_prescan_insn): Likewise for sole param.
4128         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
4129         Likewise for local "last".
4130         (cbranch_predicted_p): Likewise for param "insn".
4131         (tilepro_output_simple_cbranch_with_opcode): Likewise.
4132         (tilepro_output_cbranch_with_opcode): Likewise.
4133         (tilepro_output_cbranch): Likewise.
4134         (frame_emit_load): Likewise for return type and locals "seq",
4135         "insn".
4136         (emit_sp_adjust): Likewise for return type and local "insn".
4137         (tilepro_expand_epilogue): Likewise for locals "last_insn",
4138         "insn".
4139         (tilepro_adjust_insn_length): Likewise for param "insn".
4140         (next_insn_to_bundle): Likewise for return type and params
4141         "r", "end".
4142         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
4143         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
4144         local "new_insns".
4145         (match_addli_pcrel): Likewise for param "insn".
4146         (replace_addli_pcrel): Likewise.
4147         (match_auli_pcrel): Likewise.
4148         (replace_auli_pcrel): Likewise.
4149         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
4150         "next_insn".
4151         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4152         "queue", "next_queue", "prev".
4153         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
4154         (tilepro_final_prescan_insn): Likewise for param "insn".
4156 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4158         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
4159         Strengthen param 1 from rtx to rtx_insn *.
4160         (tilegx_output_cbranch): Likewise.
4161         (tilegx_adjust_insn_length): Likewise.
4162         (tilegx_final_prescan_insn): Likewise for sole param.
4164         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
4165         or local "last".
4166         (cbranch_predicted_p): Likewise for param "insn".
4167         (tilegx_output_simple_cbranch_with_opcode): Likewise.
4168         (tilegx_output_cbranch_with_opcode): Likewise.
4169         (tilegx_output_cbranch): Likewise.
4170         (frame_emit_load): Likewise for return type.
4171         (set_frame_related_p): Likewise for locals "seq", "insn".
4172         (emit_sp_adjust): Likewise for return type, and for local "insn".
4173         Introduce local "pat" for use in place of "insn" where the latter
4174         isn't an instruction.
4175         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
4176         from rtx to rtx_insn *.
4177         (tilegx_adjust_insn_length): Likewise for param "insn".
4178         (next_insn_to_bundle): Likewise for return type and params "r" and
4179         "end".
4180         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
4181         "end".
4182         (replace_insns): Likewise for params "old_insn", "new_insns".
4183         (replace_mov_pcrel_step1): Likewise for param "insn" and local
4184         "new_insns".
4185         (replace_mov_pcrel_step2): Likewise.
4186         (replace_mov_pcrel_step3): Likewise.
4187         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
4188         "next_insn".
4189         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4190         "queue", "next_queue", "prev".
4191         (tilegx_output_mi_thunk): Likewise for local "insn".
4192         (tilegx_final_prescan_insn): Likewise for param "insn".
4194 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4196         * config/spu/spu.c (frame_emit_store): Strengthen return type from
4197         rtx to rtx_insn *.
4198         (frame_emit_load): Likewise.
4199         (frame_emit_add_imm): Likewise, also for local "insn".
4200         (spu_expand_prologue): Likewise for local "insn".
4201         (struct spu_bb_info): Likewise for field "prop_jump".
4202         (emit_nop_for_insn): Likewise for param "insn" and local
4203         "new_insn".
4204         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
4205         "hbr_insn".
4206         (spu_emit_branch_hint): Likewise for params "before", "branch" and
4207         locals "hint", "insn".
4208         (get_branch_target): Likewise for param "branch".
4209         (insn_clobbers_hbr): Likewise for param "insn".
4210         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
4211         locals "insn", "before_4", "before_16".
4212         (insert_hbrp): Likewise for local "insn".
4213         (spu_machine_dependent_reorg): Likewise for locals "branch",
4214         "insn", "next", "bbend".
4215         (uses_ls_unit): Likewise for param "insn".
4216         (get_pipe): Likewise.
4217         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
4218         introducing a checked cast.
4219         (spu_sched_adjust_cost): Likewise for params "insn" and
4220         "dep_insn".
4221         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
4222         (spu_sms_res_mii): Likewise.
4224 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4226         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
4227         from rtx to rtx_insn *.
4228         (output_cbranch): Likewise for param 6.
4229         (output_return): Likewise for param 1.
4230         (output_sibcall): Likewise.
4231         (output_v8plus_shift): Likewise.
4232         (output_v8plus_mult): Likewise.
4233         (output_v9branch): Likewise for param 7.
4234         (output_cbcond):  Likewise for param 3.
4236         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
4237         for local "insn".
4238         (sparc_legitimize_pic_address): Likewise.
4239         (sparc_emit_call_insn): Likewise.
4240         (emit_save_or_restore_regs): Likewise.
4241         (emit_window_save): Likewise for return type and local "insn".
4242         (sparc_expand_prologue): Likewise for local "insn".
4243         (sparc_flat_expand_prologue): Likewise.
4244         (output_return): Likewise for param "insn".
4245         (output_sibcall): Likewise for param "insn" and local "delay".
4246         (output_ubranch): Likewise for param "insn".
4247         (output_cbranch): Likewise.
4248         (output_cbcond): Likewise.
4249         (output_v9branch): Likewise.
4250         (output_v8plus_shift): Likewise.
4251         (sparc_output_mi_thunk): Likewise for local "insn".
4252         (get_some_local_dynamic_name): Likewise.
4253         (output_v8plus_mult): Likewise for param "insn".
4255 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4257         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
4258         from rtx to rtx_insn *.
4259         (output_branchy_insn): Likewise for param 3.
4260         (output_far_jump): Likewise for param 1.
4261         (final_prescan_insn): Likewise.
4262         (sh_insn_length_adjustment): Likewise for sole param.
4264         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
4265         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
4266         rtx_code_label *.
4267         (sh_emit_compare_and_set): Likewise for local "lab".
4268         (output_far_jump): Strengthen param "insn" and local "prev" from
4269         rtx to rtx_insn *.
4270         (output_branchy_insn): Likewise for param "insn" and local
4271         "next_insn".
4272         (output_ieee_ccmpeq): Likewise for param "insn".
4273         (struct label_ref_list_d): Strengthen field "label" from rtx to
4274         rtx_code_label *.
4275         (pool_node): Likewise.
4276         (pool_window_label): Likewise for this global.
4277         (add_constant): Likewise for return type and locals "lab", "new_rtx".
4278         (dump_table): Strengthen params "start", "barrier" and local
4279         "scan" from rtx to rtx_insn *.
4280         (broken_move): Likewise for param "insn".
4281         (untangle_mova): Likewise for params "first_mova" and "new_mova".
4282         Strengthen param "first_mova" from rtx * to rtx_insn **.
4283         (mova_p): Likewise for param "insn".
4284         (fixup_mova): Likewise for param "mova".
4285         (find_barrier): Likewise for return type, params "mova" and
4286         "from", and locals "barrier_before_mova", "found_barrier",
4287         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
4288         "label" from rtx to rtx_code_label *.
4289         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
4290         rtx to rtx_insn *.
4291         (sh_reorg): Likewise for locals "link", "scan", "barrier".
4292         (split_branches): Likewise for param "first" and local "insn".
4293         (final_prescan_insn): Likewise for param "insn".
4294         (sequence_insn_p): Likewise for locals "prev", "next".
4295         (sh_insn_length_adjustment): Likewise for param "insn".
4296         (sh_can_redirect_branch): Likewise for local "insn".
4297         (find_r0_life_regions): Likewise for locals "end", "insn".
4298         (sh_output_mi_thunk): Likewise for local "insns".
4300 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4302         * config/score/score.c (score_output_mi_thunk): Strengthen local
4303         "insn" from rtx to rtx_insn *.
4304         (score_prologue): Likewise.
4306 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4308         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
4309         1 from rtx to rtx_insn *.
4310         (s390_emit_jump): Likewise for return type.
4311         (s390_emit_call): Likewise.
4312         (s390_load_got): Likewise.
4314         * config/s390/s390.c (last_scheduled_insn): Likewise for this
4315         variable.
4316         (s390_match_ccmode): Likewise for param "insn".
4317         (s390_emit_jump): Likewise for return type.
4318         (s390_split_branches): Likewise for local "label".
4319         (struct constant): Strengthen field "label" from rtx to
4320         rtx_code_label *.
4321         (struct constant_pool): Likewise for field "label".  Strengthen
4322         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
4323         rtx_insn *.
4324         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
4325         insns.
4326         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
4327         (s390_end_pool): Likewise.
4328         (s390_dump_pool): Likewise for local "insn".
4329         (s390_mainpool_start): Likewise.
4330         (s390_chunkify_start): Likewise.
4331         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
4332         with insns.  Strengthen locals "label", "jump", "barrier", "next",
4333         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
4334         (s390_chunkify_finish): Strengthen local "insn" from rtx to
4335         rtx_insn *.
4336         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
4337         "jump", "label", "next_insn".
4338         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
4339         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
4340         "tbegin_insn".
4341         (s390_load_got): Likewise for return type and local "insns".
4342         (s390_save_gprs_to_fprs): Likewise for local "insn".
4343         (s390_restore_gprs_from_fprs): Likewise.
4344         (pass_s390_early_mach::execute): Likewise.
4345         (s390_emit_prologue): Likewise for local "insns".
4346         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
4347         rtx_code_label *.
4348         (s390_emit_call): Strengthen return type and local "insn" from
4349         rtx to rtx_insn *.
4350         (s390_emit_tpf_eh_return): Likewise for local "insn".
4351         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
4352         "next_insn", introducing locals "s_pat", "rpat" to allow this.
4353         (s390_fix_long_loop_prediction): Likewise for param "insn" and
4354         local "cur_insn".
4355         (s390_non_addr_reg_read_p): Likewise for param "insn".
4356         (find_cond_jump): Likewise for return type and param "insn".
4357         (s390_swap_cmp): Likewise for param "insn".
4358         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
4359         "prev_insn", "next_insn".
4360         (s390_reorg): Likewise for locals "insn", "target".
4361         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
4362         (s390_sched_variable_issue): For now, rename param "insn" to
4363         "uncast_insn", introducing a checked cast.
4364         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
4365         insn.
4366         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
4367         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
4369 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4371         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
4372         param from rtx to rtx_insn *.
4373         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
4375 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4377         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
4378         4 from rtx to rtx_insn *.
4379         (rs6000_final_prescan_insn): Likewise for first param.
4380         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
4381         local "insn".
4382         (rs6000_get_some_local_dynamic_name): Likewise.
4383         (output_cbranch): Likewise for param "insn".
4384         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
4385         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
4386         (rs6000_emit_allocate_stack): Likewise for local "insn".
4387         (load_cr_save): Likewise.
4388         (restore_saved_cr): Likewise.
4389         (restore_saved_lr): Likewise.
4390         (emit_cfa_restores): Likewise.
4391         (rs6000_output_function_epilogue): Likewise for locals "insn" and
4392         "deleted_debug_label".
4393         (rs6000_output_mi_thunk): Likewise for local "insn".
4394         (rs6000_final_prescan_insn): Likewise for param "insn".
4396 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4398         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
4399         Strengthen param "insn" from rtx to rtx_insn *.
4400         * config/picochip/picochip.c (picochip_current_prescan_insn):
4401         Likewise for this variable.
4402         (picochip_final_prescan_insn): Likewise for param "insn".
4404 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4406         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
4407         from rtx to rtx_insn *.
4408         (pa_output_indirect_call): Likewise.
4409         (pa_adjust_insn_length): Likewise.
4410         (pa_attr_length_millicode_call): Likewise.
4411         (pa_attr_length_call): Likewise.
4412         (pa_attr_length_indirect_call): Likewise.
4414         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
4415         "insn".
4416         (pa_attr_length_millicode_call): Likewise.
4417         (pa_attr_length_call): Likewise.
4418         (pa_output_call): Likewise.
4419         (pa_attr_length_indirect_call): Likewise.
4420         (pa_output_indirect_call): Likewise.
4422 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4424         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
4425         Strengthen first param from rtx to rtx_insn *.
4426         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
4427         param "insn".
4429 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4431         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
4432         type from rtx to rtx_insn *.
4433         (mips_expand_call): Likewise.
4434         (mips_adjust_insn_length): Likewise for first param.
4435         (mips_output_conditional_branch): Likewise.
4436         (mips_output_order_conditional_branch): Likewise.
4437         (mips_final_prescan_insn): Likewise.
4439         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
4440         rtx_insn * for the SEQUENCE case.
4441         (SEQ_END): Likewise.
4442         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
4443         (mips_emit_call_insn): Likewise, also for local "insn".
4444         (mips16_gp_pseudo_reg): Likewise for local "scan".
4445         (mips16_build_call_stub): Likewise for return type and for local
4446         "insn".  Introduce a new local "pattern" so that "insn" can indeed
4447         be an insn.
4448         (mips_expand_call): Strengthen return type and local "insn" from
4449         rtx to rtx_insn *.
4450         (mips_block_move_loop): Strengthen local "label" from rtx to
4451         rtx_code_label *.
4452         (mips_expand_synci_loop): Likewise for locals "label",
4453         "end_label".
4454         (mips_set_frame_expr): Strengthen local "insn" from rtx to
4455         rtx_insn *.
4456         (mips16e_collect_argument_saves): Likewise for locals "insn",
4457         "next".
4458         (mips_find_gp_ref): Likewise for param of callback for "pred"
4459         param, and for local "insn".
4460         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
4461         (mips_insn_has_flexible_gp_ref_p): Likewise.
4462         (mips_epilogue_emit_cfa_restores): Likewise for return type and
4463         local "insn".
4464         (mips_epilogue_set_cfa): Likewise for local "insn".
4465         (mips_expand_epilogue): Likewise.
4466         (mips_adjust_insn_length): Likewise for param "insn".
4467         (mips_output_conditional_branch): Likewise.
4468         (mips_output_order_conditional_branch): Likewise.
4469         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
4470         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
4471         "falu2_turn_enabled_insn".
4472         (mips_builtin_branch_and_move): Strengthen locals "true_label",
4473         "done_label" from rtx to rtx_code_label *.
4474         (struct mips16_constant): Likewise for field "label".
4475         (mips16_add_constant): Likewise for return type.
4476         (mips16_emit_constants_1): Strengthen return type and param "insn"
4477         from rtx to rtx_insn *.
4478         (mips16_emit_constants): Likewise for param "insn".
4479         (mips16_insn_length): Likewise.
4480         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
4481         to rtx_code_label *.
4482         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
4483         from rtx to rtx_insn *.
4484         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
4485         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
4486         (r10k_simplify_address): Strengthen param "insn" and local
4487         "def_insn" from rtx to rtx_insn *.
4488         (r10k_safe_address_p): Strengthen param "insn" from rtx to
4489         rtx_insn *.
4490         (r10k_needs_protection_p_1): Update target type of cast of data
4491         from to rtx to rtx_insn *.
4492         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
4493         rtx * to rtx_insn **.
4494         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
4495         rtx_insn *.
4496         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
4497         (mips_call_expr_from_insn): Likewise for param "insn".
4498         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
4499         (mips_find_pic_call_symbol): Likewise for param "insn".
4500         (mips_annotate_pic_calls): Likewise for local "insn".
4501         (mips_sim_insn): Likewise for this variable.
4502         (struct mips_sim): Likewise for field "insn" within elements of
4503         last_set array.
4504         (mips_sim_wait_reg): Likewise for param "insn".
4505         (mips_sim_wait_regs): Likewise.
4506         (mips_sim_wait_units): Likewise.
4507         (mips_sim_wait_insn): Likewise.
4508         (mips_sim_issue_insn): Likewise.
4509         (mips_sim_finish_insn): Likewise.
4510         (mips_seq_time): Likewise for param "seq" and local "insn".
4511         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
4512         locals "first", "second".
4513         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
4514         "last", "last2", "next".
4515         (mips_avoid_hazard): Likewise for params "after", "insn".
4516         (mips_reorg_process_insns): Likewise for locals "insn",
4517         "last_insn", "subinsn", "next_insn".
4518         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
4519         (mips16_split_long_branches): Likewise for locals "insn" "jump",
4520         "jump_sequence".
4521         (mips_output_mi_thunk): Likewise for local "insn".
4522         (mips_final_prescan_insn): Likewise for param "insn".
4524 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4526         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
4527         Strengthen return type and local "insns" from rtx to rtx_insn *.
4528         (microblaze_legitimize_tls_address): Likewise for local "insns".
4529         (microblaze_block_move_loop): Strengthen local "label" from rtx
4530         to rtx_code_label *.
4531         (microblaze_expand_prologue): Strengthen two locals named "insn"
4532         from rtx to rtx_insn *.
4533         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
4534         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
4535         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
4536         to rtx_code_label *.
4538 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4540         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
4541         param from rtx to rtx_insn *.
4542         (mep_reuse_lo): Likewise for third param.
4543         (mep_use_post_modify_p): Likewise for first param.
4544         (mep_core_address_length): Likewise.
4545         (mep_cop_address_length): Likewise.
4546         (mep_final_prescan_insn): Likewise.
4547         (mep_store_data_bypass_p): Likewise for both params.
4548         (mep_mul_hilo_bypass_p): Likewise.
4549         (mep_ipipe_ldc_p): Likewise for param.
4551         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
4552         (mep_rewrite_mult): Likewise.
4553         (mep_rewrite_mulsi3): Likewise.
4554         (mep_rewrite_maddsi3): Likewise.
4555         (mep_reuse_lo_p_1): Likewise.
4556         (mep_reuse_lo_p): Likewise.
4557         (mep_frame_expr): Likewise.
4558         (mep_make_parallel): Likewise for both params.
4559         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
4560         local "insn".
4561         (mep_use_post_modify_p): Likewise for param "insn".
4562         (mep_core_address_length): Likewise.
4563         (mep_cop_address_length): Likewise.
4564         (mep_reg_set_in_function): Likewise for local "insn".
4565         (mep_asm_without_operands_p): Likewise.
4566         (F): Likewise for return type and param "x".
4567         (add_constant): Likewise for local "insn".
4568         (maybe_dead_move): Likewise for return type and local "insn".
4569         (mep_expand_prologue): Likewise for local "insn".
4570         (mep_final_prescan_insn): Likewise for param "insn".
4571         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
4572         "next", "follow", "x".
4573         (mep_insert_repeat_label_last): Likewise for return type, param
4574         "last_insn", and locals "next", "prev".  Strengthen param "label"
4575         from rtx to rtx_code_label *.
4576         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
4577         rtx_insn *.
4578         (struct mep_doloop_end): Likewise for fields "insn" and
4579         "fallthrough".
4580         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
4581         Strengthen local "repeat_label" from rtx to rtx_code_label *.
4582         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
4583         rtx_insn *.
4584         (mep_invert_branch): Likewise for params "insn" and "after".
4585         (mep_reorg_erepeat): Likewise for param "insns" and locals
4586         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
4587         "l" from rtx to rtx_code_label *.
4588         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
4589         from rtx to rtx_insn *.
4590         (mep_reorg_addcombine): Likewise for param "insns" and locals
4591         "i", "n".
4592         (add_sp_insn_p): Likewise for param "insn".
4593         (mep_reorg_noframe): Likewise for param "insns" and locals
4594         "start_frame_insn", "end_frame_insn", "next".
4595         (mep_reorg): Likewise for local "insns".
4596         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
4597         cast.
4598         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
4599         (mep_mul_hilo_bypass_p): Likewise.
4600         (mep_ipipe_ldc_p): Likewise for param "insn".
4601         (mep_make_bundle): Likewise for return type, param "cop" and local
4602         "insn", splitting out the latter into a new local "seq" for when it
4603         is a SEQUENCE rather than an insn.
4604         (core_insn_p): Likewise for param "insn".
4605         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
4606         "last", "first", "note", "prev", "core_insn".
4608 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4610         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
4611         rtx to rtx_insn *.
4612         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
4613         (m68k_final_prescan_insn): Likewise for first param.
4615         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
4616         (m68k_set_frame_related): Likewise for param "insn".
4617         (output_btst): Likewise for param "insn".
4618         (m68k_final_prescan_insn): Likewise.
4619         (m68k_move_to_reg): Likewise for local "insn".
4620         (m68k_call_tls_get_addr): Likewise for local "insns".
4621         (m68k_call_m68k_read_tp): Likewise.
4622         (strict_low_part_peephole_ok): Likewise for param "first_insn".
4623         (m68k_output_mi_thunk): Likewise for local "insn".
4625 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4627         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
4628         first param from rtx to rtx_insn *.
4629         (iq2000_adjust_insn_length): Likewise.
4630         (iq2000_output_conditional_branch): Likewise.
4631         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
4632         "insn" and local "nop_insn".
4633         (iq2000_annotate_frame_insn): Likewise for param "insn".
4634         (iq2000_expand_prologue): Likewise for both locals "insn".
4635         (iq2000_adjust_insn_length): Likewise for param "insn".
4636         (iq2000_output_conditional_branch): Likewise.
4638 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4640         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
4641         "insns" from rtx to rtx_insn *.
4642         (ia64_emit_cond_move): Likewise for locals "insn", "first".
4643         (struct spill_fill_data): Likewise for field "init_after" and for
4644         elements of array field "prev_insn".
4645         (spill_restore_mem): Likewise for locals "insn", "first".
4646         (do_spill): Likewise for local "insn".
4647         (do_restore): Likewise.
4648         (ia64_expand_prologue): Likewise.
4649         (ia64_expand_epilogue): Likewise.
4650         (emit_insn_group_barriers): Likewise for locals "insn",
4651         "last_label".
4652         (emit_all_insn_group_barriers): Likewise for locals "insn",
4653         "last".
4654         (dfa_stop_insn): Likewise for this global.
4655         (dfa_pre_cycle_insn): Likewise.
4656         (ia64_nop): Likewise.
4657         (final_emit_insn_group_barriers): Likewise for locals "insn",
4658         "last".
4659         (emit_predicate_relation_info): Likewise for locals "head", "n",
4660         "insn", "b", "a".
4661         (ia64_reorg): Likewise for local "insn".
4662         (ia64_output_mi_thunk): Likewise.
4663         (expand_vec_perm_interleave_2): Likewise for local "seq".
4665 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4667         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
4668         param 1 "insn" from rtx to rtx_insn *.
4669         (ix86_use_lea_for_mov): Likewise.
4670         (ix86_avoid_lea_for_addr): Likewise.
4671         (ix86_split_lea_for_addr): Likewise.
4672         (ix86_lea_for_add_ok): Likewise.
4673         (ix86_output_call_insn): Likewise.
4675         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
4676         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
4677         (ix86_output_function_epilogue): Likewise for locals "insn",
4678         "deleted_debug_label".
4679         (legitimize_tls_address): Likewise for local "insn".
4680         (get_some_local_dynamic_name): Likewise.
4681         (increase_distance): Likewise for params "prev", "next".
4682         (distance_non_agu_define_in_bb): Likewise for params "insn",
4683         "start" and locals "prev", "next".
4684         (distance_non_agu_define): Likewise for param "insn".
4685         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
4686         locals "next", "prev".
4687         (distance_agu_use): Likewise for param "insn".
4688         (ix86_lea_outperforms): Likewise.
4689         (ix86_ok_to_clobber_flags): Likewise.
4690         (ix86_avoid_lea_for_add): Likewise.
4691         (ix86_use_lea_for_mov): Likewise.
4692         (ix86_avoid_lea_for_addr): Likewise.
4693         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
4694         (ix86_split_lea_for_addr): Likewise for param "insn".
4695         (ix86_lea_for_add_ok): Likewise for param "insn".
4696         (ix86_expand_carry_flag_compare): Likewise for local
4697         "compare_seq".
4698         (ix86_expand_int_movcc): Likewise.
4699         (ix86_output_call_insn): Likewise for param "insn".
4700         (ix86_output_call_insn): Likewise for local "i".
4701         (x86_output_mi_thunk): Introduce local "insn", using it in place
4702         of "tmp" when dealing with insns.
4703         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
4704         "start".
4705         (ix86_pad_returns): Likewise for locals "ret", "prev".
4706         (ix86_count_insn_bb): Likewise for local "insn".
4707         (ix86_pad_short_function): Likewise for locals "ret", "insn".
4708         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
4709         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
4710         (expand_vec_perm_interleave2): Likewise for local "seq".
4711         (expand_vec_perm_vperm2f128_vblend): Likewise.
4712         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
4713         call to for_each_rtx with for_each_rtx_in_insn.
4715 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4717         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
4718         "label" from rtx to rtx_code_label *.
4719         (ix86_expand_prologue): Likewise.
4720         (ix86_expand_split_stack_prologue): Likewise for locals "label",
4721         "varargs_label".
4722         (ix86_split_idivmod): Likewise for locals "end_label" and
4723         "qimode_label".
4724         (ix86_expand_branch): Likewise for local "label2".
4725         (ix86_expand_aligntest): Likewise for return type and local "label".
4726         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
4727         "top_label".
4728         (expand_movmem_epilogue): Likewise for the various locals named
4729         "label".
4730         (expand_setmem_epilogue): Likewise.
4731         (expand_small_movmem_or_setmem): Likewise for local "label".
4732         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4733         Strengthen param "done_label" from rtx * to rtx_code_label **.
4734         Strengthen locals "loop_label" and "label" from rtx to
4735         rtx_code_label *.
4736         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4737         Likewise for locals "loop_label", "label".
4738         (ix86_expand_set_or_movmem): Likewise for locals "label",
4739         "jump_around_label", "hot_label".
4740         (ix86_expand_strlensi_unroll_1): Likewise for locals
4741         "align_2_label", align_3_label", "align_4_label", "end_0_label",
4742         "end_2_label".
4743         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
4744         (void ix86_emit_i387_log1p): Likewise for locals "label1",
4745         "label2", "jump_label".
4746         (ix86_expand_sse_compare_and_jump): Likewise for return type and
4747         local "label".
4748         (ix86_expand_lfloorceil): Likewise for local "label".
4749         (ix86_expand_rint): Likewise.
4750         (ix86_expand_floorceildf_32): Likewise.
4751         (ix86_expand_floorceil): Likewise.
4752         (ix86_expand_rounddf_32): Likewise.
4753         (ix86_expand_trunc): Likewise.
4754         (ix86_expand_truncdf_32): Likewise.
4755         (ix86_expand_round): Likewise.
4757 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4759         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
4760         first param from rtx to rtx_insn *.
4761         (h8300_insn_length_from_table): Likewise.
4762         * config/h8300/h8300.c (F): Likewise for return type and param
4763         "x".
4764         (Fpa): Add a checked cast to rtx_insn *.
4765         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
4766         rtx_insn *.
4767         (final_prescan_insn): Likewise for param "insn".
4768         (h8300_binary_length): Likewise.
4769         (h8300_insn_length_from_table): Likewise.
4771 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4773         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
4774         Strengthen first param "insn" from rtx to rtx_insn *.
4776         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
4777         Likewise.
4778         (frame_insn): Likewise for return type.  Introduce local "insn"
4779         for use in place of local "x" for use as an rtx_insn *.
4780         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
4781         (epiphany_expand_prologue): Likewise for local "insn".
4782         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
4783         * config/epiphany/resolve-sw-modes.c
4784         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
4785         "seq".
4787 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4789         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
4790         param from rtx to rtx_insn *.
4791         (c6x_final_prescan_insn): Likewise for first param.
4793         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
4794         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
4795         (c6x_expand_compare): Strengthen local "insns" from rtx to
4796         rtx_insn *.
4797         (c6x_get_unit_specifier): Likewise for param "insn".
4798         (c6x_print_unit_specifier_field): Likewise.
4799         (c6x_final_prescan_insn): Likewise.
4800         (emit_add_sp_const): Likewise for local "insn".
4801         (c6x_expand_prologue): Likewise.
4803 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4805         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
4806         param 1 from rtx to rtx_insn *.
4807         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
4808         the various locals named "insn".
4809         (expand_epilogue_reg_restore): Likewise.
4810         (frame_related_constant_load): Likewise.
4811         (add_to_reg): Likewise.
4812         (emit_link_insn): Likewise.
4813         (do_link): Likewise.
4814         (expand_interrupt_handler_prologue): Likewise.
4815         (branch_dest): Likewise for param "branch".
4816         (asm_conditional_branch): Likewise for param "insn".
4817         (gen_one_bundle): Likewise for elements of param "slot" and local
4818         "t".
4819         (bfin_gen_bundles): Likewise for locals "insn", "next" and
4820         elements of local "slot".
4821         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4822         "queue", "next_queue", "prev".
4823         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
4824         (add_sched_insns_for_speculation): Likewise for local "insn".
4826 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4828         * config/avr/avr-protos.h (output_movqi): Strengthen first param
4829         from rtx to rtx_insn *.
4830         (output_movhi): Likewise.
4831         (output_movsisf): Likewise.
4832         (avr_out_tstsi): Likewise.
4833         (avr_out_tsthi): Likewise.
4834         (avr_out_tstpsi): Likewise.
4835         (avr_out_compare): Likewise.
4836         (avr_out_compare64): Likewise.
4837         (avr_out_movpsi): Likewise.
4838         (ashlqi3_out): Likewise.
4839         (ashlhi3_out): Likewise.
4840         (ashlsi3_out): Likewise.
4841         (ashrqi3_out): Likewise.
4842         (ashrhi3_out): Likewise.
4843         (ashrsi3_out): Likewise.
4844         (lshrqi3_out): Likewise.
4845         (lshrhi3_out): Likewise.
4846         (lshrsi3_out): Likewise.
4847         (avr_out_ashlpsi3): Likewise.
4848         (avr_out_ashrpsi3): Likewise.
4849         (avr_out_lshrpsi3): Likewise.
4850         (avr_out_fract): Likewise.
4851         (avr_out_sbxx_branch): Likewise.
4852         (avr_out_round): Likewise.
4853         (avr_out_xload): Likewise.
4854         (avr_out_movmem): Likewise.
4855         (adjust_insn_length): Likewise.
4856         (avr_out_lpm): Likewise.
4857         (reg_unused_after): Likewise.
4858         (_reg_unused_after): Likewise.
4859         (avr_jump_mode): Likewise for second param.
4860         (jump_over_one_insn): Likewise for first param.
4861         (avr_final_prescan_insn): Likewise.
4862         (out_shift_with_cnt): Likewise for second param.
4864         * config/avr/avr.c (get_sequence_length): Likewise for param
4865         "insns" and local "insn".
4866         (emit_push_byte): Likewise for local "insn".
4867         (emit_push_sfr): Likewise.
4868         (avr_prologue_setup_frame): Likewise for locals "insn",
4869         "fp_plus_insns", "sp_plus_insns".
4870         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
4871         "sp_plus_insns".
4872         (avr_jump_mode): Likewise for param "insn".
4873         (avr_final_prescan_insn): Likewise.
4874         (avr_find_unused_d_reg): Likewise.
4875         (avr_out_lpm_no_lpmx): Likewise.
4876         (avr_out_lpm): Likewise.
4877         (avr_out_xload): Likewise.
4878         (output_movqi): Likewise.
4879         (output_movhi): Likewise.
4880         (out_movqi_r_mr): Likewise.
4881         (out_movhi_r_mr): Likewise.
4882         (out_movsi_r_mr): Likewise.
4883         (out_movsi_mr_r): Likewise.
4884         (output_movsisf): Likewise.
4885         (avr_out_load_psi): Likewise.
4886         (avr_out_store_psi): Likewise.
4887         (avr_out_movpsi): Likewise.
4888         (out_movqi_mr_r): Likewise.
4889         (avr_out_movhi_mr_r_xmega): Likewise.
4890         (out_movhi_mr_r): Likewise.
4891         (compare_condition): Likewise for param "insn" and local "next".
4892         (compare_sign_p): Likewise for param "insn".
4893         (compare_diff_p): Likewise.
4894         (compare_eq_p): Likewise.
4895         (avr_out_compare): Likewise.
4896         (avr_out_compare64): Likewise.
4897         (avr_out_tsthi): Likewise.
4898         (avr_out_tstpsi): Likewise.
4899         (avr_out_tstsi): Likewise.
4900         (out_shift_with_cnt): Likewise.
4901         (ashlqi3_out): Likewise.
4902         (ashlhi3_out): Likewise.
4903         (avr_out_ashlpsi3): Likewise.
4904         (ashlsi3_out): Likewise.
4905         (ashrqi3_out): Likewise.
4906         (ashrhi3_out): Likewise.
4907         (avr_out_ashrpsi3): Likewise.
4908         (ashrsi3_out): Likewise.
4909         (lshrqi3_out): Likewise.
4910         (lshrhi3_out): Likewise.
4911         (avr_out_lshrpsi3): Likewise.
4912         (lshrsi3_out): Likewise.
4913         (avr_out_fract): Likewise.
4914         (avr_out_round): Likewise.
4915         (avr_adjust_insn_length): Likewise.
4916         (reg_unused_after): Likewise.
4917         (_reg_unused_after): Likewise.
4918         (avr_compare_pattern): Likewise.
4919         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
4920         and locals "branch1", "branch2", "insn2", "jump".
4921         (avr_reorg): Likewise for local "insn".
4922         (avr_2word_insn_p): Likewise for param "insn".
4923         (jump_over_one_insn_p): Likewise.
4924         (avr_out_sbxx_branch): Likewise.
4925         (avr_out_movmem): Likewise.
4927 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4929         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
4930         param from rtx to rtx_insn *.
4931         (thumb1_final_prescan_insn): Likewise.
4932         (thumb2_final_prescan_insn): Likewise.
4934         * config/arm/arm.c (emit_set_insn): Strengthen return type from
4935         rtx to rtx_insn *.
4936         (struct minipool_node): Likewise for field "insn".
4937         (dump_minipool): Likewise for param "scan".
4938         (create_fix_barrier): Likewise for local "from".  Strengthen local
4939         "label" from rtx to rtx_code_label *.
4940         (push_minipool_barrier): Strengthen param "insn" from rtx to
4941         rtx_insn *.
4942         (push_minipool_fix): Likewise.
4943         (note_invalid_constants): Likewise.
4944         (thumb2_reorg): Likewise for local "insn".
4945         (arm_reorg): Likewise.
4946         (thumb2_final_prescan_insn): Likewise for param
4947         "insn" and local "first_insn".
4948         (arm_final_prescan_insn): Likewise for param "insn" and locals
4949         "start_insn", "this_insn".
4950         (arm_debugger_arg_offset): Likewise for param "insn".
4951         (thumb1_emit_multi_reg_push): Likewise for return type and local
4952         "insn".
4953         (thumb1_final_prescan_insn): Likewise for param "insn".
4954         (thumb_far_jump_used_p): Likewise for local "insn".
4955         (thumb1_expand_prologue): Likewise.
4956         (arm_expand_epilogue_apcs_frame): Likewise.
4957         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
4958         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
4959         from rtx to rtx_code_label *.
4960         (arm_split_atomic_op): Likewise for local "label".
4961         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
4963 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4965         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
4966         first param from rtx to rtx_insn *.
4967         (arc_verify_short): Likewise.
4968         (arc_short_long): Likewise.
4969         (arc_need_delay): Likewise.
4971         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
4972         "target_insn".
4973         (arc_ccfsm_advance): Likewise for param "insn" and locals
4974         "start_insn", "this_insn".
4975         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
4976         (arc_ccfsm_post_advance): Likewise for param "insn".
4977         (arc_next_active_insn): Likewise for return type and param "insn".
4978         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
4979         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
4980         (output_short_suffix): Likewise for local "insn".
4981         (arc_final_prescan_insn): Likewise for param "insn".  Remove
4982         now-redundant checked cast.
4983         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
4984         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
4985         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
4986         for use where lc_set became an insn.
4987         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
4988         rtx to rtx_insn *.
4989         (arc_get_insn_variants): Likewise for local "prev".
4990         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
4991         "next".
4992         (arc_predicate_delay_insns): Likewise for local "insn".
4993         (arc_pad_return): Likewise for local "prev".  For now, add a
4994         checked cast when extracting the insn from "final_sequence".
4995         (arc_short_long): Likewise for param "insn".
4996         (arc_need_delay): Likewise for param "insn" and local "next".
4997         (arc_label_align): Likewise for locals "prev", "next".
4999 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5001         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
5002         "insn" from rtx to rtx_insn *.
5003         (alpha_gp_save_rtx): Likewise for local "seq".
5004         (alpha_instantiate_decls): Likewise for local "top".
5005         (get_some_local_dynamic_name): Likewise for local "insn".
5006         (alpha_does_function_need_gp): Likewise.
5007         (set_frame_related_p): Likewise for return type and for locals
5008         "seq" and "insn".
5009         (emit_frame_store_1): Likewise for local "insn".
5010         (alpha_expand_prologue): Likewise for locals "insn", "seq".
5011         (alpha_end_function): Likewise for local "insn".
5012         (alpha_output_mi_thunk_osf): Likewise.
5013         (alphaev4_insn_pipe): Likewise for param "insn".
5014         (alphaev5_insn_pipe): Likewise.
5015         (alphaev4_next_group): Likewise for return type and param 1
5016         "insn".
5017         (alphaev5_next_group): Likewise.
5018         (alpha_align_insns_1): Likewise for return type and param 1 of
5019         callback param "next_group", and for locals "i", "next", "prev",
5020         "where", "where2", "insn".
5022 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5024         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
5025         rather than modifying the stmt.
5027 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5029         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
5030         cgraph_state conversion.
5032 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5034         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5035         Strengthen local "insns" from rtx to rtx_insn *.
5036         (aarch64_set_frame_expr): Likewise for local "insn".
5037         (aarch64_save_or_restore_fprs): Likewise.
5038         (aarch64_save_or_restore_callee_save_registers): Likewise.
5039         (aarch64_expand_prologue): Likewise.
5040         (aarch64_expand_epilogue): Likewise.
5041         (aarch64_output_mi_thunk): Likewise.
5042         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
5043         "label2" from rtx to rtx_code_label *.
5044         (aarch64_split_atomic_op): Likewise for local "label".
5046 2014-08-25  Martin Liska  <mliska@suse.cz>
5048         * cgraph.h (symtab_node):
5049         (bool needed_p (void)): created from decide_is_symbol_needed
5050         (bool referred_to_p (void)): created from referred_to_p
5051         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
5052         * cgraph.h (cgraph_node):
5053         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
5054         (void expand (void)): created from expand_function
5055         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
5056         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
5057         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
5058         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
5059         * cgraph.h (varpool_node):
5060         (static void add (tree decl): created from varpool_add_new_variable
5061         * cgraph.h (cgraph_edge):
5062         void remove (void);
5063         (void remove_caller (void)): created from cgraph_edge_remove_caller
5064         (void remove_callee (void)): created from cgraph_edge_remove_callee
5065         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
5066           created from cgraph_set_call_stmt
5067         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
5068         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
5069         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
5070           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
5071         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
5072           created from cgraph_speculative_call_info
5073         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
5074           int freq_scale, bool update_original)): created from cgraph_clone_edge
5075         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
5076         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
5077         (bool recursive_p (void)): created from cgraph_edge_recursive_p
5078         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
5079         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
5080         (static void rebuild_references (void)): created from cgraph_rebuild_references
5081         * cgraph.h (symbol_table):
5082         (create_reference): renamed from add_reference
5083         (maybe_create_reference): renamed from maybe_add_reference
5084         (void register_symbol (symtab_node *node)): new function
5085         (void clear_asm_symbols (void)): new function
5086         (void unregister (symtab_node *node)): new function
5087         (void release_symbol (cgraph_node *node, int uid)): new function
5088         (cgraph_node * allocate_cgraph_symbol (void)): new function
5089         (void initialize (void)): created from cgraph_init
5090         (symtab_node *first_symbol (void)):new function
5091         (asm_node *first_asm_symbol (void)):new function
5092         (symtab_node *first_defined_symbol (void)):new function
5093         (varpool_node *first_variable (void)):new function
5094         (varpool_node *next_variable (varpool_node *node)):new function
5095         (varpool_node *first_static_initializer (void)):new function
5096         (varpool_node *next_static_initializer (varpool_node *node)):new function
5097         (varpool_node *first_defined_variable (void)):new function
5098         (varpool_node *next_defined_variable (varpool_node *node)):new function
5099         (cgraph_node *first_defined_function (void)):new function
5100         (cgraph_node *next_defined_function (cgraph_node *node)):new function
5101         (cgraph_node *first_function (void)):new function
5102         (cgraph_node *next_function (cgraph_node *node)):new function
5103         (cgraph_node *first_function_with_gimple_body (void)):new function
5104         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
5105         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
5106           created from symtab_remove_unreachable_nodes
5107         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
5108         (void process_new_functions (void)): created from cgraph_process_new_functions
5109         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
5110         (bool output_variables (void)): created from varpool_node::output_variables
5111         (void output_asm_statements (void)): created from output_asm_statements
5112         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
5113         (void compile (void)): created from compile
5114         (void output_weakrefs (void)): created from output_weakrefs
5115         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
5116         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
5117           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
5118         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
5119         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
5120           created from cgraph_next_function_with_gimple_body
5121         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
5122           created from cgraph_remove_edge_removal_hook
5123         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
5124           created from cgraph_add_node_removal_hook
5125         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
5126           created from cgraph_remove_node_removal_hook
5127         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
5128           created from varpool_add_node_removal_hook
5129         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
5130           created from varpool_remove_node_removal_hook
5131         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
5132           created from cgraph_add_function_insertion_hook
5133         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
5134           created from cgraph_remove_function_insertion_hook
5135         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
5136           created from varpool_add_variable_insertion_hook
5137         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
5138           created from varpool_remove_variable_insertion_hook
5139         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
5140           created from cgraph_add_edge_duplication_hook
5141         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
5142           created from cgraph_remove_edge_duplication_hook
5143         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
5144           created from cgraph_add_node_duplication_hook
5145         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
5146           created from cgraph_remove_node_duplication_hook
5147         (void call_edge_removal_hooks (cgraph_edge *e)):
5148           created from cgraph_call_edge_removal_hooks
5149         (void call_cgraph_insertion_hooks (cgraph_node *node)):
5150           created from call_function_insertion_hooks 
5151         (void call_cgraph_removal_hooks (cgraph_node *node)):
5152           created from cgraph_call_node_removal_hooks 
5153         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
5154           created from cgraph_node::call_duplication_hooks 
5155         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
5156           created from cgraph_call_edge_duplication_hooks
5157         (void call_varpool_removal_hooks (varpool_node *node)):
5158           created from varpool_call_node_removal_hooks
5159         (void call_varpool_insertion_hooks (varpool_node *node)):
5160           created from varpool_call_variable_insertion_hooks
5161         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
5162           created from insert_to_assembler_name_hash
5163         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
5164           created from unlink_from_assembler_name_hash
5165         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
5166           created from symtab_prevail_in_asm_name_hash
5167         (void symtab_initialize_asm_name_hash (void)):
5168           created from symtab_initialize_asm_name_hash
5169         (void change_decl_assembler_name (tree decl, tree name)):
5170           created from change_decl_assembler_name
5171         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
5172         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
5173           created from decl_assembler_name_hash
5174         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
5175           created from decl_assembler_name_equal
5176         (static hashval_t hash_node_by_assembler_name (const void *p)):
5177           created from hash_node_by_assembler_name
5178         (static int eq_assembler_name (const void *p1, const void *p2)):
5179           created from eq_assembler_name
5181 2014-08-25  Marek Polacek  <polacek@redhat.com>
5183         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
5185 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
5187         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
5188         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
5189         SWI1248_AVX512BW mode iterator.
5191 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
5193         PR target/62111
5194         * config/sh/predicates.md (general_extend_operand): Disable
5195         TRUNCATE before reload completes.
5197 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
5199         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
5201 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
5203         PR target/61996
5204         * config/sh/sh.opt (musermode): Allow negative form.
5205         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
5206         targets that don't support it.
5207         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
5208         Document -mno-usermode option.
5210 2014-08-24  Kito Cheng  <kito@0xlab.org>
5212         * system.h (CALLER_SAVE_PROFITABLE): Poison.
5213         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
5214         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
5215         * doc/tm.texi: Regenerate.
5217 2014-08-24  Kito Cheng  <kito@0xlab.org>
5219         * ira.c: Fix typo in comment.
5221 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
5223         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
5224         Deprecate c++1y. Change language to reflect greater confidence in C++14.
5226 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
5228         PR target/62038
5229         * config/pa/pa.c (pa_output_function_epilogue): Don't set
5230         last_address when the current function is a thunk.
5231         (pa_asm_output_mi_thunk): When we don't have named sections or they
5232         are not being used, check that thunk can reach the stub table with a
5233         short branch.
5235 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5237         * web.c (union_match_dups): Strengthen param "insn" from rtx to
5238         rtx_insn *.
5239         (pass_web::execute): Likewise for local "insn".
5241 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5243         * var-tracking.c (struct micro_operation_def): Strengthen field
5244         "insn" from rtx to rtx_insn *.
5245         (struct emit_note_data_def): Likewise.
5246         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
5247         (vt_stack_adjustments): Likewise for local "insn".
5248         (adjust_insn): Likewise for param "insn".
5249         (val_store): Likewise.
5250         (val_resolve): Likewise.
5251         (struct count_use_info): Likewise for field "insn".
5252         (log_op_type): Likewise for param "insn".
5253         (reverse_op): Likewise.
5254         (prepare_call_arguments): Likewise.
5255         (add_with_sets):  The initial param takes an insn, but we can't
5256         yet strengthen it from rtx to rtx_insn * since it's used as a
5257         cselib_record_sets_hook callback.  For now rename initial param
5258         from "insn" to "uncast_insn", and introduce a local "insn" of
5259         the stronger rtx_insn * type, with a checked cast.
5260         (compute_bb_dataflow): Strengthen local "insn" from rtx to
5261         rtx_insn *.
5262         (emit_note_insn_var_location): Likewise.
5263         (emit_notes_for_changes): Likewise.
5264         (emit_notes_for_differences): Likewise.
5265         (next_non_note_insn_var_location): Likewise for return type and
5266         for param "insn".
5267         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
5268         (vt_initialize): Likewise for local "insn".
5269         (delete_debug_insns): Likewise for locals "insn" and "next".
5271 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5273         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
5274         rtx_insn *.
5275         (mark_constant_pool): Likewise for local "insn".
5277 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5279         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
5280         rtx to rtx_insn *.
5281         (dead_debug_promote_uses): Likewise.
5282         (dead_debug_insert_temp): Likewise.
5284 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5286         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
5287         from const_rtx to const rtx_insn *.
5288         (store_killed_after): Likewise.  Strengthen locals "last", "act"
5289         from rtx to rtx_insn *.
5290         (store_killed_before): Strengthen param "insn" from const_rtx to
5291         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
5292         (find_moveable_store): Strengthen param "insn" from rtx to
5293         rtx_insn *.
5294         (compute_store_table): Likewise for local "insn".
5295         (insert_insn_start_basic_block): Likewise for param "insn" and
5296         locals "prev", "before", "insn".
5297         (insert_store): For now, add a checked cast to rtx_insn * on the
5298         result of gen_move_insn.
5299         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
5300         to rtx_insn *.
5301         (replace_store_insn): Likewise.  For now, add a checked cast to
5302         rtx_insn * on the result of gen_move_insn.
5304 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5306         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
5307         rtx_insn *.
5308         (expand_sjlj_dispatch_table): Likewise.
5310 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5312         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
5313         "insn" from rtx to rtx_insn *.
5315 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5317         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
5318         "insn" from rtx to rtx_insn *.
5319         (dup_block_and_redirect): Likewise for param 3 "before".
5321         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
5322         from rtx to rtx_insn *.
5323         (move_insn_for_shrink_wrap): Likewise.
5324         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
5325         (dup_block_and_redirect): Likewise for param "before" and local
5326         "insn".
5327         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
5328         "end".
5329         (convert_to_simple_return): Likewise for local "start".
5331         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
5332         Strengthen local "insn" from rtx to rtx_insn *, for use when
5333         invoking requires_stack_frame_p.
5335 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5337         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
5338         rtx_insn *.
5339         (speculate_expr): Likewise for locals "orig_insn_rtx",
5340         "spec_insn_rtx".
5341         (eq_transformed_insns): Likewise for locals "i1", "i2".
5342         (check_for_new_jump): Likewise for return type and local "end".
5343         (find_new_jump): Likewise for return type and local "jump".
5344         (sel_split_edge): Likewise for local "jump".
5345         (sel_create_recovery_block): Likewise.
5346         (sel_redirect_edge_and_branch_force): Likewise.
5347         (sel_redirect_edge_and_branch): Likewise.
5349 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5351         * sel-sched.c (substitute_reg_in_expr): Strengthen local
5352         "new_insn" from rtx to rtx_insn *.
5353         (create_insn_rtx_with_rhs): Likewise for return type and for local
5354         "insn_rtx".
5355         (create_insn_rtx_with_lhs): Likewise.
5356         (create_speculation_check): Likewise for local "insn_rtx".
5357         (implicit_clobber_conflict_p): Likewise for local "insn".
5358         (get_expr_cost): Likewise.
5359         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
5360         (move_cond_jump): Likewise for locals "next", "prev", "link",
5361         "head", "from", "to".
5363 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5365         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
5366         "next" from rtx to rtx_insn *.
5367         (find_conditional_protection): Likewise for local "next".
5368         (is_conditionally_protected): Likewise for local "insn1".
5369         (is_pfree): Likewise for locals "insn1", "insn2".
5371 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5373         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
5374         from rtx to rtx_insn *.
5376         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
5377         locals "insn1", "insn2" from rtx to rtx_insn *.
5378         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
5379         locals "insn", "prev", "last_jump", "next_tail".
5380         (schedule_ebb): Likewise for params "head", "tail".
5381         (schedule_ebbs): Likewise for locals "tail", "head".
5383         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
5384         to rtx_insn on "last_insn" in one of the invocations of
5385         schedule_ebb.
5387 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5389         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
5390         "elem", "insn" from rtx to rtx_insn *.
5391         (change_spec_dep_to_hard): Likewise.
5392         (get_back_and_forw_lists): Likewise for local "con".
5393         (sd_add_dep): Likewise for locals "elem", "insn".
5394         (sd_resolve_dep): Likewise for locals "pro", "con".
5395         (sd_unresolve_dep): Likewise.
5396         (sd_delete_dep): Likewise.
5397         (chain_to_prev_insn): Likewise for local "pro".
5398         (find_inc): Likewise for locals "pro", "con".
5400 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5402         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
5403         to rtx_insn *.
5404         (reg_set_between_p): Strengthen local "insn" from const_rtx to
5405         const rtx_insn *.
5406         (modified_between_p): Strengthen local "insn" from rtx to
5407         rtx_insn *.
5408         (remove_reg_equal_equiv_notes_for_regno): Likewise.
5409         (keep_with_call_p): Strengthen local "i2" from const_rtx to
5410         const rtx_insn *.
5412 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5414         * resource.c (next_insn_no_annul): Strengthen local "next" from
5415         rtx to rtx_insn *.
5416         (mark_referenced_resources): Likewise for local "insn".
5418 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5420         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
5421         to rtx_insn *.
5422         (find_reloads): Likewise for param 1.
5423         (subst_reloads): Likewise for sole param.
5424         (find_equiv_reg): Likwise for param 2.
5425         (regno_clobbered_p): Likwise for param 2.
5426         (reload): Likewise for param 1.
5428         * caller-save.c (save_call_clobbered_regs): Strengthen local
5429         "insn" from rtx to rtx_insn *.
5430         (insert_one_insn): Likewise for local "insn".
5432         * reload.c (this_insn): Likewise for this global.
5433         (find_reloads): Likewise for param "insn".
5434         (find_reloads_toplev): Likewise.
5435         (find_reloads_address): Likewise.
5436         (subst_reg_equivs): Likewise.
5437         (update_auto_inc_notes): Likewise.
5438         (find_reloads_address_1): Likewise.
5439         (find_reloads_subreg_address): Likewise.
5440         (subst_reloads): Likewise.
5441         (find_equiv_reg): Likewise, also for local "p".
5442         (regno_clobbered_p): Likewise for param "insn".
5444         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
5445         array.
5446         (spill_reg_store): Likewise for the elements of this array.
5447         (remove_init_insns): Likewise for local "equiv_insn".
5448         (will_delete_init_insn_p): Likewise for param "insn".
5449         (reload): Likewise for param ""first" and local "insn".
5450         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
5451         rtx_insn *.
5452         (calculate_elim_costs_all_insns): Likewise.
5453         (delete_caller_save_insns): Likewise.
5454         (spill_failure): Likewise for param "insn".
5455         (delete_dead_insn): Likewise.
5456         (set_label_offsets): Likewise.
5457         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
5458         "prev_insn".
5459         (elimination_costs_in_insn): Likewise for param "insn".
5460         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
5461         when referring to an insn.
5462         (set_initial_label_offsets): Likewise.
5463         (set_offsets_for_label): Strengthen param "insn" from rtx to
5464         rtx_insn *.
5465         (init_eliminable_invariants): Likewise for param "first" and local
5466         "insn".
5467         (fixup_eh_region_note): Likewise for param "insn".
5468         (reload_as_needed): Likewise for locals "prev", "insn",
5469         "old_next", "old_prev", "next".
5470         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
5471         "last".
5472         (reload_inheritance_insn): Strengthen elements of this array from
5473         rtx to rtx_insn *.
5474         (failed_reload): Likewise for param "insn".
5475         (choose_reload_regs): Likewise for local "insn".  Replace use of
5476         NULL_RTX with NULL when referring to an insn.
5477         (input_reload_insns): Strengthen elements of this array from rtx
5478         to rtx_insn *.
5479         (other_input_address_reload_insns): Likewise for this global.
5480         (other_input_reload_insns): Likewise for this global.
5481         (input_address_reload_insns): Likwise for the elements of this
5482         array.
5483         (inpaddr_address_reload_insns): Likwise for the elements of this
5484         array.
5485         (output_reload_insns): Likewise for the elements of this array.
5486         (output_address_reload_insns): Likewise for the elements of this
5487         array.
5488         (outaddr_address_reload_insns): Likewise for the elements of this
5489         array.
5490         (operand_reload_insns): Likewise for this global.
5491         (other_operand_reload_insns): Likewise for this global.
5492         (other_output_reload_insns): Likewise for the elements of this
5493         array.
5494         (new_spill_reg_store): Likewise for the elements of this
5495         array.
5496         (emit_input_reload_insns): Likewise for locals "insn", "temp".
5497         Strengthen local "where" from rtx * to rtx_insn **.
5498         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
5499         from rtx to rtx_insn *.
5500         (do_input_reload): Likewise for local "insn".
5501         (do_output_reload): Likewise for local "insn".
5502         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
5503         (emit_insn_if_valid_for_reload): Likewise for return type and local
5504         "last".  Add checked cast to rtx_insn when returning "insn" since
5505         this has been through emit_insn.
5506         (gen_reload): Strengthen return type and locals "last", "insn", "set"
5507         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
5508         returning "insn" since it's been through
5509         emit_insn_if_valid_for_reload at this point.
5510         (delete_output_reload): Strengthen param "insn" and locals
5511         "output_reload_insn", "i2" from rtx to rtx_insn *.
5512         (delete_address_reloads): Likewise for params "dead_insn",
5513         "current_insn" and locals "prev", "next".
5514         (delete_address_reloads_1): Likewise for params "dead_insn",
5515         "current_insn" and locals "prev", "i2".
5516         (inc_for_reload): Likewise for locals "last", "add_insn".
5517         (add_auto_inc_notes): Strengthen param "insn" from rtx to
5518         rtx_insn *.
5520         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
5521         param of this duplicate of the prototype from reload.h
5523 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5525         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
5526         rtx to rtx_insn *.
5527         (regstat_bb_compute_calls_crossed): Likewise.
5529 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5531         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
5532         to rtx_insn *.
5533         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
5534         with an insn.
5535         (regrename_analyze): Strengthen local "insn" from rtx to
5536         rtx_insn *.
5537         (scan_rtx_reg): Likewise for param "insn".
5538         (scan_rtx_address): Likewise.
5539         (scan_rtx): Likewise.
5540         (restore_operands): Likewise.
5541         (record_out_operands): Likewise.
5542         (build_def_use): Likewise for local "insn".  Replace use of
5543         NULL_RTX with NULL when dealing with an insn.
5545 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5547         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
5548         * reginfo.c (reg_scan): Likewise, also for local "insn".
5549         (reg_scan_mark_refs): Likewise for param "insn".
5550         (init_subregs_of_mode): Likewise for local "insn".
5552 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5554         * regcprop.c (struct queued_debug_insn_change): Strengthen field
5555         "insn" from rtx to rtx_insn *.
5556         (replace_oldest_value_reg): Likewise for param "insn".
5557         (replace_oldest_value_addr): Likewise.
5558         (replace_oldest_value_mem): Likewise.
5559         (apply_debug_insn_changes): Likewise for local "last_insn".
5560         (copyprop_hardreg_forward_1): Likewise for local "insn".
5562 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5564         * reg-stack.c (next_flags_user): Strengthen return type and param
5565         "insn" from rtx to rtx_insn *.
5566         (straighten_stack): Likewise for param "insn".
5567         (check_asm_stack_operands): Likewise.
5568         (remove_regno_note): Likewise.
5569         (emit_pop_insn): Likewise for return type, param "insn", local
5570         "pop_insn".
5571         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
5572         "limit" from rtx to rtx_insn *.
5573         (swap_to_top): Likewise for param "insn".
5574         (move_for_stack_reg): Likewise.
5575         (move_nan_for_stack_reg): Likewise.
5576         (swap_rtx_condition): Likewise.
5577         (compare_for_stack_reg): Likewise.
5578         (subst_all_stack_regs_in_debug_insn): Likewise.
5579         (subst_stack_regs_pat): Likewise, and local "insn2".
5580         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
5581         rtx_insn *.
5582         (subst_stack_regs): Likewise.
5583         (change_stack): Likewise.
5584         (convert_regs_1): Likewise for locals "insn", "next".
5586 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5588         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
5589         rtx_insn *.
5590         (combine_set_extension): Likewise for param "curr_insn".
5591         (transform_ifelse): Likewise for param "def_insn".
5592         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
5593         from vec<rtx> * to vec<rtx_insn *> *.
5594         (is_cond_copy_insn): Likewise for param "insn".
5595         (struct ext_state): Strengthen the four vec fields from vec<rtx>
5596         to vec<rtx_insn *>.
5597         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
5598         local "def_insn" from rtx to rtx_insn *.
5599         (get_sub_rtx): Likewise for param "def_insn".
5600         (merge_def_and_ext): Likewise.
5601         (combine_reaching_defs): Likewise.
5602         (add_removable_extension): Likewise for param "insn".
5603         (find_removable_extensions): Likewise for local "insn".
5604         (find_and_remove_re): Likewise for locals "curr_insn" and
5605         "def_insn".  Strengthen locals "reinsn_del_list" and
5606         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
5608 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5610         * recog.c (split_insn): Strengthen param "insn" and locals
5611         "first", "last" from rtx to rtx_insn *.
5612         (split_all_insns): Likewise for locals "insn", "next".
5613         (split_all_insns_noflow): Likewise.
5615 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5617         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
5618         const rtx_insn *.
5619         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
5620         (debug_rtx_find): Likewise for param 1 "x".
5622         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
5623         const_rtx to const rtx_insn *.  Likewise for local "insn".
5624         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
5625         (debug_rtx_find): Likewise for param 1 "x".
5626         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
5627         from const_rtx to const rtx_insn * within the appropriate cases of
5628         the switch statement.
5630         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
5631         Strengthen local "insns" from rtx to rtx_insn * since this is
5632         passed to a call to debug_rtx_list.
5634 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5636         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
5637         to rtx_insn *.
5639         * function.c (stack_protect_epilogue): Add checked cast to
5640         rtx_insn for now when invoking predict_insn_def.
5642         * predict.c (predict_insn): Strengthen param "insn" from rtx to
5643         rtx_insn *.
5644         (predict_insn_def): Likewise.
5645         (rtl_predict_edge): Likewise for local "last_insn".
5646         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
5647         const rtx_insn *.
5648         (combine_predictions_for_insn): Strengthen param "insn" from rtx
5649         to rtx_insn *.
5650         (bb_estimate_probability_locally): Likewise for local "last_insn".
5651         (expensive_function_p): Likewise for local "insn".
5653         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
5654         local "jmp", since this is used when invoking predict_insn_def.
5656 2014-08-22  Marek Polacek  <polacek@redhat.com>
5658         PR c++/62199
5659         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
5661 2014-08-22  Marek Polacek  <polacek@redhat.com>
5663         PR c/61271
5664         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
5665         a comparison in parens.
5666         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
5667         in parens.
5669 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5671         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
5672         rtx_insn *.
5674         * cprop.c (fis_get_condition): Likewise.
5676         * postreload.c (reload_cse_regs): Likewise for param "first".
5677         (reload_cse_simplify): Likewise for param "insn".
5678         (reload_cse_regs_1): Likewise for local "insn".
5679         (reload_cse_simplify_set): Likewise for param "insn".
5680         (reload_cse_simplify_operands): Likewise.
5681         (struct reg_use): Likewise for field "insn".
5682         (reload_combine_purge_insn_uses): Likewise for param "insn".
5683         (fixup_debug_insns): Likewise for params "from", "to" and local
5684         "insn".
5685         (try_replace_in_use): Likewise for local "use_insn".
5686         (reload_combine_recognize_const_pattern): Likewise for param
5687         "insn" and locals "add_moved_after_insn", "use_insn".
5688         (reload_combine_recognize_pattern): Likewise for param "insn" and
5689         local "prev".
5690         (reload_combine): Likewise for locals "insn", "prev".
5691         (reload_combine_note_use): Likewise for param "insn".
5692         (move2add_use_add2_insn): Likewise.
5693         (move2add_use_add3_insn): Likewise.
5694         (reload_cse_move2add): Likewise, also for local "next".
5695         (move2add_note_store): Likewise for local "insn".
5697 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5699         * postreload-gcse.c (struct occr): Strengthen field "insn" from
5700         rtx to rtx_insn *.
5701         (struct unoccr): Likewise.
5702         (struct modifies_mem): Likewise.
5703         (alloc_mem): Likewise for local "insn".
5704         (insert_expr_in_table): Likewise for param "insn".
5705         (dump_expr_hash_table_entry): Likewise for local "insn".
5706         (oprs_unchanged_p): Likewise for param "insn".
5707         (load_killed_in_block_p): Likewise for local "setter".
5708         (record_last_reg_set_info): Likewise for param "insn".
5709         (record_last_reg_set_info_regno): Likewise.
5710         (record_last_mem_set_info): Likewise.
5711         (record_last_set_info): Likewise for local "last_set_insn".
5712         (record_opr_changes): Likewise for param "insn".
5713         (hash_scan_set): Likewise.
5714         (compute_hash_table): Likewise for local "insn".
5715         (get_avail_load_store_reg): Likewise for param "insn".
5716         (eliminate_partially_redundant_load): Likewise, also for locals
5717         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
5718         RTX for insns.
5719         (eliminate_partially_redundant_loads): Likewise for local "insn".
5721 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5723         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
5724         rtx to rtx_insn *.
5725         (expand_binop): Likewise for locals "entry_last", "last", "insns"
5726         (expand_twoval_unop): Likewise for locals entry_last", "last".
5727         (expand_twoval_binop): Likewise.
5728         (expand_twoval_binop_libfunc): Likewise for local "insns".
5729         (widen_leading): Likewise for local "last".
5730         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
5731         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
5732         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
5733         (expand_parity): Likewise for locals "last" and "seq".
5734         (expand_ffs): Likewise for local "seq".  Strengthen local
5735         "nonzero_label" from rtx to rtx_code_label *.
5736         (expand_absneg_bit): Strengthen local "insns" from rtx to
5737         rtx_insn *.
5738         (expand_unop_direct): Likewise for local "last".
5739         (expand_unop): Likewise for locals "last", "insns".
5740         (expand_abs_nojump): Likewise for local "last".
5741         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
5742         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
5743         rtx_insn *.
5744         (expand_copysign_absneg): Strengthen local "label" from rtx to
5745         rtx_code_label *.
5746         (expand_copysign_bit): Strengthen local "insns" from rtx to
5747         rtx_insn *.
5748         (struct no_conflict_data): Likewise for fields "first", "insn".
5749         (emit_libcall_block_1): Likewise for param "insns" and locals
5750         "next", "last", "insn".
5751         (emit_libcall_block): For now, add a checked cast to rtx_insn *
5752         on "insns" when invoking emit_libcall_block_1.  Ultimately we
5753         want to strengthen insns itself.
5754         (prepare_cmp_insn): Strengthen local "last" from rtx to
5755         rtx_insn *.
5756         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
5757         (prepare_float_lib_cmp): Likewise for local "insns".
5758         (emit_conditional_move): Likewise for local "last".
5759         (emit_conditional_add): Likewise.
5760         (have_sub2_insn): Likewise for local "seq".
5761         (expand_float): Likewise for local "insns".  Strengthen locals
5762         "label", "neglabel" from rtx to rtx_code_label *.
5763         (expand_fix): Likewise for locals "last", "insn", "insns" (to
5764         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
5765         (expand_fixed_convert): Likewise for local "insns" (to
5766         rtx_insn *).
5767         (expand_sfix_optab): Likewise for local "last".
5768         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
5769         to rtx_code_label *.
5770         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
5771         from rtx to rtx_insn *.
5772         (expand_atomic_fetch_op): Likewise for local "insn".
5773         (maybe_legitimize_operand_same_code): Likewise for local "last".
5774         (maybe_legitimize_operands): Likewise.
5776 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5778         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
5779         "insn" from rtx to rtx_insn *.
5780         (ps_rtl_insn): Likewise for return type.
5781         (doloop_register_get): Likewise for params "head", "tail" and
5782         locals "insn", "first_insn_not_to_check".
5783         (schedule_reg_move): Likewise for local "this_insn".
5784         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
5785         of gen_move_insn for now.
5786         (reset_sched_times): Strengthen local "insn" from rtx to
5787         rtx_insn *.
5788         (permute_partial_schedule): Likewise.
5789         (duplicate_insns_of_cycles): Likewise for local "u_insn".
5790         (dump_insn_location): Likewise for param "insn".
5791         (loop_canon_p): Likewise for local "insn".
5792         (sms_schedule): Likewise.
5793         (print_partial_schedule): Likewise.
5794         (ps_has_conflicts): Likewise.
5796 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5798         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
5799         "tailp" from rtx * to rtx_insn **.
5801         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
5802         from rtx to rtx_insn *.
5803         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
5804         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
5805         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
5806         rtx to rtx_insn *.
5807         * modulo-sched.c (const_iteration_count): Strengthen return type
5808         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
5809         use of NULL_RTX with NULL when working with insns.
5810         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
5811         to rtx_insn *.
5812         (sms_schedule): Likewise.
5813         * sched-rgn.c (init_ready_list): Likewise, also for locals
5814         "src_head" and "src_next_tail".
5815         (compute_block_dependences): Likewise.
5816         (free_block_dependencies): Likewise.
5817         (debug_rgn_dependencies): Likewise.
5818         (free_rgn_deps): Likewise.
5819         (compute_priorities): Likewise.
5820         (schedule_region): Likewise.
5821         * sel-sched.c (find_ebb_boundaries): Likewise.
5823         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
5824         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
5826 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5828         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
5829         from rtx to rtx_insn *.
5830         (new_seginfo): Likewise for param "insn".
5831         (create_pre_exit): Likewise for locals "last_insn",
5832         "before_return_copy", "return_copy".
5833         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
5834         "mode_set".
5836 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5838         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
5839         from rtx to rtx_insn *.
5840         (lra_push_insn): Likewise for 1st param.
5841         (lra_push_insn_and_update_insn_regno_info): Likewise.
5842         (lra_pop_insn): Likewise for return type.
5843         (lra_invalidate_insn_data): Likewise for 1st param.
5844         (lra_set_insn_deleted): Likewise.
5845         (lra_delete_dead_insn): Likewise.
5846         (lra_process_new_insns): Likewise for first 3 params.
5847         (lra_set_insn_recog_data): Likewise for 1st param.
5848         (lra_update_insn_recog_data): Likewise.
5849         (lra_set_used_insn_alternative): Likewise.
5850         (lra_invalidate_insn_regno_info): Likewise.
5851         (lra_update_insn_regno_info): Likewise.
5852         (lra_former_scratch_operand_p): Likewise.
5853         (lra_eliminate_regs_1): Likewise.
5854         (lra_get_insn_recog_data): Likewise.
5856         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
5857         rtx to rtx_insn *.
5859         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
5860         "mv1" and "mv2".
5861         (substitute_within_insn): New.
5862         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
5863         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
5864         Replace call to "substitute" with call to substitute_within_insn.
5866         * lra-constraints.c (curr_insn): Strengthen from rtx to
5867         rtx_insn *.
5868         (get_equiv_with_elimination): Likewise for param "insn".
5869         (match_reload): Strengthen params "before" and "after" from rtx *
5870         to rtx_insn **.
5871         (emit_spill_move): Likewise for return type.  Add a checked cast
5872         to rtx_insn * on result of gen_move_insn for now.
5873         (check_and_process_move): Likewise for local "before".  Replace
5874         NULL_RTX with NULL when referring to insns.
5875         (process_addr_reg): Strengthen params "before" and "after" from
5876         rtx * to rtx_insn **.
5877         (insert_move_for_subreg): Likewise.
5878         (simplify_operand_subreg): Strengthen locals "before" and "after"
5879         from rtx to rtx_insn *.
5880         (process_address_1): Strengthen params "before" and "after" from
5881         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
5882         rtx to rtx_insn *.
5883         (process_address): Strengthen params "before" and "after" from
5884         rtx * to rtx_insn **.
5885         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
5886         (curr_insn_transform): Strengthen locals "before" and "after"
5887         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
5888         to insns.
5889         (loc_equivalence_callback): Update cast of "data", changing
5890         resulting type from rtx to rtx_insn *.
5891         (substitute_pseudo_within_insn): New.
5892         (inherit_reload_reg): Strengthen param "insn" from rtx to
5893         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
5894         NULL when referring to insns.  Add a checked cast to rtx_insn *
5895         when using usage_insn to invoke lra_update_insn_regno_info.
5896         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
5897         likewise for locals "restore", "save".  Add checked casts to
5898         rtx_insn * when using usage_insn to invoke
5899         lra_update_insn_regno_info and lra_process_new_insns.  Replace
5900         NULL_RTX with NULL when referring to insns.
5901         (split_if_necessary): Strengthen param "insn" from rtx to
5902         rtx_insn *.
5903         (update_ebb_live_info): Likewise for params "head", "tail" and local
5904         "prev_insn".
5905         (get_last_insertion_point): Likewise for return type and local "insn".
5906         (get_live_on_other_edges): Likewise for local "last".
5907         (inherit_in_ebb): Likewise for params "head", "tail" and locals
5908         "prev_insn", "next_insn", "restore".
5909         (remove_inheritance_pseudos): Likewise for local "prev_insn".
5910         (undo_optional_reloads): Likewise for local "insn".
5912         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
5913         "insn".
5914         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
5915         insns.
5916         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
5917         rtx_insn *.
5918         (spill_pseudos): Likewise for local "insn".
5919         (init_elimination): Likewise.
5920         (process_insn_for_elimination): Likewise for param "insn".
5922         * lra-lives.c (curr_insn): Likewise.;
5924         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
5925         (remove_pseudos): Likewise for param "insn".
5926         (spill_pseudos): Likewise for local "insn".
5927         (lra_final_code_change): Likewise for locals "insn", "curr".
5929         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
5930         (lra_set_insn_deleted): Likewise.
5931         (lra_delete_dead_insn): Likewise, and for local "prev".
5932         (new_insn_reg): Likewise for param "insn".
5933         (lra_set_insn_recog_data): Likewise.
5934         (lra_update_insn_recog_data): Likewise.
5935         (lra_set_used_insn_alternative): Likewise.
5936         (get_insn_freq): Likewise.
5937         (invalidate_insn_data_regno_info): Likewise.
5938         (lra_invalidate_insn_regno_info): Likewise.
5939         (lra_update_insn_regno_info): Likewise.
5940         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
5941         vec<rtx_insn *>.
5942         (lra_push_insn_1): Strengthen param "insn" from rtx to
5943         rtx_insn *.
5944         (lra_push_insn): Likewise.
5945         (lra_push_insn_and_update_insn_regno_info): Likewise.
5946         (lra_pop_insn): Likewise for return type and local "insn".
5947         (push_insns): Likewise for params "from", "to", and local "insn".
5948         (setup_sp_offset): Likewise for params "from", "last" and locals
5949         "before", "insn".
5950         (lra_process_new_insns): Likewise for params "insn", "before",
5951         "after" and local "last".
5952         (struct sloc): Likewise for field "insn".
5953         (lra_former_scratch_operand_p): Likewise for param "insn".
5954         (remove_scratches): Likewise for locals "insn", "last".
5955         (check_rtl): Likewise for local "insn".
5956         (add_auto_inc_notes): Likewise for param "insn".
5957         (update_inc_notes): Likewise for local "insn".
5958         (lra): Replace NULL_RTX with NULL when referring to insn.
5960 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5962         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
5963         to rtx_insn *.
5964         (resolve_reg_notes): Likewise.
5965         (resolve_simple_move): Likewise for return type, param "insn", and
5966         locals "insns", "minsn".
5967         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
5968         (resolve_use): Likewise.
5969         (resolve_debug): Likewise.
5970         (find_decomposable_shift_zext): Likewise.
5971         (resolve_shift_zext): Likewise for return type, param "insn", and
5972         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
5973         (decompose_multiword_subregs): Likewise for local "insn",
5974         "orig_insn", "decomposed_shift", "end".
5976 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5978         * basic-block.h (basic_block split_edge_and_insert): Strengthen
5979         param "insns" from rtx to rtx_insn *.
5981         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
5982         rtx to rtx_insn *.
5983         (struct iv_to_split): Likewise.
5984         (loop_exit_at_end_p): Likewise for local "insn".
5985         (split_edge_and_insert): Likewise for param "insns".
5986         (compare_and_jump_seq): Likewise for return type, param "cinsn",
5987         and locals "seq", "jump".
5988         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
5989         "branch_code"; update invocations of compare_and_jump_seq to
5990         eliminate NULL_RTX in favor of NULL.
5991         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
5992         rtx to rtx_insn *.
5993         (reset_debug_uses_in_loop): Likewise.
5994         (analyze_insn_to_expand_var): Likewise for param "insn".
5995         (analyze_iv_to_split_insn): Likewise.
5996         (analyze_insns_in_loop): Likewise for local "insn".
5997         (insert_base_initialization): Likewise for param
5998         "insn" and local "seq".
5999         (split_iv): Likewise for param "insn" and local "seq".
6000         (expand_var_during_unrolling): Likewise for param "insn".
6001         (insert_var_expansion_initialization): Likewise for local "seq".
6002         (combine_var_copies_in_loop_exit): Likewise.
6003         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
6004         "insn".
6005         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
6006         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
6007         "next".
6009 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6011         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
6012         rtx_insn *.
6013         (iv_analyze_result): Likewise.
6014         (iv_analyze_expr): Likewise.
6015         (biv_p): Likewise.
6017         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
6018         local "def_insn" from rtx to rtx_insn *.
6019         (get_biv_step_1): Likewise for local "insn".
6020         (iv_analyze_expr): Likewise for param "insn".
6021         (iv_analyze_def): Likewise for local "insn".
6022         (iv_analyze_op): Likewise for param "insn".
6023         (iv_analyze): Likewise.
6024         (iv_analyze_result): Likewise.
6025         (biv_p): Likewise.
6026         (suitable_set_for_replacement): Likewise.
6027         (simplify_using_initial_values): Likewise for local "insn".
6028         (iv_number_of_iterations): Likewise for param "insn".
6029         (check_simple_exit): Add checked cast to rtx_insn when invoking
6030         iv_number_of_iterations for now (until get_condition is
6031         strengthened).
6033         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
6034         "insn" from rtx to rtx_insn *.
6035         (analyze_insns_in_loop): Likewise for local "insn".
6037 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6039         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
6040         to rtx_insn *.
6041         (struct invariant): Likewise.
6042         (hash_invariant_expr_1): Likewise for param "insn".
6043         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
6044         (find_exits): Likewise for local "insn".
6045         (create_new_invariant): Likewise for param "insn".
6046         (check_dependencies): Likewise.
6047         (find_invariant_insn): Likewise.
6048         (record_uses): Likewise.
6049         (find_invariants_insn): Likewise.
6050         (find_invariants_bb): Likewise for local "insn".
6051         (get_pressure_class_and_nregs): Likewise for param "insn".
6052         (calculate_loop_reg_pressure): Likewise for local "insn".
6054 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6056         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
6057         to rtx_insn *.
6058         (add_test): Likewise for locals "seq", "jump".
6059         (doloop_modify): Likewise for locals "sequence", "jump_insn".
6061 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6063         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
6064         rtx_insn *.
6065         (rebuild_jump_labels_chain): Likewise for param "chain".
6067         * cfgexpand.c (pass_expand::execute): Add checked cast to
6068         rtx_insn * when calling rebuild_jump_labels_chain in region where
6069         we know e->insns.r is non-NULL.
6071         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
6072         rtx_insn *.
6073         (rebuild_jump_labels): Likewise.
6074         (rebuild_jump_labels_chain): Likewise for param "chain".
6075         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
6076         (init_label_info): Likewise for param "f".
6077         (maybe_propagate_label_ref): Likewise for params "jump_insn",
6078         "prev_nonjump_insn".
6079         (mark_all_labels): Likewise for param "f" and locals "insn",
6080         "prev_nonjump_insn".
6082 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6084         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
6085         from rtx to rtx_insn *insn.
6086         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
6087         (ira_add_allocno_copy): Likewise.
6088         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
6089         rtx to rtx_insn *.
6090         (ira_create_copy): Likewise.
6091         (ira_add_allocno_copy): Likewise.
6092         (create_bb_allocnos): Likewise for local "insn".
6093         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
6094         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
6095         process_regs_for_copy for rtx_insn * param.
6096         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
6097         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
6098         process_regs_for_copy for rtx_insn * param.
6099         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
6100         * ira-costs.c (record_reg_classes): Likewise for param "insn".
6101         (record_operand_costs): Likewise.
6102         (scan_one_insn): Likewise for return type, and for param "insn".
6103         (process_bb_for_costs): Likewise for local "insn".
6104         (process_bb_node_for_hard_reg_moves): Likewise.
6105         * ira-emit.c (struct move): Likewise for field "insn".
6106         (create_move): Eliminate use of NULL_RTX when dealing with an
6107         rtx_insn *.
6108         (emit_move_list): Strengthen return type and locals "result",
6109         "insn" from rtx to rtx_insn *insn.
6110         (emit_moves): Likewise for locals "insns", "tmp".
6111         (ira_emit): Likewise for local "insn".
6112         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
6113         "insn".
6114         (find_call_crossed_cheap_reg): Likewise.
6115         (process_bb_node_lives): Likewise for local "insn".
6116         * ira.c (decrease_live_ranges_number): Likewise.
6117         (compute_regs_asm_clobbered): Likewise.
6118         (build_insn_chain): Likewise.
6119         (find_moveable_pseudos): Likewise, also locals "def_insn",
6120         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
6121         to rtx_insn **.  Add a checked cast when assigning from
6122         "closest_use" into closest_uses array in a region where we know
6123         it's a non-NULL insn.
6124         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
6125         to rtx_insn *.
6126         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
6127         "last_interesting_insn", "uin".
6128         (move_unallocated_pseudos): Likewise for locals "def_insn",
6129         "move_insn", "newinsn".
6131 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6133         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
6134         Strengthen locals "done_label", "do_error" from rtx to
6135         rtx_code_label *.
6136         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
6137         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
6138         rtx_code_label *.
6139         (ubsan_expand_si_overflow_neg_check): Likewise for locals
6140         "done_label", "do_error" to rtx_code_label * and local  "last" to
6141         rtx_insn *.
6142         (ubsan_expand_si_overflow_mul_check): Likewise for locals
6143         "done_label", "do_error", "large_op0", "small_op0_large_op1",
6144         "one_small_one_large", "both_ops_large", "after_hipart_neg",
6145         "after_lopart_neg", "do_overflow", "hipart_different"  to
6146         rtx_code_label * and local  "last" to rtx_insn *.
6148 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6150         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
6151         "insn" and "move_insn" from rtx to rtx_insn *.
6153 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6155         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
6156         rtx_insn *.
6157         (cheap_bb_rtx_cost_p): Likewise.
6158         (first_active_insn): Likewise for return type and local "insn".
6159         (last_active_insn):  Likewise for return type and locals "insn",
6160         "head".
6161         (struct noce_if_info): Likewise for fields "jump", "insn_a",
6162         "insn_b".
6163         (end_ifcvt_sequence): Likewise for return type and locals "insn",
6164         "seq".
6165         (noce_try_move): Likewise for local "seq".
6166         (noce_try_store_flag): Likewise.
6167         (noce_try_store_flag_constants): Likewise.
6168         (noce_try_addcc): Likewise.
6169         (noce_try_store_flag_mask): Likewise.
6170         (noce_try_cmove): Likewise.
6171         (noce_try_minmax): Likewise.
6172         (noce_try_abs): Likewise.
6173         (noce_try_sign_mask): Likewise.
6174         (noce_try_bitop): Likewise.
6175         (noce_can_store_speculate_p): Likewise for local "insn".
6176         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
6177         seq".
6178         (check_cond_move_block): Likewise for local "insn".
6179         (cond_move_convert_if_block): Likewise.
6180         (cond_move_process_if_block): Likewise for locals "seq",
6181         "loc_insn".
6182         (noce_find_if_block): Likewise for local "jump".
6183         (merge_if_block): Likewise for local "last".
6184         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
6185         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
6186         (block_has_only_trap): Likewise for return type and local "trap".
6187         (find_if_case_1): Likewise for local "jump".
6188         (dead_or_predicable): Likewise for locals "head", "end", "jump",
6189         "insn".
6191 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6193         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
6194         "last_insn", "loop_end" from rtx to rtx_insn *.
6196         * hw-doloop.c (scan_loop): Likewise for local "insn".
6197         (discover_loop): Likewise for param "tail_insn".
6198         (discover_loops): Likewise for local "tail".
6200         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
6201         cast to rtx_insn * when assigning from an rtx local to a
6202         hwloop_info's "last_insn" field.
6204 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6206         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
6207         (add_delay_dependencies): Strengthen local "pro" from rtx to
6208         rtx_insn *.
6209         (recompute_todo_spec): Likewise.
6210         (dep_cost_1): Likewise for locals "insn", "used".
6211         (schedule_insn): Likewise for local "dbg".
6212         (schedule_insn): Likewise for locals "pro", "next".
6213         (unschedule_insns_until): Likewise for local "con".
6214         (restore_pattern): Likewise for local "next".
6215         (estimate_insn_tick): Likewise for local "pro".
6216         (resolve_dependencies): Likewise for local "next".
6217         (fix_inter_tick): Likewise.
6218         (fix_tick_ready): Likewise for local "pro".
6219         (add_to_speculative_block): Likewise for locals "check", "twin",
6220         "pro".
6221         (sched_extend_bb): Likewise for locals "end", "insn".
6222         (init_before_recovery): Likewise for local "x".
6223         (sched_create_recovery_block): Likewise for local "barrier".
6224         (create_check_block_twin): Likewise for local "pro".
6225         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
6226         "consumer".
6227         (unlink_bb_notes): Update for change to type of bb_header.
6228         Strengthen locals "prev", "label", "note", "next" from rtx to
6229         rtx_insn *.
6230         (clear_priorities): Likewise for local "pro".
6232 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6234         * gcse.c (struct occr): Strengthen field "insn" from rtx to
6235         rtx_insn *.
6236         (test_insn): Likewise for this global.
6237         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
6238         const rtx_insn *.
6239         (oprs_anticipatable_p): Likewise.
6240         (oprs_available_p): Likewise.
6241         (insert_expr_in_table): Strengthen param "insn" from  rtx to
6242         rtx_insn *.
6243         (hash_scan_set): Likewise.
6244         (hash_scan_clobber): Likewise.
6245         (hash_scan_call): Likewise.
6246         (hash_scan_insn): Likewise.
6247         (compute_hash_table_work): Likewise for local "insn".
6248         (process_insert_insn): Likewise for return type and local "pat".
6249         (insert_insn_end_basic_block): Likewise for locals "new_insn",
6250         "pat", "pat_end", "maybe_cc0_setter".
6251         (pre_edge_insert): Likewise for local "insn".
6252         (pre_insert_copy_insn): Likewise for param "insn".
6253         (pre_insert_copies): Likewise for local "insn".
6254         (struct set_data): Likewise for field "insn".
6255         (single_set_gcse): Likewise for param "insn".
6256         (gcse_emit_move_after): Likewise.
6257         (pre_delete): Likewise for local "insn".
6258         (update_bb_reg_pressure): Likewise for param "from" and local
6259         "insn".
6260         (should_hoist_expr_to_dom): Likewise for param "from".
6261         (hoist_code): Likewise for local "insn".
6262         (get_pressure_class_and_nregs): Likewise for param "insn".
6263         (calculate_bb_reg_pressure): Likewise for local "insn".
6264         (compute_ld_motion_mems): Likewise.
6266 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6268         * genpeep.c (main): Rename param back from "uncast_ins1" to
6269         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
6270         checked cast.
6272         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
6274 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
6276         PR target/62195
6277         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
6278         documentation to state it is only for VSX operations.
6280         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
6281         constraint only active if VSX.
6283         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
6284         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
6285         (lfiwzx): Likewise.
6287 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6289         * fwprop.c (single_def_use_dom_walker::before_dom_children):
6290         Strengthen local "insn" from rtx to rtx_insn *.
6291         (use_killed_between): Likewise for param "target_insn".
6292         (all_uses_available_at): Likewise for param "target_insn" and
6293         local "next".
6294         (update_df_init): Likewise for params "def_insn", "insn".
6295         (update_df): Likewise for param "insn".
6296         (try_fwprop_subst): Likewise for param "def_insn" and local
6297         "insn".
6298         (free_load_extend): Likewise for param "insn".
6299         (forward_propagate_subreg): Likewise for param "def_insn" and
6300         local "use_insn".
6301         (forward_propagate_asm): Likewise for param "def_insn" and local
6302         "use_insn".
6303         (forward_propagate_and_simplify): Likewise for param "def_insn"
6304         and local "use_insn".
6305         (forward_propagate_into): Likewise for locals "def_insn" and
6306         "use_insn".
6308 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6310         * function.c (emit_initial_value_sets): Strengthen local "seq"
6311         from rtx to rtx_insn *.
6312         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
6313         local "seq".
6314         (instantiate_virtual_regs): Likewise for local "insn".
6315         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
6316         (reorder_blocks_1): Likewise for param "insns" and local "insn".
6317         (expand_function_end): Likewise for locals "insn" and "seq".
6318         (epilogue_done): Likewise for local "insn".
6319         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
6320         "last", "trial".
6321         (reposition_prologue_and_epilogue_notes): Likewise for locals
6322         "insn", "last", "note", "first".
6323         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
6324         (pass_match_asm_constraints::execute): Likewise for local "insn".
6326 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6328         * output.h (final_scan_insn): Strengthen return type from rtx to
6329         rtx_insn *.
6330         (final_forward_branch_p): Likewise for param.
6331         (current_output_insn): Likewise for this global.
6333         * final.c (rtx debug_insn): Likewise for this variable.
6334         (current_output_insn): Likewise.
6335         (get_attr_length_1): Rename param "insn" to "uncast_insn",
6336         adding "insn" back in as an rtx_insn * with a checked cast, so
6337         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
6338         first param.
6339         (compute_alignments): Strengthen local "label" from rtx to
6340         rtx_insn *.
6341         (shorten_branches): Rename param from "first" to "uncast_first",
6342         introducing a new local rtx_insn * "first" using a checked cast to
6343         effectively strengthen "first" from rtx to rtx_insn * without
6344         affecting the type signature.  Strengthen locals "insn", "seq",
6345         "next", "label" from rtx to rtx_insn *.
6346         (change_scope): Strengthen param "orig_insn" and local "insn" from
6347         rtx to rtx_insn *.
6348         (final_start_function): Rename param from "first" to "uncast_first",
6349         introducing a new local rtx_insn * "first" using a checked cast to
6350         effectively strengthen "first" from rtx to rtx_insn * without
6351         affecting the type signature.  Strengthen local "insn" from rtx to
6352         rtx_insn *.
6353         (dump_basic_block_info): Strengthen param "insn" from rtx to
6354         rtx_insn *.
6355         (final): Rename param from "first" to "uncast_first",
6356         introducing a new local rtx_insn * "first" using a checked cast to
6357         effectively strengthen "first" from rtx to rtx_insn * without
6358         affecting the type signature.  Strengthen locals "insn", "next"
6359         from rtx to rtx_insn *.
6360         (output_alternate_entry_point): Strengthen param "insn" from rtx to
6361         rtx_insn *.
6362         (call_from_call_insn): Strengthen param "insn" from rtx to
6363         rtx_call_insn *.
6364         (final_scan_insn): Rename param from "insn" to "uncast_insn",
6365         introducing a new local rtx_insn * "insn" using a checked cast to
6366         effectively strengthen "insn" from rtx to rtx_insn * without
6367         affecting the type signature.  Strengthen return type and locals
6368         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
6369         now-redundant checked cast to rtx_insn * from both invocations of
6370         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
6371         introducing a local "call_insn" for use when invoking
6372         call_from_call_insn.
6373         (notice_source_line): Strengthen param "insn" from rtx to
6374         rtx_insn *.
6375         (leaf_function_p): Likewise for local "insn".
6376         (final_forward_branch_p): Likewise.
6377         (leaf_renumber_regs): Likewise for param "first".
6378         (rest_of_clean_state): Likewise for locals "insn" and "next".
6379         (self_recursive_call_p): Likewise for param "insn".
6380         (collect_fn_hard_reg_usage): Likewise for local "insn".
6381         (get_call_fndecl): Likewise for param "insn".
6382         (get_call_cgraph_rtl_info): Likewise.
6383         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
6384         introducing a new local rtx_insn * "insn" using a checked cast to
6385         effectively strengthen "insn" from rtx to rtx_insn * without
6386         affecting the type signature.
6388         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
6389         cast when assigning from param "insn" to current_output_insn.
6390         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
6391         so that we can assign it back to current_output_insn.
6393 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6395         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
6396         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
6397         atmxt540s and atmxt540sreva devices.
6398         * config/avr/avr-tables.opt: Regenerate.
6399         * config/avr/t-multilib: Regenerate.
6400         * doc/avr-mmcu.texi: Regenerate.
6402 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6404         * expr.c (convert_move): Strengthen local "insns" from rtx to
6405         rtx_insn *.
6406         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
6407         "top_label" from rtx to rtx_code_label *.
6408         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
6409         rtx_insn *.
6410         (emit_single_push_insn): Likewise for locals "prev", "last".
6411         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
6412         to rtx_code_label *.
6413         (store_constructor): Likewise for locals "loop_start", "loop_end".
6414         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
6415         rtx_insn *.
6416         (expand_expr_real_2): Likewise.
6417         (expand_expr_real_1): Strengthen local "label" from rtx to
6418         rtx_code_label *.
6420 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6422         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
6423         from rtx to rtx_insn *.
6424         (store_bit_field_1): Likewise.
6425         (extract_bit_field_1): Likewise.
6426         (expand_mult_const): Likewise for local "insns".
6427         (expmed_mult_highpart): Strengthen local "label" from rtx to
6428         rtx_code_label *.
6429         (expand_smod_pow2): Likewise.
6430         (expand_sdiv_pow2): Likewise.
6431         (expand_divmod): Strengthen locals "last", "insn" from rtx to
6432         rtx_insn *.  Strengthen locals "label", "label1", "label2",
6433         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
6434         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
6435         (emit_store_flag): Likewise.
6436         (emit_store_flag_force): Strengthen local "label" from rtx to
6437         rtx_code_label *.
6438         (do_cmp_and_jump): Likewise for param "label".
6440 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6442         * explow.c (force_reg): Strengthen local "insn" from rtx to
6443         rtx_insn *.
6444         (adjust_stack_1): Likewise.
6445         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
6446         "final_label", "available_label", "space_available" from rtx to
6447         rtx_code_label *.
6448         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
6449         (anti_adjust_stack_and_probe): Likewise.
6451 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6453         * except.h (sjlj_emit_function_exit_after): Strengthen param
6454         "after" from rtx to rtx_insn *.  This is only called with
6455         result of get_last_insn (in function.c) so type-change should be
6456         self-contained.
6458         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
6459         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
6460         to rtx_insn *.  These fields are only used from except.c so this
6461         type-change should be self-contained to this patch.
6463         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
6464         local "last" from rtx to rtx_insn *.
6465         (dw2_build_landing_pads): Likewise for local "seq".
6466         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
6467         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
6468         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
6469         rtx to rtx_insn *.
6470         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
6471         to rtx_insn *.
6472         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
6473         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
6474         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
6475         referring to an insn.  Strengthen local "dispatch_label" from
6476         rtx to rtx_code_label *.
6477         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
6478         rtx_insn *.
6479         (expand_eh_return): Strengthen local "around_label" from
6480         rtx to rtx_code_label *.
6481         (convert_to_eh_region_ranges): Strengthen locals "iter",
6482         "last_action_insn", "first_no_action_insn",
6483         "first_no_action_insn_before_switch",
6484         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
6486 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6488         * dwarf2out.c (last_var_location_insn): Strengthen this variable
6489         from rtx to rtx_insn *.
6490         (cached_next_real_insn): Likewise.
6491         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
6492         working with insns.
6493         (dwarf2out_var_location): Strengthen locals "next_real",
6494         "next_note", "expected_next_loc_note", "last_start", "insn" from
6495         rtx to rtx_insn *.
6497 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6499         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
6500         from rtx to rtx_insn *.
6501         (create_pseudo_cfg): Likewise for local "insn".
6503 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6505         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
6506         from rtx to rtx_insn *.
6507         (df_bb_regno_last_def_find): Likewise.
6509         * df-problems.c (df_rd_bb_local_compute): Likewise.
6510         (df_lr_bb_local_compute): Likewise.
6511         (df_live_bb_local_compute): Likewise.
6512         (df_chain_remove_problem): Likewise.
6513         (df_chain_create_bb): Likewise.
6514         (df_word_lr_bb_local_compute): Likewise.
6515         (df_remove_dead_eq_notes): Likewise for param "insn".
6516         (df_note_bb_compute): Likewise for local "insn".
6517         (simulate_backwards_to_point): Likewise.
6518         (df_md_bb_local_compute): Likewise.
6520         * df-scan.c (df_scan_free_bb_info): Likewise.
6521         (df_scan_start_dump): Likewise.
6522         (df_scan_start_block): Likewise.
6523         (df_install_ref_incremental): Likewise for local "insn".
6524         (df_insn_rescan_all): Likewise.
6525         (df_reorganize_refs_by_reg_by_insn): Likewise.
6526         (df_reorganize_refs_by_insn_bb): Likewise.
6527         (df_recompute_luids): Likewise.
6528         (df_bb_refs_record): Likewise.
6529         (df_update_entry_exit_and_calls): Likewise.
6530         (df_bb_verify): Likewise.
6532 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6534         * ddg.h (struct ddg_node): Strengthen fields "insn" and
6535         "first_note" from rtx to rtx_insn *.
6536         (get_node_of_insn): Likewise for param 2 "insn".
6537         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
6539         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
6540         rtx_insn *.
6541         (mem_write_insn_p): Likewise.
6542         (mem_access_insn_p): Likewise.
6543         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
6544         (def_has_ccmode_p): Likewise for param "insn".
6545         (add_cross_iteration_register_deps): Likewise for locals
6546         "def_insn" and "use_insn".
6547         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
6548         (build_intra_loop_deps): Likewise for local "src_insn".
6549         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
6550         to rtx_insn *.
6551         (get_node_of_insn): Likewise for param "insn".
6553 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6555         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
6556         (deletable_insn_p): Strengthen param "insn" from rtx to
6557         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
6558         find_call_stack_args, since this is guarded by CALL_P (insn).
6559         (marked_insn_p): Strengthen param "insn" from rtx to
6560         rtx_insn *.
6561         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
6562         invoking find_call_stack_args, since this is guarded by
6563         CALL_P (insn).
6564         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
6565         rtx_insn *; we know this is an insn since this was called by
6566         mark_nonreg_stores.
6567         (mark_nonreg_stores_2): Likewise.
6568         (mark_nonreg_stores): Strengthen param "insn" from rtx to
6569         rtx_insn *.
6570         (find_call_stack_args): Strengthen param "call_insn" from rtx to
6571         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
6572         to rtx_insn *.
6573         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
6574         from rtx to rtx_insn *.
6575         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
6576         "next", "ref_insn".
6577         (delete_unmarked_insns): Likewise for locals "insn", "next".
6578         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
6579         (mark_reg_dependencies): Likewise for param "insn".
6580         (rest_of_handle_ud_dce): Likewise for local "insn".
6581         (word_dce_process_block): Likewise.
6582         (dce_process_block): Likewise.
6584 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6586         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
6587         from rtx to rtx_insn *.
6588         (struct change_cc_mode_args): Likewise for field "insn".
6589         (this_insn): Strengthen from rtx to rtx_insn *.
6590         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
6591         with insn.
6592         (validate_canon_reg): Strengthen param "insn" from rtx to
6593         rtx_insn *.
6594         (canon_reg): Likewise.
6595         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
6596         dealing with insn.
6597         (record_jump_equiv): Strengthen param "insn" from rtx to
6598         rtx_insn *.
6599         (try_back_substitute_reg): Likewise, also for locals "prev",
6600         "bb_head".
6601         (find_sets_in_insn): Likewise for param "insn".
6602         (canonicalize_insn): Likewise.
6603         (cse_insn): Likewise.  Add a checked cast.
6604         (invalidate_from_clobbers): Likewise for param "insn".
6605         (invalidate_from_sets_and_clobbers): Likewise.
6606         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
6607         dealing with insn.
6608         (cse_prescan_path): Strengthen local "insn" from rtx to
6609         rtx_insn *.
6610         (cse_extended_basic_block): Likewise for locals "insn" and
6611         "prev_insn".
6612         (cse_main): Likewise for param "f".
6613         (check_for_label_ref): Likewise for local "insn".
6614         (set_live_p): Likewise for second param ("insn").
6615         (insn_live_p): Likewise for first param ("insn") and for local
6616         "next".
6617         (cse_change_cc_mode_insn): Likewise for first param "insn".
6618         (cse_change_cc_mode_insns): Likewise for first and second params
6619         "start" and "end".
6620         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
6621         and "end".
6622         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
6623         "cc_src_insn".
6625 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6626             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6627             Anna Tikhonova  <anna.tikhonova@intel.com>
6628             Ilya Tocar  <ilya.tocar@intel.com>
6629             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6630             Ilya Verbin  <ilya.verbin@intel.com>
6631             Kirill Yukhin  <kirill.yukhin@intel.com>
6632             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6634         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
6635         New.
6636         * config/i386/sse.md
6637         (define_mode_iterator VI248_AVX2): Delete.
6638         (define_mode_iterator VI2_AVX2_AVX512BW): New.
6639         (define_mode_iterator VI48_AVX2): Ditto.
6640         (define_insn <shift_insn><mode>3): Delete.
6641         (define_insn "<shift_insn><mode>3<mask_name>" with
6642         VI2_AVX2_AVX512BW): New.
6643         (define_insn "<shift_insn><mode>3<mask_name>" with
6644         VI48_AVX2): Ditto.
6646 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6647             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6648             Anna Tikhonova  <anna.tikhonova@intel.com>
6649             Ilya Tocar  <ilya.tocar@intel.com>
6650             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6651             Ilya Verbin  <ilya.verbin@intel.com>
6652             Kirill Yukhin  <kirill.yukhin@intel.com>
6653             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6655         * config/i386/sse.md
6656         (define_mode_iterator VI4F_BRCST32x2): New.
6657         (define_mode_attr 64x2_mode): Ditto.
6658         (define_mode_attr 32x2mode): Ditto.
6659         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
6660         with VI4F_BRCST32x2): Ditto.
6661         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
6662         with V16FI mode iterator): Ditto.
6663         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
6664         with V16FI): Ditto.
6665         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
6666         with VI8F_BRCST64x2): Ditto.
6668 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6669             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6670             Anna Tikhonova  <anna.tikhonova@intel.com>
6671             Ilya Tocar  <ilya.tocar@intel.com>
6672             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6673             Ilya Verbin  <ilya.verbin@intel.com>
6674             Kirill Yukhin  <kirill.yukhin@intel.com>
6675             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6677         * config/i386/sse.md
6678         (define_mode_iterator VI8_AVX512VL): New.
6679         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
6681 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
6683         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
6684         (define_mode_iterator V48_AVX512VL): New.
6685         (define_mode_iterator V12_AVX512VL): Ditto.
6686         (define_insn <avx512>_load<mode>_mask): Split into two similar
6687         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
6688         Refactor output template.
6689         (define_insn "<avx512>_store<mode>_mask"): Ditto.
6691 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6693         * cprop.c (struct occr): Strengthen field "insn" from rtx to
6694         rtx_insn *.
6695         (reg_available_p): Likewise for param "insn".
6696         (insert_set_in_table): Likewise.
6697         (hash_scan_set): Likewise.
6698         (hash_scan_insn): Likewise.
6699         (make_set_regs_unavailable): Likewise.
6700         (compute_hash_table_work): Likewise for local "insn".
6701         (reg_not_set_p): Strengthen param "insn" from const_rtx to
6702         const rtx_insn *.
6703         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
6704         (try_replace_reg): Likewise.
6705         (find_avail_set): Likewise.
6706         (cprop_jump): Likewise for params "setcc", "jump".
6707         (constprop_register): Likewise for param "insn".
6708         (cprop_insn): Likewise.
6709         (do_local_cprop): Likewise.
6710         (local_cprop_pass): Likewise for local "insn".
6711         (bypass_block): Likewise for params "setcc" and "jump".
6712         (bypass_conditional_jumps): Likewise for locals "setcc" and
6713         "insn".
6714         (one_cprop_pass): Likewise for local "insn".
6716 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6718         * compare-elim.c (struct comparison_use): Strengthen field "insn"
6719         from rtx to rtx_insn *.
6720         (struct comparison): Likewise, also for field "prev_clobber".
6721         (conforming_compare): Likewise for param "insn".
6722         (arithmetic_flags_clobber_p): Likewise.
6723         (find_flags_uses_in_insn): Likewise.
6724         (find_comparison_dom_walker::before_dom_children): Likewise for
6725         locals "insn", "next", "last_clobber".
6726         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
6728 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6730         * combine-stack-adj.c (struct csa_reflist): Strengthen field
6731         "insn" from rtx to rtx_insn *.
6732         (single_set_for_csa): Likewise for param "insn".
6733         (record_one_stack_ref): Likewise.
6734         (try_apply_stack_adjustment): Likewise.
6735         (struct record_stack_refs_data): Likewise for field "insn".
6736         (maybe_move_args_size_note): Likewise for params "last" and "insn".
6737         (prev_active_insn_bb): Likewise for return type and param "insn".
6738         (next_active_insn_bb): Likewise.
6739         (force_move_args_size_note): Likewise for params "prev" and "last"
6740         and locals "test", "next_candidate", "prev_candidate".
6741         (combine_stack_adjustments_for_block): Strengthen locals
6742         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
6743         rtx_insn *.
6745 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6747         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
6748         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
6749         (subst_insn): Likewise for this variable.
6750         (added_links_insn): Likewise.
6751         (struct insn_link): Likewise for field "insn".
6752         (alloc_insn_link): Likewise for param "insn".
6753         (struct undobuf): Likewise for field "other_insn".
6754         (find_single_use): Likewise for param "insn" and local "next".
6755         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
6756         (delete_noop_moves): Likewise for locals "insn", "next".
6757         (create_log_links): Likewise for locals "insn", "use_insn".
6758         Strengthen local "next_use" from rtx * to rtx_insn **.
6759         (insn_a_feeds_b): Likewise for params "a", "b".
6760         (combine_instructions): Likewise for param "f" and locals "insn",
6761         "next", "prev", "first", "last_combined_insn", "link", "link1",
6762         "temp".  Replace use of NULL_RTX with NULL when referring to
6763         insns.
6764         (setup_incoming_promotions): Likewise for param "first"
6765         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
6766         (can_combine_p): Likewise for params "insn", "i3", "pred",
6767         "pred2", "succ", "succ2" and for local "p".
6768         (combinable_i3pat): Likewise for param "i3".
6769         (cant_combine_insn_p): Likewise for param "insn".
6770         (likely_spilled_retval_p): Likewise.
6771         (adjust_for_new_dest): Likewise.
6772         (update_cfg_for_uncondjump): Likewise, also for local "insn".
6773         (try_combine): Likewise for return type and for params "i3", "i2",
6774         "i1", "i0", "last_combined_insn", and for locals "insn",
6775         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
6776         "i0_insn".  Eliminate local "tem" in favor of new locals
6777         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
6778         checked cast for now to rtx_insn * on the return type of
6779         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
6780         insns.
6781         (find_split_point): Strengthen param "insn" from rtx to
6782         rtx_insn *.
6783         (simplify_set): Likewise for local "other_insn".
6784         (recog_for_combine): Likewise for param "insn".
6785         (record_value_for_reg): Likewise.
6786         (record_dead_and_set_regs_1): Likewise for local
6787         "record_dead_insn".
6788         (record_dead_and_set_regs): Likewise for param "insn".
6789         (record_promoted_value): Likewise.
6790         (check_promoted_subreg): Likewise.
6791         (get_last_value_validate): Likewise.
6792         (reg_dead_at_p): Likewise.
6793         (move_deaths): Likewise for param "to_insn".
6794         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
6795         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
6796         in favor of new locals "tem_note" and "tem_insn", the latter being
6797         an rtx_insn *.
6798         (distribute_links): Strengthen locals "place", "insn" from rtx to
6799         rtx_insn *.
6801 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6803         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
6804         than a const_rtx.
6805         (can_delete_label_p): Require a const rtx_code_label * rather than
6806         a const_rtx.
6807         (delete_insn): Add checked cast to rtx_code_label * when we know
6808         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
6809         rtx to rtx_insn *.
6810         (delete_insn_chain): Strengthen locals "prev" and "current" from
6811         rtx to rtx_insn *.  Add a checked cast when assigning from
6812         "finish" (strengthening the params will come later).  Add a
6813         checked cast to rtx_note * in region where we know
6814         NOTE_P (current).
6815         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
6816         rtx_insn *.
6817         (compute_bb_for_insn): Likewise.
6818         (free_bb_for_insn): Likewise for local "insn".
6819         (compute_bb_for_insn): Likewise.
6820         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
6821         local "insn" from rtx to rtx_insn *
6822         (flow_active_insn_p): Require a const rtx_insn * rather than a
6823         const_rtx.
6824         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
6825         rtx_insn *.
6826         (can_fallthru): Likewise for locals "insn" and "insn2".
6827         (bb_note): Likewise for local "note".
6828         (first_insn_after_basic_block_note): Likewise for local "note" and
6829         for return type.
6830         (rtl_split_block): Likewise for locals "insn" and "next".
6831         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
6832         "end".
6833         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
6834         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
6835         "prev", "tmp".
6836         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
6837         them), "kill_from", "barrier", "new_insn".
6838         (patch_jump_insn): Likewise for params "insn", "old_label".
6839         (redirect_branch_edge): Likewise for locals "old_label", "insn".
6840         (force_nonfallthru_and_redirect): Likewise for locals "insn",
6841         "old_label", "new_label".
6842         (rtl_tidy_fallthru_edge): Likewise for local "q".
6843         (rtl_split_edge): Likewise for locals "before", "last".
6844         (commit_one_edge_insertion): Likewise for locals "before",
6845         "after", "insns", "tmp", "last", adding a checked cast where
6846         currently necessary.
6847         (commit_edge_insertions): Likewise.
6848         (rtl_dump_bb): Likewise for locals "insn", "last".
6849         (print_rtl_with_bb): Likewise for local "x".
6850         (rtl_verify_bb_insns): Likewise for local "x".
6851         (rtl_verify_bb_pointers): Likewise for local "insn".
6852         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
6853         "head", "end".
6854         (rtl_verify_fallthru): Likewise for local "insn".
6855         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
6856         (purge_dead_edges): Likewise for local "insn".
6857         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
6858         (skip_insns_after_block): Likewise for return type and for locals
6859         "insn", "last_insn", "next_head", "prev".
6860         (record_effective_endpoints): Likewise for locals "next_insn",
6861         "insn", "end".
6862         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
6863         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
6864         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
6865         (duplicate_insn_chain): For now, add checked cast from rtx to
6866         rtx_insn * when returning insn.
6867         (cfg_layout_duplicate_bb): Likewise for local "insn".
6868         (cfg_layout_delete_block): Likewise for locals "insn", "next",
6869         "prev", "remaints".
6870         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
6871         (rtl_block_empty_p): Likewise.
6872         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
6873         "split_point", "last".
6874         (rtl_block_ends_with_call_p): Likewise for local "insn".
6875         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
6876         const rtx_insn *.
6877         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
6878         "split_at_insn" from rtx to rtx_insn *.
6879         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
6880         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
6881         to const rtx_insn *.
6882         (rtl_account_profile_record): Likewise.
6884 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6886         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
6887         rtx to rtx_insn *.
6888         (average_num_loop_insns): Likewise.
6889         (init_set_costs): Likewise for local "seq".
6890         (seq_cost): Likewise for param "seq", from const_rtx to const
6891         rtx_insn *.
6893 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6895         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
6896         rtx to rtx_insn *.
6898 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6900         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
6901         "f1" and "f2" from rtx * to rtx_insn **.
6902         (flow_find_head_matching_sequence): Likewise.
6904         * cfgcleanup.c (try_simplify_condjump): Strengthen local
6905         "cbranch_insn" from rtx to rtx_insn *.
6906         (thread_jump): Likewise for local "insn".
6907         (try_forward_edges): Likewise for local "last".
6908         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
6909         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
6910         "real_b_end".
6911         (can_replace_by): Likewise for params "i1", "i2".
6912         (old_insns_match_p): Likewise.
6913         (merge_notes): Likewise.
6914         (walk_to_nondebug_insn): Likewise for param "i1".
6915         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
6916         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
6917         "afterlast1", "afterlast2" from rtx to rtx_insn *.
6918         (flow_find_head_matching_sequence): Strengthen params "f1" and
6919         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
6920         "last1", "last2", "beforelast1", "beforelast2" from rtx to
6921         rtx_insn *.
6922         (outgoing_edges_match): Likewise for locals "last1", "last2".
6923         (try_crossjump_to_edge): Likewise for local "insn".
6924         Replace call to for_each_rtx with for_each_rtx_in_insn.
6926         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
6927         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
6928         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
6929         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
6930         (try_optimize_cfg): Strengthen local "last" from rtx to
6931         rtx_insn *.
6932         (delete_dead_jumptables): Likewise for locals "insn", "next",
6933         "label".
6935         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
6936         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
6937         "rtx else_first_tail", to reflect the basic-block.h changes above.
6939 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6941         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
6942         rtx_insn *.
6943         (purge_dead_tablejump_edges): Likewise.
6944         (find_bb_boundaries): Likewise for locals "insn", "end",
6945         "flow_transfer_insn".
6947 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6949         * caller-save.c (save_call_clobbered_regs): Strengthen locals
6950         "ins" and "prev" from rtx to rtx_insn *.
6952 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6954         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
6955         rtx_insn *.
6956         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
6957         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
6958         "scan_start".
6959         (load_register_parameters): Likewise for local "before_arg".
6960         (check_sibcall_argument_overlap): Likewise for param "insn".
6961         (expand_call): Likewise for locals "normal_call_insns",
6962         "tail_call_insns", "insns", "before_call", "after_args",
6963         "before_arg", "last", "prev".  Strengthen one of the "last" from
6964         rtx to rtx_call_insn *.
6965         (fixup_tail_calls): Strengthen local "insn" from rtx to
6966         rtx_insn *.
6967         (emit_library_call_value_1): Likewise for locals "before_call" and
6968         "last".
6970 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6972         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
6973         and "last" from rtx to rtx_insn *.
6974         (expand_builtin_nonlocal_goto): Likewise for local "insn".
6975         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
6976         rtx_call_insn *.
6977         (expand_errno_check): Strengthen local "lab" from rtx to
6978         rtx_code_label *.
6979         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
6980         rtx_insn *.
6981         (expand_builtin_mathfn_2): Likewise.
6982         (expand_builtin_mathfn_ternary): Likewise.
6983         (expand_builtin_mathfn_3): Likewise.
6984         (expand_builtin_interclass_mathfn): Likewise for local "last".
6985         (expand_builtin_int_roundingfn): Likewise for local "insns".
6986         (expand_builtin_int_roundingfn_2): Likewise.
6987         (expand_builtin_strlen): Likewise for local "before_strlen".
6988         (expand_builtin_strncmp): Likewise for local "seq".
6989         (expand_builtin_signbit): Likewise for local "last".
6990         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
6991         from rtx to rtx_code_label *.
6992         (expand_stack_restore):  Strengthen local "prev" from rtx to
6993         rtx_insn *.
6995 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6997         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
6998         to rtx_insn *.
6999         (struct btr_def_s): Likewise.
7000         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
7001         const rtx_insn *.
7002         (add_btr_def): Likewise.
7003         (new_btr_user): Likewise.
7004         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
7005         rtx to rtx_insn *.
7006         (link_btr_uses): Likewise.
7007         (move_btr_def): Likewise for locals "insp", "old_insn",
7008         "new_insn".  Add checked cast to rtx_insn * for now on result of
7009         gen_move_insn.
7010         (can_move_up): Strengthen param "insn" from const_rtx to
7011         const rtx_insn *.
7013 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7015         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
7016         rtx_insn *.
7017         (get_uncond_jump_length): Likewise for locals "label", "jump".
7018         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
7019         "jump", "insn".
7020         (add_labels_and_missing_jumps): Likewise for local "new_jump".
7021         (fix_up_fall_thru_edges): Likewise for local "old_jump".
7022         (find_jump_block): Likewise for local "insn".
7023         (fix_crossing_conditional_branches): Likewise for locals
7024         "old_jump", "new_jump".
7025         (fix_crossing_unconditional_branches): Likewise for locals
7026         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
7027         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
7029 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7031         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
7032         rtx to rtx_insn *.
7033         (struct mem_insn): Likewise for field "insn".
7034         (reg_next_use): Strengthen from rtx * to rtx_insn **.
7035         (reg_next_inc_use): Likewise.
7036         (reg_next_def): Likewise.
7037         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
7038         from rtx to rtx_insn *.
7039         (move_insn_before): Likewise for param "next_insn" and local "insns".
7040         (attempt_change): Likewise for local "mov_insn".
7041         (try_merge): Likewise for param "last_insn".
7042         (get_next_ref): Likewise for return type and local "insn".
7043         Strengthen param "next_array" from rtx * to rtx_insn **.
7044         (parse_add_or_inc): Strengthen param "insn" from rtx to
7045         rtx_insn *.
7046         (find_inc): Likewise for locals "insn" and "other_insn" (three of
7047         the latter).
7048         (merge_in_block): Likewise for locals "insn", "curr",
7049         "other_insn".
7050         (pass_inc_dec::execute): Update allocations of the arrays to
7051         reflect the stronger types.
7053 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7055         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
7056         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
7057         from rtx to rtx_code_label *.
7059 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7061         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
7062         to rtx_insn *.
7064 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7066         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
7067         generated a warning and prevented bootstrapping the compiler.
7069 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7071         * rtl.h (delete_related_insns): Strengthen return type from rtx to
7072         rtx_insn *.
7074         * jump.c (delete_related_insns): Likewise, also for locals "next"
7075         and "prev".
7077 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7079         * genautomata.c (output_internal_insn_latency_func): When writing
7080         the function "internal_insn_latency" to insn-automata.c,
7081         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
7082         allowing the optional guard function of (define_bypass) clauses to
7083         expect a pair of rtx_insn *, rather than a pair of rtx.
7084         (output_insn_latency_func): When writing the function
7085         "insn_latency", add an "uncast_" prefix to params "insn" and
7086         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
7087         using checked casts from the params, thus enabling the above
7088         change to the generated "internal_insn_latency" function.
7090 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
7092         PR tree-optimization/62091
7093         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
7094         handle correctly arrays.
7095         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
7096         inheritance binfos.
7097         (record_known_type): Walk into inner type.
7098         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
7099         condition on no type changes.
7101 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7103         * genattrtab.c (write_attr_get): Within the generated get_attr_
7104         functions, rename param "insn" to "uncast_insn" and reintroduce
7105         "insn" as an local rtx_insn * using a checked cast, so that "insn"
7106         is an rtx_insn * within insn-attrtab.c
7108 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7110         * output.h (peephole): Strengthen return type from rtx to
7111         rtx_insn *.
7112         * rtl.h (delete_for_peephole): Likewise for both params.
7113         * genpeep.c (main): In generated "peephole" function, strengthen
7114         return type and local "insn" from rtx to rtx_insn *.  For now,
7115         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
7116         rtx_insn *, with a checked cast.
7117         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
7118         locals "insn", "next", "prev" from rtx to rtx_insn *.
7120 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
7122         PR tree-optimization/62112
7123         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
7124         * gimple-iterator.h (gsi_replace): Return bool.
7125         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
7126         moved from ref_may_alias_global_p.
7127         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
7128         New overloads.
7129         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
7130         (stmt_kills_ref_p_1): Rename...
7131         (stmt_kills_ref_p): ... to this.
7132         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
7133         stmt_kills_ref_p): Declare.
7134         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
7135         Move the self-assignment case...
7136         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
7138 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7140         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
7142         * emit-rtl.c (try_split): Likewise, also for locals "before" and
7143         "after".  For now, don't strengthen param "trial", which requires
7144         adding checked casts when returning it.
7146 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7148         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
7149         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
7150         "var_location" hook from rtx to rtx_insn *.
7151         (debug_nothing_rtx): Delete in favor of...
7152         (debug_nothing_rtx_code_label): New prototype.
7153         (debug_nothing_rtx_rtx): Delete unused prototype.
7154         (debug_nothing_rtx_insn): New prototype.
7156         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
7157         invoking debug_hooks->var_location (in two places, one in a NOTE
7158         case of a switch statement, the other guarded by a CALL_P
7159         conditional.  Add checked cast to rtx_code_label * when invoking
7160         debug_hooks->label (within CODE_LABEL case of switch statement).
7162         * dbxout.c (dbx_debug_hooks): Update "label" hook from
7163         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
7164         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
7165         (xcoff_debug_hooks): Likewise.
7166         * debug.c (do_nothing_debug_hooks): Likewise.
7167         (debug_nothing_rtx): Delete in favor of...
7168         (debug_nothing_rtx_insn): New function.
7169         (debug_nothing_rtx_rtx): Delete unused function.
7170         (debug_nothing_rtx_code_label): New function.
7171         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
7172         debug_nothing_rtx to debug_nothing_rtx_code_label.
7173         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
7174         to rtx_insn *.
7175         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
7176         debug_nothing_rtx to debug_nothing_rtx_insn.
7177         (sdbout_label): Strengthen param "insn" from rtx to
7178         rtx_code_label *.
7179         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
7180         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
7181         "var_location" hook from debug_nothing_rtx to
7182         debug_nothing_rtx_insn.
7184 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7186         * recog.h (insn_output_fn): Update this function typedef to match
7187         the changes below to the generated output functions, strengthening
7188         the 2nd param from rtx to rtx_insn *.
7190         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
7191         insn when invoking an output function, to match the new signature
7192         of insn_output_fn with a stronger second param.
7194         * genconditions.c (write_header): In the generated code for
7195         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
7196         to match the other changes in this patch.
7198         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
7199         the generated "gen_" functions from rtx to rtx_insn * within their
7200         implementations.
7202         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
7203         the subfunctions within the generated "recog_", "split", "peephole2"
7204         function trees from rtx to rtx_insn *.  For now, the top-level
7205         generated functions ("recog", "split", "peephole2") continue to
7206         take a plain rtx for "insn", to avoid introducing dependencies on
7207         other patches.  Rename this 2nd param from "insn" to
7208         "uncast_insn", and reintroduce "insn" as a local variable of type
7209         rtx_insn *, initialized at the top of the generated function with
7210         a checked cast on "uncast_insn".
7211         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
7212         the generated "gen_" functions from rtx to rtx_insn * within their
7213         prototypes.
7215         * genoutput.c (process_template): Strengthen the 2nd param within
7216         the generated "output_" functions "insn" from rtx to rtx_insn *.
7218 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
7220         * tree-profile.c (tree_profiling): Skip external functions
7221         when doing coverage instrumentation.
7222         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
7224 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7226         * config/rs6000/altivec.h (vec_cpsgn): New #define.
7227         (vec_mergee): Likewise.
7228         (vec_mergeo): Likewise.
7229         (vec_cntlz): Likewise.
7230         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
7231         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
7232         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
7233         VMRGEW, and VMRGOW.
7234         * doc/extend.texi: Document various forms of vec_cpsgn,
7235         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
7236         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
7237         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
7238         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
7239         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
7241 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7243         * config/rs6000/rs6000.c (context.h): New include.
7244         (tree-pass.h): Likewise.
7245         (make_pass_analyze_swaps): New decl.
7246         (rs6000_option_override): Register pass_analyze_swaps.
7247         (swap_web_entry): New subsclass of web_entry_base (df.h).
7248         (special_handling_values): New enum.
7249         (union_defs): New function.
7250         (union_uses): Likewise.
7251         (insn_is_load_p): Likewise.
7252         (insn_is_store_p): Likewise.
7253         (insn_is_swap_p): Likewise.
7254         (rtx_is_swappable_p): Likewise.
7255         (insn_is_swappable_p): Likewise.
7256         (chain_purpose): New enum.
7257         (chain_contains_only_swaps): New function.
7258         (mark_swaps_for_removal): Likewise.
7259         (swap_const_vector_halves): Likewise.
7260         (adjust_subreg_index): Likewise.
7261         (permute_load): Likewise.
7262         (permute_store): Likewise.
7263         (handle_special_swappables): Likewise.
7264         (replace_swap_with_copy): Likewise.
7265         (dump_swap_insn_table): Likewise.
7266         (rs6000_analyze_swaps): Likewise.
7267         (pass_data_analyze_swaps): New pass_data.
7268         (pass_analyze_swaps): New rtl_opt_pass.
7269         (make_pass_analyze_swaps): New function.
7270         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
7272 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7274         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
7275         type from rtx to rtx_insn *.
7276         (create_copy_of_insn_rtx): Likewise.
7277         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
7278         (create_copy_of_insn_rtx): Likewise, also for local "res".
7280 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7282         * rtl.h (find_first_parameter_load): Strengthen return type from
7283         rtx to rtx_insn *.
7284         * rtlanal.c (find_first_parameter_load): Strengthen return type
7285         from rtx to rtx_insn *.  Add checked cast for now, to postpone
7286         strengthening the params.
7288 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7290         PR fortran/44054
7291         * diagnostic.c: Set default caret.
7292         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
7293         line is needed.
7294         * diagnostic.h (struct diagnostic_context):
7296 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7298         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
7299         (sel_bb_head): Strengthen return type insn_t (currently just an
7300         rtx) to rtx_insn *.
7301         (sel_bb_end): Likewise.
7303         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
7304         (sel_bb_head): Strengthen return type and local "head" from
7305         insn_t (currently just an rtx) to rtx_insn *.
7306         (sel_bb_end): Likewise for return type.
7307         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
7308         working with insn.
7310 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7312         * basic-block.h (get_last_bb_insn): Strengthen return type from
7313         rtx to rtx_insn *.
7314         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
7315         end".
7317 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7319         PR fortran/44054
7320         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
7321          to here ...
7322         (diagnostic_report_diagnostic): ... from here.
7323         * toplev.c (general_init): Move code to c-family.
7325 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7327         * df.h (web_entry_base): Replace existing struct web_entry with a
7328         new class web_entry_base with only the predecessor member.
7329         (unionfind_root): Remove declaration and move to class member.
7330         (unionfind_union): Remove declaration and move to friend
7331         function.
7332         (union_defs): Remove declaration.
7333         * web.c (web_entry_base::unionfind_root): Modify to be member
7334         function and adjust accessors.
7335         (unionfind_union): Modify to be friend function and adjust
7336         accessors.
7337         (web_entry): New subclass of web_entry_base containing the reg
7338         member.
7339         (union_match_dups): Modify for struct -> class changes.
7340         (union_defs): Likewise.
7341         (entry_register): Likewise.
7342         (pass_web::execute): Likewise.
7344 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
7346         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
7347         builtin define __VEC_ELEMENT_REG_ORDER__.
7349 2014-08-20  Martin Jambor  <mjambor@suse.cz>
7350             Wei Mi  <wmi@google.com>
7352         PR ipa/60449
7353         PR middle-end/61776
7354         * tree-ssa-operands.c (update_stmt_operands): Remove
7355         MODIFIED_NORETURN_CALLS.
7356         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
7357         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
7358         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
7359         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
7360         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
7361         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
7362         (gimple_call_set_ctrl_altering): New func.
7363         (gimple_call_ctrl_altering_p): Ditto.
7364         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
7365         (make_blocks): Use gimple_call_initialize_ctrl_altering.
7366         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
7367         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
7368         remove MODIFIED_NORETURN_CALLS.
7370 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
7372         * coverage.c (coverage_compute_profile_id): Return non-0;
7373         also handle symbols with unique name.
7374         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
7376 2014-08-20  Steve Ellcey  <sellcey@mips.com>
7378         PR middle-end/49191
7379         * doc/sourcebuild.texi (non_strict_align): New.
7381 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
7383         * cgraphunit.c (ipa_passes, compile): Reshedule
7384         symtab_remove_unreachable_nodes passes; update comments.
7385         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
7386         TODO_remove_functions before the pass; the functions ought to be
7387         already removed.
7388         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
7389         TODO_remove_functions.
7390         * passes.c (pass_data_early_local_passes): Do not schedule function
7391         removal.
7392         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
7394 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7396         PR c/59304
7397         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
7398         before setting the option.
7399         * diagnostic.c (diagnostic_classify_diagnostic): Record
7400         command-line status.
7402 2014-08-20  Richard Biener  <rguenther@suse.de>
7404         PR lto/62190
7405         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
7406         to build uint{16,32,64}_type_node.
7408 2014-08-20  Terry Guo  <terry.guo@arm.com>
7410         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
7411         with immediate_operand.
7413 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
7415         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
7416         "insn" from an as_a to a safe_as_a, for the case when "insn" is
7417         NULL.
7419 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7421         PR preprocessor/51303
7422         * incpath.c (remove_duplicates): Use cpp_warning.
7424 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7426         PR c/60975
7427         PR c/53063
7428         * doc/options.texi (CPP): Document it.
7429         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
7430         * optc-gen.awk: Handle CPP.
7431         * opth-gen.awk: Likewise.
7433 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7435         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
7436         rtx_insn *.
7437         (duplicate_insn_chain): Likewise.
7438         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
7439         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
7440         checked cast for now (until we can strengthen the params in the
7441         same way).
7442         (duplicate_insn_chain): Likewise.
7444 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7446         * rtl.h (next_cc0_user): Strengthen return type from rtx to
7447         rtx_insn *.
7448         (prev_cc0_setter): Likewise.
7450         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
7451         rtx_insn *, adding checked casts for now as necessary.
7452         (prev_cc0_setter): Likewise.
7454 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7456         * expr.h (emit_move_insn): Strengthen return type from rtx to
7457         rtx_insn *.
7458         (emit_move_insn_1): Likewise.
7459         (emit_move_complex_push): Likewise.
7460         (emit_move_complex_parts): Likewise.
7462         * expr.c (emit_move_via_integer): Strengthen return type from rtx
7463         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
7464         with insns.
7465         (emit_move_complex_push): Strengthen return type from rtx to
7466         rtx_insn *.
7467         (emit_move_complex): Likewise, also for local "ret".
7468         (emit_move_ccmode): Likewise.
7469         (emit_move_multi_word): Likewise for return type and locals
7470         "last_insn", "seq".
7471         (emit_move_insn_1): Likewise for return type and locals "result",
7472         "ret".
7473         (emit_move_insn): Likewise for return type and local "last_insn".
7474         (compress_float_constant): Likewise.
7476 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7478         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
7479         from rtx to rtx_insn *.
7481         * rtl.h (emit_insn_before): Likewise.
7482         (emit_insn_before_noloc): Likewise.
7483         (emit_insn_before_setloc): Likewise.
7484         (emit_jump_insn_before): Likewise.
7485         (emit_jump_insn_before_noloc): Likewise.
7486         (emit_jump_insn_before_setloc): Likewise.
7487         (emit_call_insn_before): Likewise.
7488         (emit_call_insn_before_noloc): Likewise.
7489         (emit_call_insn_before_setloc): Likewise.
7490         (emit_debug_insn_before): Likewise.
7491         (emit_debug_insn_before_noloc): Likewise.
7492         (emit_debug_insn_before_setloc): Likewise.
7493         (emit_label_before): Likewise.
7494         (emit_insn_after): Likewise.
7495         (emit_insn_after_noloc): Likewise.
7496         (emit_insn_after_setloc): Likewise.
7497         (emit_jump_insn_after): Likewise.
7498         (emit_jump_insn_after_noloc): Likewise.
7499         (emit_jump_insn_after_setloc): Likewise.
7500         (emit_call_insn_after): Likewise.
7501         (emit_call_insn_after_noloc): Likewise.
7502         (emit_call_insn_after_setloc): Likewise.
7503         (emit_debug_insn_after): Likewise.
7504         (emit_debug_insn_after_noloc): Likewise.
7505         (emit_debug_insn_after_setloc): Likewise.
7506         (emit_label_after): Likewise.
7507         (emit_insn): Likewise.
7508         (emit_debug_insn): Likewise.
7509         (emit_jump_insn): Likewise.
7510         (emit_call_insn): Likewise.
7511         (emit_label): Likewise.
7512         (gen_clobber): Likewise.
7513         (emit_clobber): Likewise.
7514         (gen_use): Likewise.
7515         (emit_use): Likewise.
7516         (emit): Likewise.
7518         (emit_barrier_before): Strengthen return type from rtx to
7519         rtx_barrier *.
7520         (emit_barrier_after): Likewise.
7521         (emit_barrier): Likewise.
7523         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
7524         from rtx to rtx_insn *.  Add checked casts for now when converting
7525         "last" from rtx to rtx_insn *.
7526         (emit_insn_before_noloc): Likewise for return type.
7527         (emit_jump_insn_before_noloc): Likewise.
7528         (emit_call_insn_before_noloc): Likewise.
7529         (emit_debug_insn_before_noloc): Likewise.
7530         (emit_barrier_before): Strengthen return type and local "insn"
7531         from rtx to rtx_barrier *.
7532         (emit_label_before): Strengthen return type from rtx to
7533         rtx_insn *.  Add checked cast for now when returning param
7534         (emit_pattern_after_noloc): Strengthen return type from rtx to
7535         rtx_insn *.  Add checked casts for now when converting "last" from
7536         rtx to rtx_insn *.
7537         (emit_insn_after_noloc): Strengthen return type from rtx to
7538         rtx_insn *.
7539         (emit_jump_insn_after_noloc): Likewise.
7540         (emit_call_insn_after_noloc): Likewise.
7541         (emit_debug_insn_after_noloc): Likewise.
7542         (emit_barrier_after): Strengthen return type from rtx to
7543         rtx_barrier *.
7544         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
7545         Add checked cast for now when converting "label" from rtx to
7546         rtx_insn *.
7547         (emit_pattern_after_setloc): Strengthen return type from rtx to
7548         rtx_insn *.  Add checked casts for now when converting "last" from
7549         rtx to rtx_insn *.
7550         (emit_pattern_after): Strengthen return type from rtx to
7551         rtx_insn *.
7552         (emit_insn_after_setloc): Likewise.
7553         (emit_insn_after): Likewise.
7554         (emit_jump_insn_after_setloc): Likewise.
7555         (emit_jump_insn_after): Likewise.
7556         (emit_call_insn_after_setloc): Likewise.
7557         (emit_call_insn_after): Likewise.
7558         (emit_debug_insn_after_setloc): Likewise.
7559         (emit_debug_insn_after): Likewise.
7560         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
7561         when converting "last" from rtx to rtx_insn *.
7562         (emit_pattern_before): Strengthen return type from rtx to
7563         rtx_insn *.
7564         (emit_insn_before_setloc): Likewise.
7565         (emit_insn_before): Likewise.
7566         (emit_jump_insn_before_setloc): Likewise.
7567         (emit_jump_insn_before): Likewise.
7568         (emit_call_insn_before_setloc): Likewise.
7569         (emit_call_insn_before): Likewise.
7570         (emit_debug_insn_before_setloc): Likewise.
7571         (emit_debug_insn_before): Likewise.
7572         (emit_insn): Strengthen return type and locals "last", "insn",
7573         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
7574         within cases where we know we have an insn.
7575         (emit_debug_insn): Likewise.
7576         (emit_jump_insn): Likewise.
7577         (emit_call_insn): Strengthen return type and local "insn" from rtx
7578         to rtx_insn *.
7579         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
7580         a checked cast to rtx_insn * for now on "label".
7581         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
7582         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
7583         (emit_use): Likewise.
7584         (gen_use): Likewise, also for local "seq".
7585         (emit): Likewise for return type and local "insn".
7586         (rtx_insn): Likewise for return type and local "new_rtx".
7588         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
7589         from rtx to rtx_barrier *.
7591         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
7592         changed return type from rtx to rtx_insn *, we must update
7593         "emit_fn" type, and this in turn means updating...
7594         (frame_insn): ...this.  Strengthen return type from rtx to
7595         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
7597 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7599         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
7600         rtx to rtx_jump_table_data *.  Also for local.
7601         * rtl.h (emit_jump_table_data): Likewise.
7603 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7605         * basic-block.h (create_basic_block_structure): Strengthen third
7606         param "bb_note" from rtx to rtx_note *.
7607         * rtl.h (emit_note_before): Strengthen return type from rtx to
7608         rtx_note *.
7609         (emit_note_after): Likewise.
7610         (emit_note): Likewise.
7611         (emit_note_copy): Likewise.  Also, strengthen param similarly.
7612         * function.h (struct rtl_data): Strengthen field
7613         "x_stack_check_probe_note" from rtx to rtx_note *.
7615         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
7616         from rtx to rtx_note *.
7617         * cfgrtl.c (create_basic_block_structure): Strengthen third param
7618         "bb_note" from rtx to rtx_note *.
7619         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
7620         when calling emit_note_copy.
7621         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
7622         rtx_note *.
7623         (emit_note_after): Likewise.
7624         (emit_note_before): Likewise.
7625         (emit_note_copy): Likewise.  Also, strengthen param similarly.
7626         (emit_note): Likewise.
7627         * except.c (emit_note_eh_region_end): Likewise for return type.
7628         Strengthen local "next" from rtx to rtx_insn *.
7629         (convert_to_eh_region_ranges): Strengthen local "note"
7630         from rtx to rtx_note *.
7631         * final.c (change_scope): Likewise.
7632         (reemit_insn_block_notes): Likewise, for both locals named "note".
7633         Also, strengthen local "insn" from rtx to rtx_insn *.
7634         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
7635         rtx to rtx_note *.
7636         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
7637         strengthen local "seq" from rtx to rtx_insn *.
7638         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
7639         to rtx_note *.
7640         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
7641         vec<rtx_note *>.
7642         (get_bb_note_from_pool): Strengthen return type from rtx to
7643         rtx_note *.
7644         (sel_create_basic_block): Strengthen local "new_bb_note" from
7645         insn_t to rtx_note *.
7646         * var-tracking.c (emit_note_insn_var_location): Strengthen local
7647         "note" from rtx to rtx_note *.
7648         (emit_notes_in_bb): Likewise.
7650 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7652         * function.h (struct rtl_data): Strengthen field
7653         "x_parm_birth_insn" from rtx to rtx_insn *.
7654         * function.c (struct assign_parm_data_all): Strengthen fields
7655         "first_conversion_insn" and "last_conversion_insn" from rtx to
7656         rtx_insn *.
7658 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7660         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
7661         to rtx_insn *; also for local "var_end_seq".
7662         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
7663         (maybe_cleanup_end_of_block): Likewise for param "last" and local
7664         "insn".
7665         (expand_gimple_cond): Likewise for locals "last2" and "last".
7666         (mark_transaction_restart_calls): Likewise for local "insn".
7667         (expand_gimple_stmt): Likewise for return type and locals "last"
7668         and "insn".
7669         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
7670         (avoid_complex_debug_insns): Likewise for param "insn".
7671         (expand_debug_locations): Likewise for locals "insn", "last",
7672         "prev_insn" and "insn2".
7673         (expand_gimple_basic_block): Likewise for local "last".
7674         (construct_exit_block): Likewise for locals "head", "end",
7675         "orig_end".
7676         (pass_expand::execute): Likewise for locals "var_seq",
7677         "var_ret_seq", "next".
7679 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7681         * asan.h (asan_emit_stack_protection): Strengthen return type from
7682         rtx to rtx_insn *.
7683         * asan.c (asan_emit_stack_protection): Likewise.  Add local
7684         "insns" to hold the return value.
7686 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7688         * basic-block.h (bb_note): Strengthen return type from rtx to
7689         rtx_note *.
7690         * sched-int.h (bb_note): Likewise.
7691         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
7693 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7695         * rtl.h (make_insn_raw): Strengthen return type from rtx to
7696         rtx_insn *.
7698         * emit-rtl.c (make_insn_raw): Strengthen return type and local
7699         "insn" from rtx to rtx_insn *.
7700         (make_debug_insn_raw): Strengthen return type from rtx to
7701         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
7702         (make_jump_insn_raw):  Strengthen return type from rtx to
7703         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
7704         (make_call_insn_raw):  Strengthen return type from rtx to
7705         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
7706         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
7707         callback from rtx to rtx_insn *; likewise for local "insn" and
7708         "next", adding a checked cast to rtx_insn in the relevant cases of
7709         the switch statement.
7710         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
7711         callback from rtx to rtx_insn *.
7712         (emit_pattern_after_setloc): Likewise.
7713         (emit_pattern_after): Likewise.
7714         (emit_pattern_before_setloc): Likewise.
7715         (emit_pattern_before): Likewise.
7717 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7719         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
7720         rtx_call_insn *.
7721         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
7722         accepting an rtx_insn *.
7723         (last_call_insn): Strengthen return type from rtx to
7724         rtx_call_insn *.
7726 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7728         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
7729         "insns" from rtx to rtx_insn *.
7730         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
7731         locals "insn" and "prev".
7733 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7735         * rtl.h (tablejump_p): Strengthen third param from rtx * to
7736         rtx_jump_table_data **.
7738         * cfgbuild.c (make_edges): Introduce local "table", using it in
7739         place of "tmp" for jump table data.
7740         (find_bb_boundaries): Strengthen local "table" from rtx to
7741         rtx_jump_table_data *.
7742         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7743         (outgoing_edges_match): Likewise for locals "table1" and "table2".
7744         (try_crossjump_to_edge): Likewise.
7745         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
7746         "table".
7747         (patch_jump_insn): Introduce local "table", using it in place of
7748         "tmp" for jump table data.
7749         (force_nonfallthru_and_redirect): Introduce local "table", so that
7750         call to tablejump_p can receive an rtx_jump_table_data **.  Update
7751         logic around the call to overwrite "note" appropriately if
7752         tablejump_p returns non-zero.
7753         (get_last_bb_insn): Introduce local "table", using it in place of
7754         "tmp" for jump table data.
7755         * dwarf2cfi.c (create_trace_edges): Likewise.
7757         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
7758         from rtx to rtx_jump_table_data *.
7759         (create_fix_barrier): Strengthen local "tmp" from rtx to
7760         rtx_jump_table_data *.
7761         (arm_reorg): Likewise for local "table".
7763         * config/s390/s390.c (s390_chunkify_start): Likewise.
7765         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
7767         * jump.c (delete_related_insns): Strengthen local "lab_next" from
7768         rtx to rtx_jump_table_data *.
7770         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
7771         rtx_jump_table_data **.  Add a checked cast when writing through
7772         the pointer: we know there that local "table" is non-NULL and that
7773         JUMP_TABLE_DATA_P (table) holds.
7774         (label_is_jump_target_p): Introduce local "table", using it in
7775         place of "tmp" for jump table data.
7777 2014-08-19  Marek Polacek  <polacek@redhat.com>
7779         PR c++/62153
7780         * doc/invoke.texi: Document -Wbool-compare.
7782 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7784         * rtl.h (entry_of_function): Strengthen return type from rtx to
7785         rtx_insn *.
7786         * cfgrtl.c (entry_of_function): Likewise.
7788 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7790         * emit-rtl.h (get_insns): Strengthen return type from rtx to
7791         rtx_insn *, adding a checked cast for now.
7792         (get_last_insn): Likewise.
7794 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7796         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
7797         rtx_code_label *.
7799         * emit-rtl.c (gen_label_rtx): Likewise.
7801 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7803         * rtl.h (previous_insn): Strengthen return type from rtx to
7804         rtx_insn *.
7805         (next_insn): Likewise.
7806         (prev_nonnote_insn): Likewise.
7807         (prev_nonnote_insn_bb): Likewise.
7808         (next_nonnote_insn): Likewise.
7809         (next_nonnote_insn_bb): Likewise.
7810         (prev_nondebug_insn): Likewise.
7811         (next_nondebug_insn): Likewise.
7812         (prev_nonnote_nondebug_insn): Likewise.
7813         (next_nonnote_nondebug_insn): Likewise.
7814         (prev_real_insn): Likewise.
7815         (next_real_insn): Likewise.
7816         (prev_active_insn): Likewise.
7817         (next_active_insn): Likewise.
7819         * emit-rtl.c (next_insn): Strengthen return type from rtx to
7820         rtx_insn *, adding a checked cast.
7821         (previous_insn): Likewise.
7822         (next_nonnote_insn): Likewise.
7823         (next_nonnote_insn_bb): Likewise.
7824         (prev_nonnote_insn): Likewise.
7825         (prev_nonnote_insn_bb): Likewise.
7826         (next_nondebug_insn): Likewise.
7827         (prev_nondebug_insn): Likewise.
7828         (next_nonnote_nondebug_insn): Likewise.
7829         (prev_nonnote_nondebug_insn): Likewise.
7830         (next_real_insn): Likewise.
7831         (prev_real_insn): Likewise.
7832         (next_active_insn): Likewise.
7833         (prev_active_insn): Likewise.
7835         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
7836         param "stepfunc" so that it returns an rtx_insn * rather than an
7837         rtx, to track the change to prev_nonnote_insn_bb, which is the
7838         only function this is called with.
7839         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
7841 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
7843         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
7844         assert.
7846 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7848         * coretypes.h (class rtx_debug_insn): Add forward declaration.
7849         (class rtx_nonjump_insn): Likewise.
7850         (class rtx_jump_insn): Likewise.
7851         (class rtx_call_insn): Likewise.
7852         (class rtx_jump_table_data): Likewise.
7853         (class rtx_barrier): Likewise.
7854         (class rtx_code_label): Likewise.
7855         (class rtx_note): Likewise.
7857         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
7858         adding the invariant DEBUG_INSN_P (X).
7859         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
7860         the invariant NONJUMP_INSN_P (X).
7861         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
7862         the invariant JUMP_P (X).
7863         (class rtx_call_insn): New, a subclass of rtx_insn, adding
7864         the invariant CALL_P (X).
7865         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
7866         invariant JUMP_TABLE_DATA_P (X).
7867         (class rtx_barrier): New, a subclass of rtx_insn, adding the
7868         invariant BARRIER_P (X).
7869         (class rtx_code_label): New, a subclass of rtx_insn, adding
7870         the invariant LABEL_P (X).
7871         (class rtx_note): New, a subclass of rtx_insn, adding
7872         the invariant NOTE_P(X).
7873         (is_a_helper <rtx_debug_insn *>::test): New.
7874         (is_a_helper <rtx_nonjump_insn *>::test): New.
7875         (is_a_helper <rtx_jump_insn *>::test): New.
7876         (is_a_helper <rtx_call_insn *>::test): New.
7877         (is_a_helper <rtx_jump_table_data *>::test): New functions,
7878         overloaded for both rtx and rtx_insn *.
7879         (is_a_helper <rtx_barrier *>::test): New.
7880         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
7881         for both rtx and rtx_insn *.
7882         (is_a_helper <rtx_note *>::test): New.
7884 2014-08-19  Marek Polacek  <polacek@redhat.com>
7886         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
7887         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
7888         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
7889         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
7891 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7893         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
7894         rtx_insn *.  To help with transition, for now, convert from an
7895         access macro into a pair of functions: BND_TO, returning an
7896         rtx_insn *, and...
7897         (SET_BND_TO): New function, for use where BND_TO is used as an
7898         lvalue.
7900         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
7901         SET_BND_TO.
7902         (BND_TO): New function, adding a checked cast.
7903         (SET_BND_TO): New function.
7905         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
7906         SET_BND_TO.
7907         (compute_av_set_on_boundaries): Likewise.
7909 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7911         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
7912         destination if it is used in source.
7913         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
7914         (*popcount<mode>2_falsedep_1): Likewise.
7916 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7918         PR other/62168
7919         * configure.ac: Set install_gold_as_default to no first.
7920         * configure: Regenerated.
7922 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7924         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
7925         "note_list" field will eventually be an rtx_insn *.  To help with
7926         transition, for now, convert from an access macro into a pair of
7927         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
7928         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
7929         used as an lvalue.
7931         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
7932         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
7934         * sel-sched-ir.c (init_bb): Likewise.
7935         (sel_restore_notes): Likewise.
7936         (move_bb_info): Likewise.
7937         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
7938         (SET_BB_NOTE_LIST): New function.
7940 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7942         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
7943         field will eventually be an rtx_insn *.  To help with transition,
7944         for now, convert from an access macro into a pair of functions:
7945         VINSN_INSN_RTX, returning an rtx_insn *, and...
7946         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
7947         is used as an lvalue.
7949         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
7950         SET_VINSN_INSN_RTX where it's used as an lvalue.
7951         (VINSN_INSN_RTX): New function.
7952         (SET_VINSN_INSN_RTX): New function.
7954 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7956         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
7957         eventually be rtx_insn *, but to help with transition, for now,
7958         convert from an access macro into a pair of functions: DEP_PRO
7959         returning an rtx_insn * and...
7960         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
7961         lvalue, returning an rtx&.
7962         (DEP_CON): Analogous changes to DEP_PRO above.
7963         (SET_DEP_CON): Likewise.
7965         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
7966         an lvalue to SET_DEP_CON.
7967         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
7968         (sd_copy_back_deps): Likewise for DEP_CON.
7969         (DEP_PRO): New function, adding a checked cast for now.
7970         (DEP_CON): Likewise.
7971         (SET_DEP_PRO): New function.
7972         (SET_DEP_CON): Likewise.
7974 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
7976         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
7977         (extra_options): Add i386/cygwin.opt.
7978         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
7979         (CPP_SPEC): Accept -pthread.
7980         (LINK_SPEC): Ditto.
7981         (GOMP_SELF_SPECS): Update comment.
7982         * config/i386/cygwin.opt: New file for -pthread flag.
7984 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7986         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
7987         * df.h (DF_REF_INSN): Convert from a macro to a function, so
7988         that we can return an rtx_insn *.
7990 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
7992         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
7993         when building executables, not DLLs.  Add --large-address-aware
7994         under the same conditions.
7995         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
7996         when building executables, not DLLs.  Add --large-address-aware
7997         under the same conditions when using -m32.
7999         * config/i386/cygwin-stdint.h: Throughout, make type
8000         definitions dependent on target architecture, not host.
8002 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8004         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
8005         the return type from rtx to rtx_insn *,  which will enable various
8006         conversions in followup patches.  For now this is is done by a
8007         checked cast.
8008         (NEXT_INSN): Likewise.
8009         (SET_PREV_INSN): Convert to an inline function.  This is intended
8010         for use as an lvalue, and so returns an rtx& to allow in-place
8011         modification.
8012         (SET_NEXT_INSN): Likewise.
8014 2014-07-08  Mark Wielaard  <mjw@redhat.com>
8016         PR debug/59051
8017         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
8019 2014-08-19  Marek Polacek  <polacek@redhat.com>
8021         PR c/61271
8022         * cgraphunit.c (handle_alias_pairs): Fix condition.
8024 2014-08-19  Richard Biener  <rguenther@suse.de>
8026         * gimple-fold.c (fold_gimple_assign): Properly build a
8027         null-pointer constant when devirtualizing addresses.
8029 2014-07-07  Mark Wielaard  <mjw@redhat.com>
8031         * dwarf2out.c (decl_quals): New function.
8032         (modified_type_die): Take one cv_quals argument instead of two,
8033         one for const and one for volatile.
8034         (add_type_attribute): Likewise.
8035         (generic_parameter_die): Call add_type_attribute with one modifier
8036         argument.
8037         (base_type_for_mode): Likewise.
8038         (add_bounds_info): Likewise.
8039         (add_subscript_info): Likewise.
8040         (gen_array_type_die): Likewise.
8041         (gen_descr_array_type_die): Likewise.
8042         (gen_entry_point_die): Likewise.
8043         (gen_enumeration_type_die): Likewise.
8044         (gen_formal_parameter_die): Likewise.
8045         (gen_subprogram_die): Likewise.
8046         (gen_variable_die): Likewise.
8047         (gen_const_die): Likewise.
8048         (gen_field_die): Likewise.
8049         (gen_pointer_type_die): Likewise.
8050         (gen_reference_type_die): Likewise.
8051         (gen_ptr_to_mbr_type_die): Likewise.
8052         (gen_inheritance_die): Likewise.
8053         (gen_subroutine_type_die): Likewise.
8054         (gen_typedef_die): Likewise.
8055         (force_type_die): Likewise.
8057 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8059         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
8060         if unset.
8061         * configure: Regenerate.
8063 2014-08-19  Richard Biener  <rguenther@suse.de>
8065         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
8066         DECL_EXTERNALs in BLOCKs as non-references.
8067         * tree-streamer-out.c (streamer_write_chain): Likewise.
8069 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8070             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8071             Anna Tikhonova  <anna.tikhonova@intel.com>
8072             Ilya Tocar  <ilya.tocar@intel.com>
8073             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8074             Ilya Verbin  <ilya.verbin@intel.com>
8075             Kirill Yukhin  <kirill.yukhin@intel.com>
8076             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8078         * config/i386/sse.md
8079         (define_mode_iterator VI48_AVX512F): Delete.
8080         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
8081         (define_mode_iterator VI2_AVX512VL): Ditto.
8082         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
8083         Delete.
8084         (define_insn
8085         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
8086         New.
8087         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
8088         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
8089         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8090         with VI48_AVX512F_AVX512VL): New.
8091         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8092         with VI2_AVX512VL): Ditto.
8094 2014-08-19  Marek Polacek  <polacek@redhat.com>
8096         * doc/invoke.texi: Document -Wc99-c11-compat.
8098 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8100         * rtl.h (PREV_INSN): Split macro in two: the existing one,
8101         for rvalues, and...
8102         (SET_PREV_INSN): New macro, for use as an lvalue.
8103         (NEXT_INSN, SET_NEXT_INSN): Likewise.
8105         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
8106         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
8107         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8108         (fixup_abnormal_edges): Likewise.
8109         (unlink_insn_chain): Likewise.
8110         (fixup_reorder_chain): Likewise.
8111         (cfg_layout_delete_block): Likewise.
8112         (cfg_layout_merge_blocks): Likewise.
8113         * combine.c (update_cfg_for_uncondjump): Likewise.
8114         * emit-rtl.c (link_insn_into_chain): Likewise.
8115         (remove_insn): Likewise.
8116         (delete_insns_since): Likewise.
8117         (reorder_insns_nobb): Likewise.
8118         (emit_insn_after_1): Likewise.
8119         * final.c (rest_of_clean_state): Likewise.
8120         (final_scan_insn): Likewise.
8121         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
8122         * haifa-sched.c (concat_note_lists): Likewise.
8123         (remove_notes): Likewise.
8124         (restore_other_notes): Likewise.
8125         (move_insn): Likewise.
8126         (unlink_bb_notes): Likewise.
8127         (restore_bb_notes): Likewise.
8128         * jump.c (delete_for_peephole): Likewise.
8129         * optabs.c (emit_libcall_block_1): Likewise.
8130         * reorg.c (emit_delay_sequence): Likewise.
8131         (fill_simple_delay_slots): Likewise.
8132         * sel-sched-ir.c (sel_move_insn): Likewise.
8133         (sel_remove_insn): Likewise.
8134         (get_bb_note_from_pool): Likewise.
8135         * sel-sched.c (move_nop_to_previous_block): Likewise.
8137         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
8138         * config/c6x/c6x.c (gen_one_bundle): Likewise.
8139         (c6x_gen_bundles): Likewise.
8140         (hwloop_optimize): Likewise.
8141         * config/frv/frv.c (frv_function_prologue): Likewise.
8142         (frv_register_nop): Likewise.
8143         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
8144         (ia64_reorg): Likewise.
8145         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
8146         (mep_make_bundle): Likewise.
8147         (mep_bundle_insns): Likewise.
8148         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
8149         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
8150         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
8152 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8154         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
8155         return type from rtx to rtx_insn *.
8156         (BB_END): Likewise.
8157         (BB_HEADER): Likewise.
8158         (BB_FOOTER): Likewise.
8159         (SET_BB_HEAD): Convert to a function.
8160         (SET_BB_END): Likewise.
8161         (SET_BB_HEADER): Likewise.
8162         (SET_BB_FOOTER): Likewise.
8164         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
8165         Strengthen the return type from rtx to rtx_insn *.  For now, this
8166         is done by adding a checked cast, but this will eventually
8167         become a field lookup.
8168         (BB_END): Likewise.
8169         (BB_HEADER): Likewise.
8170         (BB_FOOTER): Likewise.
8171         (SET_BB_HEAD): New function, from macro of same name.  This is
8172         intended for use as an lvalue, and so returns an rtx& to allow
8173         in-place modification.
8174         (SET_BB_END): Likewise.
8175         (SET_BB_HEADER): Likewise.
8176         (SET_BB_FOOTER): Likewise.
8178 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
8180         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
8181         for rvalues, and...
8182         (SET_BB_HEAD): New macro, for use as a lvalue.
8183         (BB_END, SET_BB_END): Likewise.
8184         (BB_HEADER, SET_BB_HEADER): Likewise.
8185         (BB_FOOTER, SET_BB_FOOTER): Likewise.
8187         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
8188         of BB_* macros into SET_BB_* macros.
8189         (fix_crossing_unconditional_branches): Likewise.
8190         * caller-save.c (save_call_clobbered_regs): Likewise.
8191         (insert_one_insn): Likewise.
8192         * cfgbuild.c (find_bb_boundaries): Likewise.
8193         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8194         (outgoing_edges_match): Likewise.
8195         (try_optimize_cfg): Likewise.
8196         * cfgexpand.c (expand_gimple_cond): Likewise.
8197         (expand_gimple_tailcall): Likewise.
8198         (expand_gimple_basic_block): Likewise.
8199         (construct_exit_block): Likewise.
8200         * cfgrtl.c (delete_insn): Likewise.
8201         (create_basic_block_structure): Likewise.
8202         (rtl_delete_block): Likewise.
8203         (rtl_split_block): Likewise.
8204         (emit_nop_for_unique_locus_between): Likewise.
8205         (rtl_merge_blocks): Likewise.
8206         (block_label): Likewise.
8207         (try_redirect_by_replacing_jump): Likewise.
8208         (emit_barrier_after_bb): Likewise.
8209         (fixup_abnormal_edges): Likewise.
8210         (record_effective_endpoints): Likewise.
8211         (relink_block_chain): Likewise.
8212         (fixup_reorder_chain): Likewise.
8213         (fixup_fallthru_exit_predecessor): Likewise.
8214         (cfg_layout_duplicate_bb): Likewise.
8215         (cfg_layout_split_block): Likewise.
8216         (cfg_layout_delete_block): Likewise.
8217         (cfg_layout_merge_blocks): Likewise.
8218         * combine.c (update_cfg_for_uncondjump): Likewise.
8219         * emit-rtl.c (add_insn_after): Likewise.
8220         (remove_insn): Likewise.
8221         (reorder_insns): Likewise.
8222         (emit_insn_after_1): Likewise.
8223         * haifa-sched.c (get_ebb_head_tail): Likewise.
8224         (restore_other_notes): Likewise.
8225         (move_insn): Likewise.
8226         (sched_extend_bb): Likewise.
8227         (fix_jump_move): Likewise.
8228         * ifcvt.c (noce_process_if_block): Likewise.
8229         (dead_or_predicable): Likewise.
8230         * ira.c (update_equiv_regs): Likewise.
8231         * reg-stack.c (change_stack): Likewise.
8232         * sel-sched-ir.c (sel_move_insn): Likewise.
8233         * sel-sched.c (move_nop_to_previous_block): Likewise.
8235         * config/c6x/c6x.c (hwloop_optimize): Likewise.
8236         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
8238 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
8240         * rtl.h (for_each_rtx_in_insn): New function.
8241         * rtlanal.c (for_each_rtx_in_insn): Likewise.
8243 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
8245         * coretypes.h (class rtx_insn): Add forward declaration.
8247         * rtl.h: Include is-a.h.
8248         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
8249         workaround to ensure gengtype knows inheritance is occurring,
8250         whilst continuing to use the pre-existing special-casing for
8251         rtx_def.
8252         (class rtx_insn): New subclass of rtx_def, adding the
8253         invariant that we're dealing with something we can sanely use
8254         INSN_UID, NEXT_INSN, PREV_INSN on.
8255         (is_a_helper <rtx_insn *>::test): New.
8256         (is_a_helper <const rtx_insn *>::test): New.
8258 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
8260         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
8262 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
8264         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
8265         comdats as extern.
8267 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
8269         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
8270         to BUILT_IN_UNREACHABLE.
8272 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
8274         PR target/62011
8275         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
8276         New tune flag.
8277         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
8278         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
8279         (ffs<mode>2): Do not expand with tzcnt for
8280         TARGET_AVOID_FALSE_DEP_FOR_BMI.
8281         (ffssi2_no_cmove): Ditto.
8282         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
8283         (ctz<mode>2): New expander.
8284         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
8285         (*ctz<mode>2_falsedep): New insn.
8286         (*ctz<mode>2): Rename from ctz<mode>2.
8287         (clz<mode>2_lzcnt): New expander.
8288         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
8289         (*clz<mode>2_lzcnt_falsedep): New insn.
8290         (*clz<mode>2): Rename from ctz<mode>2.
8291         (popcount<mode>2): New expander.
8292         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
8293         (*popcount<mode>2_falsedep): New insn.
8294         (*popcount<mode>2): Rename from ctz<mode>2.
8295         (*popcount<mode>2_cmp): Remove.
8296         (*popcountsi2_cmp_zext): Ditto.
8298 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
8300         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
8301         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
8302         * config/microblaze/microblaze.h
8303         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
8305 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8307         PR other/62168
8308         * configure.ac: Set install_gold_as_default to no for
8309          --enable-gold=no.
8310          * configure: Regenerated.
8312 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
8314         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
8315         * config.in: Add undef of HAVE_isl.
8316         * configure: Regenerate.
8317         * configure.ac: Add definition of HAVE_isl.
8318         * graphite-blocking.c: Add checking of HAVE_isl.
8319         * graphite-dependences.c: Likewise.
8320         * graphite-interchange.c: Likewise.
8321         * graphite-isl-ast-to-gimple.c: Likewise.
8322         * graphite-optimize-isl.c: Likewise.
8323         * graphite-poly.c: Likewise.
8324         * graphite-scop-detection.c: Likewise.
8325         * graphite-sese-to-poly.c: Likewise.
8326         * graphite.c: Likewise.
8327         * toplev.c: Replace the checking of HAVE_cloog with the checking
8328         of HAVE_isl.
8330 2014-08-18  Richard Biener  <rguenther@suse.de>
8332         PR tree-optimization/62090
8333         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
8334         (fold_builtin_3): Do not fold snprintf.
8335         (fold_builtin_4): Likewise.
8336         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
8337         moved from builtins.c.
8338         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
8339         (gimple_fold_builtin): Do not fold sprintf here.
8341 2014-08-18  Richard Biener  <rguenther@suse.de>
8343         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
8344         code to ...
8345         (maybe_canonicalize_mem_ref_addr): ... this function.
8346         (fold_stmt_1): Apply it here before all simplification.
8348 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
8350         PR ipa/61800
8351         * cgraph.h (cgraph_node::create_indirect_edge): Add
8352         compute_indirect_info param.
8353         * cgraph.c (cgraph_node::create_indirect_edge): Compute
8354         indirect_info only when it is required.
8355         * cgraphclones.c (cgraph_clone_edge): Do not recompute
8356         indirect_info fore cloned indirect edge.
8358 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8359             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8360             Anna Tikhonova  <anna.tikhonova@intel.com>
8361             Ilya Tocar  <ilya.tocar@intel.com>
8362             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8363             Ilya Verbin  <ilya.verbin@intel.com>
8364             Kirill Yukhin  <kirill.yukhin@intel.com>
8365             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8367         * config/i386/sse.md
8368         (define_mode_iterator VI8_AVX2_AVX512BW): New.
8369         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
8371 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8372             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8373             Anna Tikhonova  <anna.tikhonova@intel.com>
8374             Ilya Tocar  <ilya.tocar@intel.com>
8375             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8376             Ilya Verbin  <ilya.verbin@intel.com>
8377             Kirill Yukhin  <kirill.yukhin@intel.com>
8378             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8380         * config/i386/sse.md
8381         (define_mode_iterator VF1_AVX512VL): New.
8382         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
8383         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
8384         New.
8386 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8387             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8388             Anna Tikhonova  <anna.tikhonova@intel.com>
8389             Ilya Tocar  <ilya.tocar@intel.com>
8390             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8391             Ilya Verbin  <ilya.verbin@intel.com>
8392             Kirill Yukhin  <kirill.yukhin@intel.com>
8393             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8395         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
8396         * config/i386/i386.md
8397         (define_code_iterator any_float): New.
8398         (define_code_attr floatsuffix): New.
8399         * config/i386/sse.md
8400         (define_mode_iterator VF1_128_256VL): New.
8401         (define_mode_iterator VF2_512_256VL): New.
8402         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
8403         TARGET check.
8404         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
8405         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
8406         New.
8407         (define_mode_attr qq2pssuff): New.
8408         (define_mode_attr sselongvecmode): New.
8409         (define_mode_attr sselongvecmodelower): New.
8410         (define_mode_attr sseintvecmode3): New.
8411         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
8412         New.
8413         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
8414         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
8415         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
8416         (define_insn "ufloatv2siv2df2<mask_name>"): New.
8418 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8419             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8420             Anna Tikhonova  <anna.tikhonova@intel.com>
8421             Ilya Tocar  <ilya.tocar@intel.com>
8422             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8423             Ilya Verbin  <ilya.verbin@intel.com>
8424             Kirill Yukhin  <kirill.yukhin@intel.com>
8425             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8427         * config/i386/sse.md
8428         (define_mode_iterator VF2_AVX512VL): New.
8429         (define_mode_attr sseintvecmode2): New.
8430         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
8431         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
8432         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
8433         (define_insn
8434         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
8435         Ditto.
8436         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
8437         Ditto.
8438         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
8439         Ditto.
8441 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8442             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8443             Anna Tikhonova  <anna.tikhonova@intel.com>
8444             Ilya Tocar  <ilya.tocar@intel.com>
8445             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8446             Ilya Verbin  <ilya.verbin@intel.com>
8447             Kirill Yukhin  <kirill.yukhin@intel.com>
8448             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8450         * config/i386/i386.md
8451         (define_insn "*movoi_internal_avx"): Add evex version.
8452         (define_insn "*movti_internal"): Ditto.
8454 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8455             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8456             Anna Tikhonova  <anna.tikhonova@intel.com>
8457             Ilya Tocar  <ilya.tocar@intel.com>
8458             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8459             Ilya Verbin  <ilya.verbin@intel.com>
8460             Kirill Yukhin  <kirill.yukhin@intel.com>
8461             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8463         * config/i386/i386.md
8464         (define_attr "isa"): Add avx512dq, noavx512dq.
8465         (define_attr "enabled"): Ditto.
8466         * config/i386/sse.md
8467         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
8469 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8470             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8471             Anna Tikhonova  <anna.tikhonova@intel.com>
8472             Ilya Tocar  <ilya.tocar@intel.com>
8473             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8474             Ilya Verbin  <ilya.verbin@intel.com>
8475             Kirill Yukhin  <kirill.yukhin@intel.com>
8476             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8478         * config/i386/i386.c
8479         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
8480         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
8481         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
8482         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
8483         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
8484         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
8485         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
8486         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
8487         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
8488         * config/i386/sse.md
8489         (define_mode_iterator VMOVE): Allow V4TI mode.
8490         (define_mode_iterator V_AVX512VL): New.
8491         (define_mode_iterator V): New handling for AVX512VL.
8492         (define_insn "avx512f_load<mode>_mask"): Delete.
8493         (define_insn "<avx512>_load<mode>_mask"): New.
8494         (define_insn "avx512f_store<mode>_mask"): Delete.
8495         (define_insn "<avx512>_store<mode>_mask"): New.
8498 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
8500         PR sanitizer/62089
8501         * asan.c (instrument_derefs): Fix bitfield check.
8503 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
8505         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
8506         * config/rs6000/htm.md (ttest): Remove clobber.
8507         * config/rs6000/predicates.md (any_mask_operand): New predicate.
8508         (and_operand): Reformat.
8509         (and_2rld_operand): New predicate.
8510         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
8511         parameter.
8512         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
8513         parameter.  Handle AND directly.
8514         (rs6000_split_logical_di): Remove last parameter.
8515         (rs6000_split_logical): Remove last parameter.  Remove obsolete
8516         comment.
8517         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
8518         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
8519         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
8520         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
8521         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
8522         and 5 anonymous splitters):  Delete.
8523         (and<mode>3): New expander.
8524         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
8525         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
8526         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
8527         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
8528         (floatdisf2_internal1): Remove clobbers.
8529         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
8530         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
8531         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
8532         (and<mode>3 for BOOL_128): Remove clobber.
8533         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
8534         rs6000_split_logical.
8535         (*bool<mode>3_internal for BOOL_128): Adjust call of
8536         rs6000_split_logical.
8537         (*boolc<mode>3_internal1 for BOOL_128,
8538         *boolc<mode>3_internal2 for BOOL_128,
8539         *boolcc<mode>3_internal1 for BOOL_128,
8540         *boolcc<mode>3_internal2 for BOOL_128,
8541         *eqv<mode>3_internal1 for BOOL_128,
8542         *eqv<mode>3_internal2 for BOOL_128,
8543         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
8544         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
8545         clobber.
8546         (*vec_reload_and_reg_<mptrsize>): Delete.
8548 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
8550         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
8551         and split, *boolccsi3_internal3 and split): Delete.
8552         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
8553         *boolccdi3_internal3 and split): Delete.
8554         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
8555         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
8557 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
8559         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
8560         and split, *boolcsi3_internal3 and split): Delete.
8561         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
8562         *boolcdi3_internal3 and split): Delete.
8563         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
8565 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
8567         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
8568         <'u'>: Also support printing the low-order 16 bits.
8569         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
8570         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
8571         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
8572         *booldi3_internal3 and split): Delete.
8573         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
8574         *bool<mode>3_dot2): New.
8575         (two anonymous define_splits for non_logical_cint_operand): Merge.
8577 2014-08-17  Marek Polacek  <polacek@redhat.com>
8578             Manuel López-Ibáñez  <manu@gcc.gnu.org>
8580         PR c/62059
8581         * diagnostic.c (adjust_line): Add gcc_checking_assert.
8582         (diagnostic_show_locus): Don't print caret diagnostic
8583         if a column is larger than the line_width.
8585 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
8587         * common.opt: Make the ISL AST generator to be the main code generator
8588         of Graphite.
8590 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
8592         * wide-int.h (generic_wide_int): Declare as class instead of struct.
8594 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
8596         PR target/61641
8597         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
8598         Declare.
8599         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
8600         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
8601         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
8602         Define.
8603         * config/pa/pa.md (begin_brtab): Delete insn.
8604         (end_brtab): Likewise.
8606 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8608         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
8610 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
8612         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
8613         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
8614         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
8615         (get_dynamic_type): Remove.
8616         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
8617         (clear_speculation): Bring to ipa-deivrt.h
8618         (get_class_context): Rename to ...
8619         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
8620         (contains_type_p): Update.
8621         (get_dynamic_type): Rename to ...
8622         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
8623         (possible_polymorphic_call_targets): UPdate.
8624         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
8625         * ipa-prop.c (ipa_analyze_call_uses): Update.
8627 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
8629         * doc/invoke.texi (SH options): Document missing processor variant
8630         options.  Remove references to Hitachi.  Undocument deprecated mspace
8631         option.
8633 2014-08-15  Jason Merrill  <jason@redhat.com>
8635         * tree.c (type_hash_canon): Uncomment assert.
8637 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8639         * input.h (in_system_header_at): Add comment.
8641 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8643         PR fortran/44054
8644         * diagnostic.c (build_message_string): Make it extern.
8645         * diagnostic.h (build_message_string): Make it extern.
8647 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
8649         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
8650         load/store from/to non-floating class pseudo.
8652 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8654         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
8656 2014-08-15  Richard Biener  <rguenther@suse.de>
8658         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
8659         (get_constraint_for_ssa_var): Remove dead code.
8660         (get_constraint_for_1): Adjust.
8661         (find_what_var_points_to): Likewise.
8662         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
8664 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
8666         PR target/61878
8667         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
8668         (_mm512_mask_cmpge_epu32_mask): Ditto.
8669         (_mm512_cmpge_epu32_mask): Ditto.
8670         (_mm512_mask_cmpge_epi64_mask): Ditto.
8671         (_mm512_cmpge_epi64_mask): Ditto.
8672         (_mm512_mask_cmpge_epu64_mask): Ditto.
8673         (_mm512_cmpge_epu64_mask): Ditto.
8674         (_mm512_mask_cmple_epi32_mask): Ditto.
8675         (_mm512_cmple_epi32_mask): Ditto.
8676         (_mm512_mask_cmple_epu32_mask): Ditto.
8677         (_mm512_cmple_epu32_mask): Ditto.
8678         (_mm512_mask_cmple_epi64_mask): Ditto.
8679         (_mm512_cmple_epi64_mask): Ditto.
8680         (_mm512_mask_cmple_epu64_mask): Ditto.
8681         (_mm512_cmple_epu64_mask): Ditto.
8682         (_mm512_mask_cmplt_epi32_mask): Ditto.
8683         (_mm512_cmplt_epi32_mask): Ditto.
8684         (_mm512_mask_cmplt_epu32_mask): Ditto.
8685         (_mm512_cmplt_epu32_mask): Ditto.
8686         (_mm512_mask_cmplt_epi64_mask): Ditto.
8687         (_mm512_cmplt_epi64_mask): Ditto.
8688         (_mm512_mask_cmplt_epu64_mask): Ditto.
8689         (_mm512_cmplt_epu64_mask): Ditto.
8690         (_mm512_mask_cmpneq_epi32_mask): Ditto.
8691         (_mm512_mask_cmpneq_epu32_mask): Ditto.
8692         (_mm512_cmpneq_epu32_mask): Ditto.
8693         (_mm512_mask_cmpneq_epi64_mask): Ditto.
8694         (_mm512_cmpneq_epi64_mask): Ditto.
8695         (_mm512_mask_cmpneq_epu64_mask): Ditto.
8696         (_mm512_cmpneq_epu64_mask): Ditto.
8697         (_mm512_castpd_ps): Ditto.
8698         (_mm512_castpd_si512): Ditto.
8699         (_mm512_castps_pd): Ditto.
8700         (_mm512_castps_si512): Ditto.
8701         (_mm512_castsi512_ps): Ditto.
8702         (_mm512_castsi512_pd): Ditto.
8703         (_mm512_castpd512_pd128): Ditto.
8704         (_mm512_castps512_ps128): Ditto.
8705         (_mm512_castsi512_si128): Ditto.
8706         (_mm512_castpd512_pd256): Ditto.
8707         (_mm512_castps512_ps256): Ditto.
8708         (_mm512_castsi512_si256): Ditto.
8709         (_mm512_castpd128_pd512): Ditto.
8710         (_mm512_castps128_ps512): Ditto.
8711         (_mm512_castsi128_si512): Ditto.
8712         (_mm512_castpd256_pd512): Ditto.
8713         (_mm512_castps256_ps512): Ditto.
8714         (_mm512_castsi256_si512): Ditto.
8715         (_mm512_cmpeq_epu32_mask): Ditto.
8716         (_mm512_mask_cmpeq_epu32_mask): Ditto.
8717         (_mm512_mask_cmpeq_epu64_mask): Ditto.
8718         (_mm512_cmpeq_epu64_mask): Ditto.
8719         (_mm512_cmpgt_epu32_mask): Ditto.
8720         (_mm512_mask_cmpgt_epu32_mask): Ditto.
8721         (_mm512_mask_cmpgt_epu64_mask): Ditto.
8722         (_mm512_cmpgt_epu64_mask): Ditto.
8723         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
8724         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
8725         * config/i386/i386.c (enum ix86_builtins): Add
8726         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
8727         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
8728         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
8729         (bdesc_args): Add __builtin_ia32_si512_256si,
8730         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
8731         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
8732         __builtin_ia32_pd512_pd.
8733         (ix86_expand_args_builtin): Handle new FTYPEs.
8734         * config/i386/sse.md (castmode): Add 512-bit modes.
8735         (AVX512MODE2P): New.
8736         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
8737         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
8739 2014-08-15  Richard Biener  <rguenther@suse.de>
8741         * fold-const.c (tree_swap_operands_p): Put all constants
8742         last, also strip sign-changing NOPs when considering further
8743         canonicalization.  Canonicalize also when optimizing for size.
8745 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8747         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
8748         one_match > zero_match case to just before simple_sequence.
8750 2014-08-15  Richard Biener  <rguenther@suse.de>
8752         * data-streamer.h (streamer_string_index, string_for_index):
8753         Remove.
8754         * data-streamer-out.c (streamer_string_index): Make static.
8755         * data-streamer-in.c (string_for_index): Likewise.
8756         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
8757         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
8759 2014-08-15  Richard Biener  <rguenther@suse.de>
8761         PR tree-optimization/62031
8762         * tree-data-ref.c (dr_analyze_indices): Do not set
8763         DR_UNCONSTRAINED_BASE.
8764         (dr_may_alias_p): All indirect accesses have to go the
8765         formerly DR_UNCONSTRAINED_BASE path.
8766         * tree-data-ref.h (struct indices): Remove
8767         unconstrained_base member.
8768         (DR_UNCONSTRAINED_BASE): Remove.
8770 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
8772         PR middle-end/62092
8773         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
8774         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
8775         in OMP_CLAUSE_MAP in some outer target region.
8777 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
8779         * tree-ssa-loop-ivopts.c (ivopts_data): New field
8780         name_expansion_cache.
8781         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
8782         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
8783         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
8784         (difference_cannot_overflow_p): New parameter.  Use affine
8785         expansion for equality check.
8786         (iv_elimination_compare_lt): Pass new argument.
8788 2014-08-14  DJ Delorie  <dj@redhat.com>
8790         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
8791         variables to the accumulator.
8793         * config/rl78/predicates.md (rl78_near_mem_operand): New.
8794         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
8795         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
8796         with far-far moves.
8798         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
8799         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
8800         (umulqihi3_virt): Likewise.
8801         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
8802         (umulqihi3_real): Likewise.
8804         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
8806 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
8808         PR tree-optimization/62091
8809         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
8810         function_entry_reached.
8811         (walk_aliased_vdefs): Clear it here.
8812         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
8814 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
8816         * ipa-utils.h (compare_virtual_tables): Declare.
8817         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
8819 2014-08-14  Marek Polacek  <polacek@redhat.com>
8821         DR 458
8822         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
8823         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
8825 2014-08-14  Tom de Vries  <tom@codesourcery.com>
8827         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
8829 2014-08-14  Tom de Vries  <tom@codesourcery.com>
8831         PR rtl-optimization/62004
8832         PR rtl-optimization/62030
8833         * ifcvt.c (rtx_interchangeable_p): New function.
8834         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
8835         * emit-rtl.h (mem_attrs_eq_p): Declare.
8837 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
8839         * graphite-scop-detection.c:
8840         Add inclusion of cp-tree.h.
8841         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
8842         in case they are pointers to object types
8844 2014-08-14  Richard Biener  <rguenther@suse.de>
8846         * BASE-VER: Change to 5.0.0
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 (define_mode_attr avx512): New.
8858         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
8859         V4DI modes.
8860         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
8861         (define_mode_attr ssse3_avx2): Ditto.
8862         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
8863         (define_mode_attr avx2_avx512bw): New.
8864         (define_mode_attr ssedoublemodelower): New.
8865         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
8866         V32HI, V64QI modes.
8867         (define_mode_attr ssebytemode): Allow V8DI modes.
8868         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
8869         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
8870         (define_mode_attr ssePSmode2): New.
8871         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
8872         V16HI, V32HI modes.
8873         (define_mode_attr dbpsadbwmode): New.
8874         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
8875         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
8876         (vi8_sse4_1_avx2_avx512): New.
8877         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
8878         mode attribute.
8879         (define_mode_attr blendbits): Move before its immediate use.
8881 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8882             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8883             Anna Tikhonova  <anna.tikhonova@intel.com>
8884             Ilya Tocar  <ilya.tocar@intel.com>
8885             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8886             Ilya Verbin  <ilya.verbin@intel.com>
8887             Kirill Yukhin  <kirill.yukhin@intel.com>
8888             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8890         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
8891         * config/i386/subst.md
8892         (define_mode_iterator SUBST_V): Update.
8893         (define_mode_iterator SUBST_A): Ditto.
8894         (define_subst_attr "mask_operand7"): New.
8895         (define_subst_attr "mask_operand10"): New.
8896         (define_subst_attr "mask_operand_arg34") : New.
8897         (define_subst_attr "mask_expand_op3"): New.
8898         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
8899         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
8900         (define_subst_attr "mask_avx512vl_condition"): New.
8901         (define_subst_attr "round_mask_operand4"): Ditto.
8902         (define_subst_attr "round_mask_scalar_op3"): Delete.
8903         (define_subst_attr "round_mask_op4"): New.
8904         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
8905         V16SImode.
8906         (define_subst_attr "round_modev8sf_condition"): New.
8907         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
8908         <MODE>mode.
8909         (define_subst_attr "round_saeonly_mask_operand4"): New.
8910         (define_subst_attr "round_saeonly_mask_op4"): New.
8911         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
8912         V8DImode, V16SImode.
8913         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
8914         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
8915         (define_subst_attr "mask_expand4_args"): New.
8916         (define_subst "mask_expand4"): New.
8918 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8919             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8920             Anna Tikhonova  <anna.tikhonova@intel.com>
8921             Ilya Tocar  <ilya.tocar@intel.com>
8922             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8923             Ilya Verbin  <ilya.verbin@intel.com>
8924             Kirill Yukhin  <kirill.yukhin@intel.com>
8925             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8927         * config/i386/i386.md
8928         (define_attr "isa"): Add avx512bw,noavx512bw.
8929         (define_attr "enabled"): Ditto.
8930         (define_split): Add 32/64-bit mask logic.
8931         (define_insn "*k<logic>qi"): New.
8932         (define_insn "*k<logic>hi"): New.
8933         (define_insn "*anddi_1"): Add mask version.
8934         (define_insn "*andsi_1"): Ditto.
8935         (define_insn "*<code><mode>_1"): Ditto.
8936         (define_insn "*<code>hi_1"): Ditto.
8937         (define_insn "kxnor<mode>"): New.
8938         (define_insn "kunpcksi"): New.
8939         (define_insn "kunpckdi"): New.
8940         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
8941         (define_insn "*one_cmplhi2_1"): Ditto.
8943 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8944             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8945             Anna Tikhonova  <anna.tikhonova@intel.com>
8946             Ilya Tocar  <ilya.tocar@intel.com>
8947             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8948             Ilya Verbin  <ilya.verbin@intel.com>
8949             Kirill Yukhin  <kirill.yukhin@intel.com>
8950             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8952         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
8953         V32HImode.
8955 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8956             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8957             Anna Tikhonova  <anna.tikhonova@intel.com>
8958             Ilya Tocar  <ilya.tocar@intel.com>
8959             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8960             Ilya Verbin  <ilya.verbin@intel.com>
8961             Kirill Yukhin  <kirill.yukhin@intel.com>
8962             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8964         * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
8965         registers.
8966         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
8967         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
8968         xmm/ymm16+ when availble.
8969         * config/i386/i386.h
8970         (HARD_REGNO_NREGS): Add mask regs.
8971         (VALID_AVX512F_REG_MODE): Ditto.
8972         (VALID_AVX512F_REG_MODE) : Define.
8973         (VALID_MASK_AVX512BW_MODE): Ditto.
8974         (reg_class) (MASK_REG_P(X)): Define.
8975         * config/i386/i386.md: Do not split long moves with mask register,
8976         use kmovb if avx512bw is availible.
8977         (movdi_internal): Handle mask registers.
8979 2014-08-14  Richard Biener  <rguenther@suse.de>
8981         PR tree-optimization/62081
8982         * tree-ssa-loop.c (pass_fix_loops): New pass.
8983         (pass_tree_loop::gate):  Do not fixup loops here.
8984         * tree-pass.h (make_pass_fix_loops): Declare.
8985         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
8987 2014-08-14  Richard Biener  <rguenther@suse.de>
8989         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
8990         (type_hash_canon): ... this and avoid 2nd lookup for the add.
8992 2014-08-14  Richard Biener  <rguenther@suse.de>
8994         PR tree-optimization/62090
8995         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
8996         (fold_builtin_2): Do not fold sprintf.
8997         (fold_builtin_3): Likewise.
8998         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
8999         moved from builtins.c.
9000         (gimple_fold_builtin): Fold sprintf.
9002 2014-08-14  Richard Biener  <rguenther@suse.de>
9004         PR rtl-optimization/62079
9005         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
9006         run cleanup_cfg.
9008 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
9010         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
9011         current_function_decl.
9013 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
9015         * cgraph.c (cgraph_node::function_symbol): Fix wrong
9016         cgraph_function_node to cgraph_node::function_symbol
9017         refactoring.
9019 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9021         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
9022         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
9024 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
9026         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
9027         warning.
9029 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
9031         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
9032         generator.
9034 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
9036         PR target/62025
9037         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
9038         any registers that are used in mem_insn.
9040 2014-08-12  Steve Ellcey  <sellcey@mips.com>
9042         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
9044 2014-08-12  Steve Ellcey  <sellcey@mips.com>
9046         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
9047         (MULTILIB_DIRNAMES): Ditto.
9048         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
9049         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
9050         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
9051         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
9052         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
9053         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
9055 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9057         PR target/61413
9058         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
9059         of __ARM_SIZEOF_WCHAR_T.
9061 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9063         PR target/62098
9064         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
9065         Remove unnecessary attributes.
9067 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
9069         * internal-fn.c (init_internal_fns): Fix off-by-one.
9071 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9072             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9073             Anna Tikhonova  <anna.tikhonova@intel.com>
9074             Ilya Tocar  <ilya.tocar@intel.com>
9075             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9076             Ilya Verbin  <ilya.verbin@intel.com>
9077             Kirill Yukhin  <kirill.yukhin@intel.com>
9078             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9080         * config/i386/i386.c (standard_sse_constant_opcode): Use
9081         vpxord/vpternlog if avx512 is availible.
9083 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9085         PR middle-end/62103
9086         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
9087         bitfields, that is when size doesn't match the size of type or the
9088         size of the constructor.
9090 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
9092         * config/rs6000/constraints.md (wh constraint): New constraint,
9093         for FP registers if direct move is available.
9094         (wi constraint): New constraint, for VSX/FP registers that can
9095         handle 64-bit integers.
9096         (wj constraint): New constraint for VSX/FP registers that can
9097         handle 64-bit integers for direct moves.
9098         (wk constraint): New constraint for VSX/FP registers that can
9099         handle 64-bit doubles for direct moves.
9100         (wy constraint): Make documentation match implementation.
9102         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
9103         scalar_in_vmx_p field to simplify tests of whether SFmode or
9104         DFmode can go in the Altivec registers.
9105         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
9106         (rs6000_setup_reg_addr_masks): Likewise.
9107         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
9108         field, and wh/wi/wj/wk constraints.
9109         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
9110         the wh/wi/wj/wk constraints.
9111         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
9112         upper registers, prefer VSX registers unless the operation is a
9113         memory operation with REG+OFFSET addressing.
9115         * config/rs6000/vsx.md (VSr mode attribute): Add support for
9116         DImode.  Change SFmode to use ww constraint instead of d to allow
9117         SF registers in the upper registers.
9118         (VSr2): Likewise.
9119         (VSr3): Likewise.
9120         (VSr5): Fix thinko in comment.
9121         (VSa): New mode attribute that is an alternative to wa, that
9122         returns the VSX register class that a mode can go in, but may not
9123         be the preferred register class.
9124         (VS_64dm): New mode attribute for appropriate register classes for
9125         referencing 64-bit elements of vectors for direct moves and normal
9126         moves.
9127         (VS_64reg): Likewise.
9128         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
9129         register allocator to only registers the data type can handle.
9130         (vsx_le_perm_load_<mode>): Likewise.
9131         (vsx_le_perm_store_<mode>): Likewise.
9132         (vsx_xxpermdi2_le_<mode>): Likewise.
9133         (vsx_xxpermdi4_le_<mode>): Likewise.
9134         (vsx_lxvd2x2_le_<mode>): Likewise.
9135         (vsx_lxvd2x4_le_<mode>): Likewise.
9136         (vsx_stxvd2x2_le_<mode>): Likewise.
9137         (vsx_add<mode>3): Likewise.
9138         (vsx_sub<mode>3): Likewise.
9139         (vsx_mul<mode>3): Likewise.
9140         (vsx_div<mode>3): Likewise.
9141         (vsx_tdiv<mode>3_internal): Likewise.
9142         (vsx_fre<mode>2): Likewise.
9143         (vsx_neg<mode>2): Likewise.
9144         (vsx_abs<mode>2): Likewise.
9145         (vsx_nabs<mode>2): Likewise.
9146         (vsx_smax<mode>3): Likewise.
9147         (vsx_smin<mode>3): Likewise.
9148         (vsx_sqrt<mode>2): Likewise.
9149         (vsx_rsqrte<mode>2): Likewise.
9150         (vsx_tsqrt<mode>2_internal): Likewise.
9151         (vsx_fms<mode>4): Likewise.
9152         (vsx_nfma<mode>4): Likewise.
9153         (vsx_eq<mode>): Likewise.
9154         (vsx_gt<mode>): Likewise.
9155         (vsx_ge<mode>): Likewise.
9156         (vsx_eq<mode>_p): Likewise.
9157         (vsx_gt<mode>_p): Likewise.
9158         (vsx_ge<mode>_p): Likewise.
9159         (vsx_xxsel<mode>): Likewise.
9160         (vsx_xxsel<mode>_uns): Likewise.
9161         (vsx_copysign<mode>3): Likewise.
9162         (vsx_float<VSi><mode>2): Likewise.
9163         (vsx_floatuns<VSi><mode>2): Likewise.
9164         (vsx_fix_trunc<mode><VSi>2): Likewise.
9165         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
9166         (vsx_x<VSv>r<VSs>i): Likewise.
9167         (vsx_x<VSv>r<VSs>ic): Likewise.
9168         (vsx_btrunc<mode>2): Likewise.
9169         (vsx_b2trunc<mode>2): Likewise.
9170         (vsx_floor<mode>2): Likewise.
9171         (vsx_ceil<mode>2): Likewise.
9172         (vsx_<VS_spdp_insn>): Likewise.
9173         (vsx_xscvspdp): Likewise.
9174         (vsx_xvcvspuxds): Likewise.
9175         (vsx_float_fix_<mode>2): Likewise.
9176         (vsx_set_<mode>): Likewise.
9177         (vsx_extract_<mode>_internal1): Likewise.
9178         (vsx_extract_<mode>_internal2): Likewise.
9179         (vsx_extract_<mode>_load): Likewise.
9180         (vsx_extract_<mode>_store): Likewise.
9181         (vsx_splat_<mode>): Likewise.
9182         (vsx_xxspltw_<mode>): Likewise.
9183         (vsx_xxspltw_<mode>_direct): Likewise.
9184         (vsx_xxmrghw_<mode>): Likewise.
9185         (vsx_xxmrglw_<mode>): Likewise.
9186         (vsx_xxsldwi_<mode>): Likewise.
9187         (vsx_xscvdpspn): Tighten constraints to only use register classes
9188         the types use.
9189         (vsx_xscvspdpn): Likewise.
9190         (vsx_xscvdpspn_scalar): Likewise.
9192         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
9193         wj, and wk constraints.
9194         (GPR_REG_CLASS_P): New helper macro for register classes targeting
9195         general purpose registers.
9197         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
9198         direct moves.
9199         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
9200         DImode instead of wm.  Use wk constraint for direct move of DFmode
9201         instead of wm.
9202         (extendsidi2_lfiwax): Likewise.
9203         (lfiwax): Likewise.
9204         (lfiwzx): Likewise.
9205         (movdi_internal64): Likewise.
9207         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
9208         wk constraints. Make the wy constraint documentation match them
9209         implementation.
9211 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
9213         Replacement of isl_int by isl_val
9214         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
9215         (compute_bounds_for_param): use isl_val instead of isl_int
9216         (compute_bounds_for_loop): likewise
9217         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
9218         (build_linearized_memory_access): use isl_val instead of isl_int
9219         (pdr_stride_in_loop): likewise
9220         * graphite-optimize-isl.c:
9221         (getPrevectorMap): use isl_val instead of isl_int
9222         * graphite-poly.c:
9223         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
9224         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
9225         (extern the_isl_ctx): declare
9226         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
9227         (extract_affine_gmp): likewise
9228         (wrap): likewise
9229         (build_loop_iteration_domains): likewise
9230         (add_param_constraints): likewise
9232 2014-08-11  Richard Biener  <rguenther@suse.de>
9234         PR tree-optimization/62075
9235         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
9236         handle uses in patterns.
9238 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9239             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9240             Anna Tikhonova  <anna.tikhonova@intel.com>
9241             Ilya Tocar  <ilya.tocar@intel.com>
9242             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9243             Ilya Verbin  <ilya.verbin@intel.com>
9244             Kirill Yukhin  <kirill.yukhin@intel.com>
9245             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9247         * common/config/i386/i386-common.c
9248         (OPTION_MASK_ISA_AVX512VL_SET): Define.
9249         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
9250         (ix86_handle_option): Handle OPT_mavx512vl.
9251         * config/i386/cpuid.h (bit_AVX512VL): Define.
9252         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
9253         set -mavx512vl accordingly.
9254         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9255         OPTION_MASK_ISA_AVX512VL.
9256         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
9257         (ix86_option_override_internal): Define PTA_AVX512VL, handle
9258         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
9259         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
9260         * config/i386/i386.h (TARGET_AVX512VL): Define.
9261         (TARGET_AVX512VL_P(x)): Ditto.
9262         * config/i386/i386.opt: Add mavx512vl.
9264 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
9266         PR tree-optimization/62073
9267         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
9268         a basic block.
9270 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9271             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9272             Anna Tikhonova  <anna.tikhonova@intel.com>
9273             Ilya Tocar  <ilya.tocar@intel.com>
9274             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9275             Ilya Verbin  <ilya.verbin@intel.com>
9276             Kirill Yukhin  <kirill.yukhin@intel.com>
9277             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9279         * common/config/i386/i386-common.c
9280         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
9281         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
9282         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
9283         (ix86_handle_option): Handle OPT_mavx512bw.
9284         * config/i386/cpuid.h (bit_AVX512BW): Define.
9285         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
9286         set -mavx512bw accordingly.
9287         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9288         OPTION_MASK_ISA_AVX512BW.
9289         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
9290         (ix86_option_override_internal): Define PTA_AVX512BW, handle
9291         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
9292         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
9293         * config/i386/i386.h (TARGET_AVX512BW): Define.
9294         (TARGET_AVX512BW_P(x)): Ditto.
9295         * config/i386/i386.opt: Add mavx512bw.
9297 2014-08-11  Richard Biener  <rguenther@suse.de>
9299         PR tree-optimization/62070
9300         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
9301         Remove SSA checking.
9303 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
9305         * asan.c (asan_check_flags): New enum.
9306         (build_check_stmt_with_calls): Removed function.
9307         (build_check_stmt): Split inlining logic to
9308         asan_expand_check_ifn.
9309         (instrument_derefs): Rename parameter.
9310         (instrument_mem_region_access): Rename parameter.
9311         (instrument_strlen_call): Likewise.
9312         (asan_expand_check_ifn): New function.
9313         (asan_instrument): Remove old code.
9314         (pass_sanopt::execute): Change handling of
9315         asan-instrumentation-with-call-threshold.
9316         (asan_clear_shadow): Fix formatting.
9317         (asan_function_start): Likewise.
9318         (asan_emit_stack_protection): Likewise.
9319         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
9320         Update description.
9321         * internal-fn.c (expand_ASAN_CHECK): New function.
9322         * internal-fn.def (ASAN_CHECK): New internal function.
9323         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
9324         Update description.
9325         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
9326         * tree.c: Small comment fix.
9328 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
9330         * gimple.c (gimple_call_fnspec): Support internal functions.
9331         (gimple_call_return_flags): Use const.
9332         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
9333         * internal-fn.def: Add fnspec information.
9334         * internal-fn.h (internal_fn_fnspec): New function.
9335         (init_internal_fns): Declare new function.
9336         * internal-fn.c (internal_fn_fnspec_array): New global variable.
9337         (init_internal_fns): New function.
9338         * tree-core.h: Update macro call.
9339         * tree.c (build_common_builtin_nodes): Initialize internal fns.
9341 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
9343         * lto-streamer.h (struct output_block::symbol): Change from
9344         struct symtab_node to plain symtab_node.
9345         (referenced_from_this_partition_p): Change first parameter
9346         from struct symtab_node to plain symtab_node.
9348 2014-08-10  Marek Polacek  <polacek@redhat.com>
9350         PR c/51849
9351         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
9353 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
9355         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
9356         DECL correctly; do not give up on types in static storage.
9358 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
9360         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
9362 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
9364         * graphite-isl-ast-to-gimple.c:
9365         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
9367         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
9369 2014-08-08  Guozhi Wei  <carrot@google.com>
9371         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
9373 2014-08-08  Cary Coutant  <ccoutant@google.com>
9375         * dwarf2out.c (get_skeleton_type_unit): Remove.
9376         (output_skeleton_debug_sections): Remove skeleton type units.
9377         (output_comdat_type_unit): Likewise.
9378         (dwarf2out_finish): Likewise.
9380 2014-08-07  Yi Yang  <ahyangyi@google.com>
9382         * predict.c (expr_expected_value_1): Remove the redundant assignment.
9384 2014-08-08  Richard Biener  <rguenther@suse.de>
9386         * lto-streamer.h (struct lto_input_block): Make it a class
9387         with a constructor.
9388         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
9389         (struct lto_function_header, struct lto_simple_header,
9390         struct lto_simple_header_with_strings,
9391         struct lto_decl_header, struct lto_function_header): Make
9392         a simple inheritance hieararchy.  Remove unused fields.
9393         (struct lto_asm_header): Remove.
9394         * lto-streamer-out.c (produce_asm): Adjust.
9395         (lto_output_toplevel_asms): Likewise.
9396         (produce_asm_for_decls): Likewise.
9397         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
9398         * data-streamer-in.c (string_for_index): Likewise.
9399         * ipa-inline-analysis.c (inline_read_section): Likewise.
9400         * ipa-prop.c (ipa_prop_read_section): Likewise.
9401         (read_replacements_section): Likewise.
9402         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
9403         * lto-section-in.c (lto_create_simple_input_block): Likewise.
9404         (lto_destroy_simple_input_block): Likewise.
9405         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
9406         (lto_input_toplevel_asms): Likewise.
9408 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9409             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9410             Anna Tikhonova  <anna.tikhonova@intel.com>
9411             Ilya Tocar  <ilya.tocar@intel.com>
9412             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9413             Ilya Verbin  <ilya.verbin@intel.com>
9414             Kirill Yukhin  <kirill.yukhin@intel.com>
9415             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9417         * common/config/i386/i386-common.c
9418         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
9419         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
9420         (ix86_handle_option): Handle OPT_mavx512dq.
9421         * config/i386/cpuid.h (bit_AVX512DQ): Define.
9422         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
9423         set -mavx512dq accordingly.
9424         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9425         OPTION_MASK_ISA_AVX512DQ.
9426         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
9427         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
9428         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
9429         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
9430         * config/i386/i386.h (TARGET_AVX512DQ): Define.
9431         (TARGET_AVX512DQ_P(x)): Ditto.
9432         * config/i386/i386.opt: Add mavx512dq.
9434 2014-08-08  Richard Biener  <rguenther@suse.de>
9436         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
9437         target_percent, target_percent_s): Export.
9438         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
9439         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
9440         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
9441         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
9442         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
9443         Move to gimple-fold.c.
9444         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
9445         strcat and strcpy.
9446         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
9447         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
9448         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
9449         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
9450         (rewrite_call_expr_array): Remove.
9451         (fold_builtin_sprintf_chk): Likewise.
9452         (fold_builtin_snprintf_chk): Likewise.
9453         (fold_builtin_varargs): Remove handling of sprintf_chk,
9454         vsprintf_chk, snprintf_chk and vsnprintf_chk.
9455         (gimple_fold_builtin_sprintf_chk): Remove.
9456         (gimple_fold_builtin_snprintf_chk): Likewise.
9457         (gimple_fold_builtin_varargs): Likewise.
9458         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
9459         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
9460         * gimple.c (gimple_seq_add_seq_without_update): New function.
9461         * gimple.h (gimple_seq_add_seq_without_update): Declare.
9462         * gimple-fold.c: Include output.h.
9463         (gsi_replace_with_seq_vops): New function, split out from ...
9464         (gimplify_and_update_call_from_tree): ... here.
9465         (replace_call_with_value): New function.
9466         (replace_call_with_call_and_fold): Likewise.
9467         (var_decl_component_p): Moved from builtins.c.
9468         (gimple_fold_builtin_memory_op): Moved from builtins.c
9469         fold_builtin_memory_op and rewritten to GIMPLE.
9470         (gimple_fold_builtin_memset): Likewise.
9471         (gimple_fold_builtin_strcpy): Likewise.
9472         (gimple_fold_builtin_strncpy): Likewise.
9473         (gimple_fold_builtin_strcat): Likewise.
9474         (gimple_fold_builtin_fputs): Likewise.
9475         (gimple_fold_builtin_memory_chk): Likewise.
9476         (gimple_fold_builtin_stxcpy_chk): Likewise.
9477         (gimple_fold_builtin_stxncpy_chk): Likewise.
9478         (gimple_fold_builtin_snprintf_chk): Likewise.
9479         (gimple_fold_builtin_sprintf_chk): Likewise.
9480         (gimple_fold_builtin_strlen): New function.
9481         (gimple_fold_builtin_with_strlen): New function split out from
9482         gimple_fold_builtin.
9483         (gimple_fold_builtin): Change signature and handle
9484         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
9485         here.  Call gimple_fold_builtin_with_strlen.
9486         (gimple_fold_call): Adjust.
9488 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
9490         * calls.c (precompute_arguments): Check
9491          promoted_for_signed_and_unsigned_p and set the promoted mode.
9492         (promoted_for_signed_and_unsigned_p): New function.
9493         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
9494         and set the promoted mode.
9495         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
9496         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
9497         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
9500 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
9502         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
9503         instead of SUBREG_PROMOTED_UNSIGNED_SET.
9504         (expand_call): Likewise.
9505         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
9506         to get promoted mode.
9507         * combine.c (record_promoted_value): Skip > 0 comparison with
9508         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
9509         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
9510         of SUBREG_PROMOTED_UNSIGNED_P.
9511         (convert_modes): Likewise.
9512         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
9513         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
9514         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
9515         SUBREG_PROMOTED_UNSIGNED_SET.
9516         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
9517         instead of SUBREG_PROMOTED_UNSIGNED_SET.
9518         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
9519         SUBREG_PROMOTED_SET.
9520         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
9521         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
9522         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
9523         of SUBREG_PROMOTED_UNSIGNED_P.
9524         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
9525         (SUBREG_PROMOTED_SET): New define.
9526         (SUBREG_PROMOTED_GET): Likewise.
9527         (SUBREG_PROMOTED_SIGN): Likewise.
9528         (SUBREG_PROMOTED_SIGNED_P): Likewise.
9529         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
9530         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
9531         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
9532         instead of SUBREG_PROMOTED_UNSIGNED_GET.
9533         (nonzero_bits1): Skip > 0 comparison with the results as
9534         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
9535         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
9536         of !SUBREG_PROMOTED_UNSIGNED_P.
9537         * simplify-rtx.c (simplify_unary_operation_1): Use new
9538         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
9539         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
9540         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
9541         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
9543 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
9545         * ipa-devirt.c: Include gimple-pretty-print.h
9546         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
9547         further tests.
9548         (decl_maybe_in_construction_p): Fix conditional on cdtor check
9549         (get_polymorphic_call_info): Fix return value
9550         (type_change_info): New sturcture based on ipa-prop
9551         variant.
9552         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
9553         based on ipa-prop variant.
9554         (extr_type_from_vtbl_ptr_store): New function
9555         based on ipa-prop variant.
9556         (record_known_type): New function.
9557         (check_stmt_for_type_change): New function.
9558         (get_dynamic_type): New function.
9559         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
9560         * tree-ssa-pre.c: ipa-utils.h
9561         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
9562         machinery; sanity check with ipa-prop devirtualization.
9563         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
9564         polymorphic flag.
9566 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
9568         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
9569         * alias.c, cfgexpand.c, cgraphbuild.c,
9570         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
9571         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
9572         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
9573         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
9574         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
9575         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9576         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
9577         dse.c, except.c, gengtype.c, gimple-expr.c,
9578         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
9579         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
9580         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
9581         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
9582         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
9583         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
9584         pointer-set.h.
9585         * pointer-set.c: Remove file.
9586         * pointer-set.h: Remove file.
9588 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9590         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
9591         * config/arm/types.md (f_sels, f_seld): Delete.
9593 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9595         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
9596         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
9597         (aarch64_movdi_<mode>high): Likewise.
9598         (aarch64_mov<mode>high_di): Likewise.
9599         (aarch64_movdi_<mode>low): Likewise.
9600         (aarch64_mov<mode>low_di): Likewise.
9601         (aarch64_movtilow_tilow): Likewise.
9602         Add comment explaining usage of fp,simd attributes and of
9603         TARGET_FLOAT and TARGET_SIMD.
9605 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
9606             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9608         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
9609         Use MOVN when one of the half-words is 0xffff.
9611 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
9613         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
9615 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9617         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
9618         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
9619         (rfs_str): String corresponding to RFS_* constants.
9620         (rank_for_schedule_stats_t): New typedef.
9621         (rank_for_schedule_stats): New static variable.
9622         (rfs_result): New static function.
9623         (rank_for_schedule): Track statistics for deciding heuristics.
9624         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
9625         static functions.
9626         (ready_sort): Use them for debug printouts.
9627         (schedule_block): Init statistics state.  Print statistics on
9628         rank_for_schedule decisions.
9630 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9632         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
9634 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
9636         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
9637         constraint.
9639 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
9641         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
9642         function to not conflict.
9643         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
9644         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
9645         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
9646         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
9647         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
9648         of pointer_map.
9650 2014-08-07  Marek Polacek  <polacek@redhat.com>
9652         * fold-const.c (fold_binary_loc): Add folding of
9653         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
9655 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
9657         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
9658         instead of type size.
9659         (ASM_FINISH_DECLARE_OBJECT): Likewise.
9661 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
9663         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
9664         (*thumb1_movqi_insn): Likewise.
9665         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
9667 2014-08-07  Tom de Vries  <tom@codesourcery.com>
9669         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9670         (glibc_2_11_or_earlier): Remove effective-target keywords.
9672 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
9674         * config/arm/arm.c (bdesc_2arg): Fix typo.
9675         (arm_atomic_assign_expand_fenv): Remove The default implementation.
9677 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9679         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
9681 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
9683         PR debug/61923
9684         * haifa-sched.c (advance_one_cycle): Fix dump.
9685         (schedule_block): Don't advance cycle if we are already at the
9686         beginning of the cycle.
9688 2014-08-06  Martin Jambor  <mjambor@suse.cz>
9690         PR ipa/61393
9691         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
9693 2014-08-06  Richard Biener  <rguenther@suse.de>
9695         PR lto/62034
9696         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
9697         SCCs here.
9698         (lto_input_tree): Pop SCCs here.
9700 2014-08-06  Richard Biener  <rguenther@suse.de>
9702         PR tree-optimization/61320
9703         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
9704         handle misaligned loads.
9706 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
9708         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
9709         (aarch64_expand_vec_perm_const): Check for dup before zip.
9711 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9713         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
9714         CONST_INT_P instead of GET_CODE and compare.
9715         (aarch64_select_cc_mode): Likewise.
9716         (aarch64_print_operand): Likewise.
9717         (aarch64_rtx_costs): Likewise.
9718         (aarch64_simd_valid_immediate): Likewise.
9719         (aarch64_simd_check_vect_par_cnst_half): Likewise.
9720         (aarch64_simd_emit_pair_result_insn): Likewise.
9722 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
9724         * gdbhooks.py (find_gcc_source_dir): New helper function.
9725         (class PassNames): New class, locating and parsing passes.def.
9726         (class BreakOnPass): New command "break-on-pass".
9728 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
9730         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
9731         getting olde.
9733 2014-08-05  Richard Biener  <rguenther@suse.de>
9735         PR rtl-optimization/61672
9736         * emit-rtl.h (mem_attrs_eq_p): Declare.
9737         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
9738         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
9739         * cfgcleanup.c (merge_memattrs): Likewise.
9740         Include emit-rtl.h.
9742 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9744         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
9745         rather than singleton vectors.
9746         (vqdmlsls_lane_s32): Likewise.
9748 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9750         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
9751         Use VSDQ_HSI mode iterator.
9752         (aarch64_sqrdmulh_laneq<mode>): Likewise.
9753         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
9754         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
9755         Use BUILTIN_VDQHS macro.
9756         (sqrdmulh_laneq): Likewise.
9757         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
9758         (vqdmlals_laneq_s32): Likewise.
9759         (vqdmlslh_laneq_s16): Likewise.
9760         (vqdmlsls_laneq_s32): Likewise.
9761         (vqdmulhh_laneq_s16): Likewise.
9762         (vqdmulhs_laneq_s32): Likewise.
9763         (vqrdmulhh_laneq_s16): Likewise.
9764         (vqrdmulhs_laneq_s32): Likewise.
9766 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9768         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
9769         (vmuld_laneq_f64): Likewise.
9770         (vmuls_laneq_f32): Likewise.
9771         (vmul_n_f64): Likewise.
9772         (vmuld_lane_f64): Reimplement in C.
9773         (vmuls_lane_f32): Likewise.
9775 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9777         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
9778         to reservation.
9779         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
9781 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9783         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
9784         (rbitsi2): Likewise.
9785         (*arm_rev): Set predicable and predicable_short_it attributes.
9787 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9789         * convert.c (convert_to_integer): Guard transformation to lrint by
9790         -fno-math-errno.
9792 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
9794         * config/aarch64/aarch64-builtins.c
9795         (aarch64_simd_builtin_type_mode): Delete.
9796         (v8qi_UP): Remap to V8QImode.
9797         (v4hi_UP): Remap to V4HImode.
9798         (v2si_UP): Remap to V2SImode.
9799         (v2sf_UP): Remap to V2SFmode.
9800         (v1df_UP): Remap to V1DFmode.
9801         (di_UP): Remap to DImode.
9802         (df_UP): Remap to DFmode.
9803         (v16qi_UP):V16QImode.
9804         (v8hi_UP): Remap to V8HImode.
9805         (v4si_UP): Remap to V4SImode.
9806         (v4sf_UP): Remap to V4SFmode.
9807         (v2di_UP): Remap to V2DImode.
9808         (v2df_UP): Remap to V2DFmode.
9809         (ti_UP): Remap to TImode.
9810         (ei_UP): Remap to EImode.
9811         (oi_UP): Remap to OImode.
9812         (ci_UP): Map to CImode.
9813         (xi_UP): Remap to XImode.
9814         (si_UP): Remap to SImode.
9815         (sf_UP): Remap to SFmode.
9816         (hi_UP): Remap to HImode.
9817         (qi_UP): Remap to QImode.
9818         (aarch64_simd_builtin_datum): Make mode a machine_mode.
9819         (VAR1): Build builtin name.
9820         (aarch64_init_simd_builtins): Remove dead code.
9822 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
9824         * graphite-isl-ast-to-gimple.c:
9825         (set_options): New function.
9826         (scop_to_isl_ast): Add calling of set_options.
9828 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
9830         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
9831         (analyze_iv_to_split_insn): Don't initialize them.
9832         (get_ivts_expr): Removed.
9833         (allocate_basic_variable, insert_base_initialization): Use
9834         SET_SRC instead of *get_ivts_expr.
9835         (split_iv): Use &SET_SRC instead of get_ivts_expr.
9837 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
9839         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
9840         (translate_isl_ast_for_loop): Add checking of the
9841         flag_loop_parallelize_all.
9842         (ast_build_before_for): New function.
9843         (scop_to_isl_ast): Add checking of the
9844         flag_loop_parallelize_all.
9845         * graphite-dependences.c: Move the defenition of the
9846         scop_get_dependences from graphite-optimize-isl.c to this file.
9847         (apply_schedule_on_deps): Add checking of the ux's emptiness.
9848         (carries_deps): Add checking of the x's value.
9849         * graphite-optimize-isl.c: Move the defenition of the
9850         scop_get_dependences to graphite-dependences.c.
9851         * graphite-poly.h: Add declarations of scop_get_dependences
9852         and carries_deps.
9854 2014-08-04  Rohit  <rohitarulraj@freescale.com>
9856         PR target/60102
9857         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
9858         names.
9859         (alt_reg_names): Likewise.
9860         (rs6000_dwarf_register_span): For SPE high registers, replace
9861         dwarf register numbers with GCC hard register numbers.
9862         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
9863         (rs6000_dbx_register_number): For SPE high registers, return dwarf
9864         register number for the corresponding GCC hard register number.
9865         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
9866         newly added GCC hard register numbers for SPE high registers.
9867         (DWARF_FRAME_REGISTERS):  Likewise.
9868         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
9869         (DWARF_FRAME_REGNUM): Likewise.
9870         (FIXED_REGISTERS): Likewise.
9871         (CALL_USED_REGISTERS): Likewise.
9872         (CALL_REALLY_USED_REGISTERS): Likewise.
9873         (REG_ALLOC_ORDER): Likewise.
9874         (enum reg_class): Likewise.
9875         (REG_CLASS_NAMES): Likewise.
9876         (REG_CLASS_CONTENTS): Likewise.
9877         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
9879 2014-08-04  Richard Biener  <rguenther@suse.de>
9881         * gimple-fold.h (gimple_fold_builtin): Remove.
9882         * gimple-fold.c (gimple_fold_builtin): Make static.
9883         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
9884         fold_stmt, not gimple_fold_builtin.
9886 2014-08-04  Martin Liska <mliska@suse.cz>
9888         * cgraph.h (csi_end_p): Removed.
9889         (csi_next): Likewise.
9890         (csi_node): Likewise.
9891         (csi_start): Likewise.
9892         (cgraph_node_in_set_p): Likewise.
9893         (cgraph_node_set_size): Likewise.
9894         (vsi_end_p): Likewise.
9895         (vsi_next): Likewise.
9896         (vsi_node): Likewise.
9897         (vsi_start): Likewise.
9898         (varpool_node_set_size): Likewise.
9899         (cgraph_node_set_nonempty_p): Likewise.
9900         (varpool_node_set_nonempty_p): Likewise.
9901         * cgraphunit.c (cgraph_process_new_functions): vec replaces
9902         cgraph_node_set.
9903         * ipa-inline-transform.c: Likewise.
9904         * ipa-utils.c (cgraph_node_set_new): Removed.
9905         (cgraph_node_set_add): Likewise.
9906         (cgraph_node_set_remove): Likewise.
9907         (cgraph_node_set_find): Likewise.
9908         (dump_cgraph_node_set): Likewise.
9909         (debug_cgraph_node_set): Likewise.
9910         (free_cgraph_node_set): Likewise.
9911         (varpool_node_set_new): Likewise.
9912         (varpool_node_set_add): Likewise.
9913         (varpool_node_set_remove): Likewise.
9914         (varpool_node_set_find): Likewise.
9915         (dump_varpool_node_set): Likewise.
9916         (free_varpool_node_set): Likewise.
9917         (debug_varpool_node_set): Likewise.
9918         * tree-emutls.c (struct tls_var_data):
9919         (emutls_index): Removed.
9920         (emutls_decl): Likewise.
9921         (gen_emutls_addr): Function implementation uses newly added
9922         hash_map<varpool_node *, tls_var_data>.
9923         (clear_access_vars): Likewise.
9924         (create_emultls_var): Likewise.
9925         (ipa_lower_emutls): Likewise.
9926         (reset_access): New function.
9928 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9930         * config/i386/i386.c (ix86_option_override_internal): Add
9931         PTA_RDRND and PTA_MOVBE for bdver4.
9933 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9934             James Greenhalgh  <james.greenhalgh@arm.com>
9936         * doc/md.texi (clrsb): Document.
9937         (clz): Change reference to x into operand 1.
9938         (ctz): Likewise.
9939         (popcount): Likewise.
9941 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9943         PR target/61713
9944         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
9945         move to subtarget in serial version if result is ignored.
9947 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9948             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9950         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
9951         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
9952         (sched_analyze_insn): Update use of try_group_insn to
9953         sched_macro_fuse_insns.
9954         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
9955         arguments that are not conditional jumps.
9957 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9959         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
9960         family information. Handle BTVER2 cpu with cpuid family value.
9962 2014-08-04  Tom de Vries  <tom@codesourcery.com>
9964         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9965         (glibc_2_11_or_earlier): Document effective-target keywords.
9967 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
9969         * ipa-devirt.c (odr_type_warn_count): Add type.
9970         (possible_polymorphic_call_targets): Set it.
9971         (ipa_devirt): Use it.
9973 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
9975         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
9976         Document.
9977         * ipa-devirt.c: Include hash-map.h
9978         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
9979         (clear_speculation): Break out of ...
9980         (get_class_context): ... here; speed up handling obviously useless
9981         speculations.
9982         (odr_type_warn_count, decl_warn_count): New structures.
9983         (final_warning_record): New structure.
9984         (final_warning_records): New static variable.
9985         (possible_polymorphic_call_targets): Cleanup handling of
9986         speculative info; do not build speculation when user do not care;
9987         record info about warnings when asked for.
9988         (add_decl_warning): New function.
9989         (type_warning_cmp): New function.
9990         (decl_warning_cmp): New function.
9991         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
9992         (gate): Enable pass when warnings are requested.
9993         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
9994         options.
9996 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
9998         * hash-map.h (default_hashmap_traits::mark_key_deleted):
9999         Fix cast.
10000         (hash_map::remove): New method.
10001         (hash_map::traverse): New method.
10002         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
10003         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
10004         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
10005         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
10006         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
10007         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
10008         pointer_map.
10010 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
10012         * hash-set.h: new File.
10013         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
10014         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
10015         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
10016         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
10017         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
10018         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
10019         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
10020         varpool.c: Use hash_set instead of pointer_set.
10022 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
10024         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
10026 2014-08-01  Jiong Wang <jiong.wang@arm.com>
10028         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
10029         for frame access when strict_p is false.
10031 2014-08-01  Renlin Li <renlin.li@arm.com>
10032 2014-08-01  Jiong Wang <jiong.wang@arm.com>
10034         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
10035         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
10036         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
10037         Declaration.
10038         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
10039         predicate.
10040         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
10041         aarch64_mem_pair_offset.
10043 2014-08-01  Jiong Wang <jiong.wang@arm.com>
10045         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
10046         offset.
10047         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
10048         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
10050 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
10052         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
10054 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
10056         PR regression/61510
10057         * cgraphunit.c (analyze_functions): Use get_create rather than get
10058         for decls which are clones of abstract functions.
10060 2014-08-01  Martin Liska  <mliska@suse.cz>
10062         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
10063         * ipa-prop.h (count_formal_params): Global function created from static.
10064         * ipa-prop.c (count_formal_params): Likewise.
10065         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
10066         profiles for semantically equivalent functions.
10067         * passes.c (do_per_function): If we load body of a function
10068         during WPA, this condition should behave same.
10069         * varpool.c (ctor_for_folding): More tolerant assert for variable
10070         aliases created during WPA.
10072 2014-08-01  Martin Liska  <mliska@suse.cz>
10074         * doc/invoke.texi (Options That Control Optimization): Documentation
10075         for -foptimize-strlen introduced. Optimization levels default options
10076         fixed.
10078 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
10080         * opts.c (common_handle_option): Handle -fsanitize=alignment.
10081         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
10082         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
10083         type to bool.
10084         * stor-layout.h (min_align_of_type): New prototype.
10085         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
10086         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
10087         check.
10088         * ubsan.c: Include builtins.h.
10089         (ubsan_expand_bounds_ifn): Change return type to bool,
10090         always return true.
10091         (ubsan_expand_null_ifn): Change return type to bool, change
10092         argument to gimple_stmt_iterator *.  Handle both null and alignment
10093         sanitization, take type from ckind argument's type rather than
10094         first argument.
10095         (instrument_member_call): Removed.
10096         (instrument_mem_ref): Remove t argument, add mem and base arguments.
10097         Handle both null and alignment sanitization, don't say whole
10098         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
10099         call instead of 2 argument.
10100         (instrument_null): Adjust instrument_mem_ref caller.  Don't
10101         instrument calls here.
10102         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
10103         like SANITIZE_NULL.
10104         * stor-layout.c (min_align_of_type): New function.
10105         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
10106         Or it into SANITIZE_UNDEFINED.
10107         * doc/invoke.texi (-fsanitize=alignment): Document.
10109 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10111         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
10113 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10115         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
10116         inchash.
10117         (vn_reference_compute_hash): Dito.
10118         (vn_nary_op_compute_hash): Dito.
10119         (vn_phi_compute_hash): Dito.
10120         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
10122 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10124         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
10125         Rename to inchash:add_expr_commutative. Convert to inchash.
10126         (iterative_hash_hashable_expr): Rename to
10127         inchash:add_hashable_expr. Convert to inchash.
10128         (avail_expr_hash): Dito.
10130 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10132         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
10133         Convert to inchash.
10135 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10137         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
10139 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10141         * Makefile.in (OBJS): Add rtlhash.o
10142         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
10143         (loc_checksum): Dito.
10144         (loc_checksum_ordered): Dito.
10145         (hash_loc_operands): Dito.
10146         (hash_locs): Dito.
10147         (hash_loc_list): Dito.
10148         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
10149         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
10150         * rtlhash.c: New file.
10151         * rtlhash.h: New file.
10153 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10155         * inchash.h (inchash): Change inchash class to namespace.
10156         (class hash): ... Rename from inchash.
10157         (add_object): Move from macro to class template.
10158         * lto-streamer-out.c (hash_tree): Change inchash
10159         to inchash::hash.
10160         * tree.c (build_type_attribute_qual_variant): Dito.
10161         (type_hash_list): Dito.
10162         (attribute_hash_list): Dito.
10163         (iterative_hstate_expr): Rename to inchash::add_expr
10164         (build_range_type_1): Change inchash to inchash::hash
10165         and use hash::add_expr.
10166         (build_array_type_1): Dito.
10167         (build_function_type): Dito
10168         (build_method_type_directly): Dito.
10169         (build_offset_type): Dito.
10170         (build_complex_type): Dito.
10171         (make_vector_type): Dito.
10172         * tree.h (iterative_hash_expr): Dito.
10174 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
10176         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
10178 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
10180         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
10181         correct alphabetical position.
10182         (vpaddd_f64): Rewrite using builtins.
10183         (vpaddd_s64): Move to correct alphabetical position.
10184         (vpaddd_u64): New.
10186 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
10188         PR target/61844
10189         * config/sh/sh.c (sh_legitimate_address_p,
10190         sh_legitimize_reload_address): Handle reg+reg address modes when
10191         ALLOW_INDEXED_ADDRESS is false.
10192         * config/sh/predicates.md (general_movsrc_operand,
10193         general_movdst_operand): Likewise.
10195 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
10197         * config/aarch64/aarch64-builtins.c
10198         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
10199         BYTES_BIG_ENDIAN.
10201 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
10203         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
10204         the generated mask based on BYTES_BIG_ENDIAN.
10205         (aarch64_simd_check_vect_par_cnst_half): New.
10206         * config/aarch64/aarch64-protos.h
10207         (aarch64_simd_check_vect_par_cnst_half): New.
10208         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
10209         the check out to aarch64_simd_check_vect_par_cnst_half.
10210         (vect_par_cnst_lo_half): Likewise.
10211         * config/aarch64/aarch64-simd.md
10212         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
10213         (move_hi_quad_<mode>): Always generate a low mask.
10215 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10217         * doc/invoke.texi (AVR Options): Add documentation about
10218         __AVR_DEVICE_NAME__ built-in macro.
10220 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
10222         PR target/61948
10223         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
10224         constraints are satisfied.
10225         (<shift>di3_neon): Likewise.
10227 2014-07-31  Richard Biener  <rguenther@suse.de>
10229         PR tree-optimization/61964
10230         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
10231         by structural equality.
10233 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
10235         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
10236         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
10237         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
10238         New enums.
10239         * gcc.c (sanitize_spec_function): Support new option.
10240         (SANITIZER_SPEC): Remove now redundant check.
10241         * opts.c (common_handle_option): Support new option.
10242         (finish_options): Check for incompatibilities.
10243         * toplev.c (process_options): Split userspace-specific checks.
10245 2014-07-31  Richard Biener  <rguenther@suse.de>
10247         * lto-streamer.h (struct output_block): Remove global.
10248         (struct data_in): Remove labels, num_named_labels and
10249         num_unnamed_labels.
10250         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
10251         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
10253 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
10255         PR c++/60517
10256         * common.opt (-Wreturn-local-addr): Moved from c.opt.
10257         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
10258         (isolate_path): New argument to avoid inserting a trap.
10259         (find_implicit_erroneous_behaviour): Handle returning the address
10260         of a local variable.
10261         (find_explicit_erroneous_behaviour): Likewise.
10263 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
10265         PR lto/61868
10266         * toplev.c (init_random_seed): Move piece of code never called to
10267         set_random_seed.
10268         (set_random_seed): see above.
10270 2014-07-31  Tom de Vries  <tom@codesourcery.com>
10272         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
10274 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
10276         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
10277         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
10279 2014-07-31  Richard Biener  <rguenther@suse.de>
10281         * data-streamer.h (streamer_write_data_stream): Declare here,
10282         renamed from ...
10283         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
10284         * lto-cgraph.c (lto_output_node): Adjust.
10285         (lto_output_varpool_node): Likewise.
10286         * data-streamer-out.c (streamer_string_index): Likewise.
10287         (streamer_write_data_stream, lto_append_block): Move from ...
10288         * lto-section-out.c (lto_output_data_stream,
10289         lto_append_block): ... here.
10291 2014-07-30  Mike Stump  <mikestump@comcast.net>
10293         * configure.ac: Also check for popen.
10294         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
10295         * configure: Regenerate.
10296         * config.in:  Regenerate.
10298 2014-07-30  Martin Jambor  <mjambor@suse.cz>
10300         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
10301         parameter to gimple.
10303 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10305         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
10306         address as second parameter to __tpf_eh_return routine.
10308 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
10310         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
10311         Thumb2.
10313 2014-07-30  Tom Tromey  <tromey@redhat.com>
10315         PR c/59855
10316         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
10317         * doc/extend.texi (Type Attributes): Document designated_init
10318         attribute.
10320 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
10322         * graphite-isl-ast-to-gimple.c:
10323         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
10324         (gcc_expression_from_isl_expression): Pass type to
10325         gcc_expression_from_isl_ast_expr_id.
10327 2014-07-30  Richard Biener  <rguenther@suse.de>
10329         * lto-streamer.h (lto_write_data): New function.
10330         * langhooks.c (lhd_append_data): Do not free block.
10331         * lto-section-out.c (lto_write_data): New function writing
10332         raw data to the current section.
10333         (lto_write_stream): Adjust for langhook semantic change.
10334         (lto_destroy_simple_output_block): Write header directly.
10335         * lto-opts.c (lto_write_options): Write options directly.
10336         * lto-streamer-out.c (produce_asm): Write heaeder directly.
10337         (lto_output_toplevel_asms): Likewise.
10338         (copy_function_or_variable): Copy data directly.
10339         (write_global_references): Output index table directly.
10340         (lto_output_decl_state_refs): Likewise.
10341         (write_symbol): Write data directly.
10342         (produce_symtab): Adjust.
10343         (produce_asm_for_decls): Output header and refs directly.
10345 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
10347         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
10348         to speculative_targets
10349         (get_class_context): Fix handling of contextes without outer type;
10350         avoid matching non-polymorphic types in LTO.
10351         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
10352         parameter to speculative_targetsp; handle speculation.
10353         (dump_possible_polymorphic_call_targets): Update dumping.
10355 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
10357         * common.opt (Wodr): Enable by default.
10359 2014-07-29  Olivier Hainque  <hainque@adacore.com>
10361         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
10363 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
10365         PR bootstrap/61914
10366         * gengtype.c (strtoken): New function.
10367         (create_user_defined_type): Replace strtok with strtoken.
10369 2014-07-29  Nathan Sidwell  <nathan@acm.org>
10371         * gcov-io.c (gcov_var): Make hidden.
10372         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
10373         (gcov_do_dump): Declare.
10374         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
10376 2014-07-29  Martin Jambor  <mjambor@suse.cz>
10378         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
10379         parameter to gimple.
10380         (sra_modify_assign): Likewise.
10382 2014-07-29  Richard Biener  <rguenther@suse.de>
10384         PR middle-end/52478
10385         * expr.c (expand_expr_real_2): Revert last change.
10387 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
10389         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
10390         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
10391         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
10392         call.
10393         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
10394         (contains_type_p): Forward declare.
10395         (polymorphic_call_target_hasher::hash): Hash speculative info.
10396         (polymorphic_call_target_hasher::equal): Compare speculative info.
10397         (get_class_context): Handle speuclation.
10398         (contains_type_p): Update.
10399         (get_polymorphic_call_info_for_decl): Update.
10400         (walk_ssa_copies): Break out from ...
10401         (get_polymorphic_call_info): ... here; set speculative context
10402         before giving up.
10403         * ipa-prop.c (ipa_write_indirect_edge_info,
10404         ipa_read_indirect_edge_info): Stream speculative context.
10405         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
10406         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
10407         SPECULATIVE_MAYBE_DERIVED_TYPE).
10408         (possible_polymorphic_call_targets overriders): Update.
10409         (dump_possible_polymorphic_call_targets overriders): Update.
10410         (dump_possible_polymorphic_call_target_p overriders): Update.
10412 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
10414         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
10415         ipa-devirt path; fix thinko there.
10417 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
10419         * config/i386/i386.c (ix86_return_in_memory): Replace one
10420         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
10422 2014-07-28  Marek Polacek  <polacek@redhat.com>
10424         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
10426 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
10428         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
10429         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
10430         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
10431         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
10432         (USE_LD_AS_NEEDED): Likewise.
10433         (ASM_APP_ON): Likewise.
10434         (ASM_APP_OFF): Likewise.
10435         (TARGET_POSIX_IO): Likewise.
10436         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
10437         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
10438         (USE_LD_AS_NEEDED): Likewise.
10439         (ASM_APP_ON): Likewise.
10440         (ASM_APP_OFF): Likewise.
10441         (TARGET_POSIX_IO): Likewise.
10443 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
10445         PR middle-end/61734
10446         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
10447         operators other than the equality operators.
10449 2014-07-28  Richard Biener  <rguenther@suse.de>
10451         PR middle-end/52478
10452         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
10453         sure to register SImode ones, not only >= word_mode ones.
10454         * expr.c (expand_expr_real_2): When expanding -ftrapv
10455         binops do not use OPTAB_LIB_WIDEN.
10457 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
10459         PR middle-end/61919
10460         * tree-outof-ssa.c (insert_partition_copy_on_edge)
10461         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
10462         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
10463         inserting them in the insn stream.
10465 2014-07-28  Marek Polacek  <polacek@redhat.com>
10467         PR middle-end/61913
10468         * common.opt (Wodr): Add Var.
10470 2014-07-28  Richard Biener  <rguenther@suse.de>
10472         PR tree-optimization/61921
10473         * tree-ssa-structalias.c (create_variable_info_for_1): Check
10474         if there is a varpool node before dereferencing it.
10476 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
10478         * graphite-sese-to-poly.c:
10479         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
10480         id of the pbb), which contains pointer to the pbb1.
10482         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
10484 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
10486         * graphite-isl-ast-to-gimple.c:
10487         (graphite_create_new_guard): New function.
10488         (translate_isl_ast_node_if): New function.
10489         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
10491         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
10493 2014-07-27  Anthony Green  <green@moxielogic.com>
10495         * config.gcc: Add moxie-*-moxiebox* configuration.
10496         * config/moxie/moxiebox.h: New file.
10498 2014-07-26  Andrew Pinski  <apinski@cavium.com>
10500         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
10501         from the read only register.
10503 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
10505         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
10506         as the allocation class if it isn't likely to be spilled.
10508 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
10510         * rtl.h (tls_referenced_p): Declare.
10511         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
10512         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
10513         (mips_cannot_force_const_mem): Use tls_referenced_p.
10514         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
10515         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
10516         instead of pa_tls_referenced_p.
10517         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
10518         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
10519         (pa_legitimate_constant_p): Likewise.
10520         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
10521         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
10522         (rs6000_cannot_force_const_mem, rs6000_emit_move)
10523         (rs6000_address_for_altivec): Use tls_referenced_p instead of
10524         rs6000_tls_referenced_p.
10525         (rs6000_tls_symbol_ref_1): Delete.
10527 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
10529         PR target/44551
10530         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
10531         Optimize inverse of a VEC_CONCAT.
10533 2014-07-25  Xinliang David Li  <davidxl@google.com>
10535         * params.def: New parameter.
10536         * coverage.c (get_coverage_counts): Check new flag.
10537         (coverage_compute_profile_id): Check new flag.
10538         (coverage_begin_function): Check new flag.
10539         (coverage_end_function): Check new flag.
10540         * value-prof.c (coverage_node_map_initialized_p): New function.
10541         (init_node_map): Populate map with all functions.
10542         * doc/invoke.texi: Document new parameter.
10544 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
10545             Richard Biener <rguenther@suse.de>
10547         * lto-streamer-out.c (struct sccs): Turn to ...
10548         (class DFS): ... this one; refactor the DFS walk so it can
10549         be re-done on per-SCC basis.
10550         (DFS::DFS): New constructor.
10551         (DFS::~DFS): New destructor.
10552         (hash_tree): Add new MAP argument holding in-SCC hash values;
10553         remove POINTER_TYPE hashing hack.
10554         (scc_entry_compare): Rename to ...
10555         (DFS::scc_entry_compare): ... this one.
10556         (hash_scc): Rename to ...
10557         (DFS::hash_scc): ... this one; pass output_block instead
10558         of streamer_cache; work harder to get unique and stable SCC
10559         hashes.
10560         (DFS_write_tree): Rename to ...
10561         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
10562         (lto_output_tree): Update.
10564 2014-07-25  Andi Kleen  <ak@linux.intel.com>
10566         * lto-streamer-out.c (hash_tree): Convert to inchash.
10568 2014-07-25  Andi Kleen  <ak@linux.intel.com>
10570         * tree.c (build_type_attribute_qual_variant): Use inchash.
10571         (type_hash_list): Dito.
10572         (attribute_hash_list): Dito
10573         (iterative_hstate_expr): Dito.
10574         (iterative_hash_expr): Dito.
10575         (build_range_type_1): Dito.
10576         (build_array_type_1): Dito.
10577         (build_function_type): Dito.
10578         (build_method_type_directly): Dito.
10579         (build_offset_type): Dito.
10580         (build_complex_type): Dito.
10581         (make_vector_type): Dito.
10582         * tree.h (iterative_hash_expr): Add compat wrapper.
10583         (iterative_hstate_expr): Add.
10585 2014-07-25  Andi Kleen  <ak@linux.intel.com>
10587         * Makefile.in (OBJS): Add inchash.o.
10588         (PLUGIN_HEADERS): Add inchash.h.
10589         * ipa-devirt.c: Include inchash.h.
10590         * lto-streamer-out.c: Dito.
10591         * tree-ssa-dom.c: Dito.
10592         * tree-ssa-pre.c: Dito.
10593         * tree-ssa-sccvn.c: Dito.
10594         * tree-ssa-tail-merge.c: Dito.
10595         * asan.c: Dito.
10596         * tree.c (iterative_hash_hashval_t): Move to ...
10597         (iterative_hash_host_wide_int): Move to ...
10598         * inchash.c: Here. New file.
10599         * tree.h (iterative_hash_hashval_t): Move to ...
10600         (iterative_hash_host_wide_int): Move to ...
10601         * inchash.h: Here. New file.
10603 2014-07-25  Richard Biener  <rguenther@suse.de>
10605         PR middle-end/61762
10606         PR middle-end/61894
10607         * fold-const.c (native_encode_int): Add and handle offset
10608         parameter to do partial encodings of expr.
10609         (native_encode_fixed): Likewise.
10610         (native_encode_real): Likewise.
10611         (native_encode_complex): Likewise.
10612         (native_encode_vector): Likewise.
10613         (native_encode_string): Likewise.
10614         (native_encode_expr): Likewise.
10615         * fold-const.c (native_encode_expr): Add offset parameter
10616         defaulting to -1.
10617         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
10618         (fold_ctor_reference): Handle all reads from tcc_constant
10619         ctors.
10621 2014-07-25  Richard Biener  <rguenther@suse.de>
10623         * tree-inline.c (estimate_move_cost): Mark speed_p argument
10624         as possibly unused.
10626 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10628         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
10630 2014-07-24  Kyle McMartin  <kyle@redhat.com>
10632         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
10634 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10636         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
10637         Add prototype.
10638         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
10639         function.
10640         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
10641         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
10642         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
10644 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10646         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
10647         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
10648         aggregate types.  Instead, *all* aggregate types, except for single-
10649         element or homogeneous float/vector aggregates, are quadword-aligned
10650         if required by their type alignment.  Issue -Wpsabi note when a type
10651         is now treated differently than before.
10653 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10655         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
10656         does not fit fully into floating-point registers, and there is still
10657         space in the register parameter area, use GPRs to pass those parts
10658         of the argument.  Issue -Wpsabi note if any parameter is now treated
10659         differently than before.
10660         (rs6000_arg_partial_bytes): Update.
10662 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
10664         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
10666 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
10668         * rtl.h (target_rtl): Remove lang_dependent_initialized.
10669         * toplev.c (initialize_rtl): Don't use it.  Move previously
10670         "language-dependent" calls to...
10671         (backend_init): ...here.
10672         (lang_dependent_init_target): Don't set lang_dependent_initialized.
10673         Assert that RTL initialization hasn't happend yet.
10675 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
10677         PR rtl-optimization/61629
10678         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
10679         they have already been initialized.
10681 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
10683         PR middle-end/61268
10684         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
10685         DECL_INCOMING_RTL and entry_parm.
10686         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
10687         * calls.c (load_register_parameters): Likewise argument values.
10688         (emit_library_call_value_1, store_one_arg): Likewise argument
10689         save areas.
10690         * config/i386/i386.c (assign_386_stack_local): Likewise the local
10691         stack slot.
10692         * explow.c (validize_mem): Modify the argument in-place.
10694 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10696         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
10697         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
10699 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10701         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
10702         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
10704 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10706         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
10707         (aarch64_save_callee_saves): New parameter "skip_wb".
10708         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
10710 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10712         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
10713         "wb_candidate2".
10714         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
10716 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
10718         * graphite-isl-ast-to-gimple.c:
10719         (graphite_create_new_loop): Add calling of isl_id_free to properly
10720         decrement reference counts.
10722         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
10724 2014-07-24  Martin Liska  <mliska@suse.cz>
10725         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
10726         function used.
10727         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
10728         (rs6000_code_end): Likewise.
10730 2014-07-24  Martin Liska  <mliska@suse.cz>
10732         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
10733         symtab_node funtion used.
10734         (rs6000_xcoff_declare_object_name): Likewise.
10736 2014-07-24  Martin Liska  <mliska@suse.cz>
10738         * cgraphunit.c (compile): Correct function used.
10740 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
10742         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
10743         as non-indexable.
10745 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
10747         PR lto/61802
10748         * varasm.c (bss_initializer_p): Handle offlined ctors.
10749         (align_variable, get_variable_align): Likewise.
10750         (make_decl_one_only): Likewise.
10751         (default_binds_local_p_1): Likewise.
10752         (decl_binds_to_current_def_p): Likewise.
10753         (get_variable_section): Get constructor if it is offlined.
10754         (assemble_variable_contents): Sanity check that the caller
10755         streamed in the ctor in LTO.
10757 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
10759         * graphite-isl-ast-to-gimple.c:
10760         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
10761         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
10762         isl_ast_op_pdiv_r to the different case.
10764         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
10766 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10768         PR middle-end/61876
10769         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
10770         when flag_errno_math is on.
10772 2014-07-24  Martin Liska  <mliska@suse.cz>
10774         * cgraph.h (varpool_node):
10775         (availability get_availability (void)):
10776         created from cgraph_variable_initializer_availability
10777         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
10778         created from: cgraph_variable_initializer_availability
10779         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
10780         (void finalize_named_section_flags (void)):
10781         created from varpool_finalize_named_section_flags
10782         (bool assemble_decl (void)): created from varpool_assemble_decl
10783         (void analyze (void)): created from varpool_analyze_node
10784         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
10785         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
10786         (void remove_initializer (void)): created from varpool_remove_initializer
10787         (tree get_constructor (void)): created from varpool_get_constructor
10788         (bool externally_visible_p (void)): created from varpool_externally_visible_p
10789         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
10790         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
10791         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
10792         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
10793         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
10794         (static bool output_variables (void)): created from varpool_output_variables
10795         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
10796         created from varpool_extra_name_alias
10797         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
10798         (static void dump_varpool (FILE *f)): created from dump_varpool
10799         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
10800         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
10801         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
10802         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
10803         (void assemble_aliases (void)): created from assemble_aliases
10805 2014-07-24  Martin Liska  <mliska@suse.cz>
10807         * cgraph.h (symtab_node):
10808         (void register_symbol (void)): created from symtab_register_node
10809         (void remove (void)): created from symtab_remove_node
10810         (void dump (FILE *f)): created from dump_symtab_node
10811         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
10812         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
10813         (struct ipa_ref *add_reference (symtab_node *referred_node,
10814         enum ipa_ref_use use_type)): created from add_reference 
10815         (struct ipa_ref *add_reference (symtab_node *referred_node,
10816         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
10817         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
10818         gimple stmt)): created from maybe_add_reference
10819         (bool semantically_equivalent_p (symtab_node *target)): created from
10820         symtab_semantically_equivalent_p
10821         (void remove_from_same_comdat_group (void)): created from
10822         remove_from_same_comdat_group
10823         (void add_to_same_comdat_group (symtab_node *old_node)): created from
10824         symtab_add_to_same_comdat_group
10825         (void dissolve_same_comdat_group_list (void)): created from
10826         symtab_dissolve_same_comdat_group_list
10827         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
10828         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
10829         created from symtab_alias_ultimate_target
10830         (inline symtab_node *next_defined_symbol (void)): created from
10831         symtab_next_defined_symbol
10832         (bool resolve_alias (symtab_node *target)): created from
10833         symtab_resolve_alias
10834         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
10835         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
10836         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
10837         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
10838         (void set_section (const char *section)): created from set_section_1 
10839         (enum availability get_availability (void)): created from symtab_node_availability
10840         (void make_decl_local (void)): created from symtab_make_decl_local
10841         (bool real_symbol_p (void)): created from symtab_read_node
10842         (can_be_discarded_p (void)): created from symtab_can_be_discarded
10843         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
10844         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
10845         symtab_in_same_comdat_p;
10846         (bool address_taken_from_non_vtable_p (void)): created from
10847         address_taken_from_non_vtable_p
10848         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
10849         (static void dump_table (FILE *)): created from dump_symtab
10850         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
10851         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
10852         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
10853         symtab_used_from_object_file_p 
10854         (void dump_base (FILE *)): created from dump_symtab_base
10855         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
10856         (void unregister (void)): created from symtab_unregister_node
10857         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
10858         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
10859         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
10860         symtab_nonoverwritable_alias_1
10861         * cgraph.h (cgraph_node):
10862         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
10863         created from cgraph_remove_node_and_inline_clones
10864         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
10865         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
10866         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
10867         (cgraph_node *function_symbol (enum availability *avail = NULL)):
10868         created from cgraph_function_node
10869         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
10870         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
10871         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
10872         created from cgraph_create_clone 
10873         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
10874         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
10875         created from cgraph_create_virtual_clone
10876         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
10877         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
10878         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
10879         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
10880         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
10881         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
10882         created from cgraph_function_version_info
10883         (struct cgraph_function_version_info *insert_new_function_version (void)):
10884         created from insert_new_cgraph_node_version
10885         (struct cgraph_function_version_info *function_version (void)): created from
10886         get_cgraph_node_version
10887         (void analyze (void)): created from analyze_function
10888         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
10889         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
10890         tree real_alias) cgraph_add_thunk
10891         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
10892         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
10893         created from cgraph_function_or_thunk_node
10894         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
10895         created from expand_thunk
10896         (void reset (void)): created from cgraph_reset_node
10897         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
10898         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
10899         (void remove (void)): created from cgraph_remove_node
10900         (void dump (FILE *f)): created from dump_cgraph_node
10901         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
10902         (bool get_body (void)): created from cgraph_get_body
10903         (void release_body (void)): created from cgraph_release_function_body
10904         (void unnest (void)): created from cgraph_unnest_node
10905         (void make_local (void)): created from cgraph_make_node_local
10906         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
10907         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
10908         gcov_type count, int freq)): created from cgraph_create_edge
10909         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
10910         gcov_type count, int freq)): created from cgraph_create_indirect_edge
10911         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
10912         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
10913         created from cgraph_create_edge_including_clones
10914         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
10915         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
10916         (void remove_callers (void)): created from cgraph_node_remove_callers
10917         (void remove_callees (void)): created from cgraph_node_remove_callees
10918         (enum availability get_availability (void)): created from cgraph_function_body_availability
10919         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
10920         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
10921         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
10922         (void call_duplication_hooks (cgraph_node *node2)): created from
10923         cgraph_call_node_duplication_hooks
10924         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
10925         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
10926         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
10927         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
10928         (void call_function_insertion_hooks (void)):
10929         created from cgraph_call_function_insertion_hooks
10930         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
10931         (bool local_p (void)): created from cgraph_local_node
10932         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
10933         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
10934         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
10935         (inline bool only_called_directly_or_aliased_p (void)):
10936         created from cgraph_only_called_directly_or_aliased_p
10937         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
10938         created from cgraph_will_be_removed_from_program_if_no_direct_calls
10939         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
10940         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
10941         (bool can_remove_if_no_direct_calls_p (void)):
10942         created from cgraph_can_remove_if_no_direct_calls_p
10943         (inline bool has_gimple_body_p (void)):
10944         created from cgraph_function_with_gimple_body_p
10945         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
10946         (static void dump_cgraph (FILE *f)): created from dump_cgraph
10947         (static inline void debug_cgraph (void)): created from debug_cgraph
10948         (static void record_function_versions (tree decl1, tree decl2)):
10949         created from record_function_versions
10950         (static void delete_function_version (tree decl)):
10951         created from delete_function_version
10952         (static void add_new_function (tree fndecl, bool lowered)):
10953         created from cgraph_add_new_function
10954         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
10955         (static cgraph_node * create (tree decl)): created from cgraph_create_node
10956         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
10957         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
10958         (static cgraph_node *get_for_asmname (tree asmname)):
10959         created from cgraph_node_for_asm
10960         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
10961         created from cgraph_same_body_alias 
10962         (static bool used_from_object_file_p_worker (cgraph_node *node,
10963         void *): new function
10964         (static bool non_local_p (cgraph_node *node, void *)):
10965         created from cgraph_non_local_node_p_1
10966         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
10967         created from verify_cgraph
10968         (static bool make_local (cgraph_node *node, void *)):
10969         created from cgraph_make_node_local
10970         (static cgraph_node *create_alias (tree alias, tree target)):
10971         created from cgraph_create_function_alias
10972         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
10973         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
10974         created from cgraph_create_edge_1
10975         * cgraph.h (varpool_node):
10976         (void remove (void)): created from varpool_remove_node
10977         (void dump (FILE *f)): created from dump_varpool_node
10979 2014-07-24  Richard Biener  <rguenther@suse.de>
10981         PR ipa/61823
10982         * tree-ssa-structalias.c (create_variable_info_for_1):
10983         Use varpool_get_constructor.
10984         (create_variable_info_for): Likewise.
10986 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10988         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
10989         subtract outgoing area size when restoring stack_pointer_rtx.
10991 2014-07-24  Nick Clifton  <nickc@redhat.com>
10993         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
10994         that operations are taking place in parallel.
10995         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
10997 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
10999         * omp-low.c (extract_omp_for_data): Add missing break statement.
11001 2014-07-24  Richard Biener  <rguenther@suse.de>
11003         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
11004         * tree-inline.c (estimate_move_cost): Add speed_p parameter
11005         and adjust MOVE_RATIO query accordingly.
11006         (estimate_num_insns): Adjust callers.
11007         * ipa-prop.c (ipa_populate_param_decls): Likewise.
11008         * ipa-cp.c (gather_context_independent_values,
11009         estimate_local_effects): Likewise.
11010         * ipa-split.c (consider_split): Likewise.
11012 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
11014         * config/i386/driver-i386.c: Remove names of unused arguments and
11015         unnecessary unused attributes.
11016         * config/i386/host-mingw32.c: Likewise.
11017         * config/i386/i386.c: Likewise.
11018         * config/i386/winnt-stubs.c: Likewise.
11019         * config/i386/winnt.c: Likewise.
11021 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11023         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
11024         (aarch64_gen_loadwb_pair): New helper function.
11025         (aarch64_expand_epilogue): Simplify code using new helper functions.
11026         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
11028 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11030         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
11031         (aarch64_gen_storewb_pair): New helper function.
11032         (aarch64_expand_prologue): Simplify code using new helper functions.
11033         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
11035 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11037         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
11038         Rename to aarch64_save_callee_saves, remove restore code.
11039         (aarch64_restore_callee_saves): New function.
11041 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11043         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
11044         (aarch64_save_callee_saves): New function to handle reg save
11045         for both core and vectore regs.
11047 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11049         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
11050         (aarch64_gen_store_pair): New helper function.
11051         (aarch64_save_or_restore_callee_save_registers)
11052         (aarch64_save_or_restore_fprs): Use new helper functions.
11054 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11056         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
11057         (aarch64_save_or_restore_callee_save_registers)
11058         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
11060 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11062         * config/aarch64/aarch64.c
11063         (aarch64_save_or_restore_callee_save_registers)
11064         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
11066 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11068         * config/aarch64/aarch64.c
11069         (aarch64_save_or_restore_callee_save_registers)
11070         (aarch64_save_or_restore_fprs): Remove 'increment'.
11072 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11074         * config/aarch64/aarch64.c
11075         (aarch64_save_or_restore_callee_save_registers)
11076         (aarch64_save_or_restore_fprs): Use register offset in
11077         cfun->machine->frame.reg_offset.
11079 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11081         * config/aarch64/aarch64.c
11082         (aarch64_save_or_restore_callee_save_registers)
11083         (aarch64_save_or_restore_fprs): Remove base_rtx.
11085 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11087         * config/aarch64/aarch64.c
11088         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
11089         to 'start_offset'.  Remove local variable 'start_offset'.
11091 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11093         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
11094         type to HOST_WIDE_INT.
11096 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11098         * config/aarch64/aarch64.c (aarch64_expand_prologue)
11099         (aarch64_save_or_restore_fprs)
11100         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
11102 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11104         * config/arm/t-rtems-eabi: Add
11105         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
11106         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
11107         mbig-endian/mthumb/march=armv7-r, and
11108         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
11109         multilibs.
11111 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11112             Chris Johns <chrisj@rtems.org>
11113             Joel Sherrill <joel.sherrill@oarcorp.com>
11115         * config.gcc: Add nios2-*-rtems*.
11116         * config/nios2/rtems.h: New file.
11117         * gcc/config/nios2/t-rtems: New file.
11119 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
11121         PR target/61396
11122         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
11123         constant numbers, not general constants.
11124         (rs6000_expand_vector_init): Ditto.
11126 2014-07-23  Nathan Sidwell  <nathan@acm.org>
11128         * gcov-tool.c (gcov_list): Declare here.
11129         (set_gcov_list): Remove.
11130         (gcov_output_files): Set gcov_list directly.
11132 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
11134         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
11136 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11138         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
11139         callee-saved registers are available for padding purpose
11140         and r3 is not mandatory, then prefer use those callee-saved
11141         instead of r3.
11143 2014-07-23  Richard Biener  <rguenther@suse.de>
11145         * params.def (PARAM_MAX_COMBINE_INSNS): New.
11146         * combine.c: Include statistics.h and params.h.
11147         (combine_instructions): Guard three and four insn combines
11148         with max-combine-insns value.  Record statistics for combines
11149         performed.
11150         * doc/invoke.texi (max-combine-insns): Document new param.
11152 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
11154         * graphite-isl-ast-to-gimple.c:
11155         (translate_isl_ast_node_block): New function.
11156         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
11158         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
11159         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
11161 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
11163         * graphite-isl-ast-to-gimple.c:
11164         (get_max_schedule_dimensions): New function.
11165         (extend_schedule): Likewise.
11166         (generate_isl_schedule): Add calling of extend_schedule and
11167         get_max_schedule_dimensions.
11169 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11171         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
11172         (case UNSPEC): Handle UNSPEC_RBIT.
11174 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11176         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
11177         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
11179 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11181         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
11183 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
11185         * graphite-isl-ast-to-gimple.c:
11186         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
11187         (ivs_params_clear):
11188         (build_iv_mapping): New function.
11189         (translate_isl_ast_node_user): Likewise.
11190         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
11192         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
11193         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
11194         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
11196 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
11198         PR target/55701
11199         * config/arm/arm.md (setmem): New pattern.
11200         * config/arm/arm-protos.h (struct tune_params): New fields.
11201         (arm_gen_setmem): New prototype.
11202         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
11203         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
11204         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
11205         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
11206         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
11207         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
11208         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
11209         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
11210         (arm_const_inline_cost): New function.
11211         (arm_block_set_max_insns): New function.
11212         (arm_block_set_non_vect_profit_p): New function.
11213         (arm_block_set_vect_profit_p): New function.
11214         (arm_block_set_unaligned_vect): New function.
11215         (arm_block_set_aligned_vect): New function.
11216         (arm_block_set_unaligned_non_vect): New function.
11217         (arm_block_set_aligned_non_vect): New function.
11218         (arm_block_set_vect, arm_gen_setmem): New functions.
11220 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
11222         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
11224 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
11226         PR target/61855
11227         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
11228         out of #ifdef __OPTIMIZE__.
11230 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
11232         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
11233         different trapping status if -fnon-call-exceptions is enabled.
11235 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
11237         * expr.c (store_field): Handle VOIDmode for calls that return values
11238         in multiple locations.
11240 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11242         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
11243         (altivec_vsldoi_<mode>): Likewise.
11245 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
11247         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
11248         to the number of characters in the line.
11250 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
11252         * graphite-isl-ast-to-gimple.c: Add using of
11253         build_nonstandard_integer_type instead of int128_integer_type_node.
11255 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
11257         * toplev.c (output_stack_usage): Adjust the location of the warning.
11259 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
11261         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
11262         (*membar_storeload): Disable for LEON3.
11264 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11266         PR rtl-optimization/61461
11267         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
11269 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
11271         PR target/61794
11272         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
11273         Fix instruction constraint.
11274         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
11276 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
11278         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
11280 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
11282         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
11283         GNU coding standards.
11284         (nds32_register_move_cost): Likewise.
11285         (nds32_memory_move_cost): Likewise.
11286         (nds32_address_cost): Likewise.
11288 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11290         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
11292 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
11294         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
11295         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
11296         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
11297         (HAVE_sync_compare_and_swapqi): Define.
11298         (HAVE_sync_compare_and_swaphi): Likewise.
11299         (HAVE_sync_compare_and_swapsi): Likewise.
11301 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
11303         * config/mips/p5600.md: Add missing cpu tests.
11305 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11307         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
11308         (vmla_f64): Likewise.
11309         (vfms_f64): Likewise.
11310         (vmls_f64): Likewise.
11312 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11314         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
11315         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
11317 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11319         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
11320         (vmlal_high_lane_s32): Likewise.
11321         (vmlal_high_lane_u16): Likewise.
11322         (vmlal_high_lane_u32): Likewise.
11323         (vmlsl_high_lane_s16): Likewise.
11324         (vmlsl_high_lane_s32): Likewise.
11325         (vmlsl_high_lane_u16): Likewise.
11326         (vmlsl_high_lane_u32): Likewise.
11328 2014-07-17  Terry Guo  <terry.guo@arm.com>
11330         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
11331         (alus_reg): Renamed to alus_sreg.
11332         * config/arm/arm-fixed.md: Change type of non-dsp instructions
11333         from alu_reg to alu_sreg.  Change type of dsp instructions from
11334         alu_reg to alu_dsp_reg.
11335         * config/arm/thumb1.md: Likewise.
11336         * config/arm/thumb2.md: Likewise.
11337         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
11338         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
11339         with alu_sreg and alus_sreg.
11340         * config/arm/arm1026ejs.md (alu_op): Likewise.
11341         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11342         * config/arm/arm926ejs.md (9_alu_op): Likewise.
11343         * config/arm/fa526.md (526_alu_op): Likewise.
11344         * config/arm/fa606te.md (606te_alu_op): Likewise.
11345         * config/arm/fa626te.md (626te_alu_op): Likewise.
11346         * config/arm/fa726te.md (726te_alu_op): Likewise.
11347         * config/arm/fmp626.md (mp626_alu_op): Likewise.
11348         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
11349         alu_sreg, alu_dsp_reg and alus_sreg.
11350         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11351         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11352         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11353         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
11354         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11355         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11356         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11357         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11358         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
11359         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
11360         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
11361         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
11362         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
11363         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
11364         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
11365         alus_reg to alus_sreg.
11367 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
11369         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
11370         infinity format.
11372 2014-07-17  Richard Biener  <rguenther@suse.de>
11374         PR rtl-optimization/61801
11375         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
11376         don't set reg_pending_barrier if it appears in a debug-insn.
11378 2014-07-16  DJ Delorie  <dj@redhat.com>
11380         * config/rx/rx.c (rx_option_override): Fix alignment values.
11381         (rx_align_for_label): Likewise.
11383 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
11385         PR target/61737.
11386         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
11387         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11388         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
11389         functions.
11390         (cris_print_index, cris_print_operand, cris_constant_index_p)
11391         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
11392         (cris_address_cost): Ditto last CONSTANT_P.
11393         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
11394         callers changed.  Yield cris_offsettable_symbol for non-PIC
11395         constant symbolic expressions including labels.  Yield cris_unspec
11396         for all unspecs.
11397         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
11398         target to pic_offset_table_rtx for calls that will likely go
11399         through PLT, const0_rtx when they can't.  All callers changed.
11400         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
11401         symbolic expressions to be PICified.  Remove second, redundant,
11402         assert on can_create_pseudo_p returning non-zero.  Use
11403         replace_equiv_address_nv, not replace_equiv_address, for final
11404         operand update.
11405         * config/cris/cris.md ("movsi"): Move variable t to pattern
11406         toplevel. Adjust assert for new cris_symbol_type member.  Use
11407         CONSTANT_P instead of CONSTANT_ADDRESS_P.
11408         ("*movsi_internal") <case 9>: Make check for valid unspec operands
11409         for lapc stricter.
11410         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
11411         ("call", "call_value"): Use second incoming operand as a marker
11412         for pic-offset-table-register being used.
11413         ("*expanded_call_non_v32", "*expanded_call_v32")
11414         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
11415         second incoming operand to CALL, match cris_call_type_marker.
11416         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
11417         ("*expanded_call_side"): Ditto.  Fix typo in comment.
11418         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
11419         CONSTANT_P.
11420         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
11421         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
11422         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
11423         users changed.  Add members cris_offsettable_symbol and cris_unspec.
11424         (cris_symbol_type): Rename from cris_pic_symbol_type.
11425         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
11426         just CONSTANT_P.
11427         * config/cris/cris-protos.h (cris_symbol_type_of,
11428         cris_expand_pic_call_address): Adjust prototypes.
11429         (cris_legitimate_constant_p): New prototype.
11431         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
11432         an existing tmake_file.  Don't add t-slibgcc and t-linux.
11434 2014-07-17  Jason Merrill  <jason@redhat.com>
11436         PR c++/61623
11437         * symtab.c (symtab_remove_from_same_comdat_group): Also
11438         set_comdat_group to NULL_TREE.
11439         (verify_symtab): Fix diagnostic.
11441 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
11443         PR target/61662
11444         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
11446 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
11448         Support location tracking for built-in macro tokens
11449         * input.h (is_location_from_builtin_token): New function declaration.
11450         * input.c (is_location_from_builtin_token): New function definition.
11451         * toplev.c (general_init): Tell libcpp what the pre-defined
11452         spelling location for built-in tokens is.
11454 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
11456         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
11457         on the FUNCTION_DECL.
11459 2014-07-16  Richard Biener  <rguenther@suse.de>
11461         PR other/61782
11462         * doc/extend.texi (always_inline): Clarify.
11464 2014-07-15  Eric Christopher  <echristo@gmail.com>
11466         * doc/invoke.texi (Link Options): Document -z option.
11468 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
11470         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
11471         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
11473 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
11475         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
11477 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
11479         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
11480         varpool_assemble_decl.
11481         * varpool.c (varpool_assemble_decl): Assert that node->definition is
11482         true.
11484 2014-07-15  Michael Matz  <matz@suse.de>
11486         PR rtl-optimization/61772
11487         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
11489 2014-07-15  Richard Biener  <rguenther@suse.de>
11491         * opts.c (default_options_table): Disable bit-ccp at -Og.
11493 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
11495         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
11497 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
11499         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
11500         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
11501         call langhook for unknown declaration.
11502         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
11503         * tree.h (DECL_ARGUMENTS): Update.
11504         * print-tree.c (print_node): Update.
11505         * tree-core.h (tree_decl_non_common): Remove arguments.
11506         (tree_function_decl): Add arguments.
11508 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
11510         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
11512 2014-07-14  Richard Biener  <rguenther@suse.de>
11514         PR tree-optimization/61779
11515         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
11516         simplifying a condition.
11518 2014-07-14  Richard Biener  <rguenther@suse.de>
11520         * builtins.c (c_strlen): Make only_value == 2 really only
11521         affect warning generation.
11523 2014-07-14  Richard Biener  <rguenther@suse.de>
11525         PR tree-optimization/61757
11526         PR tree-optimization/61783
11527         PR tree-optimization/61787
11528         * tree-ssa-dom.c (record_equality): Revert canonicalization
11529         change and add comment.
11530         (propagate_rhs_into_lhs): Revert previous fix, removing
11531         loop depth restriction again.
11533 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11535         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
11536         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11537         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11538         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
11539         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11540         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11541         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11543 2014-07-14  Richard Biener  <rguenther@suse.de>
11545         * cgraph.h (decl_in_symtab_p): Make inline.
11547 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
11549         PR middle-end/61294
11550         * doc/invoke.texi (-Wmemset-transposed-args): Document.
11552         PR target/61656
11553         * config/i386/i386.c (classify_argument): Don't merge classes above
11554         number of words.
11556 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
11558         * cgraph.h (symtab_node): Add nonzero_address.
11559         (decl_in_symtab_p): Break out from ...
11560         (symtab_get_node): ... here.
11561         * fold-const.c: Include cgraph.h
11562         (tree_single_nonzero_warnv_p): Use symtab to determine
11563         if symbol is non-zero.
11564         * symtab.c (symtab_node::nonzero_address): New method.
11566 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
11568         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
11569         forgotten in previous commit.
11571 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
11573         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
11574         on builtin types.
11575         * ipa-devirt.c: Include stor-layout.h and intl.h
11576         (odr_subtypes_equivalent_p): New function.
11577         (warn_odr): New function.
11578         (warn_type_mismatch): New function.
11579         (odr_types_equivalent_p): New function.
11580         (add_type_duplicate): Use it.
11581         * common.opt (Wodr): New flag.
11582         * doc/invoke.texi (Wodr): Document new warning.
11584 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
11586         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
11587         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
11588         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
11589         (varpool_get_constructor): Push CTORS_IN timevar.
11590         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
11592 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
11594         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
11595         Remove VOID_FTYPE_PUSHORT.
11596         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
11597         Change code to USHORT_FTYPE_VOID.
11598         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
11599         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
11600         (ix86_atomic_assign_expand_fenv): Update for
11601         __builtin_ia32_fnstsw changes.
11602         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
11603         (fnstsw): Change operand 0 to nonimmediate operand.
11605 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
11607         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
11608         (varpool_get_constructor): New function.
11609         (varpool_ctor_useable_for_folding_p): Break out from ...
11610         (ctor_for_folding): ... here; use varpool_get_constructor.
11611         (varpool_assemble_decl): Likewise.
11612         * lto-streamer.h (struct output_block): Turn cgraph_node
11613         to symbol filed.
11614         (lto_input_variable_constructor): Declare.
11615         * ipa-visibility.c (function_and_variable_visibility): Use
11616         varpool_get_constructor.
11617         * cgraph.h (varpool_get_constructor): Declare.
11618         (varpool_ctor_useable_for_folding_p): New function.
11619         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
11620         parameter; return error_mark_node for non-trivial constructors.
11621         (lto_write_tree_1, DFS_write_tree): Update use of
11622         get_symbol_initial_value.
11623         (output_function): Update initialization of symbol.
11624         (output_constructor): New function.
11625         (copy_function): Rename to ..
11626         (copy_function_or_variable): ... this one; handle vars too.
11627         (lto_output): Output variable sections.
11628         * lto-streamer-in.c (input_constructor): New function.
11629         (lto_read_body): Rename from ...
11630         (lto_read_body_or_constructor): ... this one; handle vars too.
11631         (lto_input_variable_constructor): New function.
11632         * ipa-prop.c (ipa_prop_write_jump_functions,
11633         ipa_prop_write_all_agg_replacement): Update.
11634         * lto-cgraph.c (compute_ltrans_boundary): Use it.
11635         (output_cgraph_opt_summary): Set symbol to NULL.
11637 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
11639         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
11640         non-polymorphic types.
11641         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
11642         * ipa-devirt.c (types_same_for_odr): Do not explode when one
11643         of types is not polymorphic.
11645 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
11647         * lra-constraints.c (remove_inheritance_pseudos): Process
11648         destination pseudo too.
11650 2014-07-11  Rong Xu  <xur@google.com>
11652         * gcov-tool.c (gcov_output_files): Fix build error introduced in
11653         commit r212448.
11655 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11657         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
11658         * config/avr/avr-devices.c (AVR_MCU): Same.
11659         (avr_mcu_types): add text start value to end of device list.
11660         * config/avr/avr-mcus.def: Add text section start for all devices.
11661         (ata5782): Add new avr5 device.
11662         (ata5831): Same.
11663         * config/avr/avr-tables.opt: Regenerate.
11664         * config/avr/avr.h: Add declaration for text section start handler.
11665         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
11666         SPEC functions.
11667         (LINK_SPEC): Include text section start handler to linker spec.
11668         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
11669         pass -Ttext option to linker if the text section start for the device
11670         is not zero.
11671         * config/avr/t-multilib: Regenerate.
11672         * doc/avr-mmcu.texi: Regenerate.
11674 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
11676         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
11677         * config/rs6000/aix52.h (LINK_SPEC): Same.
11678         * config/rs6000/aix53.h (LINK_SPEC): Same.
11679         * config/rs6000/aix61.h (LINK_SPEC): Same.
11680         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
11682 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
11684         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
11685         (graphite_verify): New function.
11686         (ivs_params_clear): New function.
11687         (gcc_expression_from_isl_ast_expr_id): New function.
11688         (gcc_expression_from_isl_expr_int): New function.
11689         (binary_op_to_tree): New function.
11690         (ternary_op_to_tree): New function.
11691         (unary_op_to_tree): New function.
11692         (nary_op_to_tree): New function.
11693         (gcc_expression_from_isl_expr_op): New function.
11694         (gcc_expression_from_isl_expression): New function.
11695         (graphite_create_new_loop): New function.
11696         (translate_isl_ast_for_loop): New function.
11697         (get_upper_bound): New function.
11698         (graphite_create_new_loop_guard): New function.
11699         (translate_isl_ast_node_for): New function.
11700         (translate_isl_ast): New function.
11701         (add_parameters_to_ivs_params): New function.
11702         (scop_to_isl_ast): New parameter ip.
11703         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
11705 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
11707         * config/xtensa/predicates.md (call expander): Update for
11708         DECL_SECTION_NAME being string.
11710 2014-07-11  Richard Biener  <rguenther@suse.de>
11712         PR middle-end/61473
11713         * builtins.c (fold_builtin_memory_op): Inline memory moves that
11714         can be implemented with a single load followed by a single store.
11715         (c_strlen): Only warn when only_value is not 2.
11717 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
11719         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
11721 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
11723         PR target/61561
11724         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
11725         (*movhi_bytes): Likewise.
11726         (*arm_movqi_insn): Likewise.
11728 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
11730         PR target/56858
11731         * config/alpha/alpha.c: Include tree-pass.h, context.h
11732         and pass_manager.h.
11733         (pass_data_handle_trap_shadows): New pass.
11734         (pass_handle_trap_shadows::gate): New pass gate function.
11735         (make_pass_handle_trap_shadows): New function.
11736         (rest_of_handle_trap_shadows): Ditto.
11738         (alpha_align_insns_1): Rename from alpha_align_insns.
11739         (pass_data_align_insns): New pass.
11740         (pass_align_insns::gate): New pass gate function.
11741         (make_pass_aling_insns): New function.
11742         (rest_of_align_insns): Ditto.
11743         (alpha_align_insns): Ditto.
11745         (alpha_option_override): Declare handle_trap_shadows info
11746         and align_insns_info.  Register handle_trap_shadows and align_insns
11747         passes here.
11748         (alpha_reorg): Do not call alpha_trap_shadows and
11749         alpha_align_insn from here.
11751         (alpha_pad_function_end): Do not skip BARRIERs.
11753 2014-07-10  Rong Xu  <xur@google.com>
11755         Add gcov-tool: an offline gcda profile processing tool support.
11756         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
11757         (gcov_is_error): Ditto.
11758         (gcov_read_string): Ditto.
11759         (gcov_read_sync): Ditto.
11760         * gcov-io.h: Move counter defines to gcov-counter.def.
11761         * gcov-dump.c (tag_counters): Use gcov-counter.def.
11762         * coverage.c: Ditto.
11763         * gcov-tool.c: Offline gcda profile processing tool.
11764         (unlink_gcda_file): Remove one gcda file.
11765         (unlink_profile_dir): Remove gcda files from the profile path.
11766         (gcov_output_files): Output gcda files to an output dir.
11767         (profile_merge): Merge two profiles in directory.
11768         (print_merge_usage_message): Print merge usage.
11769         (merge_usage): Print merge usage and exit.
11770         (do_merge): Driver for profile merge sub-command.
11771         (profile_rewrite): Rewrite profile.
11772         (print_rewrite_usage_message): Print rewrite usage.
11773         (rewrite_usage): Print rewrite usage and exit.
11774         (do_rewrite): Driver for profile rewrite sub-command.
11775         (print_usage): Print gcov-info usage and exit.
11776         (print_version): Print gcov-info version.
11777         (process_args): Process arguments.
11778         (main): Main routine for gcov-tool.
11779         * Makefile.in: Build and install gcov-tool.
11780         * gcov-counter.def: New file split from gcov-io.h.
11781         * doc/gcc.texi: Include gcov-tool.texi.
11782         * doc/gcov-tool.texi: Document for gcov-tool.
11784 2014-07-10  Richard Biener  <rguenther@suse.de>
11786         PR tree-optimization/61757
11787         * tree-ssa-dom.c (loop_depth_of_name): Restore.
11788         (propagate_rhs_into_lhs): Revert part of last change.
11790 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
11792         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
11793         FUNCTION_DECLs.
11795 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
11797         PR middle-end/53590
11798         * function.c (allocate_struct_function): Revert r188667 change.
11800         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
11802 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
11804         * doc/install.texi: Remove links to defunct package providers for
11805         Solaris.
11807 2014-07-09  Tom de Vries  <tom@codesourcery.com>
11809         * final.c (get_call_fndecl): Declare.
11810         (self_recursive_call_p): New function.
11811         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
11813 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11815         * ipa-devirt.c (record_node): Walk through aliases.
11817 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11819         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
11821 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11823         Revert:
11824         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
11826 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11828         * ipa-visibility.c (function_and_variable_visibility): Remove
11829         temporary hack disabling local aliases on AIX.
11831 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11833         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
11834         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
11836 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11838         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
11839         * rs6000/rs6000.c: Inline output of .set instruction.
11840         (declare_alias_data): New struct.
11841         (rs6000_declare_alias): New function.
11842         (rs6000_xcoff_declare_function_name): Use it.
11843         (rs6000_xcoff_declare_object_name): New function.
11844         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
11845         (ASM_OUTPUT_DEF): Turn to empty definition.
11847 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
11849         PR bootstrap/61679
11850         * hash-table.h: use hash_table::value_type instead of
11851         Descriptor::value_type in the return types of several methods.
11853 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
11855         * tree-pass.h (pass_data): Remove has_execute member.
11856         * passes.c (execute_one_pass): Don't check pass->has_execute.
11857         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
11858         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
11859         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
11860         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
11861         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
11862         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
11863         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
11864         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
11865         gimple-low.c, gimple-ssa-isolate-paths.c,
11866         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
11867         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
11868         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
11869         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
11870         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
11871         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
11872         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
11873         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
11874         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
11875         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
11876         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
11877         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11878         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11879         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11880         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
11881         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
11882         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
11883         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11884         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11885         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
11886         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
11887         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
11888         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
11889         web.c: Remove initializer for pass_data::has_execute.
11891 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
11893         * graphite-htab.h: Use hash_map instead of hash_table.
11894         * graphite-clast-to-gimple.c: Adjust.
11895         * passes.c: Use hash_map instead of hash_table.
11896         * sese.c: Likewise.
11897         * sese.h: Remove now unused code.
11899 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
11901         PR target/61599
11902         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
11903         than zero.
11905 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
11907         PR rtl-optimization/61673
11908         * combine.c (simplify_comparison): Test just mode's sign bit
11909         in tmode rather than the sign bit and any bits above it.
11911 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
11913         * graphite-isl-ast-to-gimple.c (generate_isl_context):
11914         Add __isl_give to the declaration.
11915         (generate_isl_schedule): Likewise.
11916         (scop_to_isl_ast): Likewise.
11918 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11920         * config/arm/arm.c (cortexa5_extra_costs): New table.
11921         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
11923 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
11925         PR tree-optimization/61725
11926         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
11927         range, use range_includes_zerop_p instead of integer_zerop on
11928         vr0->min, only use log2 of max if min is not negative.
11930 2014-07-08  Richard Biener  <rguenther@suse.de>
11932         * tree-ssa-dom.h (loop_depth_of_name): Remove.
11933         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
11934         restriction on loop depth difference.
11935         (record_equality): Likewise.
11936         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
11937         (loop_depth_of_name): Remove.
11938         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
11939         restriction on loop depth difference.
11940         (init_copy_prop): Likewise.
11942 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11944         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
11945         parameter.
11946         (walk_aliased_vdefs): Likewise.
11947         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
11948         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
11949         (detect_type_change_from_memory_writes): Check if entry was reached.
11951 2014-07-08  Richard Biener  <rguenther@suse.de>
11953         PR tree-optimization/61681
11954         * tree-ssa-structalias.c (find_what_var_points_to): Expand
11955         NONLOCAL inside ESCAPED.
11957 2014-07-08  Richard Biener  <rguenther@suse.de>
11959         PR tree-optimization/61680
11960         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11961         Handle properly all read-write dependences with group accesses.
11963 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
11965         PR tree-optimization/61576
11966         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
11967         block containing reduction statement is predecessor of phi basi block.
11969 2014-07-08  Marek Polacek  <polacek@redhat.com>
11971         PR c/60226
11972         * fold-const.c (round_up_loc): Change the parameter type.
11973         Remove assert.
11974         * fold-const.h (round_up_loc): Adjust declaration.
11975         * stor-layout.c (finalize_record_size): Check for too large types.
11977 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
11979         * symtab.c: Include calls.h.
11980         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
11982 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
11984         * config/rs6000/rs6000.c (output_vec_const_move): Handle
11985         little-endian code generation.
11986         * config/rs6000/spe.md (spe_evmergehi): Rename to...
11987         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
11988         (spe_evmergehilo): Rename to...
11989         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
11990         (spe_evmergelo): Rename to...
11991         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
11992         (spe_evmergelohi): Rename to...
11993         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
11994         (spe_evmergehi, spe_evmergehilo): New expanders.
11995         (spe_evmergelo, spe_evmergelohi): Likewise.
11996         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
11997         (*frob_tf_ti): Likewise.
11998         (*frob_<mode>_di_2): Likewise.
11999         (*frob_tf_di_8_2): Likewise.
12000         (*frob_di_<mode>): Likewise.
12001         (*frob_ti_tf): Likewise.
12002         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
12003         (*frob_ti_<mode>_8_2): Likewise.
12004         (*frob_ti_tf_2): Likewise.
12005         (mov_si<mode>_e500_subreg0): Rename to...
12006         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
12007         endianness only.
12008         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
12009         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
12010         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
12011         the big endianness only.
12012         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
12013         (*mov_si<mode>_e500_subreg0_2): Rename to...
12014         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
12015         big big endianness only.
12016         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
12017         (*mov_si<mode>_e500_subreg4): Rename to...
12018         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
12019         endianness only.
12020         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
12021         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
12022         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
12023         the big endianness only.
12024         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
12025         pattern.
12026         (*mov_si<mode>_e500_subreg4_2): Rename to...
12027         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
12028         endianness only.
12029         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
12030         (*mov_sitf_e500_subreg8): Rename to...
12031         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
12032         endianness only.
12033         (*mov_sitf_e500_subreg8_le): New instruction pattern.
12034         (*mov_sitf_e500_subreg8_2): Rename to...
12035         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
12036         endianness only.
12037         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
12038         (*mov_sitf_e500_subreg12): Rename to...
12039         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
12040         endianness only.
12041         (*mov_sitf_e500_subreg12_le): New instruction pattern.
12042         (*mov_sitf_e500_subreg12_2): Rename to...
12043         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
12044         endianness only.
12045         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
12047 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
12049         * asan.c (instrument_strlen_call): Do not instrument first byte
12050         in strlen if already instrumented.
12052 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12054         * config/arm/arm.opt (mwords-little-endian): Delete.
12055         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
12056         of TARGET_LITTLE_WORDS.
12057         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
12058         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
12059         warning.
12060         * doc/invoke.texi: Remove references to -mwords-little-endian.
12062 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
12064         * expmed.c (struct init_expmed_rtl): Change all fields but
12065         pow2 and cint from struct rtx_def to rtx.
12066         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
12067         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
12068         at the end again.
12070 2014-07-06  Marek Polacek  <polacek@redhat.com>
12072         PR c/6940
12073         * doc/invoke.texi: Document -Wsizeof-array-argument.
12075 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
12077         * wide-int.h (wide_int_storage): Change declaration from struct
12078         to class.
12080 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
12082         * cgraph.c (cgraph_create_indirect_edge): Update call of
12083         get_polymorphic_call_info.
12084         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
12085         (possible_polymorphic_call_targets): Add parameter call.
12086         (decl_maybe_in_construction_p): New predicate.
12087         (get_polymorphic_call_info): Add parameter call;
12088         use decl_maybe_in_construction_p.
12089         * gimple-fold.c (fold_gimple_assign): Update use of
12090         possible_polymorphic_call_targets.
12091         (gimple_fold_call): Likewise.
12092         * ipa-prop.c: Inlcude calls.h
12093         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
12094         (param_type_may_change_p): New predicate.
12095         (detect_type_change_from_memory_writes): Break out from ...
12096         (detect_type_change): ... this one; use param_type_may_change_p.
12097         (detect_type_change_ssa): Use param_type_may_change_p.
12098         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
12100 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
12102         PR target/49423
12103         * config/arm/arm-protos.h (arm_legitimate_address_p,
12104         arm_is_constant_pool_ref): Add prototypes.
12105         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
12106         (arm_is_constant_pool_ref) New function.
12107         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
12108         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
12109         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
12110         operand. Remove pool_range and neg_pool_range attributes.
12111         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
12112         pool_range and neg_pool_range attributes.
12113         * config/arm/constraints.md (Uh): New constraint.
12114         (Uq): Don't allow constant pool references.
12116 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
12118         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
12119         (move_lo_quad_internal_be_<mode>): Likewise.
12120         (move_lo_quad_<mode>): Convert to define_expand.
12121         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
12122         (aarch64_simd_move_hi_quad_be_<mode>): New.
12123         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
12124         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
12125         (aarch64_combinez_be<mode>): New.
12126         (aarch64_combine<mode>): Convert to define_expand.
12127         (aarch64_combine_internal<mode>): New.
12128         (aarch64_simd_combine<mode>): Remove bogus RTL description.
12130 2014-07-04  Tom de Vries  <tom@codesourcery.com>
12132         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
12133         combination of earlyclobber and read/write modifiers.
12135 2014-07-04  Tom de Vries  <tom@codesourcery.com>
12137         * config/aarch64/aarch64-simd.md
12138         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
12140 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
12142         PR target/61714
12143         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
12145 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
12147         PR middle-end/61654
12148         * cgraphunit.c (expand_thunk): Call free_dominance_info.
12150         PR tree-optimization/61684
12151         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
12152         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
12154 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12155             Kito Cheng  <kito@0xlab.org>
12156             Monk Chiang  <sh.chiang04@gmail.com>
12158         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
12159         (nds32_symbol_load_store_p): Move to ...
12160         (nds32_fp_as_gp_check_available): Move to ...
12161         * config/nds32/nds32-fp-as-gp.c: ... here.
12162         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
12163         extern declaration.
12165 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12166             Kito Cheng  <kito@0xlab.org>
12167             Monk Chiang  <sh.chiang04@gmail.com>
12169         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
12170         (nds32_expand_store_multiple): Move to ...
12171         (nds32_expand_movmemqi): Move to ...
12172         * config/nds32/nds32-memory-manipulation.c: ... here.
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 (nds32_byte_to_size): Move to ...
12179         (nds32_output_casesi_pc_relative): Move to ...
12180         (nds32_output_casesi): Move to ...
12181         (nds32_mem_format): Move to ...
12182         (nds32_output_16bit_store): Move to ...
12183         (nds32_output_16bit_load): Move to ...
12184         (nds32_output_32bit_store): Move to ...
12185         (nds32_output_32bit_load): Move to ...
12186         (nds32_output_32bit_load_s): Move to ...
12187         (nds32_output_stack_push): Move to ...
12188         (nds32_output_stack_pop): Move to ...
12189         * config/nds32/nds32-md-auxiliary.c: ... here.
12191 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12192             Ling-Hua Tseng  <uranus@tinlans.org>
12194         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
12195         the purpose of this file.
12197 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12198             Kito Cheng  <kito@0xlab.org>
12199             Monk Chiang  <sh.chiang04@gmail.com>
12201         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
12202         (nds32_address_cost): Move implementation to ...
12203         * config/nds32/nds32-cost.c: ... here.
12204         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
12205         (nds32_address_cost_impl): Declare.
12207 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12208             Kito Cheng  <kito@0xlab.org>
12209             Monk Chiang  <sh.chiang04@gmail.com>
12211         * config/nds32/nds32.c
12212         (nds32_consecutive_registers_load_store_p): Move to ...
12213         (nds32_valid_multiple_load_store): Move to ...
12214         (nds32_valid_stack_push_pop): Move to ...
12215         (nds32_can_use_bclr_p): Move to ...
12216         (nds32_can_use_bset_p): Move to ...
12217         (nds32_can_use_btgl_p): Move to ...
12218         (nds32_can_use_bitci_p): Move to ...
12219         * config/nds32/nds32-predicates.c: ... here.
12221 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12222             Kito Cheng  <kito@0xlab.org>
12223             Monk Chiang  <sh.chiang04@gmail.com>
12225         * config/nds32/nds32.c
12226         (nds32_expand_builtin_null_ftype_reg): Move to ...
12227         (nds32_expand_builtin_reg_ftype_imm): Move to ...
12228         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
12229         (nds32_init_builtins): Move implementation to ...
12230         (nds32_expand_builtin): Move implementation to ...
12231         * config/nds32/nds32-intrinsic.c: ... here.
12232         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
12233         (nds32_expand_builtin_impl): Declare.
12235 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12236             Kito Cheng  <kito@0xlab.org>
12237             Monk Chiang  <sh.chiang04@gmail.com>
12239         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
12240         (nds32_emit_section_tail_template): Move to ...
12241         (nds32_emit_isr_jmptbl_section): Move to ...
12242         (nds32_emit_isr_vector_section): Move to ...
12243         (nds32_emit_isr_reset_conten): Move to ...
12244         (nds32_check_isr_attrs_conflict): Move to ...
12245         (nds32_construct_isr_vectors_information): Move to ...
12246         (nds32_asm_file_start): Move implementation to ...
12247         (nds32_asm_file_end): Move implementation to ...
12248         * config/nds32/nds32-isr.c: ... here.
12249         * config/nds32/nds32-protos.h
12250         (nds32_check_isr_attrs_conflict): Declare.
12251         (nds32_construct_isr_vectors_information): Declare.
12252         (nds32_asm_file_start_for_isr): Declare.
12253         (nds32_asm_file_end_for_isr): Declare.
12255 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12256             Kito Cheng  <kito@0xlab.org>
12257             Monk Chiang  <sh.chiang04@gmail.com>
12259         * config.gcc (nds32*): Add new modules to extra_objs.
12260         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
12261         (nds32be-*-*): Likewise.
12262         * config/nds32/nds32-cost.c: New file.
12263         * config/nds32/nds32-fp-as-gp.c: New file.
12264         * config/nds32/nds32-intrinsic.c: New file.
12265         * config/nds32/nds32-isr.c: New file.
12266         * config/nds32/nds32-md-auxiliary.c: New file.
12267         * config/nds32/nds32-memory-manipulation.c: New file.
12268         * config/nds32/nds32-pipelines-auxiliary.c: New file.
12269         * config/nds32/nds32-predicates.c: New file.
12270         * config/nds32/t-nds32: New file.
12272 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
12274         PR tree-optimization/61682
12275         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
12276         using cases and when one of the operands is equal to 1.
12278 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
12280         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
12281         ashr<mode>3): Correct mode of operands[2].
12282         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
12283         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
12284         Correct mode of operands[2].  Fix split condition.
12286 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
12288         * arm.md (arch): Add armv6_or_vfpv3.
12289         (arch_enabled): Add test for the above.
12290         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
12291         on VFP9.
12292         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
12294 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
12296         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
12297         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
12298         HWI 1 and negate the unsigned value.
12299         * expmed.c (expand_sdiv_pow2): For modes wider than word always
12300         use AND instead of shift.
12301         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
12303 2014-07-03  Marek Polacek  <polacek@redhat.com>
12305         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
12306         (-fsanitize=float-divide-by-zero): Move to the table with
12307         -fsanitize=undefined suboptions.
12308         (-fsanitize=float-cast-overflow): Likewise.
12310 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
12312         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
12313         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
12314         endianness.
12316 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12318         * loop-invariant.c (struct invariant): Add a new member: eqno;
12319         (find_identical_invariants): Update eqno;
12320         (create_new_invariant): Init eqno;
12321         (get_inv_cost): Compute comp_cost with eqno;
12323 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
12325         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
12326         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
12327         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
12328         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
12329         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
12331 2014-07-02  Christian Bruel  <christian.bruel@st.com>
12333         PR target/29349
12334         PR target/53513
12335         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
12336         (make_preds_opaque): Delete.
12337         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
12338         (commit_mode_sets): New function.
12339         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
12340         Process all modes at once.
12341         * basic-block.h (pre_edge_lcm_avs): Declare.
12342         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
12343         Call clear_aux_for_edges. Fix comments.
12344         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
12345         (pre_edge_rev_lcm): Idem.
12346         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
12347         parameter.
12348         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
12349         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12350         Idem.
12351         * config/i386/i386.c (x96_emit_mode_set): Idem.
12352         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
12353         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
12354         (fpscr_toggle) Disallow from delay slot.
12355         * target.def (emit_mode_set): Add prev_mode parameter.
12356         * doc/tm.texi: Regenerate.
12358 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12360         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
12361         variable i.
12363 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
12365         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
12366         vtable_pointer_value_to_vtable): Constify.
12367         (contains_polymorphic_type_p): Declare.
12368         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
12369         vtable_pointer_value_to_vtable): Constify.
12370         (contains_polymorphic_type_p): New predicate.
12371         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
12372         polymorphic types.
12373         (ipa_set_ancestor_jf): Likewise.
12374         (detect_type_change): Return false in easy cases.
12375         (compute_complex_assign_jump_func): Require type to contain
12376         polymorphic type.
12377         (compute_known_type_jump_func): Likewise.
12379 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
12381         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
12382         Remove.
12383         (type_in_anonymous_namespace_p): Constify argument.
12384         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
12385         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
12386         (main_odr_variant): New function.
12387         (hash_type_name): Make static; update assert; do not ICE on
12388         non-records.
12389         (types_same_for_odr): Bring here from tree.c; simplify and remove
12390         old structural comparing code that doesn't work for templates.
12391         (odr_hasher::equal): Update assert.
12392         (add_type_duplicate): Return true when bases should be computed;
12393         replace incomplete loader by complete; do not output duplicated
12394         warnings; do not ICE on non-records; set odr_violated flag.
12395         (get_odr_type): Be ready to replace incomplete type by complete
12396         one; work on ODR variants instead of main variants; reorder item
12397         in array so bases have still smaller indexes.
12398         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
12399         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
12401 2014-07-01  Cary Coutant  <ccoutant@google.com>
12403         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
12404         lookup.
12405         (resolve_addr_in_expr): When replacing the rtx in a location list
12406         entry, get a new address table entry.
12407         (dwarf2out_finish): Call index_location_lists even if there are no
12408         addr_index_table entries yet.
12410 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
12412         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
12413         change for not being obvious.
12415 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
12417         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
12418         unused argument.
12420 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12422         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
12423         (vcagt_f64): Likewise.
12424         (vcale_f64): Likewise.
12425         (vcaled_f64): Likewise.
12426         (vcales_f32): Likewise.
12427         (vcalt_f64): Likewise.
12428         (vcaltd_f64): Likewise.
12429         (vcalts_f32): Likewise.
12431 2014-07-01  Marek Polacek  <polacek@redhat.com>
12433         * doc/invoke.texi: Document -Wint-conversion.
12435 2014-07-01  Marek Polacek  <polacek@redhat.com>
12437         PR c/58286
12438         * doc/invoke.texi: Document -Wincompatible-pointer-types.
12440 2014-07-01  Martin Liska  <mliska@suse.cz>
12442         IPA REF alias refactoring
12443         * cgraph.h (iterate_direct_aliases): New function.
12444         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
12445         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
12446         FOR_EACH_ALIAS added.
12447         (cgraph_for_node_and_aliases): Likewise.
12448         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
12449         * ipa-inline.c (reset_edge_caches): Likewise.
12450         (update_caller_keys): Likewise.
12451         * trans-mem.c (ipa_tm_execute): Likewise.
12452         *varpool.c (varpool_analyze_node): Likewise.
12453         (varpool_for_node_and_aliases): Likewise.
12454         * ipa-ref.h (first_alias): New function.
12455         (last_alias): Likewise.
12456         (has_aliases_p): Likewise.
12457         * ipa-ref.c (ipa_ref::remove_reference): Removal function
12458         is sensitive to IPA_REF_ALIASes.
12459         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
12460         are put at the beginning of the list.
12461         (symtab_node::iterate_direct_aliases): New function.
12463 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12465         Revert:
12466         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
12467         type is complete.
12468         (write_ts_type_common_tree_pointers): Do not stream fields not set
12469         for incomplete types; do not stream duplicated fields for variants;
12470         sanity check that variant and type match.
12471         (write_ts_type_non_common_tree_pointers): Likewise.
12472         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
12473         TYPE_SIZE whether type is complete.
12474         (lto_input_ts_type_common_tree_pointers): Do same changes as in
12475         write_ts_type_common_tree_pointers
12476         (lto_input_ts_type_non_common_tree_pointers): Likewise.
12478 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
12480         * var-tracking.c (add_stores): Return instead of asserting if old
12481         and new values for conditional store are the same.
12483 2014-06-30  Richard Henderson  <rth@redhat.com>
12485         PR rtl-opt/61608
12486         PR target/39284
12487         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
12488         the cfg if there were any changes.
12489         * passes.def: Revert move of peephole2 after reorder_blocks;
12490         move duplicate_computed_gotos before peephole2.
12492 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
12494         * except.c (emit_note_eh_region_end): New helper function.
12495         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
12496         emit EH_REGION_END note.
12497         * jump.c (cleanup_barriers): Do not split a call and its
12498         corresponding CALL_ARG_LOCATION note.
12500 2014-06-30  Jeff Law  <law@redhat.com>
12502         PR tree-optimization/61607
12503         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
12504         deeper into the SSA_NAME_VALUE chain.
12506 2014-06-30  Marek Polacek  <polacek@redhat.com>
12508         * convert.c (convert_to_integer): Don't instrument conversions if the
12509         function has no_sanitize_undefined attribute.
12510         * ubsan.c: Don't run the ubsan pass if the function has
12511         no_sanitize_undefined attribute.
12513 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
12515         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
12516         -fsanitize=undefined suboptions.
12518 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
12520         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
12521         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
12522         against bigendian and adjust indices.
12524 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
12526         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
12528 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12530         PR target/61633
12531         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
12532         Add alternative; make early clobber.  Adjust both split patterns
12533         to use operand 0 as the working register.
12535 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
12537         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
12538         as ira_object_id_map might be NULL, or 1.
12540 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12542         * loop-invariant.c (get_inv_cost): Handle register class.
12543         (gain_for_invariant): Check the register pressure of the inv
12544         and its overlapped register class, other than all.
12546 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
12548         * doc/invoke.texi (Optimize Options): Fix descriptions of
12549         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
12551 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
12553         * doc/extend.texi (Function Attributes): Update 'naked' attribute
12554         documentation.
12556 2014-06-29  Tobias Grosser <tobias@grosser.es>
12558         PR bootstrap/61650
12559         * graphite-isl-ast-to-gimple.c: Add missing guards.
12561 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
12563         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
12564         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
12565         * flag-types.h: Add new enum fgraphite_generator.
12566         * graphite-isl-ast-to-gimple.c: New.
12567         * graphite-isl-ast-to-gimple.h: New.
12568         * graphite.c (graphite_transform_loops): Add choice of Graphite
12569         code generator, which depends on flag_graphite_code_gen.
12571 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
12573         * graphite-dependences.c (subtract_commutative_associative_deps):
12574         Add NULL checking of the following variables: must_raw_no_source,
12575         may_raw_no_source, must_war_no_source, may_war_no_source,
12576         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
12577         must_war, may_war, must_waw, may_waw.
12579 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
12581         * graphite-clast-to-gimple.c: gloog is renamed to
12582         graphite_regenerate_ast_cloog.  gloog_error is renamed to
12583         graphite_regenerate_error.
12584         * graphite-clast-to-gimple.h: The definition of the struct
12585         bb_pbb_def is moved to graphite-htab.h.
12586         Add inclusion of the hash-table.h.
12587         * graphite-htab.h: The declaration of the function gloog is moved
12588         to graphite-clast-to-gimple.h and renamed to
12589         graphite_regenerate_ast_cloog.
12590         * graphite.c (graphite_transform_loops): gloog is renamed
12591         to graphite_regenerate_ast_cloog.
12593 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12595         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
12596         type is complete.
12597         (write_ts_type_common_tree_pointers): Do not stream fields not set
12598         for incomplete types; do not stream duplicated fields for variants;
12599         sanity check that variant and type match.
12600         (write_ts_type_non_common_tree_pointers): Likewise.
12601         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
12602         TYPE_SIZE whether type is complete.
12603         (lto_input_ts_type_common_tree_pointers): Do same changes as in
12604         write_ts_type_common_tree_pointers
12605         (lto_input_ts_type_non_common_tree_pointers): Likewise.
12607 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12609         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
12611 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12613         * tree-inline.c (remap_type_1): Do not duplicate fields
12614         that are shared in between type and its main variant.
12616 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12618         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
12619         of the type.
12620         (ipa_set_ancestor_jf) Likewise.
12621         (check_stmt_for_type_change): Check that we work on main variant.
12622         (detect_type_change): Look into main variant.
12623         (compute_known_type_jump_func): Check that main variant has BINFO.
12625 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12627         * ipa-devirt.c (set_type_binfo): New function.
12628         (add_type_duplicate): Use it.
12629         (get_odr_type): Sanity check that binfos points to main variants.
12630         (get_class_context): Be sure the context's outer_type is main variant.
12631         (contains_type_p): Walk main variant.
12632         (get_polymorphic_call_info_for_decl): Set outer_type to be
12633         main variant.
12634         (get_polymorphic_call_info): Likewise.
12635         (possible_polymorphic_call_targets): Sanity check that we operate
12636         on main variant.
12638 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12640         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
12642 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12644         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
12645         accidental change due to wide-int branch merge.
12647 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12649         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
12650         compressed debug support.
12651         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
12652         * configure: Regenerate.
12653         * config.in: Regenerate.
12654         * common.opt (compressed_debug_sections): New enum.
12655         (gz, gz=): New options.
12656         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
12657         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
12658         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
12659         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
12660         LINK_COMPRESS_DEBUG_SPEC.
12661         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
12662         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
12663         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
12664         (Debugging Options): Document -gz[=type].
12666 2014-06-27  Martin Jambor  <mjambor@suse.cz>
12668         PR ipa/61160
12669         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
12670         args_to_skip, use those from node instead.  Copy args_to_skip and
12671         combined_args_to_skip from node to the new thunk.
12672         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
12673         (cgraph_create_virtual_clone): Moved computation of
12674         combined_args_to_skip...
12675         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
12677 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
12679         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
12680         redundant diagnostic machinary.
12682 2014-06-27  Richard Biener  <rguenther@suse.de>
12684         * tree-ssa-math-opts.c (bswap_replace): Fix
12685         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
12687 2014-06-27  Martin Liska  <mliska@suse.cz>
12689         * gimple.h (gimple_location_safe): New function introduced.
12690         * cgraphunit.c (walk_polymorphic_call_targets): Usage
12691         of gimple_location_safe replaces gimple_location.
12692         (gimple_fold_call): Likewise.
12693         * ipa-devirt.c (ipa_devirt): Likewise.
12694         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
12695         * ipa.c (walk_polymorphic_call_targets): Likewise.
12696         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
12698 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
12700         PR tree-optimization/57233
12701         PR tree-optimization/61299
12702         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
12703         functions.
12704         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
12705         would be lowered to scalar shifts, check if corresponding
12706         shifts and vector BIT_IOR_EXPR are supported and don't lower
12707         or lower just to narrower vector type in that case.
12708         * expmed.c (expand_shift_1): Fix up handling of vector
12709         shifts and rotates.
12711 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
12713         PR target/61586
12714         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
12716 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
12718         * doc/invoke.texi (-fsemantic-interposition): Document.
12719         * common.opt (fsemantic-interposition): New flag.
12720         * varasm.c (decl_replaceable_p): Use it.
12722 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12724         PR target/61542
12725         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
12726         extraction other than index 3.
12728 2014-06-26  Teresa Johnson  <tejohnson@google.com>
12730         * doc/invoke.texi: Fix typo.
12731         * dumpfile.c: Add support for documented -fdump-* options
12732         optimized/missed/note/optall.
12734 2014-06-26  Martin Jambor  <mjambor@suse.cz>
12736         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
12737         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
12738         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
12739         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
12740         * opts.c (default_options_optimization): Set
12741         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
12742         * doc/invoke.texi (allow-load-data-races)
12743         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
12744         (allow-store-data-races): Document the new default.
12746 2014-06-26  Martin Jambor  <mjambor@suse.cz>
12748         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
12749         renamed to ipa_impossible_devirt_target.  Fix typo.
12750         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
12751         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
12752         ipa_impossible_devirt_target.
12754 2014-06-26  Richard Biener  <rguenther@suse.de>
12756         PR tree-optimization/61607
12757         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
12758         explaining why we restrict copies on loop depth.
12759         * tree-ssa-dom.c (cprop_operand): Remove restriction on
12760         on loop depth.
12761         (record_equivalences_from_phis): Instead add it here.
12763 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
12765         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
12766         (LTO_WRAPPER_OBJS): New variable.
12767         (lto-wrapper$(exeext)): Use it.
12768         * collect2.c: Include "collect-utils.h".
12769         (verbose, debug): Remove variables.
12770         (at_file_supplied): No longer static.
12771         (tool_name): New variable.
12772         (do_wait, fork_execute, maybe_unlink): Don't declare.
12773         (tool_cleanup): No longer static.
12774         (notice): Remove function.
12775         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
12776         fork_execute calls.
12777         (collect_wait, do_wait, collect_execute): Remove functions.
12778         (maybe_unlink): No longer static.
12779         * collect2.h (verbose, debug): Don't declare.
12780         (at_file_supplied): Declare.
12781         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
12782         changed.
12783         (collect_execute): Replace with implementation from collect2, plus a
12784         new arg use_atfile.  All callers changed.
12785         (collect_wait): Replace with implementation from collect2.
12786         (maybe_unlink_file): Remove function.
12787         (fork_execute): Replace with implementation from collect2, plus a
12788         new arg use_atfile.  All callers changed.
12789         (do_wait): Add call to utils_cleanup to the error path.
12790         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
12791         (tool_cleanup): Adjust declarations.
12792         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
12793         * tlink.c: Include "collect-utils.h".
12794         (tlink_execute): New arg use_atfile.  All callers changed.
12795         (tlink_init, tlink_execute): Remove declarations.
12797         * collect-utils.c (save_temps): New variable.
12798         (do_wait): Use it instead of debug.  Use fatal_error.
12799         * collect-utils.h (save_temps): Declare.
12800         * collect2.c (verbose): Rename from vflag.  All uses changed.
12801         (tool_cleanup): New function, copied from collect_atexit.
12802         (collect_atexit, handler): Just call it.
12803         * collect2.h (verbose): Declaration renamed from vflag.
12804         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
12805         debug.
12807         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
12808         (lto-wrapper$(exeext)): Link with collect-utils.o.
12809         * collect-utils.c: New file.
12810         * collect-utils.h: New file.
12811         * lto-wrapper.c: Include "collect-utils.h".
12812         (args_name): Delete variable.
12813         (tool_name): New variable.
12814         (tool_cleanup): New function.
12815         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
12816         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
12817         (fork_execute): Remove functions.
12819 2014-06-26  Nick Clifton  <nickc@redhat.com>
12821         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
12823         * doc/extend.texi (Function Attributes): Fix typo in description
12824         of RX vector attribute.
12826 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
12828         * config.gcc (supported_defaults): Error when passing either
12829         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
12831 2014-06-26  Richard Biener  <rguenther@suse.de>
12833         * tree-ssa-dom.c (cprop_operand): Remove restriction on
12834         propagating volatile pointers.
12836 2014-06-26  Richard Biener  <rguenther@suse.de>
12838         PR tree-optimization/61607
12839         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
12840         loop if we redirected its latch edge.
12841         (thread_block_1): Do not cancel loops prematurely.
12843 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
12845         * toplev.c (backend_init_target): Move init_emit_regs and
12846         init_regs to...
12847         (backend_init) ... here; skip ira_init_once and backend_init_target.
12848         (target_reinit) ... and here; clear
12849         this_target_rtl->lang_dependent_initialized.
12850         (lang_dependent_init_target): Clear
12851         this_target_rtl->lang_dependent_initialized;
12852         break out rtl initialization to ...
12853         (initialize_rtl): ... here; call also backend_init_target
12854         and ira_init_once.
12855         * toplev.h (initialize_rtl): New function.
12856         * function.c: Include toplev.h
12857         (init_function_start): Call initialize_rtl.
12858         * rtl.h (target_rtl): Add target_specific_initialized,
12859         lang_dependent_initialized.
12861 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
12862             Jakub Jelinek  <jakub@redhat.com>
12864         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
12866 2014-06-25  Tom de Vries  <tom@codesourcery.com>
12868         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
12870 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12872         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
12873         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
12874         Issue a strict overflow warning if appropriate.
12876 2014-06-25  Martin Liska  <mliska@suse.cz>
12878         IPA REF refactoring
12879         * Makefile.in: Removed header file (ipa-ref-inline.h).
12880         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
12881         called.
12882         (cgraph_speculative_call_info): Likewise.
12883         (cgraph_for_node_thunks_and_aliases): Likewise.
12884         (cgraph_for_node_and_aliases): Likewise.
12885         (verify_cgraph_node): Likewise.
12886         * cgraph.h: Batch of IPA REF functions become member functions of
12887         symtab_node: add_reference, maybe_add_reference, clone_references,
12888         clone_referring, clone_reference, find_reference,
12889         remove_stmt_references, remove_all_references,
12890         remove_all_referring, dump_references, dump_referring,
12891         has_alias_p, iterate_reference, iterate_referring.
12892         * cgraphbuild.c (record_reference): New IPA REF function used.
12893         (record_type_list): Likewise.
12894         (record_eh_tables): Likewise.
12895         (mark_address): Likewise.
12896         (mark_load): Likewise.
12897         (mark_store): Likewise.
12898         (pass_build_cgraph_edges): Likewise.
12899         (rebuild_cgraph_edge): Likewise.
12900         (cgraph_rebuild_references): Likewise.
12901         (pass_remove_cgraph_callee_edges): Likewise.
12902         * cgraphclones.c (cgraph_clone_node): Likewise.
12903         (cgraph_create_virtual_clone): Likewise.
12904         (cgraph_materialize_clone): Likewise.
12905         (cgraph_materialize_all_clones): Likewise.
12906         * cgraphunit.c (cgraph_reset_node): Likewise.
12907         (cgraph_reset_node): Likewise.
12908         (analyze_function): Likewise.
12909         (assemble_thunks_and_aliases): Likewise.
12910         (expand_function): Likewise.
12911         * ipa-comdats.c (propagate_comdat_group): Likewise.
12912         (enqueue_references): Likewise.
12913         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
12914         (create_specialized_node): Likewise.
12915         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
12916         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
12917         * ipa-inline.c (reset_edge_caches): Likewise.
12918         (update_caller_keys): Likewise.
12919         (execute): Likewise.
12920         * ipa-prop.c (remove_described_reference): Likewise.
12921         (propagate_controlled_uses): Likewise.
12922         (ipa_edge_duplication_hook): Likewise.
12923         (ipa_modify_call_arguments): Likewise.
12924         * ipa-pure-const.c (propagate_pure_const): Likewise.
12925         * ipa-ref-inline.h: Header file removed, functions moved
12926         to symtab_node class.
12927         * ipa-ref.c (remove_reference): New class member function.
12928         (cannot_lead_to_return): New class member function.
12929         (referring_ref_list): Likewise.
12930         (referred_ref_list): Likewise.
12931         Rest of functions moved to symtab_node class.
12932         * ipa-ref.h: New member functions remove_reference,
12933         cannot_lead_to_return, referring_ref_list, referred_ref_list added
12934         to ipa_ref class.
12935         ipa_ref_list class has new member functions: first_reference,
12936         first_referring, clear, nreferences.
12937         * ipa-reference.c (analyze_function): New IPA REF function used.
12938         (write_node_summary_p): Likewise.
12939         (ipa_reference_write_optimization_summary): Likewise.
12940         * ipa-split.c (split_function): Likewise.
12941         * ipa-utils.c (ipa_reverse_postorder): Likewise.
12942         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
12943         (function_and_variable_visibility): Likewise.
12944         * ipa.c (has_addr_references_p): Likewise.
12945         (process_references): Argument type changed.
12946         (symtab_remove_unreachable_nodes): New IPA REF function used.
12947         (process_references): Likewise.
12948         (set_writeonly_bit): Likewise.
12949         * lto-cgraph.c: Implementation of new symtab_node member functions
12950         that uses new IPA REF functions.
12951         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
12952         function used.
12953         * lto-streamer-out.c (output_symbol_p): Likewise.
12954         * lto-streamer.h (referenced_from_this_partition_p): Argument type
12955         changed.
12956         * symtab.c: Implementation of new IPA REF API.
12957         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
12958         (ipa_tm_create_version): Likewise.
12959         (ipa_tm_execute): Likewise.
12960         * tree-emutls.c (gen_emutls_addr): Likewise.
12961         * tree-inline.c (copy_bb): Likewise.
12962         (delete_unreachable_blocks_update_callgraph): Likewise.
12963         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
12964         (varpool_for_node_and_aliases): Likewise.
12966 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
12968         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
12970 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
12972         PR bootstrap/61598
12973         * fold-const.c (fold_checksum_tree): Use a hash_table of const
12974         tree_node * instead of tree_node *.
12975         (fold): Adjust.
12976         (print_fold_checksum): Likewise.
12977         (fold_check_failed): Likewise.
12978         (debug_fold_checksum): Likewise.
12979         (fold_build1_stat_loc): Likewise.
12980         (fold_build2_stat_loc): Likewise.
12981         (fold_build3_stat_loc): Likewise.
12982         (fold_build_call_array_loc): Likewise.
12984 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
12986         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
12987         implementation with call to...
12988         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
12989         function.
12990         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
12991         Declare.
12993 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
12995         PR tree-optimization/57742
12996         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
12997         after replacing the statement.
12999 2014-06-25  Nick Clifton  <nickc@redhat.com>
13001         * config/v850/v850.c (GHS_default_section_names): Change to const
13002         char * type.
13003         (GHS_current_section_names): Likewise.
13004         (v850_insert_attributes): Do not build strings, just assign the
13005         names directly.  Change the type of 'chosen_section' to const
13006         char*.
13007         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
13008         directly to the array entry.
13009         * config/v850/v850.h (GHS_default_section_names): Change to const
13010         char * type.
13011         (GHS_current_section_names): Likewise.
13013 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
13015         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
13016         (LANG_HOOKS_DECLS): Add it.
13017         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
13018         has correct type.
13019         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
13020         * langhooks.h (struct lang_hooks_for_decls): Add
13021         omp_clause_linear_ctor hook.
13022         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
13023         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
13024         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
13025         combined simd loop use omp_clause_linear_ctor hook.
13027 2014-06-24  Cong Hou  <congh@google.com>
13029         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
13030         pattern recognition.
13031         (type_conversion_p): PROMOTION is true if it's a type promotion
13032         conversion, and false otherwise.  Return true if the given expression
13033         is a type conversion one.
13034         * tree-vectorizer.h: Adjust the number of patterns.
13035         * tree.def: Add SAD_EXPR.
13036         * optabs.def: Add sad_optab.
13037         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
13038         * expr.c (expand_expr_real_2): Likewise.
13039         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13040         * gimple.c (get_gimple_rhs_num_ops): Likewise.
13041         * optabs.c (optab_for_tree_code): Likewise.
13042         * tree-cfg.c (estimate_operator_cost): Likewise.
13043         * tree-ssa-operands.c (get_expr_operands): Likewise.
13044         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
13045         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
13046         * doc/generic.texi: Add document for SAD_EXPR.
13047         * doc/md.texi: Add document for ssad and usad.
13049 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
13051         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
13052         qualification in cast.
13054 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
13056         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
13057         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
13058         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
13059         (tree_function_decl): ... here.
13060         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
13061         streaming of vindex to ...
13062         (write_ts_function_decl_tree_pointers): ... here.
13063         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
13064         Do not stream DECL_VINDEX.
13065         (lto_input_ts_function_decl_tree_pointers): Stream it here.
13067 2014-06-24  Catherine Moore  <clm@codesourcery.com>
13068             Sandra Loosemore  <sandra@codesourcery.com>
13070         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
13071         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
13072         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
13074 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
13076         * doc/invoke.texi (Warning Options): Remove duplicated
13077         -Wmaybe-uninitialized.
13079 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
13081         PR tree-optimization/57742
13082         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
13083         (handle_builtin_malloc, handle_builtin_memset): New functions.
13084         (strlen_optimize_stmt): Call them.
13085         * passes.def: Move strlen after loop+dom but before vrp.
13087 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
13089         PR target/61570
13090         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
13091         model family 6 CPU with has_longmode never use a CPU without
13092         64-bit support.
13094 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13096         PR target/61570
13097         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
13098         the last change.
13100 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
13102         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
13103         * dominance.c (iterate_fix_dominators): Use hash_map instead of
13104         pointer_map.
13105         * hash-map.h: New file.
13106         * ipa-comdats.c: Use hash_map instead of pointer_map.
13107         * ipa.c: Likewise.
13108         * lto-section-out.c: Adjust.
13109         * lto-streamer.h: Replace pointer_map with hash_map.
13110         * symtab.c (verify_symtab): Likewise.
13111         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
13112         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
13113         * tree-streamer.h: Likewise.
13114         * tree-streamer.c: Adjust.
13115         * pointer-set.h: Remove pointer_map.
13117 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
13119         * hash-table.h: Add a template arg to choose between storing values
13120         and storing pointers to values, and then provide partial
13121         specializations for both.
13122         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
13123         should store, not the type values should point to.
13124         * tree-into-ssa.c (var_info_hasher): Likewise.
13125         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
13126         * tree-complex.c: Adjust.
13127         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
13128         table instead of int_tree_map *.
13129         * tree-parloops.c: Adjust.
13130         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
13131         type is being stored.
13132         * tree-vectorizer.c: Adjust.
13134 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
13136         * hash-table.h: Remove a layer of indirection from hash_table so that
13137         it contains the hash table's data instead of a pointer to the data.
13138         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
13139         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
13140         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
13141         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
13142         fold-const.c, gcse.c, ggc-common.c,
13143         gimple-ssa-strength-reduction.c, gimplify.c,
13144         graphite-clast-to-gimple.c, graphite-dependences.c,
13145         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
13146         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
13147         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
13148         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
13149         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
13150         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
13151         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
13152         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
13153         tree-ssa-live.c, tree-ssa-loop-im.c,
13154         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
13155         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
13156         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
13157         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
13158         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
13159         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
13160         vtable-verify.c, vtable-verify.h: Adjust.
13162 2014-06-24  Richard Biener  <rguenther@suse.de>
13164         PR tree-optimization/61572
13165         * tree-ssa-sink.c (statement_sink_location): Do not sink
13166         loads from hard registers.
13168 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
13170         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
13171         not mentioned in clauses use private clause if the iterator is
13172         declared in #pragma omp for simd, and when adding lastprivate
13173         instead, add it to the outer #pragma omp for too.  Diagnose
13174         if the variable is private in outer context.  For simd collapse > 1
13175         loops, replace all iterators with temporaries.
13176         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
13177         same even in collapse > 1 loops.
13179         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
13180         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
13181         non-NULL.
13182         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
13183         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
13184         non-NULL.
13185         (gimplify_adjust_omp_clauses): Likewise.
13186         * omp-low.c (lower_rec_simd_input_clauses,
13187         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
13188         safelen the same as safelen(1).
13189         * tree-nested.c (convert_nonlocal_omp_clauses,
13190         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
13191         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
13192         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
13193         Fixup handling of GIMPLE_OMP_TARGET.
13194         (convert_tramp_reference_stmt, convert_gimple_call): Handle
13195         GIMPLE_OMP_TARGET.
13197 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
13199         PR tree-optimization/61554
13200         * tree-ssa-propagate.c: Include "bitmap.h".
13201         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
13202         properly update constructor/destructor.
13203         (substitute_and_fold_dom_walker::before_dom_children):
13204         Remove call to gimple_purge_dead_eh_edges, add bb->index to
13205         need_eh_cleaup instead.
13206         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
13207         need_eh_cleanup.
13209 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
13211         * varpool.c (dump_varpool_node): Dump used_by_single_function.
13212         * tree-pass.h (make_pass_ipa_single_use): New pass.
13213         * cgraph.h (used_by_single_function): New flag.
13214         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
13215         Stream it.
13216         * passes.def (pass_ipa_single_use): Scedule.
13217         * ipa.c (BOTTOM): New macro.
13218         (meet): New function
13219         (propagate_single_user): New function.
13220         (ipa_single_use): New function.
13221         (pass_data_ipa_single_use): New pass.
13222         (pass_ipa_single_use): New pass.
13223         (pass_ipa_single_use::gate): New gate.
13224         (make_pass_ipa_single_use): New function.
13226 2014-06-23  Kai Tietz  <ktietz@redhat.com>
13228         PR target/39284
13229         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
13230         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
13232 2014-06-23  Richard Biener  <rguenther@suse.de>
13234         * tree-ssa-loop.c (gate_loop): New function.
13235         (pass_tree_loop::gate): Call it.
13236         (pass_data_tree_no_loop, pass_tree_no_loop,
13237         make_pass_tree_no_loop): New.
13238         * tree-vectorizer.c: Include tree-scalar-evolution.c
13239         (pass_slp_vectorize::execute): Initialize loops and SCEV if
13240         required.
13241         (pass_slp_vectorize::clone): New method.
13242         * timevar.def (TV_TREE_NOLOOP): New.
13243         * tree-pass.h (make_pass_tree_no_loop): Declare.
13244         * passes.def (pass_tree_no_loop): New pass group with
13245         SLP vectorizer.
13247 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13249         PR target/61570
13250         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
13251         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
13253 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
13255         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
13256         "yes" where needed.
13258 2014-06-23  Alan Modra  <amodra@gmail.com>
13260         PR bootstrap/61583
13261         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
13262         to zero on debug statements.
13264 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
13266         PR target/60825
13267         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
13268         Ignore third operand if present by marking qualifier_internal.
13270         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
13272         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
13273         vector extension.
13274         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
13275         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
13276         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
13277         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
13278         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
13279         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
13280         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
13281         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
13282         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
13283         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
13284         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
13285         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
13286         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
13287         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
13288         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
13289         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
13290         logic in GCC vector extensions
13292         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
13293         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
13294         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
13295         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
13296         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
13297         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
13298         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
13299         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
13300         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
13301         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
13303         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
13305         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
13306         extensions.
13308         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
13309         (vget_low_s64): Use __GET_LOW macro.
13310         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
13311         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
13312         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
13313         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
13314         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
13316         (vcombine_s64): Use GCC vector extensions; remove cast.
13317         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
13318         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
13319         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
13320         Fix type signature; remove cast.
13322 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
13324         PR target/60825
13325         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
13326         V1DFmode.
13327         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
13328         add V1DFmode
13329         (BUILTIN_VD1): New.
13330         (BUILTIN_VD_RE): Remove.
13331         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
13332         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
13333         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
13334         variant but not df.
13335         (vreinterpretv1df*, vreinterpret*v1df): New.
13336         (vreinterpretdf*, vreinterpret*df): Remove.
13337         * config/aarch64/aarch64-simd.md (aarch64_create,
13338         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
13339         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
13340         (VD1): New.
13341         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
13342         (vcreate_f64): Remove cast, use v1df builtin.
13343         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
13344         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
13345         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
13346         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
13347         vmov_n_f64, vst1_f64): Use gcc vector extensions.
13348         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
13349         add range check using __builtin_aarch64_im_lane_boundsi.
13350         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
13351         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
13352         type signature, use gcc vector extensions.
13353         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
13354         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
13355         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
13356         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
13357         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
13358         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
13359         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
13360         vreinterpret_u64_f64): Use v1df builtin not df.
13362 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
13364         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
13365         vector registers.
13367 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
13369         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
13370         priority directly.
13372 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13374         * loop-invariant.c (pre_check_invariant_p): New function.
13375         (find_invariant_insn): Call pre_check_invariant_p.
13377 2014-06-22  Richard Henderson  <rth@redhat.com>
13379         PR target/61565
13380         * compare-elim.c (struct comparison): Add eh_note.
13381         (find_comparison_dom_walker::before_dom_children): Don't eliminate
13382         a redundant comparison in a different EH region.  Purge EH edges if
13383         necessary.
13385 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13387         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
13388         (var_shift): Use it.
13389         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
13390         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
13391         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
13392         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
13393         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
13394         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
13395         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
13396         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
13397         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
13398         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
13399         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
13400         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
13401         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
13402         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
13403         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
13404         *rotldi3_internal15be): Use the new attribute.  Merge register and
13405         integer alternatives.
13407 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13409         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
13410         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
13411         split, *ashrdi3_internal3 and split): Delete, merge into...
13412         (ashr<mode>3): New expander.
13413         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
13414         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
13416 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13418         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
13419         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
13420         *rotldi3_internal3 and split): Delete, merge into...
13421         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
13422         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
13423         Use "rotlw" extended mnemonic.
13425 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13427         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
13428         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
13429         and split, *ashldi3_internal3 and split): Delete, merge into...
13430         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
13431         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
13433 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13435         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
13436         (lshrsi3, two anonymous define_insns and define_splits,
13437         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
13438         *lshrdi3_internal3 and split): Delete, merge into...
13439         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
13440         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
13442 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13444         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
13445         Remove "O" alternative.
13447 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
13449         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
13450         (mips_move_from_gpr_cost): Likewise.
13451         (mips_register_move_cost): Update accordingly.
13452         (mips_secondary_reload_class): Remove name of in_p.
13454 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
13456         PR target/61503
13457         * config/i386/i386.md (x86_64_shrd, x86_shrd,
13458         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
13460 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13462         * config/nios2/nios2.c: Include "builtins.h".
13464 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
13466         * cgraph.h (tls_model_names): New variable.
13467         * print-tree.c (print_node): Simplify.
13468         * varpool.c (tls_model_names): New variable.
13469         (dump_varpool_node): Output tls model.
13471 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
13473         * ipa-visibility.c (function_and_variable_visibility): Disable
13474         temporarily local aliases for some targets.
13476 2014-06-20  Marek Polacek  <polacek@redhat.com>
13478         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
13479         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
13480         into SANITIZE_UNDEFINED.
13481         * doc/invoke.texi: Describe -fsanitize=bounds.
13482         * gimplify.c (gimplify_call_expr): Add gimplification of internal
13483         functions created in the FEs.
13484         * internal-fn.c: Move "internal-fn.h" after "tree.h".
13485         (expand_UBSAN_BOUNDS): New function.
13486         * internal-fn.def (UBSAN_BOUNDS): New internal function.
13487         * internal-fn.h: Don't define internal functions here.
13488         * opts.c (common_handle_option): Add -fsanitize=bounds.
13489         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
13490         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
13491         * tree-core.h: Define internal functions here.
13492         (struct tree_base): Add ifn field.
13493         * tree-pretty-print.c: Include "internal-fn.h".
13494         (dump_generic_node): Handle functions without CALL_EXPR_FN.
13495         * tree.c (get_callee_fndecl): Likewise.
13496         (build_call_expr_internal_loc): New function.
13497         * tree.def (CALL_EXPR): Update description.
13498         * tree.h (CALL_EXPR_IFN): Define.
13499         (build_call_expr_internal_loc): Declare.
13500         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
13501         types.
13502         (ubsan_type_descriptor): Change bool parameter to enum
13503         ubsan_print_style.  Adjust the code.  Add handling of
13504         UBSAN_PRINT_ARRAY.
13505         (ubsan_expand_bounds_ifn): New function.
13506         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
13507         (ubsan_build_overflow_builtin): Likewise.
13508         (instrument_bool_enum_load): Likewise.
13509         (ubsan_instrument_float_cast): Likewise.
13510         * ubsan.h (enum ubsan_print_style): New enum.
13511         (ubsan_expand_bounds_ifn): Declare.
13512         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
13514 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
13516         * config/rs6000/rs6000.md: Append `DONE' to preparation
13517         statements of `bswap' pattern splitters.
13519 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13521         * target.def (call_fusage_contains_non_callee_clobbers): Update
13522         definition.
13523         * doc/tm.texi: Regenerate.
13525 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
13526             Max Ostapenko  <m.ostapenko@partner.samsung.com>
13528         PR sanitizer/61547
13529         * asan.c (instrument_strlen_call): Fixed instrumentation of
13530         trailing byte.
13532 2014-06-20  Martin Jambor  <mjambor@suse.cz>
13534         PR ipa/61540
13535         * ipa-prop.c (impossible_devirt_target): New function.
13536         (try_make_edge_direct_virtual_call): Use it, also instead of
13537         asserting.
13539 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
13540             Max Ostapenko  <m.ostapenko@partner.samsung.com>
13542         PR sanitizer/61530
13543         * asan.c (build_check_stmt): Add condition.
13545 2014-06-20  Martin Jambor  <mjambor@suse.cz>
13547         PR ipa/61211
13548         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
13549         expanded clones.
13551 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13553         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
13554         Update comments.
13555         (VCONQ): Make comment more helpful.
13556         (VCON): Delete.
13557         * config/aarch64/aarch64-simd.md
13558         (aarch64_sqdmulh_lane<mode>):
13559         Use VCOND for operands 2.  Update lane checking and flipping logic.
13560         (aarch64_sqrdmulh_lane<mode>): Likewise.
13561         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
13562         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
13563         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
13564         attribute of operand 3 to VCOND.
13565         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
13566         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13567         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
13568         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
13569         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13570         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
13571         define_insn.
13572         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
13573         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
13574         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
13575         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
13576         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
13577         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
13578         operand to VCOND.  Update lane flipping and bounds checking logic.
13579         (aarch64_sqdmlal2_lane<mode>): Likewise.
13580         (aarch64_sqdmlsl_lane<mode>): Likewise.
13581         (aarch64_sqdmull_lane<mode>): Likewise.
13582         (aarch64_sqdmull2_lane<mode>): Likewise.
13583         (aarch64_sqdmlal_laneq<mode>):
13584         Replace VCON usage with VCONQ.
13585         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
13586         (aarch64_sqdmlal2_laneq<mode>): Emit
13587         aarch64_sqdmlal2_laneq<mode>_internal insn.
13588         Replace VCON with VCONQ.
13589         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
13590         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
13591         (aarch64_sqdmull_laneq<mode>): Emit
13592         aarch64_sqdmull_laneq<mode>_internal insn.
13593         Replace VCON with VCONQ.
13594         (aarch64_sqdmull2_laneq<mode>): Emit
13595         aarch64_sqdmull2_laneq<mode>_internal insn.
13596         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
13597         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
13598         of 3rd argument to int16x4_t.
13599         (vqdmlalh_lane_s16): Likewise.
13600         (vqdmlslh_lane_s16): Likewise.
13601         (vqdmull_high_lane_s16): Likewise.
13602         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
13603         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
13604         (vqdmlsl_lane_s16): Likewise.
13605         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
13606         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
13607         (vqdmlals_lane_s32): Likewise.
13608         (vqdmlsls_lane_s32): Likewise.
13609         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
13610         (vqdmulls_lane_s32): Likewise.
13611         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
13612         (vqdmlsl_lane_s32): Likewise.
13613         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
13614         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
13615         (vqrdmulhh_lane_s16): Likewise.
13616         (vqdmlsl_high_lane_s16): Likewise.
13617         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
13618         (vqdmlsl_high_lane_s32): Likewise.
13619         (vqrdmulhs_lane_s32): Likewise.
13621 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13623         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
13624         get_call_reg_set_usage.
13626 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13628         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
13629         it contains all call_used_regs.
13631 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13633         * final.c (collect_fn_hard_reg_usage): Add and use variable
13634         function_used_regs.
13636 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
13638         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
13639         (set_init_priority, get_init_priority, set_fini_priority,
13640         get_fini_priority): New methods.
13641         * tree.c (init_priority_for_decl): Remove.
13642         (init_ttree): Do not initialize init priority.
13643         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
13644         (decl_priority_info): Remove.
13645         (decl_init_priority_insert): Rewrite.
13646         (decl_fini_priority_insert): Rewrite.
13647         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
13648         tree_priority_map_marked_p): Remove.
13649         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
13650         * lto-streamer-out.c (hash_tree): Do not hash priorities.
13651         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
13652         not output priorities.
13653         (pack_ts_function_decl_value_fields): Likewise.
13654         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
13655         not input priorities.
13656         (unpack_ts_function_decl_value_fields): Likewise.
13657         * symtab.c (symbol_priority_map): Declare.
13658         (init_priority_hash): Declare.
13659         (symtab_unregister_node): Unregister from priority hash, too.
13660         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
13661         New methods.
13662         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
13663         (symbol_priority_info): New function.
13664         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
13665         New methods.
13666         * tree-core.h (tree_priority_map): Remove.
13668 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
13670         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
13671         0xff to uint64_t before shifting it up.
13673 2014-06-20  Julian Brown  <julian@codesourcery.com>
13674             Chung-Lin Tang  <cltang@codesourcery.com>
13676         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
13677         TARGET_THUMB1_ONLY. Add comments.
13679 2014-06-19  Tom de Vries  <tom@codesourcery.com>
13681         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
13682         return type to void.
13683         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
13685 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13687         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
13688         as "move", from depends_on.
13690 2014-06-19  Terry Guo  <terry.guo@arm.com>
13692         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
13693         stage.
13695 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
13697         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
13698         Remove cr5.
13699         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
13701 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
13703         PR target/61550
13704         * config/sh/sh.c (prepare_move_operands): Don't process TLS
13705         addresses here if reload in progress or completed.
13707 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
13709         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
13710         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
13711         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
13712         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
13713         (mips_register_priority): New function that implements the target
13714         hook TARGET_REGISTER_PRIORITY.
13715         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
13716         (mips_lra_p): Likewise for TARGET_LRA_P.
13717         (TARGET_REGISTER_PRIORITY): Define macro.
13718         (TARGET_SPILL_CLASS): Likewise.
13719         (TARGET_LRA_P): Likewise.
13720         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
13721         classes.
13722         (REG_CLASS_NAMES): Likewise.
13723         (REG_CLASS_CONTENTS): Likewise.
13724         (BASE_REG_CLASS): Use M16_SP_REGS.
13725         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
13726         New set attribute to enable alternatives depending on the register
13727         allocator used.
13728         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
13729         (*lea64): Disable pattern for MIPS16.
13730         * config/mips/mips.opt (mlra): New option.
13732 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
13734         * lra-constraints.c (base_to_reg): New function.
13735         (process_address): Use new function.
13737 2014-06-18  Tom de Vries  <tom@codesourcery.com>
13739         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
13740         * config/aarch64/aarch64.c
13741         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
13742         (aarch64_emit_call_insn): New function.
13743         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
13744         of emit_call_insn.
13745         * config/aarch64/aarch64.md (define_expand "call_internal")
13746         (define_expand "call_value_internal", define_expand "sibcall_internal")
13747         (define_expand "sibcall_value_internal"): New.
13748         (define_expand "call", define_expand "call_value")
13749         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
13750         expand variant and aarch64_emit_call_insn.
13752 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
13753             Tom de Vries  <tom@codesourcery.com>
13755         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
13756         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13757         Redefine to true.
13758         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
13759         clobbers to CALL_INSN_FUNCTION_USAGE.
13760         (define_expand "sibcall_internal")
13761         (define_expand "sibcall_value_internal"): New.
13762         (define_expand "call", define_expand "call_value"): Add argument to
13763         arm_emit_call_insn.
13764         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
13765         (define_expand "sibcall_value"): Use sibcall_value_internal and
13766         arm_emit_call_insn.
13768 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13770         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
13772 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13774         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
13775         __udivmoddi4.
13777 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13779         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
13780         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
13781         annotations. Fix DWARF information.
13783 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13785         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
13786         __udivmoddi4, and fixups for negative operands.
13788 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13790         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
13792 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13794         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
13795         to __udivmoddi4.
13797 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13799         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
13800         manipulation.
13802 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13804         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
13805         describing register usage on function entry and exit.
13807 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13809         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
13810         (__aeabi_ldivmod): Fix whitespace.
13812 2014-06-18  Andreas Schwab  <schwab@suse.de>
13814         * doc/md.texi (Standard Names): Use @itemx for grouped items.
13815         Remove blank line after @item.
13817 2014-06-18  Richard Henderson  <rth@redhat.com>
13819         PR target/61545
13820         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
13822 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13824         * config/arm/arm.c (neon_vector_mem_operand): Allow register
13825         POST_MODIFY for neon loads and stores.
13826         (arm_print_operand): Output post-index register for neon loads and
13827         stores.
13829 2014-06-18  Richard Biener  <rguenther@suse.de>
13831         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
13833 2014-06-18  Richard Biener  <rguenther@suse.de>
13835         * tree-pass.h (make_pass_dce_loop): Remove.
13836         * passes.def: Replace pass_dce_loop with pass_dce.
13837         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
13838         changed free niter estimates and reset the scev cache.
13839         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
13840         make_pass_dce_loop): Remove.
13841         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
13842         (fini_copy_prop): Return whether something changed.  Always
13843         let substitute_and_fold perform DCE and free niter estimates
13844         and reset the scev cache if so.
13845         (execute_copy_prop): If sth changed schedule cleanup-cfg.
13846         (pass_data_copy_prop): Do not unconditionally schedule
13847         cleanup-cfg or update-ssa.
13849 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
13851         PR tree-optimization/61518
13852         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13853         reduction var is used in reduction stmt or phi-function only.
13855 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13857         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
13859 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13861         PR tree-optimization/61517
13862         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
13863         whose rhs's first tree is the source expression instead of the
13864         expression itself.
13865         (find_bswap_or_nop): Likewise.
13866         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
13867         gimple stmt whose rhs's first tree is the source. In the memory source
13868         case, move the stmt to be replaced close to one of the original load to
13869         avoid the problem of a store between the load and the stmt's original
13870         location.
13871         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
13872         signature.
13874 2014-06-18  Andreas Schwab  <schwab@suse.de>
13876         PR rtl-optimization/54555
13877         * postreload.c (move2add_use_add2_insn): Substitute
13878         STRICT_LOW_PART only if it is cheaper.
13880 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
13882         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
13883         Do not use unspec as call operand.  Use memory_operand instead of
13884         memory_nox32_operand and add "m" operand constraint.  Disable
13885         pattern for TARGET_X32.
13886         (*sibcall_pop_memory): Ditto.
13887         (*sibcall_value_memory): Ditto.
13888         (*sibcall_value_pop_memory): Ditto.
13889         (sibcall peepholes): Merge SImode and DImode patterns using
13890         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
13891         Disable pattern for TARGET_X32.  Check if eliminated register is
13892         really dead after call insn.  Generate call RTX without unspec operand.
13893         (sibcall_value peepholes): Ditto.
13894         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
13895         instead of memory_nox32_operand.  Check if eliminated register is
13896         really dead after call insn. Generate call RTX without unspec operand.
13897         (sibcall_value_pop peepholes): Ditto.
13898         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
13900 2014-06-18  Terry Guo  <terry.guo@arm.com>
13902         PR target/61544
13903         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
13904         reach the head.
13906 2014-06-18  Olivier Hainque  <hainque@adacore.com>
13908         * tree-core.h (tree_block): Add an "end_locus" field, allowing
13909         memorization of the end of block source location.
13910         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
13911         * gimplify.c (gimplify_bind_expr): Propagate the block start and
13912         end source location info we have on the block entry/exit code we
13913         generate.
13915 2014-06-18  Richard Biener  <rguenther@suse.de>
13917         * common.opt (fssa-phiopt): New option.
13918         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
13919         but not with -Og.
13920         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
13921         * doc/invoke.texi (-fssa-phiopt): Document.
13923 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13925         * genattrtab.c (n_bypassed): New variable.
13926         (process_bypasses): Initialise n_bypassed.
13927         Count number of bypassed reservations.
13928         (make_automaton_attrs): Allocate space for bypassed reservations
13929         rather than number of bypasses.
13931 2014-06-18  Richard Biener  <rguenther@suse.de>
13933         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
13934         we propagated anything.
13935         (substitute_and_fold_dom_walker::before_dom_children): Something
13936         changed if we propagated into PHI arguments.
13937         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
13938         we removed a stmt.
13940 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
13942         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
13943         vector case.
13944         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
13945         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
13946         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
13947         Introduces alternative way of loads group permutaions.
13948         (vect_transform_grouped_load): Try alternative way of permutations.
13950 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
13952         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
13953         changed in ORT_TARGET region, don't jump to do_outer.
13954         (struct gimplify_adjust_omp_clauses_data): New type.
13955         (gimplify_adjust_omp_clauses_1): Adjust for data being
13956         a struct gimplify_adjust_omp_clauses_data pointer instead
13957         of tree *.  Pass pre_p as a new argument to
13958         lang_hooks.decls.omp_finish_clause hook.
13959         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
13960         splay_tree_foreach to pass both list_p and pre_p.
13961         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
13962         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
13963         gimplify_adjust_omp_clauses callers.
13964         * langhooks.c (lhd_omp_finish_clause): New function.
13965         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
13966         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
13967         * langhooks.h (struct lang_hooks_for_decls): Add a new
13968         gimple_seq * argument to omp_finish_clause hook.
13969         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
13970         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
13971         (scan_omp_parallel, lower_omp_for): When adding
13972         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
13973         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
13974         * tree-nested.c (convert_nonlocal_omp_clauses,
13975         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
13976         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
13978 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
13980         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
13981         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
13983 2014-06-17  Xinliang David Li  <davidxl@google.com>
13985         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
13986         * passes.c (pass_init_dump_file): Do not set initialize
13987         flag to false unconditionally.
13989 2014-06-17  Richard Biener  <rguenther@suse.de>
13991         * genopinit.c (main): Use vec<>::qsort method.
13992         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
13993         Likewise.
13994         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
13996 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
13998         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
13999         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
14000         (mips_move_to_gpr_cost): Remove ST_REGS case.
14001         (mips_move_from_gpr_cost): Likewise.
14002         (mips_register_move_cost): Likewise.
14003         (mips_secondary_reload_class): Likewise.
14005 2014-06-17  Richard Biener  <rguenther@suse.de>
14007         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
14008         (pass_all_optimizations): Move 3rd copy-prop pass from after
14009         fre to before ifcombine/phiopt.
14011 2014-06-17  Richard Biener  <rguenther@suse.de>
14013         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
14014         and allow all blocks to be forwarders.
14016 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
14018         PR target/61483
14019         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
14020         variable 'size'; calculate 'size' right in the front; use
14021         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
14022         pcum->aapcs_stack_words.
14024 2014-06-17  Nick Clifton  <nickc@redhat.com>
14026         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
14027         (umulhi3, mulsidi3, umulsidi3): Likewise.
14029 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
14031         PR middle-end/61508
14032         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
14033         check for section name.
14035 2014-06-17  Richard Biener  <rguenther@suse.de>
14037         * tree-ssa-propagate.c: Include domwalk.h.
14038         (substitute_and_fold): Outline main worker into a domwalker ...
14039         (substitute_and_fold_dom_walker::before_dom_children): ... here.
14040         Schedule stmts we can fully propagate for removal.  Remove
14041         poor-mans DCE.
14042         (substitute_and_fold): Apply a dominator walk to perform
14043         substitution.  Process stmts scheduled for removal here.
14045 2014-06-17  Richard Biener  <rguenther@suse.de>
14047         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
14048         of PHI node moving.
14050 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
14052         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
14053         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
14054         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14055         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
14056         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
14057         TARGET_HARD_FLOAT.
14058         (get_fpscr) : Likewise.
14060 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
14062         PR rtl-optimization/61325
14063         * lra-constraints.c (valid_address_p): Add forward declaration.
14064         (simplify_operand_subreg): Check address validity before and after
14065         alter_reg of memory subreg.
14067 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
14069         * config/i386/i386.c (decide_alg): Correctly handle
14070         maximum size of stringop algorithm.
14072 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
14074         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
14076 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
14078         PR rtl-optimization/61522
14079         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
14081 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
14083         Revert:
14084         * symtab.c (symtab_node::reset_section): New method.
14085         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14086         for localization.
14087         * cgraph.h (reset_section): Declare.
14088         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14089         do not consider comdat locals.
14090         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14091         for new symbol.
14092         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14093         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14094         reset sections of symbols dragged out of the comdats.
14095         (function_and_variable_visibility): Reset sections of
14096         localized symbols.
14098 2014-06-16  Richard Biener  <rguenther@suse.de>
14100         PR tree-optimization/61482
14101         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
14102         [-INF(OVF), +INF(OVF)] range.
14104 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14106         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
14107         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
14108         handling 32-bit multiplication.
14110 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
14112         PR middle-end/61430
14113         * lra-lives.c (process_bb_lives): Skip creating copy during
14114         insn scan when src/dest has constrained to same regno.
14116 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
14118         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
14119         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
14121 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
14123         * asan.c (check_func): New function.
14124         (maybe_create_ssa_name): Likewise.
14125         (build_check_stmt_with_calls): Likewise.
14126         (use_calls_p): Likewise.
14127         (report_error_func): Change interface.
14128         (build_check_stmt): Allow non-integer lengths; add support
14129         for new parameter.
14130         (asan_instrument): Likewise.
14131         (instrument_mem_region_access): Moved code to build_check_stmt.
14132         (instrument_derefs): Likewise.
14133         (instrument_strlen_call): Likewise.
14134         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
14135         * doc/invoke.texi: Describe new parameter.
14136         * params.def: Define new parameter.
14137         * params.h: Likewise.
14138         * sanitizer.def: Describe new builtins.
14140 2014-06-16  Richard Biener  <rguenther@suse.de>
14142         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14143         Make all defs available at the end.
14144         (eliminate): If we remove a PHI node schedule cfg-cleanup.
14146 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
14148         PR plugins/45078
14149         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
14151 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
14153         PR bootstrap/61516
14154         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
14155         initialization.  Replace remaining use of uid.
14157 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
14159         * c-family/c-common.c (handle_tls_model_attribute): Use
14160         set_decl_tls_model.
14161         * c-family/c-common.c (handle_tls_model_attribute): Use
14162         set_decl_tls_model.
14163         * cgraph.h (struct varpool_node): Add tls_model.
14164         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
14165         * tree.h (DECL_TLS_MODEL): Update.
14166         (DECL_THREAD_LOCAL_P): Check that variable is static.
14167         (decl_tls_model): Declare.
14168         (set_decl_tls_model): Declare.
14169         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
14170         set symbol prorperties.
14171         (get_emutls_init_templ_addr): Cleanup.
14172         (new_emutls_decl): Update.
14173         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
14174         (lto_input_varpool_node): Likewise.
14175         * lto-streamer-out.c (hash_tree): Likewise.
14176         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14177         not stream DECL_TLS_MODEL.
14178         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
14179         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
14181 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14183         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
14185 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14187         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
14188         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
14189         lists.
14190         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
14191         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
14192         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
14193         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
14194         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
14195         (df_get_artificial_defs, df_get_artificial_uses)
14196         (df_single_def, df_single_use): Update accordingly.
14197         (df_refs_chain_dump): Take the first element in a linked list as
14198         parameter, rather than a pointer to an array of pointers.
14199         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
14200         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
14201         (df_chain_create_bb_process_use): Likewise.
14202         (df_md_bb_local_compute_process_def): Likewise.
14203         * fwprop.c (process_defs, process_uses): Likewise.
14204         (register_active_defs, update_uses): Likewise.
14205         (forward_propagate_asm): Update for new df_ref linking.
14206         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
14207         (df_null_ref_rec, df_null_mw_rec): Likewise.
14208         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
14209         explicitly.
14210         (df_scan_free_bb_info): Remove check for null artificial_defs.
14211         (df_install_ref_incremental): Adjust for new df_ref linking.
14212         Use a single-element insertion rather than a full sort.
14213         (df_ref_chain_delete_du_chain): Take the first element
14214         in a linked list as parameter, rather than a pointer to an array of
14215         pointers.
14216         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
14217         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
14218         (df_insn_info_delete): Remove check for null defs and call to
14219         df_scan_free_mws_vec.
14220         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
14221         null rather than df_null_*_rec.
14222         (df_insn_rescan_debug_internal): Likewise, and update null
14223         checks in the same way.  Remove check for null defs.
14224         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
14225         Move a single element rather doing a full sort.
14226         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
14227         linking.
14228         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
14229         Initialize df_ref and df_mw_hardreg lists to null rather than
14230         df_null_*_rec.
14231         (df_ref_compare): Take df_refs as parameter, transferring the
14232         old interface to...
14233         (df_ref_ptr_compare): ...this new function.
14234         (df_sort_and_compress_refs): Update accordingly.
14235         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
14236         old interface to...
14237         (df_mw_ptr_compare): ...this new function.
14238         (df_sort_and_compress_mws): Update accordingly.
14239         (df_install_refs, df_install_mws): Return a linked list rather than
14240         an array of pointers.
14241         (df_refs_add_to_chains): Assert that old lists are empty rather
14242         than freeing them.
14243         (df_insn_refs_verify): Don't handle null defs speciailly.
14244         * web.c (union_match_dups): Update for new df_ref linking.
14246 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14248         * df.h (df_ref_create, df_ref_remove): Delete.
14249         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
14250         (df_ref_remove): Likewise.
14252 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14254         * df.h (df_single_def, df_single_use): New functions.
14255         * ira.c (find_moveable_pseudos): Use them.
14257 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14259         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
14260         * df-problems.c (df_note_bb_compute): Use it.
14261         * regstat.c (regstat_bb_compute_ri): Likewise.
14263 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14265         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
14266         * cse.c (cse_extended_basic_block): Use them.
14267         * dce.c (mark_artificial_use): Likewise.
14268         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
14269         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14270         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
14271         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
14272         (df_simulate_initialize_backwards): Likewise.
14273         (df_simulate_finalize_backwards): Likewise.
14274         (df_simulate_initialize_forwards): Likewise.
14275         (df_md_simulate_artificial_defs_at_top): Likewise.
14276         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14277         * regrename.c (init_rename_info): Likewise.
14278         * regstat.c (regstat_bb_compute_ri): Likewise.
14279         (regstat_bb_compute_calls_crossed): Likewise.
14281 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14283         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
14284         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
14285         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
14286         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
14287         * combine.c (create_log_links): Likewise.
14288         * compare-elim.c (find_flags_uses_in_insn): Likewise.
14289         (try_eliminate_compare): Likewise.
14290         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
14291         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
14292         (remove_reg_equal_equiv_notes_for_defs): Likewise.
14293         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
14294         (word_dce_process_block, dce_process_block): Likewise.
14295         * ddg.c (def_has_ccmode_p): Likewise.
14296         * df-core.c (df_bb_regno_first_def_find): Likewise.
14297         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
14298         * df-problems.c (df_rd_simulate_one_insn): Likewise.
14299         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14300         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
14301         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
14302         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
14303         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
14304         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
14305         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
14306         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
14307         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14308         * fwprop.c (local_ref_killed_between_p): Likewise.
14309         (all_uses_available_at, free_load_extend): Likewise.
14310         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
14311         * hw-doloop.c (scan_loop): Likewise.
14312         * ifcvt.c (dead_or_predicable): Likewise.
14313         * init-regs.c (initialize_uninitialized_regs): Likewise.
14314         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
14315         (process_bb_node_lives): Likewise.
14316         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
14317         (find_moveable_pseudos): Likewise.
14318         * loop-invariant.c (check_dependencies, record_uses): Likewise.
14319         * recog.c (peep2_find_free_register): Likewise.
14320         * ree.c (get_defs): Likewise.
14321         * regstat.c (regstat_bb_compute_ri): Likewise.
14322         (regstat_bb_compute_calls_crossed): Likewise.
14323         * sched-deps.c (find_inc, find_mem): Likewise.
14324         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
14325         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
14326         * shrink-wrap.c (requires_stack_frame_p): Likewise.
14327         (prepare_shrink_wrap): Likewise.
14328         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
14329         * web.c (union_defs, pass_web::execute): Likewise.
14330         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
14331         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
14333 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
14335         * lra-assign.c (assign_by_spills): Add code to assign vector regs
14336         to inheritance pseudos.
14337         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
14339 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
14341         PR target/61415
14342         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
14343         (BU_MISC_2): Rename to ...
14344         (BU_LDBL128_2): ... this.
14345         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
14346         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
14347         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
14348         RS6000_BTM_LDBL128.
14349         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
14350         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
14351         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
14352         (unpacktf_1): Likewise.
14353         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
14354         (__builtin_longdouble_dw1): Likewise.
14355         * doc/sourcebuild.texi (longdouble128): Document.
14357 2014-06-13  Jeff Law  <law@redhat.com>
14359         PR rtl-optimization/61094
14360         PR rtl-optimization/61446
14361         * ree.c (combine_reaching_defs): Get the mode for the copy from
14362         the extension insn rather than the defining insn.
14364 2014-06-13  Dehao Chen  <dehao@google.com>
14366         * dwarf2out.c (add_linkage_name): Emit more linkage name.
14368 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
14370         * doc/install.texi (--enable-linker-plugin-configure-flags)
14371         (--enable-linker-plugin-flags): Document new flags.
14373 2014-06-13  Martin Jambor  <mjambor@suse.cz>
14375         PR ipa/61186
14376         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
14377         cache_token if returning early.
14379 2014-06-13  Nick Clifton  <nickc@redhat.com>
14381         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
14382         requested alignment is active.
14383         (LABEL_ALIGN): Likewise.
14384         (LOOP_ALIGN): Likewise.
14386 2014-06-13  Richard Biener  <rguenther@suse.de>
14388         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14389         Rewrite to propagate the VN result into all uses where
14390         possible and to remove stmts becoming dead because of that.
14391         (eliminate): Generalize stmt removal handling, remove in
14392         reverse dominator order to support proper debug stmt
14393         generation.  Update stmts before removing stmts.
14394         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
14396 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14398         PR tree-optimization/61375
14399         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
14400         symbolic number cannot be represented in an uint64_t.
14401         (find_bswap_or_nop_1): Likewise.
14403 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
14405         * symtab.c (symtab_node::reset_section): New method.
14406         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14407         for localization.
14408         * cgraph.h (reset_section): Declare.
14409         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14410         do not consider comdat locals.
14411         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14412         for new symbol.
14413         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14414         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14415         reset sections of symbols dragged out of the comdats.
14416         (function_and_variable_visibility): Reset sections of
14417         localized symbols.
14419 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
14421         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
14422         to use symtab and decl_binds_to_current_def_p
14423         * tree-vectorizer.c (increase_alignment): Increase alignment
14424         of alias target, too.
14426 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
14428         PR middle-end/61486
14429         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
14430         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
14431         if outer combined construct is distribute.
14432         (gimplify_omp_for): For OMP_DISTRIBUTE set
14433         gimplify_omp_ctxp->distribute.
14434         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
14435         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
14436         mapping into decl map.
14438 2014-06-12  Jason Merrill  <jason@redhat.com>
14440         * common.opt (fabi-version): Change default to 0.
14442 2014-06-12  Jason Merrill  <jason@redhat.com>
14444         * toplev.c (process_options): Reject -fabi-version=1.
14446 2014-06-12  Jeff Law  <law@redhat.com>
14448         PR tree-optimization/61009
14449         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
14450         value when we stop processing a block due to problematic PHIs.
14452 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
14454         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
14455         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
14456         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
14457         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
14458         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
14459         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
14460         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
14461         are not in the spec.
14463 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
14465         PR target/59843
14466         * config/aarch64/aarch64-modes.def: Add V1DFmode.
14467         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
14468         Support V1DFmode.
14470 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
14472         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
14474 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
14476         PR target/61443
14477         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
14478         loading from address spaces.
14480 2014-06-12  Martin Liska  <mliska@suse.cz>
14482         PR ipa/61462
14483         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
14484         statement is reachable.
14486 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
14488         * symtab.c (section_hash): New hash.
14489         (symtab_unregister_node): Clear section before freeing.
14490         (hash_section_hash_entry): New haser.
14491         (eq_sections): New function.
14492         (symtab_node::set_section_for_node): New method.
14493         (set_section_1): Update.
14494         (symtab_node::set_section): Take string instead of tree as parameter.
14495         (symtab_resolve_alias): Update.
14496         * cgraph.h (section_hash_entry_d): New structure.
14497         (section_hash_entry): New typedef.
14498         (cgraph_node): Change comdat_group_ to x_comdat_group,
14499         change section_ to x_section and turn into section_hash_entry;
14500         update accestors; put set_section_for_node offline.
14501         * tree.c (decl_section_name): Turn into string.
14502         (set_decl_section_name): Change parameter to be string.
14503         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
14504         * sdbout.c (sdbout_one_type): Update.
14505         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
14506         * varasm.c (IN_NAMED_SECTION, get_named_section,
14507         resolve_unique_section, hot_function_section, get_named_text_section,
14508         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
14509         make_decl_rtl, default_unique_section): Update.
14510         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
14511         (c6x_elf_unique_section): Update.
14512         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
14513         * config/pa/pa.c (pa_function_section): Update.
14514         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
14515         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
14516         * config/arc/arc.c (arc_in_small_data_p): Update.
14517         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
14518         * config/mcore/mcore.c (mcore_unique_section): Update.
14519         * config/mips/mips.c (mips16_build_function_stub): Update.
14520         (mips16_build_call_stub): Update.
14521         (mips_function_rodata_section): Update.
14522         (mips_in_small_data_p): Update.
14523         * config/score/score.c (score_in_small_data_p): Update.
14524         * config/rx/rx.c (rx_in_small_data): Update.
14525         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
14526         (rs6000_xcoff_asm_named_section): Update.
14527         (rs6000_xcoff_unique_section): Update.
14528         * config/frv/frv.c (frv_string_begins_with): Update.
14529         (frv_in_small_data_p): Update.
14530         * config/v850/v850.c (v850_encode_data_area): Update.
14531         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
14532         (bfin_handle_l1_data_attribute): Update.
14533         (bfin_handle_l2_attribute): Update.
14534         * config/mep/mep.c (mep_unique_section): Update.
14535         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
14536         Update.
14537         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
14538         (h8300_handle_tiny_data_attribute): Update.
14539         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
14540         (m32r_in_small_data_p): Update.
14541         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
14542         * config/i386/i386.c (ix86_in_large_data_p): Update.
14543         * config/i386/winnt.c (i386_pe_unique_section): Update.
14544         * config/darwin.c (darwin_function_section): Update.
14545         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
14546         * tree-emutls.c (get_emutls_init_templ_addr): Update.
14547         (new_emutls_decl): Update.
14548         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
14549         input_varpool_node): Update.
14550         (ead_string_cst): Turn to ...
14551         (read_string): ... this one.
14552         * dwarf2out.c (secname_for_decl): Update.
14553         * asan.c (asan_protect_global): Update.
14555 2014-06-11  DJ Delorie  <dj@redhat.com>
14557         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
14558         cache lines.
14559         * config/rx/rx.c (rx_option_override): Likewise.
14560         (rx_align_for_label): Likewise.
14562         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
14564 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
14566         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
14567         prototype.
14569 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14571         * common.md: New file.
14572         * doc/md.texi: Update description of generic, machine-independent
14573         constraints.
14574         * config/s390/constraints.md (e): Delete.
14575         * Makefile.in (md_file): Include common.md.
14576         * config/m32c/t-m32c (md_file): Likewise.
14577         * genpreds.c (general_mem): New array.
14578         (generic_constraint_letters): Remove constraints now defined by
14579         common.md.
14580         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
14581         Allow the first character to be '<' or '>' as well.
14582         * genoutput.c (general_mem): New array.
14583         (indep_constraints): Remove constraints now defined by common.md.
14584         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
14585         Remove special handling of 'm'.
14586         * ira-costs.c (record_reg_classes): Remove special handling of
14587         constraints now defined by common.md.
14588         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14589         * ira-lives.c (single_reg_class): Likewise.
14590         (ira_implicitly_set_insn_hard_regs): Likewise.
14591         * lra-constraints.c (reg_class_from_constraints): Likewise.
14592         (process_alt_operands, process_address, curr_insn_transform): Likewise.
14593         * postreload.c (reload_cse_simplify_operands): Likewise.
14594         * reload.c (push_secondary_reload, scratch_reload_class)
14595         (find_reloads, alternative_allows_const_pool_ref): Likewise.
14596         * reload1.c (maybe_fix_stack_asms): Likewise.
14597         * targhooks.c (default_secondary_reload): Likewise.
14598         * stmt.c (parse_output_constraint): Likewise.
14599         * recog.c (preprocess_constraints): Likewise.
14600         (constrain_operands, peep2_find_free_register): Likewise.
14601         (asm_operand_ok): Likewise, but add a comment saying why 'o'
14602         must be handled specially.
14604 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14606         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
14607         * genpreds.c (have_const_dbl_constraints): Delete.
14608         (add_constraint): Don't set it.
14609         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
14610         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
14611         constraints using the lookup_constraint logic.
14612         * ira-lives.c (single_reg_class): Likewise.
14613         * ira.c (ira_setup_alts): Likewise.
14614         * lra-constraints.c (process_alt_operands): Likewise.
14615         * recog.c (asm_operand_ok, constrain_operands): Likewise.
14616         * reload.c (find_reloads): Likewise.
14618 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14620         * genpreds.c (const_int_start, const_int_end): New variables.
14621         (choose_enum_order): Output CONST_INT constraints before memory
14622         constraints.
14623         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
14624         Add CT_CONST_INT.
14625         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
14626         * ira.c (ira_setup_alts): Likewise.
14627         * lra-constraints.c (process_alt_operands): Likewise.
14628         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14629         * reload.c (find_reloads): Likewise.
14631 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14633         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
14634         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
14635         * recog.c (preprocess_constraints): Update accordingly.
14637 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14639         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
14640         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
14641         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
14642         * genpreds.c (print_type_tree): New function.
14643         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
14644         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
14645         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
14646         Write out enum constraint_type and get_constraint_type.
14647         * lra-constraints.c (satisfies_memory_constraint_p): Take a
14648         constraint_num rather than a constraint string.
14649         (satisfies_address_constraint_p): Likewise.
14650         (reg_class_from_constraints): Avoid old constraint macros.
14651         (process_alt_operands, process_address_1): Likewise.
14652         (curr_insn_transform): Likewise.
14653         * ira-costs.c (record_reg_classes): Likewise.
14654         (record_operand_costs): Likewise.
14655         * ira-lives.c (single_reg_class): Likewise.
14656         (ira_implicitly_set_insn_hard_regs): Likewise.
14657         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14658         * postreload.c (reload_cse_simplify_operands): Likewise.
14659         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14660         (constrain_operands, peep2_find_free_register): Likewise.
14661         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
14662         (find_reloads, alternative_allows_const_pool_ref): Likewise.
14663         * reload1.c (maybe_fix_stack_asms): Likewise.
14664         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14665         * targhooks.c (default_secondary_reload): Likewise.
14666         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
14667         to EXTRA_CONSTRAINT_STR.
14668         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
14670 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14672         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
14673         (write_constraint_satisfied_p_array): ...this new function.
14674         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
14675         an array.
14676         (write_insn_preds_c): Update accordingly.
14678 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14680         * genpreds.c (write_lookup_constraint): Rename to...
14681         (write_lookup_constraint_1): ...this.
14682         (write_lookup_constraint_array): New function.
14683         (write_tm_preds_h): Define lookup_constraint as an inline function
14684         that uses write_lookup_constraint_array where possible.
14685         (write_insn_preds_c): Update for the changes above.
14687 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14689         * doc/md.texi (regclass_for_constraint): Rename to...
14690         (reg_class_for_constraint): ...this.
14691         * genpreds.c (num_constraints, enum_order, register_start)
14692         (register_end, satisfied_start, memory_start, memory_end)
14693         (address_start, address_end): New variables.
14694         (add_constraint): Count the number of constraints.
14695         (choose_enum_order): New function.
14696         (write_enum_constraint_num): Iterate over enum_order.
14697         (write_regclass_for_constraint): Rename to...
14698         (write_reg_class_for_constraint_1): ...this and update output
14699         accordingly.
14700         (write_constraint_satisfied_p): Rename to...
14701         (write_constraint_satisfied_p_1): ...this and update output
14702         accordingly.  Do nothing if all extra constraints are register
14703         constraints.
14704         (write_insn_extra_memory_constraint): Delete.
14705         (write_insn_extra_address_constraint): Delete.
14706         (write_range_function): New function.
14707         (write_tm_preds_h): Define constraint_satisfied_p and
14708         reg_class_for_constraint as inline functions that do a range check
14709         before calling the out-of-line function.  Use write_range_function
14710         to implement insn_extra_{register,memory,address}_constraint,
14711         the first of which is new.
14712         (write_insn_preds_c): Update after above changes to write_* functions.
14713         (main): Call choose_enum_order.
14715 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14717         PR tree-optimization/61306
14718         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
14719         expression instead of its size.
14720         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
14721         false to prevent optimization when the result is unpredictable due to
14722         arithmetic right shift of signed type with highest byte is set.
14723         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
14724         (init_symbolic_number): Likewise.
14725         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
14726         when the result is unpredictable due to sign extension.
14728 2014-06-11  Terry Guo  <terry.guo@arm.com>
14730         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
14731         (*thumb1_addsi3): Ditto.
14732         (*thumb_subdi3): Ditto.
14733         (thumb1_subsi3_insn): Ditto.
14734         (*thumb_mulsi3): Ditto.
14735         (*thumb_mulsi3_v6): Ditto.
14736         (*thumb1_andsi3_insn): Ditto.
14737         (thumb1_bicsi3): Ditto.
14738         (*thumb1_iorsi3_insn): Ditto.
14739         (*thumb1_xorsi3_insn): Ditto.
14740         (*thumb1_ashlsi3): Ditto.
14741         (*thumb1_ashrsi3): Ditto.
14742         (*thumb1_lshrsi3): Ditto.
14743         (*thumb1_rotrsi3): Ditto.
14744         (*thumb1_negdi2): Ditto.
14745         (*thumb1_negsi2): Ditto.
14746         (*thumb1_abssi2): Ditto.
14747         (*thumb1_neg_abssi2): Ditto.
14748         (*thumb1_one_cmplsi2): Ditto.
14749         (*thumb1_zero_extendhisi2): Ditto.
14750         (*thumb1_zero_extendqisi2): Ditto.
14751         (*thumb1_zero_extendqisi2_v6): Ditto.
14752         (thumb1_extendhisi2): Ditto.
14753         (thumb1_extendqisi2): Ditto.
14754         (*thumb1_movdi_insn): Ditto.
14755         (*thumb1_movsi_insn): Ditto.
14756         (*thumb1_movhi_insn): Ditto.
14757         (thumb_movhi_clobber): Ditto.
14758         (*thumb1_movqi_insn): Ditto.
14759         (*thumb1_movhf): Ditto.
14760         (*thumb1_movsf_insn): Ditto.
14761         (*thumb_movdf_insn): Ditto.
14762         (movmem12b): Ditto.
14763         (movmem8b): Ditto.
14764         (cbranchqi4): Ditto.
14765         (cbranchsi4_insn): Ditto.
14766         (cbranchsi4_scratch): Ditto.
14767         (*negated_cbranchsi4): Ditto.
14768         (*tbit_cbranch): Ditto.
14769         (*tlobits_cbranch): Ditto.
14770         (*tstsi3_cbranch): Ditto.
14771         (*cbranchne_decr1): Ditto.
14772         (*addsi3_cbranch): Ditto.
14773         (*addsi3_cbranch_scratch): Ditto.
14774         (*thumb_cmpdi_zero): Ditto.
14775         (cstoresi_eq0_thumb1): Ditto.
14776         (cstoresi_ne0_thumb1): Ditto.
14777         (*cstoresi_eq0_thumb1_insn): Ditto.
14778         (*cstoresi_ne0_thumb1_insn): Ditto.
14779         (cstoresi_nltu_thumb1): Ditto.
14780         (cstoresi_ltu_thumb1): Ditto.
14781         (thumb1_addsi3_addgeu): Ditto.
14782         (*thumb_jump): Ditto.
14783         (*call_reg_thumb1_v5): Ditto.
14784         (*call_reg_thumb1): Ditto.
14785         (*call_value_reg_thumb1_v5): Ditto.
14786         (*call_value_reg_thumb1): Ditto.
14787         (*call_insn): Ditto.
14788         (*call_value_insn): Ditto.
14789         (thumb1_casesi_internal_pic): Ditto.
14790         (thumb1_casesi_dispatch): Ditto.
14791         (*thumb1_indirect_jump): Ditto.
14792         (prologue_thumb1_interwork): Ditto.
14793         (*epilogue_insns): Ditto.
14794         (consttable_1): Ditto.
14795         (consttable_2): Ditto.
14796         (tablejump): Ditto.
14797         (*thumb1_tablejump): Ditto.
14798         (thumb_eh_return): Ditto.
14799         (define_peephole2): Two of them are thumb1 only and got moved into
14800         new file thumb1.md.
14801         (define_split): Six of them are thumb1 only and got moved into new
14802         file thumb1.md.
14803         * config/arm/thumb1.md: New file comprised of above thumb1 only
14804         patterns.
14806 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14808         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
14809         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
14810         dependencies.
14811         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
14812         (aarch64_crc_builtin_datum): New struct.
14813         (aarch64_crc_builtin_data): New.
14814         (aarch64_init_crc32_builtins): New function.
14815         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
14816         (aarch64_crc32_expand_builtin): New.
14817         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
14818         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14819         __ARM_FEATURE_CRC32 when appropriate.
14820         (TARGET_CRC32): Define.
14821         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
14822         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
14823         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
14824         (aarch64_<crc_variant>): New pattern.
14825         * config/aarch64/arm_acle.h: New file.
14826         * config/aarch64/iterators.md (CRC): New int iterator.
14827         (crc_variant, crc_mode): New int attributes.
14828         * doc/aarch64-acle-intrinsics.texi: New file.
14829         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
14830         Include aarch64-acle-intrinsics.texi.
14832 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
14834         * tree-vect-data-refs.c (vect_grouped_store_supported): New
14835         check for stores group of length 3.
14836         (vect_permute_store_chain): New permutations for stores group of
14837         length 3.
14838         * tree-vect-stmts.c (vect_model_store_cost): Change cost
14839         of vec_perm_shuffle for the new permutations.
14841 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
14843         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
14844         table rewriting temporarily on targets not supporting ONE_ONLY.
14846 2014-06-11  Richard Biener  <rguenther@suse.de>
14848         PR middle-end/61437
14849         Revert
14850         2014-06-04  Richard Biener  <rguenther@suse.de>
14852         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
14853         TREE_PUBLIC and DECL_EXTERNAL decls.
14855 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
14857         * varasm.c (set_implicit_section): New function.
14858         (resolve_unique_section): Use it to set implicit section
14859         for aliases, too.
14860         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
14861         (default_function_section): Likewise.
14862         (decl_binds_to_current_def_p): Constify argument.
14863         * varasm.h (decl_binds_to_current_def_p): Update prototype.
14864         * asan.c (asan_protect_global): Use
14865         symtab_get_node (decl)->implicit_section.
14866         * symtab.c (dump_symtab_base): Dump implicit sections.
14867         (verify_symtab_base): Verify sanity of sectoins and comdats.
14868         (symtab_resolve_alias): Alias share the section of its target.
14869         (set_section_1): New function.
14870         (symtab_node::set_section): Move here, recurse to aliases.
14871         (verify_symtab): Check for duplicated symtab lists.
14872         * tree-core.h (implicit_section_name_p): Remove.
14873         * tree-vect-data-refs.c: Include varasm.h.
14874         (vect_can_force_dr_alignment_p): Fix conditional on when
14875         decl bints to current definition; use
14876         symtab_get_node (decl)->implicit_section.
14877         * cgraph.c (cgraph_make_node_local_1): Fix section set.
14878         * cgraph.h (struct symtab_node): Add implicit_section.
14879         (set_section): Rename to ...
14880         (set_section_for_node): ... this one.
14881         (set_section): Declare.
14882         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
14883         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
14884         input_overwrite_node, input_varpool_node): Stream implicit_section.
14885         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
14886         removal; it will fail in LTO.
14888 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14890         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
14891         Change second alternative type to f_mcr.
14892         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
14893         and 12th alternatives' types to f_mcr and f_mrc.
14894         (*movdi_aarch64): Same for 12th and 13th alternatives.
14895         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
14896         (aarch64_movtilow_tilow): Change type to fmov.
14898 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
14900         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
14901         (aarch64_save_or_restore_callee_save_registers): Fix layout.
14903 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14905         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
14906         New expander.
14907         (aarch64_sqrdmulh_lane<mode>): Likewise.
14908         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14909         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14910         (aarch64_sqdmulh_laneq<mode>): New expander.
14911         (aarch64_sqrdmulh_laneq<mode>): Likewise.
14912         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
14913         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
14914         (aarch64_sqdmulh_lane<mode>): New expander.
14915         (aarch64_sqrdmulh_lane<mode>): Likewise.
14916         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
14917         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
14918         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
14919         (aarch64_sqdmlal_laneq<mode>): Likewise.
14920         (aarch64_sqdmlsl_lane<mode>): Likewise.
14921         (aarch64_sqdmlsl_laneq<mode>): Likewise.
14922         (aarch64_sqdmlal2_lane<mode>): Likewise.
14923         (aarch64_sqdmlal2_laneq<mode>): Likewise.
14924         (aarch64_sqdmlsl2_lane<mode>): Likewise.
14925         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
14926         (aarch64_sqdmull_lane<mode>): Likewise.
14927         (aarch64_sqdmull_laneq<mode>): Likewise.
14928         (aarch64_sqdmull2_lane<mode>): Likewise.
14929         (aarch64_sqdmull2_laneq<mode>): Likewise.
14931 2014-06-10  Richard Biener  <rguenther@suse.de>
14933         PR tree-optimization/61438
14934         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
14935         (eliminate_dom_walker::before_dom_children): Only try to inhibit
14936         insertion of IVs if running PRE.
14937         (eliminate): Adjust.
14938         (pass_pre::execute): Likewise.
14939         (pass_fre::execute): Likewise.
14941 2014-06-10  Richard Biener  <rguenther@suse.de>
14943         PR middle-end/61456
14944         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14945         Do not use the main variant for the type comparison.
14946         (ncr_compar): Likewise.
14947         (nonoverlapping_component_refs_p): Likewise.
14949 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14951         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
14952         REG_CFA_RESTORE mode.
14954 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
14956         * config/i386/i386.c (expand_vec_perm_pblendv): New.
14957         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
14958         expand_vec_perm_pblendv.
14960 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14962         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
14963         available.
14964         Simplify description of __crc32d and __crc32cd intrinsics.
14965         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
14966         availability.
14968 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
14970         PR lto/61334
14971         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
14972         * config.in: Regenerate.
14973         * configure: Likewise.
14975 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
14977         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
14978         and public vars.
14979         (intersect_static_var_sets): Remove.
14980         (propagate): Do not prune local statics.
14982 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
14984         PR fortran/60928
14985         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
14986         Set lastprivate_firstprivate even if omp_private_outer_ref
14987         langhook returns true.
14988         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
14989         langhook, call unshare_expr on new_var and call
14990         build_outer_var_ref to get the last argument.
14992 2014-06-10  Marek Polacek  <polacek@redhat.com>
14994         PR c/60988
14995         * doc/extend.texi: Add cindex for transparent_union.
14997 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14999         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
15000         init_symbolic_number ().
15002 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
15004         PR middle-end/61141
15005         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
15006         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
15007         (verify_rtl_sharing): Likewise.
15009 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
15011         PR c++/54442
15012         * tree.c (build_qualified_type): Use a canonical type for
15013         TYPE_CANONICAL.
15015 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15017         * config/arm/arm-modes.def: Remove XFmode.
15019 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
15021         PR target/61062
15022         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
15023         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
15024         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
15025         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
15026         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
15027         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
15028         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
15029         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
15030         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
15032 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
15034         * tree-core.h (tree_decl_with_vis): Remove section_name.
15036 2014-06-09  Kito Cheng  <kito@0xlab.org>
15038         * ira.c (ira): Don't call init_caller_save if LRA enabled
15039         since LRA use its own infrastructure to handle that.
15041 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15043         * symtab.c (dump_symtab_base): Update dumping.
15044         (symtab_make_decl_local): Clear only DECL_COMDAT.
15045         * tree-vect-data-refs.c (Check that variable is static before
15046         tampering with sections.
15047         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
15048         (cgraph_create_virtual_clone): Likewise.
15049         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
15050         (decl_section_name, set_decl_section_name): New accessors.
15051         (find_decls_types_r): Do not walk section name
15052         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
15053         (decl_comdat_group, decl_comdat_group_id): Constify.
15054         (decl_section_name, set_decl_section_name): Update.
15055         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
15056         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
15057         (cgraph_make_node_local_1): Clear section and comdat group.
15058         * cgraph.h (set_comdat_group): Sanity check.
15059         (get_section, set_section): New.
15060         * ipa-comdats.c (ipa_comdats): Use get_section.
15061         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
15062         * lto-streamer-out.c: Do not follow section names.
15063         * c-family/c-common.c (handle_section_attribute): Update.
15064         * lto-cgraph.c (lto_output_node): Output section.
15065         (lto_output_varpool_node): Likewise.
15066         (read_comdat_group): Rename to ...
15067         (read_identifier): ... this one.
15068         (read_string_cst): New function.
15069         (input_node, input_varpool_node): Input section names.
15070         * tree-emutls.c (get_emutls_init_templ_addr): Update.
15071         (new_emutls_decl): Update.
15072         (secname_for_decl): Check section names only of static vars.
15073         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
15074         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
15075         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15076         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15077         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
15078         * config/mcore/mcore.c (mcore_unique_section): Likewise.
15079         * config/mips/mips.c (mips16_build_function_stub): Likewise.
15080         * config/v850/v850.c (v850_insert_attributes): Likewise.
15081         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
15082         Likewise.
15083         (h8300_handle_tiny_data_attribute): Likewise.
15084         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
15085         (bfin_handle_l2_attribute): Likewise.
15087 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15089         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
15090         remove static initializer.
15092 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15094         * varasm.c (use_blocks_for_decl_p): Check symbol table
15095         instead of alias attribute.
15096         (place_block_symbol): Recurse on aliases.
15098 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15100         * ipa-visibility.c: Include varasm.h
15101         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
15103 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15105         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
15106         outputting aliases.
15108 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
15110         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
15111         from test_insn into GGC space escape via SET_SRC.
15113 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
15115         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
15116         call statement, if any.
15117         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
15118         statements, if any.  Tidy up.
15120 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
15122         PR target/61431
15123         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
15124         iterators, VSX_D that handles 64-bit types, and VSX_LE that
15125         handles swapping the two 64-bit double words on little endian
15126         systems.  Include V1TImode and optionally TImode in VSX_LE so that
15127         these types are properly swapped.  Change all of the insns and
15128         splits that do the 64-bit swaps to use VSX_LE.
15129         (vsx_le_perm_load_<mode>): Likewise.
15130         (vsx_le_perm_store_<mode>): Likewise.
15131         (splitters for little endian memory operations): Likewise.
15132         (vsx_xxpermdi2_le_<mode>): Likewise.
15133         (vsx_lxvd2x2_le_<mode>): Likewise.
15134         (vsx_stxvd2x2_le_<mode>): Likewise.
15136 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
15138         PR target/61423
15139         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
15140         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
15141         and corresponding splitters.  Zero extend general register
15142         or memory input operand to XMM temporary.  Enable for
15143         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
15144         (floatunssi<mode>2): Update expander predicate.
15146 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
15148         PR rtl-optimization/61325
15149         * lra-constraints.c (process_address_1): Check scale equal to one
15150         to prevent transformation: base + scale * index => base + new_reg.
15152 2014-06-06  Richard Biener  <rguenther@suse.de>
15154         PR tree-optimization/59299
15155         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
15156         a def operand.
15157         (nearest_common_dominator_of_uses): Likewise.
15158         (statement_sink_location): Adjust.  Support sinking loads.
15160 2014-06-06  Martin Jambor  <mjambor@suse.cz>
15162         * ipa-prop.c (get_place_in_agg_contents_list): New function.
15163         (build_agg_jump_func_from_list): Likewise.
15164         (determine_known_aggregate_parts): Renamed to
15165         determine_locally_known_aggregate_parts.  Moved some functionality
15166         to the two functions above, removed bound checks.
15168 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
15170         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
15171         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
15172         (aarch64_progress_pointer): Likewise.
15173         (aarch64_copy_one_part_and_move_pointers): Likewise.
15174         (aarch64_expand_movmen): Likewise.
15175         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
15176         * config/aarch64/aarch64.md (movmem<mode>): New.
15178 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
15180         * targhooks.c (default_add_stmt_cost): Call target specific
15181         hook instead of default one.
15183 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15185         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
15186         endianness instead of host endianness.
15187         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
15188         comments.
15190 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15192         PR debug/53927
15193         * function.c (instantiate_decls): Process the saved static chain.
15194         (expand_function_start): If not optimizing, save the static chain
15195         onto the stack.
15196         * tree-nested.c (convert_all_function_calls): Always create the static
15197         chain for nested functions if not optimizing.
15199 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15201         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
15203 2014-06-06  Richard Biener  <rguenther@suse.de>
15205         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
15206         (construct_init_block): Likewise.
15207         (construct_exit_block): Likewise.
15208         (pass_expand::execute): Likewise.
15209         * graphite.c (graphite_transforms): Replace check for current_loops
15210         with a check for > 1 loops.
15211         (pass_graphite_transforms::execute): Adjust.
15212         * ipa-split.c (split_function): Remove check for current_loops.
15213         * omp-low.c (expand_parallel_call): Likewise.
15214         (expand_omp_for_init_counts): Likewise.
15215         (extract_omp_for_update_vars): Likewise.
15216         (expand_omp_for_generic): Likewise.
15217         (expand_omp_sections): Likewise.
15218         (expand_omp_target): Likewise.
15219         * tracer.c (tail_duplicate): Likewise.
15220         (pass_tracer::execute): Likewise.
15221         * trans-mem.c (expand_transaction): Likewise.
15222         * tree-complex.c (expand_complex_div_wide): Likewise.
15223         * tree-eh.c (lower_resx): Likewise.
15224         (cleanup_empty_eh_merge_phis): Likewise.
15225         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
15226         current_loops with a check for > 1 loops.
15227         (pass_predcom::execute): Adjust.
15228         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
15229         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
15230         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
15231         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
15232         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
15233         * tree-switch-conversion.c (process_switch): Likewise.
15234         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
15235         * tree-vrp.c (vrp_visit_phi_node): Likewise.
15236         (execute_vrp): Likewise.
15237         * ubsan.c (ubsan_expand_null_ifn): Likewise.
15239 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15241         * rtl.h (insn_location): Declare.
15242         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
15243         with UNKNOWN_LOCATION.
15244         * emit-rtl.c (insn_location): New function.
15245         * final.c (notice_source_line): Check that the instruction has a
15246         location before retrieving it and use insn_location.
15247         * modulo-sched.c (loop_single_full_bb_p): Likewise.
15248         * print-rtl.c (print_rtx): Likewise.
15250 2014-06-06  Richard Biener  <rguenther@suse.de>
15252         * passes.def: Move 2nd VRP pass before phi-only-cprop.
15254 2014-06-06  Christian Bruel  <christian.bruel@st.com>
15256         PR tree-optimization/43934
15257         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
15258         cost.
15260 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
15262         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
15263         return NO_REGS for extra address and memory constraints.  Handle
15264         operands that match (or are equivalent to something that matches)
15265         extra constant constraints.  Ignore other non-register operands.
15267 2014-06-06  Alan Modra  <amodra@gmail.com>
15269         PR target/61300
15270         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
15271         * doc/tm.texi: Regenerate.
15272         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
15273         Use throughout in place of REG_PARM_STACK_SPACE.
15274         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
15275         "incoming" param.  Pass to rs6000_function_parms_need_stack.
15276         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
15277         prototype_p when incoming.  Use function decl when incoming
15278         to handle K&R style functions.
15279         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
15280         (INCOMING_REG_PARM_STACK_SPACE): Define.
15282 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15284         PR target/52472
15285         * cfgexpand.c (expand_debug_expr): Use address space of nested
15286         TREE_TYPE for ADDR_EXPR and MEM_REF.
15288 2014-06-05  Jeff Law  <law@redhat.com>
15290         PR tree-optimization/61289
15291         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
15292         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
15293         looking for those which match LHS.  All callers changed.
15294         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
15295         parameters and code which manipulated them.  All callers changed.
15296         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
15297         and DST_MAP parameters.  Simplify invalidation code by just calling
15298         invalidate_equivalences.  All callers changed.
15299         (thread_across_edge): Simplify now that we don't need to maintain
15300         the map of equivalences to invalidate.
15302 2014-06-05  Kai Tietz  <ktietz@redhat.com>
15303             Richard Henderson  <rth@redhat.com>
15305         PR target/46219
15306         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
15307         checking for !TARGET_X32.
15308         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
15309         (sibcall_intern): New define_insn, plus required peepholes.
15310         (sibcall_pop_intern): Likewise.
15311         (sibcall_value_intern): Likewise.
15312         (sibcall_value_pop_intern): Likewise.
15314 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
15316         * tree-inline.c (tree_function_versioning): Check DF info existence
15317         before accessing it.
15319 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15321         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
15322         frame_size.
15323         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
15324         aarch64_frame hard_fp_offset and frame_size.
15325         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
15326         frame_size; remove original_frame_size.
15327         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
15328         (aarch64_initial_elimination_offset): Remove frame_size and
15329         offset.  Use aarch64_frame frame_size.
15331 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15332             Jiong Wang  <jiong.wang@arm.com>
15333             Renlin  <renlin.li@arm.com>
15335         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
15336         initialization of R30 offset.  Update offset.  Iterate core
15337         regisers upto X30.  Remove X29, X30 specific code.
15339 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15340             Jiong Wang  <jiong.wang@arm.com>
15342         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
15343         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
15344         (aarch64_register_saved_on_entry): Adjust test.
15346 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15348         * config/aarch64/aarch64.h (machine_function): Move
15349         saved_varargs_size from here...
15350         (aarch64_frame): ... to here.
15352         * config/aarch64/aarch64.c (aarch64_expand_prologue)
15353         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
15354         (aarch64_initial_elimination_offset)
15355         (aarch64_setup_incoming_varargs): Adjust location of
15356         saved_varargs_size.
15358 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15360         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
15361         layout comment.
15363 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
15364             Prachi Godbole  <Prachi.Godbole@imgtec.com>
15366         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
15367         mips32r5 entry to use PROCESSOR_P5600.
15368         * config/mips/mips-tables.opt: Regenerate.
15369         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
15370         * config/mips/mips.c (mips_fmadd_bypass): New function.
15371         (mips_rtx_cost_data): Add costs for p5600.
15372         (mips_issue_rate): Add support for p5600.
15373         (mips_multipass_dfa_lookahead): Likewise.
15374         * config/mips/mips.h (TUNE_P5600): New define.
15375         (TUNE_MACC_CHAINS): Add TUNE_P5600.
15376         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
15377         * config/mips/mips.md: Include p5600.md.
15378         (processor): Add p5600.
15379         * config/mips/p5600.md: New file.
15381 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
15383         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
15384         * config/i386/predicates.md (palignr_operand): New.
15385         Indicates if permutation is suitable for palignr instruction.
15387 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
15389         PR tree-optimization/61319
15390         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15391         stmt belongs to loop.
15393 2014-06-05  Richard Biener  <rguenther@suse.de>
15395         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
15396         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
15397         (lookup_tmp_var): Adjust.
15398         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
15400 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15402         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
15404 2014-06-05  Marek Polacek  <polacek@redhat.com>
15406         PR c/49706
15407         * doc/invoke.texi: Document -Wlogical-not-parentheses.
15409 2014-06-04  Tom de Vries  <tom@codesourcery.com>
15411         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
15412         CONST_INT.
15414 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
15416         PR tree-optimization/61385
15417         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
15419 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
15421         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
15422         changed to use fatal_error.
15423         (main): Ensure lto_wrapper_cleanup is run atexit.
15425 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15427         * lra-constraints.c (valid_address_p): Move earlier in file.
15428         (address_eliminator): New structure.
15429         (satisfies_memory_constraint_p): New function.
15430         (satisfies_address_constraint_p): Likewise.
15431         (process_alt_operands, process_address, curr_insn_transform): Use them.
15433 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15435         * lra-int.h (lra_static_insn_data): Make operand_alternative a
15436         const pointer.
15437         (target_lra_int, default_target_lra_int, this_target_lra_int)
15438         (op_alt_data): Delete.
15439         * lra.h (lra_init): Delete.
15440         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
15441         (init_insn_code_data_once): Remove op_alt_data handling.
15442         (finish_insn_code_data_once): Likewise.
15443         (init_op_alt_data): Delete.
15444         (get_static_insn_data): Initialize operand_alternative to null.
15445         (free_insn_recog_data): Cast operand_alternative before freeing it.
15446         (setup_operand_alternative): Take the operand_alternative as
15447         parameter and assume it isn't already cached in the static
15448         insn data.
15449         (lra_set_insn_recog_data): Update accordingly.
15450         (lra_init): Delete.
15451         * ira.c (ira_init): Don't call lra_init.
15452         * target-globals.h (this_target_lra_int): Declare.
15453         (target_globals): Remove lra_int.
15454         (restore_target_globals): Update accordingly.
15455         * target-globals.c: Don't include lra-int.h.
15456         (default_target_globals, save_target_globals): Remove lra_int.
15458 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15460         * recog.h (operand_alternative): Convert reg_class, reject,
15461         matched and matches into bitfields.
15462         (preprocess_constraints): New overload.
15463         (preprocess_insn_constraints): New function.
15464         (preprocess_constraints): Take the insn as parameter.
15465         (recog_op_alt): Change into a pointer.
15466         (target_recog): Add x_op_alt.
15467         * recog.c (asm_op_alt): New variable.
15468         (recog_op_alt): Change into a pointer.
15469         (preprocess_constraints): New overload, replacing the old function
15470         definition with one that doesn't use global state.
15471         (preprocess_insn_constraints): New function.
15472         (preprocess_constraints): Use them.  Take the insn as parameter.
15473         Use asm_op_alt for asms.
15474         (recog_init): Free existing x_op_alt entries.
15475         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
15476         pointer const.
15477         (make_early_clobber_and_input_conflicts): Likewise.
15478         (process_bb_node_lives): Pass the insn to process_constraints.
15479         * reg-stack.c (check_asm_stack_operands): Likewise.
15480         (subst_asm_stack_regs): Likewise.
15481         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
15482         * regrename.c (build_def_use): Likewise.
15483         * sched-deps.c (sched_analyze_insn): Likewise.
15484         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
15485         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
15486         (note_invalid_constants): Likewise.
15487         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15488         (ix86_legitimate_combined_insn): Make operand_alternative pointer
15489         const.
15491 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15493         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
15494         * ira-lives.c (check_and_make_def_conflict): Check for disabled
15495         alternatives.
15496         (make_early_clobber_and_input_conflicts): Likewise.
15497         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15499 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15501         * recog.h (alternative_class): New function.
15502         (which_op_alt): Return a const recog_op_alt.
15503         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
15504         (subst_asm_stack_regs): Likewise.
15505         * config/arm/arm.c (note_invalid_constants): Likewise.
15506         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
15507         the operand_alternative; use alternative class instead.
15508         * sel-sched.c (get_reg_class): Likewise.
15509         * regrename.c (build_def_use): Likewise.
15510         (hide_operands, restore_operands, record_out_operands): Update type
15511         accordingly.
15513 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15515         * recog.h (recog_op_alt): Convert to a flat array.
15516         (which_op_alt): New function.
15517         * recog.c (recog_op_alt): Convert to a flat array.
15518         (preprocess_constraints): Update accordingly, grouping all
15519         operands of the same alternative together, rather than the
15520         other way around.
15521         * ira-lives.c (check_and_make_def_conflict): Likewise.
15522         (make_early_clobber_and_input_conflicts): Likewise.
15523         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15524         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
15525         (subst_asm_stack_regs): Likewise.
15526         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
15527         * regrename.c (hide_operands, record_out_operands): Likewise.
15528         (build_def_use): Likewise.
15529         * sel-sched.c (get_reg_class): Likewise.
15530         * config/arm/arm.c (note_invalid_constants): Likewise.
15532 2014-06-04  Jason Merrill  <jason@redhat.com>
15534         PR c++/51253
15535         PR c++/61382
15536         * gimplify.c (gimplify_arg): Non-static.
15537         * gimplify.h: Declare it.
15539 2014-06-04  Richard Biener  <rguenther@suse.de>
15541         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
15542         TREE_PUBLIC and DECL_EXTERNAL decls.
15544 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
15546         * regcprop.c (copyprop_hardreg_forward_1): Account for
15547         HARD_REGNO_CALL_PART_CLOBBERED.
15549 2014-06-04  Richard Biener  <rguenther@suse.de>
15551         * configure.ac: Check whether the underlying type of int64_t
15552         is long or long long.
15553         * configure: Regenerate.
15554         * config.in: Likewise.
15555         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
15556         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15558 2014-06-04  Richard Biener  <rguenther@suse.de>
15560         PR tree-optimization/60098
15561         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
15562         we hit a kill.
15563         (dse_optimize_stmt): Simplify, now that we found a kill
15564         earlier.
15566 2014-06-04  Richard Biener  <rguenther@suse.de>
15568         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
15569         of accesses with non-invariant address.
15571 2014-06-04  Martin Liska  <mliska@suse.cz>
15573         * cgraph.h (cgraph_make_wrapper): New function introduced.
15574         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
15575         * ipa-inline.h (inline_analyze_function): The function is global.
15576         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
15578 2014-06-04  Martin Liska  <mliska@suse.cz>
15580         * tree.h (private_lookup_attribute_starting): New function.
15581         (lookup_attribute_starting): Likewise.
15582         * tree.c (private_lookup_attribute_starting): Likewise.
15584 2014-06-04  Martin Liska  <mliska@suse.cz>
15586         * cgraph.h (expand_thunk): New argument added.
15587         (address_taken_from_non_vtable_p): New global function.
15588         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
15589         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
15590         * cgraphunit.c (analyze_function): Likewise.
15591         (assemble_thunks_and_aliases): Argument added to call.
15592         (expand_thunk): New argument forces to produce GIMPLE thunk.
15594 2014-06-04  Martin Liska  <mliska@suse.cz>
15596         * coverage.h (coverage_compute_cfg_checksum): Argument added.
15597         * coverage.c (coverage_compute_cfg_checksum): Likewise.
15598         * profile.c (branch_prob): Likewise.
15600 2014-06-04  Martin Jambor  <mjambor@suse.cz>
15602         PR ipa/61340
15603         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
15604         handler for switch on an ipa_ref_use enum.
15605         * ipa-reference.c (analyze_function): Likewise.
15607 2014-06-04  Kai Tietz  <ktietz@redhat.com>
15609         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
15610         from old call-instruction.
15612 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
15614         * config/aarch64/aarch64.c (aarch64_classify_address)
15615         (aarch64_legitimize_reload_address): Support full addressing modes
15616         for vector modes.
15617         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
15618         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
15620 2014-06-03  Andrew Pinski  <apinski@cavium.com>
15622         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
15623         for OP0.
15625 2014-06-03  Andrew Pinski  <apinski@cavium.com>
15627         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
15628         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
15630 2014-06-03  Kai Tietz  <ktietz@redhat.com>
15632         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
15633         for 64-bit ms-abi.
15635 2014-06-03  Dehao Chen  <dehao@google.com>
15637         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
15638         the same loop.
15640 2014-06-03  Marek Polacek  <polacek@redhat.com>
15642         PR c/60439
15643         * doc/invoke.texi: Document -Wswitch-bool.
15644         * function.c (stack_protect_epilogue): Cast controlling expression of
15645         the switch to int.
15646         * gengtype.c (walk_type): Generate switch expression with its
15647         controlling expression cast to int.
15649 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
15651         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
15652         and attiny841.
15653         * config/avr/avr-tables.opt: Regenerate.
15654         * config/avr/t-multilib: Regenerate.
15655         * doc/avr-mmcu.texi: Regenerate.
15657 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
15658             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15660         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
15661         (ata6617c, ata664251): Add new avr35 devices.
15662         (ata6612c): Add new avr4 device.
15663         (ata6613c, ata6614q): Add new avr5 devices.
15664         * config/avr/avr-tables.opt: Regenerate.
15665         * config/avr/t-multilib: Regenerate.
15666         * doc/avr-mmcu.texi: Regenerate.
15668 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15670         * gcc/config/aarch64/aarch64-builtins.c
15671         (aarch64_types_binop_ssu_qualifiers): New static data.
15672         (TYPES_BINOP_SSU): Define.
15673         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
15674         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
15675         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
15676         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
15677         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
15678         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
15679         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
15680         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
15681         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
15682         suffix to builtin function name, remove cast.
15683         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
15684         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
15685         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
15687 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15689         * gcc/config/aarch64/aarch64-builtins.c
15690         (aarch64_types_binop_uus_qualifiers,
15691         aarch64_types_shift_to_unsigned_qualifiers,
15692         aarch64_types_unsigned_shiftacc_qualifiers): Define.
15693         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
15694         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
15695         sqshlu_n, uqshl_n): Update qualifiers.
15696         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
15697         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
15698         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
15699         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
15700         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
15701         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
15702         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
15703         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
15704         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
15705         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
15706         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
15707         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
15708         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
15709         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
15710         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
15711         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
15712         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
15713         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
15714         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
15715         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
15716         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
15717         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
15718         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
15719         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
15720         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
15721         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
15722         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
15724 2014-06-03  Teresa Johnson  <tejohnson@google.com>
15726         * tree-sra.c (modify_function): Record caller nodes after rebuild.
15728 2014-06-02  Jason Merrill  <jason@redhat.com>
15730         PR c++/61020
15731         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
15733 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15735         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
15736         location == 0.
15738 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15740         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
15741         New pattern.
15742         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
15743         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
15744         * config/aarch64/iterators.md (REVERSE): New iterator.
15745         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
15746         (rev_op): New int_attribute.
15747         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
15748         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
15749         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
15750         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
15751         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
15752         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
15753         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
15754         Replace temporary __asm__ with __builtin_shuffle.
15756 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
15758         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
15759         mips64r5.
15760         * config/mips/mips-tables.opt: Regenerate.
15761         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
15762         to use mips_isa_rev rather than ISA_MIPS32R2.
15763         * config/mips/mips.h (ISA_MIPS32R3): New define.
15764         (ISA_MIPS32R5): New define.
15765         (ISA_MIPS64R3): New define.
15766         (ISA_MIPS64R5): New define.
15767         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
15768         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
15769         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
15770         and mips64r5.
15771         (MIPS_ISA_SYNCI_SPEC): Likewise.
15772         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
15773         (LINK_SPEC): Added mips32r3 and mips32r5.
15774         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
15775         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
15776         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
15777         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
15778         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
15779         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
15780         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
15782 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
15784         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
15785         options.
15786         * config/mips/mips.opt (mxpa): New option.
15787         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
15788         assembler.
15790 2014-06-03  Martin Jambor  <mjambor@suse.cz>
15792         PR ipa/61160
15793         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
15794         thunks.
15796 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15798         PR tree-optimization/61328
15799         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
15800         initialization from find_bswap_or_nop_1.
15801         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
15802         in source_expr2 before using the size value the function sets. Also
15803         make use of init_symbolic_number () in both the old place and
15804         find_bswap_or_nop_load () to avoid reading uninitialized memory when
15805         doing recursion in the GIMPLE_BINARY_RHS case.
15807 2014-06-03  Richard Biener  <rguenther@suse.de>
15809         PR tree-optimization/61383
15810         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
15811         stmts can't trap.
15813 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
15815         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
15816         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
15817         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
15818         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
15819         in this file.
15820         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
15821         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
15822         * system.h: ...here and make it unconditional.
15823         * target.def (conditional_register_usage): Mention
15824         define_register_constraint instead of old-style constraint macros.
15825         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
15826         * doc/tm.texi: Regenerate.
15827         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
15828         protected by !USE_MD_CONSTRAINTS.
15829         * config/frv/frv.md: Remove quote from old version of documentation.
15830         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
15831         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
15832         CONST_DOUBLE_OK_FOR_LETTER.
15833         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
15835 2014-06-02  Andrew Pinski  <apinski@cavium.com>
15837         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
15838         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
15839         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
15840         file whose name depends on -mabi= and -mbig-endian.
15841         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
15842         Handle LP64 better and handle ilp32 too.
15843         (MULTILIB_OPTIONS): Delete.
15844         (MULTILIB_DIRNAMES): Delete.
15846 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
15848         * expr.h: Remove prototypes of functions defined in builtins.c.
15849         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
15850         Remove prototypes of functions defined in builtins.c.
15851         * builtins.h: Update prototype list to include all exported functions.
15852         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
15853         no_c99_libc_has_function): Move to targhooks.c
15854         (build_string_literal, build_call_expr_loc_array,
15855         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
15856         to tree.c.
15857         (expand_builtin_object_size, fold_builtin_object_size): Make static.
15858         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
15859         no_c99_libc_has_function): Relocate from builtins.c.
15860         * tree.c: Include builtins.h.
15861         (build_call_expr_loc_array, build_call_expr_loc_vec,
15862         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
15863         from builtins.c.
15864         * fold-const.h (fold_fma): Move prototype to builtins.h.
15865         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
15866         * asan.c: Include builtins.h.
15867         * cfgexpand.c: Likewise.
15868         * convert.c: Likewise.
15869         * emit-rtl.c: Likewise.
15870         * except.c: Likewise.
15871         * expr.c: Likewise.
15872         * fold-const.c: Likewise.
15873         * gimple-fold.c: Likewise.
15874         * gimple-ssa-strength-reduction.c: Likewise.
15875         * gimplify.c: Likewise.
15876         * ipa-inline.c: Likewise.
15877         * ipa-prop.c: Likewise.
15878         * lto-streamer-out.c: Likewise.
15879         * stmt.c: Likewise.
15880         * tree-inline.c: Likewise.
15881         * tree-object-size.c: Likewise.
15882         * tree-sra.c: Likewise.
15883         * tree-ssa-ccp.c: Likewise.
15884         * tree-ssa-forwprop.c: Likewise.
15885         * tree-ssa-loop-ivcanon.c: Likewise.
15886         * tree-ssa-loop-ivopts.c: Likewise.
15887         * tree-ssa-math-opts.c: Likewise.
15888         * tree-ssa-reassoc.c: Likewise.
15889         * tree-ssa-threadedge.c: Likewise.
15890         * tree-streamer-in.c: Likewise.
15891         * tree-vect-data-refs.c: Likewise.
15892         * tree-vect-patterns.c: Likewise.
15893         * tree-vect-stmts.c: Likewise.
15894         * config/aarch64/aarch64.c: Likewise.
15895         * config/alpha/alpha.c: Likewise.
15896         * config/arc/arc.c: Likewise.
15897         * config/arm/arm.c: Likewise.
15898         * config/avr/avr.c: Likewise.
15899         * config/bfin/bfin.c: Likewise.
15900         * config/c6x/c6x.c: Likewise.
15901         * config/cr16/cr16.c: Likewise.
15902         * config/cris/cris.c: Likewise.
15903         * config/epiphany/epiphany.c: Likewise.
15904         * config/fr30/fr30.c: Likewise.
15905         * config/frv/frv.c: Likewise.
15906         * config/h8300/h8300.c: Likewise.
15907         * config/i386/i386.c: Likewise.
15908         * config/i386/winnt.c: Likewise.
15909         * config/ia64/ia64.c: Likewise.
15910         * config/iq2000/iq2000.c: Likewise.
15911         * config/lm32/lm32.c: Likewise.
15912         * config/m32c/m32c.c: Likewise.
15913         * config/m32r/m32r.c: Likewise.
15914         * config/m68k/m68k.c: Likewise.
15915         * config/mcore/mcore.c: Likewise.
15916         * config/mep/mep.c: Likewise.
15917         * config/microblaze/microblaze.c: Likewise.
15918         * config/mips/mips.c: Likewise.
15919         * config/mmix/mmix.c: Likewise.
15920         * config/mn10300/mn10300.c: Likewise.
15921         * config/moxie/moxie.c: Likewise.
15922         * config/msp430/msp430.c: Likewise.
15923         * config/nds32/nds32.c: Likewise.
15924         * config/pa/pa.c: Likewise.
15925         * config/pdp11/pdp11.c: Likewise.
15926         * config/picochip/picochip.c: Likewise.
15927         * config/rl78/rl78.c: Likewise.
15928         * config/rs6000/rs6000.c: Likewise.
15929         * config/rx/rx.c: Likewise.
15930         * config/s390/s390.c: Likewise.
15931         * config/score/score.c: Likewise.
15932         * config/sh/sh.c: Likewise.
15933         * config/sparc/sparc.c: Likewise.
15934         * config/spu/spu.c: Likewise.
15935         * config/stormy16/stormy16.c: Likewise.
15936         * config/tilegx/tilegx.c: Likewise.
15937         * config/tilepro/tilepro.c: Likewise.
15938         * config/v850/v850.c: Likewise.
15939         * config/vax/vax.c: Likewise.
15940         * config/xtensa/xtensa.c: Likewise.
15942 2014-06-02  Jeff Law  <law@redhat.com>
15944         PR rtl-optimization/61094
15945         * ree.c (combine_reaching_defs): Do not reextend an insn if it
15946         was marked as do_no_reextend.  If a copy is needed to eliminate
15947         an extension, then mark it as do_not_reextend.
15949 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15951         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
15953 2014-06-02  Richard Henderson  <rth@redhat.com>
15955         PR target/61336
15956         * config/alpha/alpha.c (print_operand_address): Allow symbolic
15957         addresses inside asms.  Use output_operand_lossage instead of
15958         gcc_unreachable.
15960 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
15962         PR target/61239
15963         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
15964         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
15966 2014-06-02  Tom de Vries  <tom@codesourcery.com>
15968         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
15969         case that x has VOIDmode.
15971 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
15973         * varasm.c (copy_constant): Delete function.
15974         (build_constant_desc): Don't call it.
15976 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15978         PR target/61154
15979         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
15980         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
15981         with immediate_operand.
15983 2014-06-02  Andreas Schwab  <schwab@suse.de>
15985         * config/ia64/ia64.c
15986         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
15987         pending_data_specs first.
15989 2014-06-02  Richard Biener  <rguenther@suse.de>
15991         PR tree-optimization/61378
15992         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
15993         valueized_anything.
15995 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
15997         * config/i386/constraints.md (Bw): Rename from 'w'.
15998         (Bz): Rename from 'z'.
15999         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
16001 2014-06-01  Kai Tietz  <ktietz@redhat.com>
16003         PR target/61377
16004         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
16005         * config/i386/i386.md (sibcall_insn_operand): Use Bs
16006         instead of m constraint.
16008 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
16010         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
16011         a separate alternative where the scratch operand 2 is marked as
16012         early clobber.
16014 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
16016         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
16017         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
16018         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
16019         and __builtins_arm_get_fpscr.
16020         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16021         __builtins_arm_get_fpscr.
16022         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
16023         __builtins_arm_ldfpscr.
16024         (arm_atomic_assign_expand_fenv): New function.
16025         * config/arm/vfp.md (set_fpscr): New pattern.
16026         (get_fpscr) : Likewise.
16027         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
16028         VUNSPEC_SET_FPSCR.
16029         * doc/extend.texi (AARCH64 Built-in Functions) : Document
16030         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
16032 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
16034         * asan.c (report_error_func): Add SLOW_P argument, use
16035         BUILT_IN_ASAN_*_N if set.
16036         (build_check_stmt): Likewise.
16037         (instrument_derefs): If T has insufficient alignment,
16038         force same handling as for odd sizes.
16040         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
16041         BUILT_IN_ASAN_REPORT_STORE_N): New.
16042         * asan.c (struct asan_mem_ref): Change access_size type to
16043         HOST_WIDE_INT.
16044         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
16045         update_mem_ref_hash_table): Likewise.
16046         (asan_mem_ref_hasher::hash): Hash in a HWI.
16047         (report_error_func): Change size_in_bytes argument to HWI.
16048         Use *_N builtins if size_in_bytes is larger than 16 or not power of
16049         two.
16050         (build_shadow_mem_access): New function.
16051         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
16052         Handle size_in_bytes not power of two or larger than 16.
16053         (instrument_derefs): Don't give up if size_in_bytes is not
16054         power of two or is larger than 16.
16056 2014-05-30  Kai Tietz  <ktietz@redhat.com>
16058         PR target/60104
16059         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
16060         for sibling-tail-calls.
16061         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
16062         to its use.
16063         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
16064         (sibcall_insn_operand): Add check for sibcall_memory_operand.
16066 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16068         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
16069         * config/avr/avr-tables.opt: Regenerate.
16070         * config/avr/t-multilib: Regenerate.
16071         * doc/avr-mmcu.texi: Regenerate.
16073 2014-05-30  Ian Lance Taylor  <iant@google.com>
16075         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
16076         target("sse").
16078 2014-05-30  Tom de Vries  <tom@codesourcery.com>
16080         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
16081         Redefine as true.
16083 2014-05-30  Tom de Vries  <tom@codesourcery.com>
16085         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16086         * lra.c (initialize_lra_reg_info_element): Add init of
16087         actual_call_used_reg_set field.
16088         (lra): Call lra_create_live_ranges before lra_inheritance for
16089         -fuse-caller-save.
16090         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16091         -fuse-caller-save.
16092         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
16093         instead of call_used_reg_set for -fuse-caller-save.
16094         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16096 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16098         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
16099         to mov_imm.
16100         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
16102 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
16104         * ira.c (ira_get_dup_out_num): Check for output operands at
16105         the start of the loop.  Handle cases where an included alternative
16106         follows an excluded one.
16108 2014-05-29  Mike Stump  <mikestump@comcast.net>
16110         PR debug/61352
16111         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
16112         post ld passes when lto is used.
16114 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
16116         PR rtl-optimization/61325
16117         * lra-constraints.c (process_address): Rename to process_address_1.
16118         (process_address): New function.
16120 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
16122         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
16123         TYPES_BINOPV): New static data.
16124         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
16125         New builtin.
16126         * config/aarch64/aarch64-simd.md (aarch64_ext,
16127         aarch64_im_lane_boundsi): New patterns.
16128         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
16129         patterns for EXT.
16130         (aarch64_evpc_ext): New function.
16132         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
16134         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
16135         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
16136         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
16137         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
16138         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
16140 2014-05-29  Tom de Vries  <tom@codesourcery.com>
16142         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
16144 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
16145             Richard Sandiford  <rdsandiford@googlemail.com>
16147         * arm/iterators.md (shiftable_ops): New code iterator.
16148         (t2_binop0, arith_shift_insn): New code attributes.
16149         * arm/predicates.md (shift_nomul_operator): New predicate.
16150         * arm/arm.md (insn_enabled): Delete.
16151         (enabled): Remove insn_enabled test.
16152         (*arith_shiftsi): Delete.  Replace with ...
16153         (*<arith_shift_insn>_multsi): ... new pattern.
16154         (*<arith_shift_insn>_shiftsi): ... new pattern.
16155         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
16157 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
16158             Tom de Vries  <tom@codesourcery.com>
16160         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
16161         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
16162         clobber.
16163         (mips_split_call): Use POST_CALL_TMP_REG.
16164         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
16166 2014-05-29  Tom de Vries  <tom@codesourcery.com>
16168         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
16169         with #ifdef STACK_REGS.
16171 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
16173         * varasm.c (get_variable_section): Walk aliases.
16174         (place_block_symbol): Walk aliases.
16176 2014-05-28  Tom de Vries  <tom@codesourcery.com>
16178         Revert:
16179         2014-05-28  Tom de Vries  <tom@codesourcery.com>
16181         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16182         * lra.c (initialize_lra_reg_info_element): Add init of
16183         actual_call_used_reg_set field.
16184         (lra): Call lra_create_live_ranges before lra_inheritance for
16185         -fuse-caller-save.
16186         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16187         -fuse-caller-save.
16188         * lra-constraints.c (need_for_call_save_p): Use
16189         actual_call_used_reg_set instead of call_used_reg_set for
16190         -fuse-caller-save.
16191         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16193 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16195         * doc/md.texi: Document that the % constraint character must
16196         be at the beginning of the string.
16197         * genoutput.c (validate_insn_alternatives): Check that '=',
16198         '+' and '%' only appear at the beginning of a constraint.
16199         * ira.c (commutative_constraint_p): Delete.
16200         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
16201         at the start of the string.
16202         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
16203         duplicate '='s.
16204         * config/arm/neon.md (bicdi3_neon): Likewise.
16205         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
16206         (slt_si, sltu_si): Likewise.
16207         * config/vax/vax.md (sbcdi3): Likewise.
16208         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
16209         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
16210         (mul64): Move '%' to beginning of constraint.
16211         * config/arm/arm.md (*xordi3_insn): Likewise.
16212         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
16213         (xorsi3): Likewise.
16215 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16217         * doc/md.texi: Document the restrictions on the "enabled" attribute.
16219 2014-05-28  Jason Merrill  <jason@redhat.com>
16221         PR c++/47202
16222         * cgraph.h (symtab_node::get_comdat_group_id): New.
16223         * cgraphunit.c (analyze_functions): Call it.
16224         * symtab.c (dump_symtab_node): Likewise.
16225         * tree.c (decl_comdat_group_id): New.
16226         * tree.h: Declare it.
16227         * lto-streamer-out.c (write_symbol): Use it.
16228         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
16230 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16232         PR bootstrap/PR61146
16233         * wide-int.cc: Do not include longlong.h when compiling with clang.
16235 2014-05-28  Richard Biener  <rguenther@suse.de>
16237         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
16238         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
16239         (vrp_visit_assignment_or_call): Print less vertical space.
16240         (vrp_visit_stmt): Likewise.
16241         (vrp_visit_phi_node): Likewise.  For a PHI argument with
16242         VR_VARYING range consider recording it as copy.
16244 2014-05-28  Richard Biener  <rguenther@suse.de>
16246         Revert
16247         2014-05-28  Richard Biener  <rguenther@suse.de>
16249         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16251 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16253         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
16254         sufficiently aligned and an offset is used at the same time.
16255         (expand_expr_real_1): Likewise.
16257 2014-05-28  Richard Biener  <rguenther@suse.de>
16259         PR middle-end/61045
16260         * fold-const.c (fold_comparison): When folding
16261         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
16262         the sign of the remaining constant operand stays the same.
16264 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
16266         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16267         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
16268         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
16269         to the assembler.
16270         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
16271         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
16272         (m32bit-doubles) Likewise.
16273         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
16274         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
16275         option for RL78.
16277 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16279         * configure.ac ($gcc_cv_ld_clearcap): New test.
16280         * configure: Regenerate.
16281         * config.in: Regenerate.
16282         * config/sol2.opt (mclear-hwcap): New option.
16283         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
16284         * config/sol2-clearcap.map: Moved here from
16285         testsuite/gcc.target/i386/clearcap.map.
16286         * config/sol2-clearcapv2.map: Move here from
16287         gcc.target/i386/clearcapv2.map.
16288         * config/t-sol2 (install): Depend on install-clearcap-map.
16289         (install-clearcap-map): New target.
16290         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
16291         -mclear-hwcap.
16293 2014-05-28  Richard Biener  <rguenther@suse.de>
16295         * hwint.h (*_HALF_WIDE_INT*): Move to ...
16296         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
16297         ... here and remove the rest.
16298         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16300 2014-05-28  Richard Biener  <rguenther@suse.de>
16302         PR tree-optimization/61335
16303         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
16304         new range fails, drop to varying.
16306 2014-05-28  Olivier Hainque  <hainque@adacore.com>
16308         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
16309         (CPP_SPEC): Add entry for -mcpu=8548.
16310         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
16311         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
16313 2014-05-28  Tom de Vries  <tom@codesourcery.com>
16315         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16316         * lra.c (initialize_lra_reg_info_element): Add init of
16317         actual_call_used_reg_set field.
16318         (lra): Call lra_create_live_ranges before lra_inheritance for
16319         -fuse-caller-save.
16320         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16321         -fuse-caller-save.
16322         * lra-constraints.c (need_for_call_save_p): Use
16323         actual_call_used_reg_set instead of call_used_reg_set for
16324         -fuse-caller-save.
16325         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16327 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
16328             Tom de Vries  <tom@codesourcery.com>
16330         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
16331         to gccoptlist.
16332         (@item -fuse-caller-save): New item.
16334 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
16335             Tom de Vries  <tom@codesourcery.com>
16337         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
16338         OPT_fuse_caller_save.
16340 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
16341             Tom de Vries  <tom@codesourcery.com>
16343         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
16344         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
16345         get_call_reg_set_usage.
16346         * resource.c (mark_set_resources, mark_target_live_regs): Use
16347         get_call_reg_set_usage.
16348         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
16349         field.
16350         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
16351         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
16352         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16353         * ira-build.c (ira_create_allocno): Init
16354         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16355         (create_cap_allocno, propagate_allocno_info)
16356         (propagate_some_info_from_allocno)
16357         (copy_info_to_removed_store_destinations): Handle
16358         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16359         * ira-costs.c (ira_tune_allocno_costs): Use
16360         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
16362 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
16363             Tom de Vries  <tom@codesourcery.com>
16365         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
16366         and function_used_regs_valid fields.
16367         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
16368         find_all_hard_reg_sets.
16369         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
16370         (get_call_reg_set_usage): New function.
16371         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
16372         * regs.h (get_call_reg_set_usage): Declare.
16374 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
16376         PR libgcc/61152
16377         * config/dbx.h (License): Add Runtime Library Exception.
16378         * config/newlib-stdint.h (License): Same.
16379         * config/rtems.h (License): Same
16380         * config/initfini-array.h (License): Same
16381         * config/v850/v850.h (License): Same.
16382         * config/v850/v850-opts.h (License): Same
16383         * config/v850/rtems.h (License): Same.
16385 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
16387         PR target/61044
16388         * doc/extend.texi (Local Labels): Note that label differences are
16389         not supported for AVR.
16391 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16392             Olivier Hainque  <hainque@adacore.com>
16394         * rtl.h (set_for_reg_notes): Declare.
16395         * emit-rtl.c (set_for_reg_notes): New function.
16396         (set_unique_reg_note): Use it.
16397         * optabs.c (add_equal_note): Likewise
16399 2014-05-27  Andrew Pinski  <apinski@cavium.com>
16401         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
16402         Use <w> for the register in assembly template.
16403         (stack_protect_test): Use the mode of operands[0] for the result.
16404         (stack_protect_test_<mode>): Use <w> for the register
16405         in assembly template.
16407 2014-05-27  DJ Delorie  <dj@redhat.com>
16409         * config/rx/rx.c (add_vector_labels): New.
16410         (rx_output_function_prologue): Call it.
16411         (rx_handle_func_attribute): Don't require empty arguments.
16412         (rx_handle_vector_attribute): New.
16413         (rx_attribute_table): Add "vector" attribute.
16414         * doc/extend.texi (interrupt, vector): Document new/changed
16415         RX-specific attributes.
16417         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
16419 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
16421         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
16422         predicate to detect a negative quotient.
16424 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
16426         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
16427         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
16428         Add X - Y CMP 0 to X CMP Y transformation.
16429         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
16431 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
16433         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
16434         before printing.
16436 2014-05-27  Steve Ellcey  <sellcey@mips.com>
16438         * config/mips/mips.c: Add include of cgraph.h.
16440 2014-05-27  Richard Biener  <rguenther@suse.de>
16442         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
16444 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
16446         PR libgcc/61152
16447         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
16448         * config/arm/arm-cores.def (License): Same.
16449         * config/arm/arm-opts.h (License): Same.
16450         * config/arm/aout.h (License): Same.
16451         * config/arm/bpabi.h (License): Same.
16452         * config/arm/elf.h (License): Same.
16453         * config/arm/linux-elf.h (License): Same.
16454         * config/arm/linux-gas.h (License): Same.
16455         * config/arm/netbsd-elf.h (License): Same.
16456         * config/arm/uclinux-eabi.h (License): Same.
16457         * config/arm/uclinux-elf.h (License): Same.
16458         * config/arm/vxworks.h (License): Same.
16460 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16462         * config/arm/neon.md (neon_bswap<mode>): New pattern.
16463         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
16464         (arm_init_neon_builtins): Handle NEON_BSWAP.
16465         Define required type nodes.
16466         (arm_expand_neon_builtin): Handle NEON_BSWAP.
16467         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
16468         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
16469         * config/arm/iterators.md (VDQHSD): New mode iterator.
16471 2014-05-27  Richard Biener  <rguenther@suse.de>
16473         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
16474         Try using literal operands when comparing value-ranges failed.
16476 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
16478         * ira.c (commutative_operand): Adjust for change to recog_data.
16479         [Missing from previous commit.]
16481 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
16483         * system.h (TEST_BIT): New macro.
16484         * recog.h (alternative_mask): New type.
16485         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
16486         (recog_data_d): Replace alternative_enabled_p array with
16487         enabled_alternatives.
16488         (target_recog): New structure.
16489         (default_target_recog, this_target_recog): Declare.
16490         (get_enabled_alternatives, recog_init): Likewise.
16491         * recog.c (default_target_recog, this_target_recog): New variables.
16492         (get_enabled_alternatives): New function.
16493         (extract_insn): Use it.
16494         (recog_init): New function.
16495         (preprocess_constraints, constrain_operands): Adjust for change to
16496         recog_data.
16497         * postreload.c (reload_cse_simplify_operands): Likewise.
16498         * reload.c (find_reloads): Likewise.
16499         * ira-costs.c (record_reg_classes): Likewise.
16500         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
16501         all alternatives after a disabled one would be skipped.
16502         (ira_implicitly_set_insn_hard_regs): Likewise.
16503         * ira.c (ira_setup_alts): Adjust for change to recog_data.
16504         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
16505         with enabled_alternatives.
16506         * lra.c (free_insn_recog_data): Update accordingly.
16507         (lra_update_insn_recog_data): Likewise.
16508         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
16509         * lra-constraints.c (process_alt_operands): Likewise.  Handle
16510         only_alternative as part of the enabled mask.
16511         * target-globals.h (this_target_recog): Declare.
16512         (target_globals): Add a recog field.
16513         (restore_target_globals): Restore this_target_recog.
16514         * target-globals.c: Include recog.h.
16515         (default_target_globals): Initialize recog field.
16516         (save_target_globals): Likewise.
16517         * reginfo.c (reinit_regs): Call recog_init.
16518         * toplev.c (backend_init_target): Likewise.
16520 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
16522         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
16523         rather than any named insn's code.
16525 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
16527         PR libgcc/61152
16528         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
16529         * config/arm/arm-cores.def (License): Same.
16531 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
16533         * tree.h (decl_comdat_group): Declare.
16534         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
16535         * tree.c (decl_comdat_group): Here.
16537 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
16539         PR rtl-optimization/61222
16540         * combine.c (simplify_shift_const_1): When moving a PLUS outside
16541         the shift, truncate the PLUS operand to the result mode.
16543 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
16545         PR target/61271
16546         * config/i386/i386.c (ix86_rtx_costs)
16547         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
16548         Fix condition.
16550 2014-05-26  Martin Jambor  <mjambor@suse.cz>
16552         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
16553         subreg uses.
16555 2014-05-26  Richard Biener  <rguenther@suse.de>
16557         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
16558         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
16559         Provide specializations.
16560         (wi::int_traits <HOST_WIDE_INT>,
16561         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
16563 2014-05-26  Alan Modra  <amodra@gmail.com>
16565         PR target/61098
16566         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
16567         params and return a bool.  Remove dead code.  Update comment.
16568         Assert we have a const_int source.  Remove bogus code from
16569         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
16570         handling of constants > 2G and reg_equal note, from..
16571         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
16572         return value.  Update comment.  If we can, use a new pseudo
16573         for intermediate calculations.
16574         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
16575         prototype.
16576         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
16577         call to rs6000_emit_set_const in splitter.
16578         (movdi_internal64+2, +3): Likewise.
16580 2014-05-26  Richard Biener  <rguenther@suse.de>
16582         * system.h: Define __STDC_FORMAT_MACROS before
16583         including inttypes.h.
16584         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
16585         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
16586         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
16587         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
16588         HOST_WIDEST_INT_C): Remove.
16589         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
16590         if C99 inttypes.h is not available.
16591         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
16592         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
16593         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
16594         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
16595         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
16596         (struct output_info): Likewise.
16597         (print_statistics): Adjust.
16598         (dump_bitmap_statistics): Likewise.
16599         * bt-load.c (migrate_btr_defs): Print with PRId64.
16600         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
16601         (MAX_SAFE_MULTIPLIER): Adjust.
16602         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
16603         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
16604         dump_cgraph_node): Likewise.
16605         * final.c (dump_basic_block_info): Likewise.
16606         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
16607         * gcov.c (format_gcov): Likewise.
16608         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
16609         for calculation.
16610         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
16611         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
16612         (inline_small_functions, dump_overall_stats, dump_inline_stats):
16613         Use PRId64 for dumping.
16614         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
16615         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
16616         (add_allocno_hard_regs): Adjust.
16617         * loop-doloop.c (doloop_modify): Print using PRId64.
16618         * loop-iv.c (inverse): Compute in uint64_t.
16619         (determine_max_iter, iv_number_of_iterations): Likewise.
16620         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
16621         Print using PRId64.
16622         * lto-streamer-out.c (write_symbol): Use uint64_t.
16623         * mcf.c (CAP_INFINITY): Use int64_t maximum.
16624         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
16625         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
16626         * modulo-sched.c (const_iteration_count): Use int64_t.
16627         (sms_schedule): Dump using PRId64.
16628         * predict.c (dump_prediction): Likewise.
16629         * pretty-print.h (pp_widest_integer): Remove.
16630         * profile.c (get_working_sets, is_edge_inconsistent,
16631         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
16632         * tree-pretty-print.c (pp_double_int): Remove case handling
16633         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
16634         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
16635         and adjust users.
16636         (pass_optimize_bswap::execute): Remove restriction on hosts.
16637         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
16638         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
16639         * tree.c (widest_int_cst_value): Remove.
16640         * tree.h (widest_int_cst_value): Likewise.
16641         * value-prof.c (dump_histogram_value): Print using PRId64.
16642         * gengtype.c (main): Also inject int64_t.
16643         * ggc-page.c (struct max_alignment): Use int64_t.
16644         * alloc-pool.c (struct allocation_object_def): Likewise.
16645         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
16646         for computation.
16647         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
16648         * doc/tm.texi: Regenerated.
16649         * gengtype-lex.l (IWORD): Handle [u]int64_t.
16650         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
16651         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
16652         mmix_output_register_setting): Use [u]int64_t in prototypes.
16653         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
16654         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
16655         mmix_output_octa, mmix_output_shifted_value): Adjust.
16656         (mmix_intval): Adjust.  Remove unreachable case.
16657         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
16659 2014-05-26  Richard Biener  <rguenther@suse.de>
16661         * configure.ac: Drop __int64 type check.  Insist that we
16662         found uint64_t and int64_t.
16663         * hwint.h (HOST_BITS_PER___INT64): Remove.
16664         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
16665         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
16666         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
16667         (HOST_WIDEST_FAST_INT): Remove __int64 case.
16668         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
16669         for dst_q_src_df_rms_cdt.
16670         * configure: Regenerate.
16671         * config.in: Likewise.
16673 2014-05-26  Michael Tautschnig  <mt@debian.org>
16675         PR target/61249
16676         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
16677         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
16679 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16681         PR rtl-optimization/61278
16682         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
16684 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16686         PR rtl-optimization/61220
16687         Part of PR rtl-optimization/61225
16688         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
16689         insn; skip split_edge for a block with only one successor.
16691 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16693         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
16694         for variables.
16696 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16698         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
16699         (update_vtable_references): New function.
16700         (function_and_variable_visibility): Rewrite also vtable initializers.
16701         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
16703 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16705         * ggc.h (ggc_grow): New function.
16706         * ggc-none.c (ggc_grow): New function.
16707         * ggc-page.c (ggc_grow): Likewise.
16709 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16711         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
16712         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
16713         comdat_can_be_unshared_p, cgraph_externally_visible_p,
16714         varpool_externally_visible_p, can_replace_by_local_alias,
16715         update_visibility_by_resolution_info, function_and_variable_visibility,
16716         pass_data_ipa_function_and_variable_visibility,
16717         make_pass_ipa_function_and_variable_visibility,
16718         whole_program_function_and_variable_visibility,
16719         pass_data_ipa_whole_program_visibility,
16720         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
16721         * cgraph.h (cgraph_local_node_p): Declare.
16722         * ipa-visibility.c: New file.
16723         * Makefile.in (OBJS): Add ipa-visiblity.o
16725 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16727         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
16728         that var decl is available.
16730 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16732         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
16733         symtab_node pointer.
16734         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
16735         (find_decls_types_r): Do not walk COMDAT_GROUP.
16736         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
16737         * varasm.c (make_decl_one_only): Use set_comdat_group;
16738         create node if needed.
16739         * ipa-inline-transform.c (save_inline_function_body): Update
16740         way we decl->symtab mapping.
16741         * symtab.c (symtab_hash, hash_node, eq_node
16742         symtab_insert_node_to_hashtable): Remove.
16743         (symtab_register_node): Update.
16744         (symtab_unregister_node): Update.
16745         (symtab_get_node): Reimplement as inline function.
16746         (symtab_add_to_same_comdat_group): Update.
16747         (symtab_dissolve_same_comdat_group_list): Update.
16748         (dump_symtab_base): Update.
16749         (verify_symtab_base): Update.
16750         (symtab_make_decl_local): Update.
16751         (fixup_same_cpp_alias_visibility): Update.
16752         (symtab_nonoverwritable_alias): Update.
16753         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
16754         * ipa.c (update_visibility_by_resolution_info): UPdate.
16755         * bb-reorder.c: Include cgraph.h
16756         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
16757         with comdat groups.
16758         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
16759         * cgraph.c (cgraph_get_create_node): Update.
16760         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
16761         and comdat_group_.
16762         (symtab_get_node): Make inline.
16763         (symtab_insert_node_to_hashtable): Remove.
16764         (symtab_can_be_discarded): Update.
16765         (decl_comdat_group): New function.
16766         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
16767         Update.
16768         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
16769         comdat group name.
16770         (read_comdat_group): New function.
16771         (input_node, input_varpool_node): Use it.
16772         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
16773         comdat groups.
16774         * mips.c (mips_start_unique_function): Likewise.
16775         (ix86_code_end): Likewise.
16776         (rs6000_code_end): Likweise.
16777         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
16779 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16781         * gengtype-state.c (fatal_reading_state): Bring offline.
16782         * optabs.c (widening_optab_handler): Bring offline.
16783         * optabs.h (widening_optab_handler): Likewise.
16784         * final.c (get_attr_length_1): Likewise.
16786 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16788         * sched-int.h (sd_iterator_cond): Manually tail recurse.
16790 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16792         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
16793         (ppc440-compare): Include shift with dot.
16794         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
16795         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
16796         without dot.
16797         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
16798         without dot.
16799         (e6500_sfx2): Include it.
16800         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
16801         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
16802         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
16803         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
16804         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
16805         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
16806         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
16807         *lshiftrt_internal1le, *lshiftrt_internal1be,
16808         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
16809         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
16810         *rotldi3_internal10le, *rotldi3_internal10be,
16811         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
16812         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
16813         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
16814         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
16815         define_insns): Use type "shift" in the appropriate alternatives.
16817 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16819         * config/rs6000/rs6000.md (type): Add "logical".  Delete
16820         "fast_compare".
16821         (dot): Adjust comment.
16822         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
16823         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
16824         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
16825         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
16826         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
16827         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
16828         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
16829         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16831         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16832         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16833         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16834         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16835         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16836         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16837         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16838         * config/rs6000/8540.md (ppc8540_su): Adjust.
16839         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16840         cell-cmp-microcoded): Adjust.
16841         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16842         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16843         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16844         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16845         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16846         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16847         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16848         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16849         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16850         Adjust.
16851         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16852         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
16853         Adjust.  Adjust comment.
16854         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16855         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16857 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16859         * config/rs6000/rs6000.md (type): Add "add".
16860         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
16861         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
16862         define_insns): Use it.
16863         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16865         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16866         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16867         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16868         * config/rs6000/601.md (ppc601-integer): Adjust.
16869         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16870         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16871         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16872         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16873         * config/rs6000/8540.md (ppc8540_su): Adjust.
16874         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16875         cell-cmp-microcoded): Adjust.
16876         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16877         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16878         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16879         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16880         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16881         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16882         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16883         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16884         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16885         Adjust.
16886         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16887         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
16888         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16889         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16891 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16893         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
16894         "delayed_compare", "var_delayed_compare".
16895         (var_shift): New attribute.
16896         (cell_micro): Adjust.
16897         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
16898         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
16899         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
16900         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
16901         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
16902         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
16903         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
16904         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
16905         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
16906         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
16907         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
16908         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
16909         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
16910         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
16911         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
16912         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
16913         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
16914         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
16915         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
16916         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
16917         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
16918         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
16919         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
16920         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16921         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16923         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16924         * config/rs6000/440.md (ppc440-integer): Adjust.
16925         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16926         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
16927         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16928         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16929         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16930         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16931         * config/rs6000/8540.md (ppc8540_su): Adjust.
16932         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16933         cell-cmp-microcoded): Adjust.
16934         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
16935         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16936         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
16937         e500mc64_delayed): Adjust.
16938         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
16939         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
16940         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16941         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
16942         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
16943         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
16944         power6-delayed-compare, power6-var-delayed-compare): Adjust.
16945         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
16946         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
16947         Adjust comment.
16948         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16949         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
16951 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16953         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
16954         (bits): New mode_attr.
16955         (idiv_ldiv): Delete mode_attr.
16956         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
16957         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16958         rs6000_adjust_priority, is_nonpipeline_insn,
16959         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
16961         * config/rs6000/40x.md (ppc403-idiv): Adjust.
16962         * config/rs6000/440.md (ppc440-idiv): Adjust.
16963         * config/rs6000/476.md (ppc476-idiv): Adjust.
16964         * config/rs6000/601.md (ppc601-idiv): Adjust.
16965         * config/rs6000/603.md (ppc603-idiv): Adjust.
16966         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
16967         ppc620-ldiv): Adjust.
16968         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
16969         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
16970         * config/rs6000/8540.md (ppc8540_divide): Adjust.
16971         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
16972         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
16973         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
16974         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
16975         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
16976         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
16977         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
16978         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
16979         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
16980         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
16981         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
16982         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
16983         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
16984         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
16985         * config/rs6000/titan.md (titan_fxu_div): Adjust.
16987 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16989         * config/rs6000/rs6000.md (type): Delete "insert_word",
16990         "insert_dword".  Add "insert".
16991         (size): Update comment.
16992         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
16993         insn_must_be_first_in_group): Adjust.
16994         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16995         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16996         *insvsi_internal6, insvdi_internal): Adjust.
16998         * config/rs6000/40x.md (ppc403-integer): Adjust.
16999         * config/rs6000/440.md (ppc440-integer): Adjust.
17000         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
17001         * config/rs6000/601.md (ppc601-integer): Adjust.
17002         * config/rs6000/603.md (ppc603-integer): Adjust.
17003         * config/rs6000/6xx.md (ppc604-integer): Adjust.
17004         * config/rs6000/7450.md (ppc7450-integer): Adjust.
17005         * config/rs6000/7xx.md (ppc750-integer): Adjust.
17006         * config/rs6000/8540.md (ppc8540_su): Adjust.
17007         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
17008         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
17009         * config/rs6000/e500mc.md (e500mc_su): Adjust.
17010         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
17011         * config/rs6000/e5500.md (e5500_sfx): Adjust.
17012         * config/rs6000/e6500.md (e6500_sfx): Adjust.
17013         * config/rs6000/mpc.md (mpccore-integer): Adjust.
17014         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
17015         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
17016         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
17017         * config/rs6000/power7.md (power7-integer): Adjust.
17018         * config/rs6000/power8.md (power8-1cyc): Adjust.
17019         * config/rs6000/rs64.md (rs64a-integer): Adjust.
17020         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
17022 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
17024         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
17025         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
17026         (size): New attribute.
17027         (dot): New attribute.
17028         (cell_micro): Adjust.
17029         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
17030         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
17031         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
17032         umuldi3_highpart): Adjust.
17033         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17034         rs6000_adjust_priority, is_nonpipeline_insn,
17035         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17037         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
17038         ppc405-imul3): Adjust.
17039         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
17040         * config/rs6000/476.md (ppc476-imul): Adjust.
17041         * config/rs6000/601.md (ppc601-imul): Adjust.
17042         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
17043         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
17044         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
17045         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
17046         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
17047         Adjust.
17048         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
17049         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
17050         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
17051         cell-imul): Adjust.
17052         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
17053         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
17054         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
17055         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
17056         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
17057         * config/rs6000/mpc.md (mpccore-imul): Adjust.
17058         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
17059         power4-lmul, power4-imul, power4-imul3): Adjust.
17060         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
17061         power5-lmul, power5-imul, power5-imul3): Adjust.
17062         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
17063         power6-lmul, power6-imul, power6-imul3): Adjust.
17064         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
17065         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
17067         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
17068         rs64a-lmul): Adjust.
17069         * config/rs6000/titan.md (titan_imul): Adjust.
17071 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
17073         * config/rs6000/rs6000.md (type): Add new value "halfmul".
17074         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
17075         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
17076         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
17077         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
17078         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
17079         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
17080         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
17081         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
17082         * config/rs6000/titan.md: Delete nonsensical comment.
17083         (titan_imul): Add type imul3.
17084         (titan_mulhw): Remove type imul3; add type halfmul.
17086 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
17088         * config/rs6000/rs6000.md (type): Reorder, reformat.
17090 2014-05-23  Martin Jambor  <mjambor@suse.cz>
17092         PR tree-optimization/53787
17093         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
17094         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
17095         analysis_done, update all uses.
17096         * ipa-prop.c: Include domwalk.h
17097         (param_analysis_info): Removed.
17098         (param_aa_status): New type.
17099         (ipa_bb_info): Likewise.
17100         (func_body_info): Likewise.
17101         (ipa_get_bb_info): New function.
17102         (aa_overwalked): Likewise.
17103         (find_dominating_aa_status): Likewise.
17104         (parm_bb_aa_status_for_bb): Likewise.
17105         (parm_preserved_before_stmt_p): Changed to use new param AA info.
17106         (load_from_unmodified_param): Accept func_body_info as a parameter
17107         instead of parms_ainfo.
17108         (parm_ref_data_preserved_p): Changed to use new param AA info.
17109         (parm_ref_data_pass_through_p): Likewise.
17110         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
17111         (compute_complex_assign_jump_func): Changed to use new param AA info.
17112         (compute_complex_ancestor_jump_func): Likewise.
17113         (ipa_compute_jump_functions_for_edge): Likewise.
17114         (ipa_compute_jump_functions): Removed.
17115         (ipa_compute_jump_functions_for_bb): New function.
17116         (ipa_analyze_indirect_call_uses): Likewise, moved variable
17117         declarations down.
17118         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
17119         and info, moved variable declarations down.
17120         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
17121         node and info.
17122         (ipa_analyze_stmt_uses): Likewise.
17123         (ipa_analyze_params_uses): Removed.
17124         (ipa_analyze_params_uses_in_bb): New function.
17125         (ipa_analyze_controlled_uses): Likewise.
17126         (free_ipa_bb_info): Likewise.
17127         (analysis_dom_walker): New class.
17128         (ipa_analyze_node): Handle node-specific forbidden analysis,
17129         initialize and free func_body_info, use dominator walker.
17130         (ipcp_modif_dom_walker): New class.
17131         (ipcp_transform_function): Create and free func_body_info, use
17132         ipcp_modif_dom_walker, moved a lot of functionality there.
17134 2014-05-23  Marek Polacek  <polacek@redhat.com>
17135             Jakub Jelinek  <jakub@redhat.com>
17137         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
17138         * gcc.c (sanitize_spec_function): Likewise.
17139         * convert.c (convert_to_integer): Include "ubsan.h".  Add
17140         floating-point to integer instrumentation.
17141         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
17142         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
17143         SANITIZE_NONDEFAULT.
17144         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
17145         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
17146         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
17147         * ubsan.c: Include "realmpfr.h" and "dfp.h".
17148         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
17149         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
17150         float/double/long double.
17151         (ubsan_instrument_float_cast): New function.
17152         * ubsan.h (ubsan_instrument_float_cast): Declare.
17154 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
17156         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
17157         predicate.
17158         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
17159         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
17160         Adjust for tailcalling through registers.
17161         * config/aarch64/aarch64.h (enum reg_class): New caller save
17162         register class.
17163         (REG_CLASS_NAMES): Likewise.
17164         (REG_CLASS_CONTENTS): Likewise.
17165         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
17166         Allow tailcalling without decls.
17168 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
17170         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17171         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
17173         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
17174         gsi, and variables v_* to v*.
17176 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
17178         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
17180 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
17182         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
17183         * omp-low.c: Update accordingly.
17185         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
17186         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
17187         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
17188         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
17189         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
17190         GF_OMP_TARGET_KIND_UPDATE.
17192         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17193         Explicitly enumerate the expected region types.
17195 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17197         PR other/56955
17198         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
17199         documentation; the old documentation didn't clearly state the
17200         constraints on the contents of the pointed-to storage.
17202 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17204         Fix bootstrap error on ia64
17205         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
17206         Return default value.
17208 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17210         PR tree-optimization/54733
17211         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
17212         (CMPNOP): Define.
17213         (find_bswap_or_nop_load): New.
17214         (find_bswap_1): Renamed to ...
17215         (find_bswap_or_nop_1): This. Also add support for memory source.
17216         (find_bswap): Renamed to ...
17217         (find_bswap_or_nop): This. Also add support for memory source and
17218         detection of bitwise operations equivalent to load in target
17219         endianness.
17220         (execute_optimize_bswap): Likewise. Also move its leading comment back
17221         in place and split statement transformation into ...
17222         (bswap_replace): This.
17224 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
17226         PR rtl-optimization/61215
17227         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
17228         simplify_gen_subreg until final substitution.
17230 2014-05-23  Alan Modra  <amodra@gmail.com>
17232         PR target/61231
17233         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
17234         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
17235         Use "Y" constraint rather than "m".
17237 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17239         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
17240         define.
17241         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
17242         New function declaration.
17243         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
17244         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
17245         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
17246         (aarch64_init_builtins) : Initialize builtins
17247         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17248         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17249         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
17250         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
17251         and __builtins_aarch64_set_fpsr.
17252         (aarch64_atomic_assign_expand_fenv): New function.
17253         * config/aarch64/aarch64.md (set_fpcr): New pattern.
17254         (get_fpcr) : Likewise.
17255         (set_fpsr) : Likewise.
17256         (get_fpsr) : Likewise.
17257         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
17258          and UNSPECV_SET_FPSR.
17259         * doc/extend.texi (AARCH64 Built-in Functions) : Document
17260         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17261         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17263 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
17265         PR rtl-optimization/60969
17266         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
17267         constraints.  Set up mem cost for NO_REGS case.
17269 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
17271         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
17273 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
17275         * config/darwin.c: Include "lto-section-names.h".
17276         (LTO_SEGMENT_NAME): Don't define.
17277         * config/i386/winnt.c: Include "lto-section-names.h".
17278         * lto-streamer.c: Include "lto-section-names.h".
17279         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
17280         * lto-wrapper.c: Include "lto-section-names.h".
17281         (LTO_SECTION_NAME_PREFIX): Don't define.
17282         * lto-section-names.h: New file.
17283         * cgraphunit.c: Include "lto-section-names.h".
17285 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
17287         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
17289 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
17291         PR target/61208
17292         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
17294 2014-05-22  Nick Clifton  <nickc@redhat.com>
17296         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
17298 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17300         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
17301         -> (T)A transformation to integer types.
17303 2014-05-22  Teresa Johnson  <tejohnson@google.com>
17305         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
17306         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
17307         (gcov_rewrite): Use gcov_nonruntime_assert.
17308         (gcov_open): Ditto.
17309         (gcov_write_words): Ditto.
17310         (gcov_write_length): Ditto.
17311         (gcov_read_words): Use gcov_nonruntime_assert, and remove
17312         gcc_assert from IN_LIBGCOV code.
17313         (gcov_read_summary): Use gcov_error to flag profile corruption.
17314         (gcov_sync): Use gcov_nonruntime_assert.
17315         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
17316         (gcov_histo_index): Use gcov_nonruntime_assert.
17317         (static void gcov_histogram_merge): Ditto.
17318         (compute_working_sets): Ditto.
17319         * gcov-io.h (gcov_nonruntime_assert): Define.
17320         (gcov_error): Define for !IN_LIBGCOV
17322 2014-05-22  Richard Biener  <rguenther@suse.de>
17324         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17325         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
17326         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
17327         and deallocation site.
17328         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17329         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
17330         passing through the incoming points-to set.
17331         (handle_lhs_call): Use flags argument instead of recomputing it.
17332         (find_func_aliases_for_call): Call handle_lhs_call with proper
17333         call return flags.
17335 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
17337         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
17338         all padding bits in REAL_VALUE_TYPE are cleared.
17340 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17342         Cleanup and improve multipass_dfa_lookahead_guard
17343         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
17344         (core2i7_first_cycle_multipass_begin,)
17345         (core2i7_first_cycle_multipass_issue,)
17346         (core2i7_first_cycle_multipass_backtrack): Update signature.
17347         * config/ia64/ia64.c
17348         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
17349         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
17350         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
17351         hook definition.
17352         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
17353         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
17354         values.
17355         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
17356         return values.
17357         * doc/tm.texi: Regenerate.
17358         * doc/tm.texi.in
17359         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
17360         * haifa-sched.c (ready_try): Make signed to allow negative values.
17361         (rebug_ready_list_1): Update.
17362         (choose_ready): Simplify.
17363         (sched_extend_ready_list): Update.
17365 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17367         Remove IA64 speculation tweaking flags
17368         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
17369         speculation tuning flags.
17370         (msched-prefer-non-data-spec-insns,)
17371         (msched-prefer-non-control-spec-insns): Obsolete options.
17372         * haifa-sched.c (choose_ready): Remove handling of
17373         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17374         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
17375         and PREFER_NON_DATA_SPEC.
17376         * sel-sched.c (process_spec_exprs): Remove handling of
17377         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17379 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17381         Improve scheduling debug output
17382         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
17383         (advance_one_cycle): Update.
17384         (schedule_insn, queue_to_ready): Add debug printouts.
17385         (debug_ready_list_1): New static function.
17386         (debug_ready_list): Update.
17387         (max_issue): Add debug printouts.
17388         (dump_insn_stream): New static function.
17389         (schedule_block): Use it.  Also better indent printouts.
17391 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17393         Fix sched_insn debug counter
17394         * haifa-sched.c (schedule_insn): Update.
17395         (struct haifa_saved_data): Add nonscheduled_insns_begin.
17396         (save_backtrack_point, restore_backtrack_point): Update.
17397         (first_nonscheduled_insn): New static function.
17398         (queue_to_ready, choose_ready): Use it.
17399         (schedule_block): Init nonscheduled_insns_begin.
17400         (sched_emit_insn): Update.
17403 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
17405         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
17406         to GENERAL_REGS.
17407         (aarch64_secondary_reload) : LikeWise.
17408         (aarch64_class_max_nregs) : Remove CORE_REGS.
17409         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
17410         (REG_CLASS_NAMES) : Likewise.
17411         (REG_CLASS_CONTENTS) : LikeWise.
17412         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
17414 2014-05-21  Guozhi Wei  <carrot@google.com>
17416         PR target/61202
17417         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
17418         constraint.
17419         (vqdmulhq_n_s16): Likewise.
17421 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17423         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
17425 2014-05-21  Marek Polacek  <polacek@redhat.com>
17427         PR sanitizer/61272
17428         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
17430 2014-05-21  Martin Jambor  <mjambor@suse.cz>
17432         * doc/invoke.texi (Optimize Options): Document parameters
17433         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
17434         ipa-cp-array-index-hint-bonus.
17436 2014-05-21  Mark Wielaard  <mjw@redhat.com>
17438         PR debug/16063
17439         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
17440         version >= 3 or not strict DWARF.
17441         * langhooks.h (struct lang_hooks_for_types): Add
17442         enum_underlying_base_type.
17443         * langhooks.c (lhd_enum_underlying_base_type): New function.
17444         * gcc/langhooks.h (struct lang_hooks_for_types): Add
17445         enum_underlying_base_type.
17446         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
17447         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
17448         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
17450 2014-05-21  Richard Biener  <rguenther@suse.de>
17452         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
17454 2014-05-21  John Marino  <gnugcc@marino.st>
17456         * config.gcc (*-*-dragonfly*): New target.
17457         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
17458         * configure: Regenerate.
17459         * config/dragonfly-stdint.h: New.
17460         * config/dragonfly.h: New.
17461         * config/dragonfly.opt: New.
17462         * config/i386/dragonfly.h: New.
17463         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
17465 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
17467         * tree.def (VOID_CST): New.
17468         * tree-core.h (TI_VOID): New.
17469         * tree.h (void_node): New.
17470         * tree.c (tree_node_structure_for_code, tree_code_size)
17471         (iterative_hash_expr): Handle VOID_CST.
17472         (build_common_tree_nodes): Initialize void_node.
17474 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
17476         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
17477         functions.
17478         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
17480         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
17481         more places.
17483         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
17484         flag_reorder_blocks_and_partition.
17485         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
17487 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
17489         PR target/54236
17490         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
17491         constraints.
17492         (*addc_r_t): Add new insn_and_split.
17494 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
17496         PR middle-end/61252
17497         * omp-low.c (handle_simd_reference): New function.
17498         (lower_rec_input_clauses): Use it.  Defer adding reference
17499         initialization even for reduction without placeholder if in simd,
17500         handle it properly later on.
17502 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
17504         PR tree-optimization/60899
17505         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
17506         assume all static symbols will have definition wile parsing and
17507         check the do have definition later in compilation; check that
17508         variable referring symbol will be output before concluding that
17509         reference is safe; be conservative for referring local statics;
17510         be more precise about when comdat is output in other partition.
17512 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
17514         PR bootstrap/60984
17515         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
17516         parameter.
17517         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
17518         (ipa_inline): Loop inline_to_all_callers until no more aliases
17519         are removed.
17521 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
17523         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
17524         set writeonly flag only for vars actually written to.
17526 2014-05-20  Dehao Chen  <dehao@google.com>
17528         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
17529         and callee count to get clone count.
17530         * tree-inline.c (expand_call_inline): Use callee count instead of bb
17531         count in copy_body.
17533 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
17535         PR rtl-optimization/61243
17536         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
17538 2014-05-20  Xinliang David Li  <davidxl@google.com>
17540         * cgraphunit.c (walk_polymorphic_call_targets): Add
17541         dbgcnt and fopt-info support.
17542         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
17543         * ipa-devirt.c (ipa_devirt): Ditto.
17544         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
17545         * ipa.c (walk_polymorphic_call_targets): Ditto.
17546         * gimple-fold.c (fold_gimple_assign): Ditto.
17547         (gimple_fold_call): Ditto.
17548         * dbgcnt.def: New counter.
17550 2014-05-20  DJ Delorie  <dj@redhat.com>
17552         * config/msp430/msp430.md (split): Don't allow subregs when
17553         splitting SImode adds.
17554         (andneghi): Fix subtraction logic.
17555         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
17557 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
17559         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
17560         symbols.
17561         * except.c (switch_to_exception_section, resolve_unique_section,
17562         get_named_text_section, default_function_rodata_section,
17563         align_variable, get_block_for_decl, default_section_type_flags):
17564         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
17565         * symtab.c (symtab_add_to_same_comdat_group,
17566         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
17567         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
17568         Likewise.
17569         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
17570         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
17571         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
17572         (c6x_function_in_section_p): Likewise.
17573         * config/darwin.c (machopic_select_section): Likewise.
17574         * config/arm/arm.c (arm_function_in_section_p): Likewise.
17575         * config/mips/mips.c (mips_function_rodata_section): Likewise.
17576         * config/mep/mep.c (mep_select_section): LIkewise.
17577         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
17579 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
17581         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
17582         EH region of calls to pure functions that can throw an exception.
17583         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
17584         (copy_reference_ops_from_call): Also copy the EH region of the call if
17585         it can throw an exception.
17587 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17589         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
17590         nested VEC_SELECTs that are inverses of each other.
17592 2014-05-20  Richard Biener  <rguenther@suse.de>
17594         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
17595         (extract_and_process_scc_for_name): not here.
17596         (cond_dom_walker::before_dom_children): Only process
17597         stmts that end the BB in interesting ways.
17598         (run_scc_vn): Mark param uses as visited.
17600 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17602         * config/arm/arm.md (arith_shiftsi): Do not predicate for
17603         arm_restrict_it.
17605 2014-05-20  Nick Clifton  <nickc@redhat.com>
17607         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
17608         (msp430_gimplify_va_arg_expr): New function.
17609         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
17611         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
17612         operand 0 in order to prevent confusion about the number of
17613         registers involved.
17615 2014-05-20  Richard Biener  <rguenther@suse.de>
17617         PR tree-optimization/61221
17618         * tree-ssa-pre.c (el_to_update): Remove.
17619         (eliminate_dom_walker::before_dom_children): Handle released
17620         VDEFs by value-numbering them to the associated VUSE.  Update
17621         stmt immediately for substituted call address.
17622         (eliminate): Remove delayed stmt updating code.
17623         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
17624         possibly late re-numbered vuses.
17625         (vn_reference_lookup_2): Adjust.
17626         (vn_reference_lookup_pieces): Likewise.
17627         (vn_reference_lookup): Likewise.
17629 2014-05-20  Richard Biener  <rguenther@suse.de>
17631         * config.gcc: Remove need_64bit_hwint.
17632         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
17633         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
17634         it to be true.
17635         * config.in: Regenerate.
17636         * configure: Likewise.
17638 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
17640         * doc/extend.texi: Create Label Attributes section,
17641         move all label attributes into it and reference it.
17643 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
17645         * arm.c (thumb1_reorg): When scanning backwards skip anything
17646         that's not a proper insn.
17648 2014-05-19  Richard Biener  <rguenther@suse.de>
17650         PR tree-optimization/61221
17651         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17652         Do nothing for unreachable blocks.
17653         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
17654         Improve unreachability detection.
17656 2014-05-19  Richard Biener  <rguenther@suse.de>
17658         PR tree-optimization/61209
17659         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
17661 2014-05-19  Nick Clifton  <nickc@redhat.com>
17663         * except.c (init_eh): Fix computation of builtin setjmp buffer
17664         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
17666 2014-05-19  Richard Biener  <rguenther@suse.de>
17668         PR tree-optimization/61184
17669         * tree-vrp.c (is_negative_overflow_infinity): Use
17670         TREE_OVERFLOW_P and do that check first.
17671         (is_positive_overflow_infinity): Likewise.
17672         (is_overflow_infinity): Likewise.
17673         (vrp_operand_equal_p): Properly treat operands with
17674         differing overflow as not equal.
17676 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
17678         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
17679         shift simplification where it was intended.
17681 2014-05-19  Christian Bruel  <christian.bruel@st.com>
17683         PR target/61195
17684         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
17686 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
17688         PR target/61084
17689         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
17690         than wide_int.
17692 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
17694         * reg-notes.def (CROSSING_JUMP): Likewise.
17695         * rtl.h (rtx_def): Update comment for jump flag.
17696         (CROSSING_JUMP_P): Define.
17697         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
17698         of a REG_CROSSING_JUMP note.
17699         * cfghooks.c (tidy_fallthru_edges): Likewise.
17700         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
17701         * emit-rtl.c (try_split): Likewise.
17702         * haifa-sched.c (sched_create_recovery_edges): Likewise.
17703         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
17704         * jump.c (redirect_jump_2): Likewise.
17705         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
17706         (relax_delay_slots): Likewise.
17707         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
17708         (bbit_di): Likewise.
17709         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
17710         * config/sh/sh.md (jump_compact): Likewise.
17711         * bb-reorder.c (rotate_loop): Likewise.
17712         (pass_duplicate_computed_gotos::execute): Likewise.
17713         (add_reg_crossing_jump_notes): Rename to...
17714         (update_crossing_jump_flags): ...this.
17715         (pass_partition_blocks::execute): Update accordingly.
17717 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
17719         * tree.h: Remove extraneous template <>.
17721 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17723         * ipa.c (symtab_remove_unreachable_nodes): Remove
17724         symbol from comdat group if its body was eliminated.
17725         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
17726         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
17727         (symtab_unregister_node): ... this one.
17728         (verify_symtab_base): More strict checking of comdats.
17729         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
17731 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17733         * tree-pass.h (make_pass_ipa_comdats): New pass.
17734         * timevar.def (TV_IPA_COMDATS): New timevar.
17735         * passes.def (pass_ipa_comdats): Add.
17736         * Makefile.in (OBJS): Add ipa-comdats.o
17737         * ipa-comdats.c: New file.
17739 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17741         * ipa.c (update_visibility_by_resolution_info): New function.
17742         (function_and_variable_visibility): Use it.
17744 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17746         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
17747         New functions.
17748         (FOR_EACH_DEFINED_SYMBOL): New macro.
17749         (varpool_first_static_initializer, varpool_next_static_initializer,
17750         varpool_first_defined_variable, varpool_next_defined_variable):
17751         Fix comments.
17752         (symtab_in_same_comdat_p): Correctly deal with inline functions.
17754 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17756         * ggc-page.c (ggc_handle_finalizers): Add comment.
17758 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17760         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
17761         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
17762         (ggc_internal_cleared_alloc): Likewise.
17763         * ggc-page.c (finalizer): New class.
17764         (vec_finalizer): Likewise.
17765         (globals::finalizers): New member.
17766         (globals::vec_finalizers): Likewise.
17767         (ggc_internal_alloc): Record the finalizer if any for the block being
17768         allocated.
17769         (ggc_handle_finalizers): New function.
17770         (ggc_collect): Call ggc_handle_finalizers.
17771         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
17772         finalizer.
17773         (ggc_internal_cleared_alloc): Likewise.
17774         (finalize): New function.
17775         (need_finalization_p): Likewise.
17776         (ggc_alloc): Install the type's destructor as the finalizer if it
17777         might do something.
17778         (ggc_cleared_alloc): Likewise.
17779         (ggc_vec_alloc): Likewise.
17780         (ggc_cleared_vec_alloc): Likewise.
17782 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17784         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
17786 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17788         * alias.c (record_alias_subset): Adjust.
17789         * bitmap.c (bitmap_element_allocate): Likewise.
17790         (bitmap_gc_alloc_stat): Likewise.
17791         * cfg.c (init_flow): Likewise.
17792         (alloc_block): Likewise.
17793         (unchecked_make_edge): Likewise.
17794         * cfgloop.c (alloc_loop): Likewise.
17795         (flow_loops_find): Likewise.
17796         (rescan_loop_exit): Likewise.
17797         * cfgrtl.c (init_rtl_bb_info): Likewise.
17798         * cgraph.c (insert_new_cgraph_node_version): Likewise.
17799         (cgraph_allocate_node): Likewise.
17800         (cgraph_create_edge_1): Likewise.
17801         (cgraph_allocate_init_indirect_info): Likewise.
17802         * cgraphclones.c (cgraph_clone_edge): Likewise.
17803         * cgraphunit.c (add_asm_node): Likewise.
17804         (init_lowered_empty_function): Likewise.
17805         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
17806         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
17807         (alpha_use_linkage): Likewise.
17808         * config/arc/arc.c (arc_init_machine_status): Likewise.
17809         * config/arm/arm.c (arm_init_machine_status): Likewise.
17810         * config/avr/avr.c (avr_init_machine_status): Likewise.
17811         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
17812         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
17813         * config/cris/cris.c (cris_init_machine_status): Likewise.
17814         * config/darwin.c (machopic_indirection_name): Likewise.
17815         (darwin_build_constant_cfstring): Likewise.
17816         (darwin_enter_string_into_cfstring_table): Likewise.
17817         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
17818         * config/frv/frv.c (frv_init_machine_status): Likewise.
17819         * config/i386/i386.c (get_dllimport_decl): Likewise.
17820         (ix86_init_machine_status): Likewise.
17821         (assign_386_stack_local): Likewise.
17822         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
17823         (i386_pe_maybe_record_exported_symbol): Likewise.
17824         (i386_pe_record_stub): Likewise.
17825         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
17826         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
17827         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
17828         (m32c_note_pragma_address): Likewise.
17829         * config/mep/mep.c (mep_init_machine_status): Likewise.
17830         (mep_note_pragma_flag): Likewise.
17831         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
17832         (mips16_local_alias): Likewise.
17833         (mips_init_machine_status): Likewise.
17834         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
17835         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
17836         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
17837         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
17838         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
17839         * config/pa/pa.c (pa_init_machine_status): Likewise.
17840         (pa_get_deferred_plabel): Likewise.
17841         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
17842         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
17843         (rs6000_init_machine_status): Likewise.
17844         (output_toc): Likewise.
17845         * config/s390/s390.c (s390_init_machine_status): Likewise.
17846         * config/score/score.c (score_output_external): Likewise.
17847         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
17848         * config/spu/spu.c (spu_init_machine_status): Likewise.
17849         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
17850         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
17851         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
17852         * coverage.c (coverage_end_function): Likewise.
17853         * dbxout.c (dbxout_init): Likewise.
17854         * doc/gty.texi: Don't mention variable_size attribute.
17855         * dwarf2cfi.c (new_cfi): Adjust.
17856         (new_cfi_row): Likewise.
17857         (copy_cfi_row): Likewise.
17858         (create_cie_data): Likewise.
17859         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
17860         (new_loc_descr): Likewise.
17861         (find_AT_string_in_table): Likewise.
17862         (add_addr_table_entry): Likewise.
17863         (new_die): Likewise.
17864         (add_var_loc_to_decl): Likewise.
17865         (clone_die): Likewise.
17866         (clone_as_declaration): Likewise.
17867         (break_out_comdat_types): Likewise.
17868         (new_loc_list): Likewise.
17869         (add_loc_descr_to_each): Likewise.
17870         (add_location_or_const_value_attribute): Likewise.
17871         (add_linkage_name): Likewise.
17872         (lookup_filename): Likewise.
17873         (dwarf2out_var_location): Likewise.
17874         (new_line_info_table): Likewise.
17875         (dwarf2out_init): Likewise.
17876         (mem_loc_descriptor): Likewise.
17877         (loc_descriptor): Likewise.
17878         (add_const_value_attribute): Likewise.
17879         (tree_add_const_value_attribute): Likewise.
17880         (comp_dir_string): Likewise.
17881         (dwarf2out_vms_debug_main_pointer): Likewise.
17882         (string_cst_pool_decl): Likewise.
17883         * emit-rtl.c (set_mem_attrs): Likewise.
17884         (get_reg_attrs): Likewise.
17885         (start_sequence): Likewise.
17886         (init_emit): Likewise.
17887         (init_emit_regs): Likewise.
17888         * except.c (init_eh_for_function): Likewise.
17889         (gen_eh_region): Likewise.
17890         (gen_eh_region_catch): Likewise.
17891         (gen_eh_landing_pad): Likewise.
17892         (add_call_site): Likewise.
17893         * function.c (add_frame_space): Likewise.
17894         (insert_temp_slot_address): Likewise.
17895         (assign_stack_temp_for_type): Likewise.
17896         (get_hard_reg_initial_val): Likewise.
17897         (allocate_struct_function): Likewise.
17898         (prepare_function_start): Likewise.
17899         (types_used_by_var_decl_insert): Likewise.
17900         * gengtype.c (variable_size_p): Remove function.
17901         (enum alloc_quantity): Remove enum.
17902         (write_typed_alloc_def): Remove function.
17903         (write_typed_struct_alloc_def): Likewise.
17904         (write_typed_typedef_alloc_def): Likewise.
17905         (write_typed_alloc_defns): Likewise.
17906         (main): Adjust.
17907         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
17908         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
17909         * ggc.h (ggc_alloc): new function.
17910         (ggc_cleared_alloc): Likewise.
17911         (ggc_vec_alloc): Template on type of vector element, and remove
17912         element size argument.
17913         (ggc_cleared_vec_alloc): Likewise.
17914         * gimple.c (gimple_build_omp_for): Adjust.
17915         (gimple_copy): Likewise.
17916         * ipa-cp.c (get_replacement_map): Likewise.
17917         (find_aggregate_values_for_callers_subset): Likewise.
17918         (known_aggs_to_agg_replacement_list): Likewise.
17919         * ipa-devirt.c (get_odr_type): Likewise.
17920         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
17921         (read_agg_replacement_chain): Likewise.
17922         * loop-iv.c (get_simple_loop_desc): Likewise.
17923         * lto-cgraph.c (input_node_opt_summary): Likewise.
17924         * lto-section-in.c (lto_new_in_decl_state): Likewise.
17925         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
17926         (input_eh_region): Likewise.
17927         (input_eh_lp): Likewise.
17928         (input_cfg): Likewise.
17929         * optabs.c (set_optab_libfunc): Likewise.
17930         (init_tree_optimization_optabs): Likewise.
17931         (set_conv_libfunc): Likewise.
17932         * passes.c (do_per_function_toporder): Likewise.
17933         * rtl.h: Don't use variable_size gty attribute.
17934         * sese.c (if_region_set_false_region): Adjust.
17935         * stringpool.c (gt_pch_save_stringpool): Likewise.
17936         * target-globals.c (save_target_globals): Likewise.
17937         * toplev.c (general_init): Likewise.
17938         * trans-mem.c (record_tm_replacement): Likewise.
17939         (split_bb_make_tm_edge): Likewise.
17940         * tree-cfg.c (move_sese_region_to_fn): Likewise.
17941         * tree-data-ref.h (lambda_vector_new): Likewise.
17942         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
17943         * tree-iterator.c (tsi_link_before): Likewise.
17944         (tsi_link_after): Likewise.
17945         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
17946         * tree-ssa-loop-niter.c (record_estimate): Likewise.
17947         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
17948         * tree-ssa-operands.h: Don't use variable_size gty attribute.
17949         * tree-ssa.c (init_tree_ssa): Adjust.
17950         * tree-ssanames.c (set_range_info): Likewise.
17951         (get_ptr_info): Likewise.
17952         (duplicate_ssa_name_ptr_info): Likewise.
17953         (duplicate_ssa_name_range_info): Likewise.
17954         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
17955         (unpack_ts_fixed_cst_value_fields): Likewise.
17956         * tree.c (build_fixed): Likewise.
17957         (build_real): Likewise.
17958         (build_string): Likewise.
17959         (decl_priority_info): Likewise.
17960         (decl_debug_expr_insert): Likewise.
17961         (decl_value_expr_insert): Likewise.
17962         (decl_debug_args_insert): Likewise.
17963         (type_hash_add): Likewise.
17964         (build_omp_clause): Likewise.
17965         * ubsan.c (decl_for_type_insert): Likewise.
17966         * varasm.c (get_unnamed_section): Likewise.
17967         (get_noswitch_section): Likewise.
17968         (get_section): Likewise.
17969         (get_block_for_section): Likewise.
17970         (create_block_symbol): Likewise.
17971         (build_constant_desc): Likewise.
17972         (create_constant_pool): Likewise.
17973         (force_const_mem): Likewise.
17974         (record_tm_clone_pair): Likewise.
17975         * varpool.c (varpool_create_empty_node): Likewise.
17977 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17979         * dwarf2out.c (tree_add_const_value_attribute): Call
17980         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
17981         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
17982         instead of ggc_internal_<x>alloc_stat.
17983         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
17984         (ggc_realloc): Likewise.
17985         * ggc-none.c (ggc_internal_alloc): Likewise.
17986         (ggc_internal_cleared_alloc): Likewise.
17987         * ggc-page.c: Likewise.
17988         * ggc.h (ggc_internal_alloc_stat): Likewise.
17989         (ggc_internal_alloc): Remove macro.
17990         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
17991         (ggc_internal_cleared_alloc): Remove macro.
17992         (GGC_RESIZEVEC): Adjust.
17993         (ggc_resizevar): Remove macro.
17994         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
17995         (ggc_internal_cleared_vec_alloc_stat): Likewise.
17996         (ggc_internal_vec_cleared_alloc): Remove macro.
17997         (ggc_alloc_atomic_stat): Drop _stat suffix.
17998         (ggc_alloc_atomic): Remove macro.
17999         (ggc_alloc_cleared_atomic): Remove macro.
18000         (ggc_alloc_string_stat): Drop _stat suffix.
18001         (ggc_alloc_string): Remove macro.
18002         (ggc_alloc_rtx_def_stat): Adjust.
18003         (ggc_alloc_tree_node_stat): Likewise.
18004         (ggc_alloc_cleared_tree_node_stat): Likewise.
18005         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
18006         (ggc_alloc_cleared_simd_clone_stat): Likewise.
18007         * gimple.c (gimple_build_omp_for): Likewise.
18008         (gimple_copy): Likewise.
18009         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
18010         * toplev.c (realloc_for_line_map): Adjust.
18011         * tree-data-ref.h (lambda_vector_new): Likewise.
18012         * tree-phinodes.c (allocate_phi_node): Likewise.
18013         * tree.c (grow_tree_vec_stat): Likewise.
18014         * vec.h (va_gc::reserve): Adjust.
18016 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
18018         * config/microblaze/microblaze.c (break_handler): New Declaration.
18019         (microblaze_break_function_p,microblaze_is_break_handler): New.
18020         (compute_frame_size): Use microblaze_break_function_p.
18021         Add the test of break_handler.
18022         (microblaze_function_prologue) : Add the test of variable
18023         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
18024         (microblaze_function_epilogue) : Add the test of break_handler.
18025         (microblaze_globalize_label) : Add the test of break_handler.
18026         Check the name by BREAK_HANDLER_NAME.
18028         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
18030         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
18031         microblaze_is_break_handler test.
18032         (call_internal1,call_value_intern): Use microblaze_break_function_p.
18033         Use SYMBOL_REF_DECL.
18035         * config/microblaze/microblaze-protos.h
18036         (microblaze_break_function_p,microblaze_is_break_handler):
18037         New Declaration.
18039         * doc/extend.texi (MicroBlaze break_handler Functions): Document
18040         new MicroBlaze break_handler functions.
18042 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
18044         * doc/extend.texi (Size of an asm): Move node text according
18045         to its @menu entry position.
18047 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
18049         PR tree-optimization/61140
18050         PR tree-optimization/61150
18051         PR tree-optimization/61197
18052         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
18054 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
18056         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
18058 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
18060         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
18061         __SIZEOF_INT128__ is defined.
18063 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
18065         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
18066         (rs6000_delegitimize_address): Use it.
18068 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
18070         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
18071         inplace argument.  Store the new address in the original MEM when true.
18072         * emit-rtl.c (change_address_1): Likewise.
18073         (adjust_address_1, adjust_automodify_address_1, offset_address):
18074         Update accordingly.
18075         * rtl.h (plus_constant): Add an inplace argument.
18076         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
18077         when true.  Avoid generating (plus X (const_int 0)).
18078         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
18079         in-place.  Pass true to plus_constant.
18080         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
18082 2014-05-16  Dehao Chen  <dehao@google.com>
18084         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
18086 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
18088         PR target/54089
18089         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
18090         patterns.
18091         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
18093 2014-05-16  Dehao Chen  <dehao@google.com>
18095         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
18096         optimize_function_for_size_p.
18097         * regs.h (REG_FREQ_FROM_BB): Likewise.
18099 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
18101         PR target/51244
18102         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
18103         negt_reg_operand cases.
18104         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
18105         predicate.
18106         * config/sh/predicates.md (cbranch_treg_value): Simplify.
18108 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
18110         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
18111         target variants.
18113 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
18115         Revert:
18116         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
18118         * tree-cfg.c (dump_function_to_file): Dump the return type of
18119         functions, in a line to itself before the function body, mimicking
18120         the layout of a C function.
18122 2014-05-16  Dehao Chen  <dehao@google.com>
18124         * cfghooks.c (make_forwarder_block): Use direct computation to
18125         get fall-through edge's count and frequency.
18127 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
18129         * config/arc/arc.c (arc_init): Fix typo in error message.
18130         * config/i386/i386.c (ix86_expand_builtin): Likewise.
18131         (split_stack_prologue_scratch_regno): Likewise.
18132         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
18133         word from error message.
18135 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18137         * ira-costs.c: Fix typo in comment.
18139 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
18141         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
18143 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
18145         * varpool.c (dump_varpool_node): Dump write-only flag.
18146         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
18147         write-only flag.
18148         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
18149         write-only variables.
18150         * ipa.c (process_references): New function.
18151         (set_readonly_bit): New function.
18152         (set_writeonly_bit): New function.
18153         (clear_addressable_bit): New function.
18154         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
18155         fix handling of aliases.
18156         * cgraph.h (struct varpool_node): Add writeonly flag.
18158 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
18160         PR rtl-optimization/60969
18161         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
18162         Calculate costs for this case.
18164 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
18166         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
18167         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
18169 2014-05-16  Richard Biener  <rguenther@suse.de>
18171         PR tree-optimization/61194
18172         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
18173         bool patterns ending in a COND_EXPR.
18175 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18177         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
18179 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18181         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
18182         where we were unable to cost an RTX.
18184 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18186         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
18187         HIGH, LO_SUM.
18189 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18190             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18192         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
18194 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18195             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18197         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
18198         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
18200 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18201             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18203         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
18204         operators.
18206 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18207             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18209         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18210         DIV/MOD.
18212 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18213             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18215         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
18216         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
18218 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18219             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18221         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18222         rotates and shifts.
18224 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18225             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18227         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
18228         ZERO_EXTEND and SIGN_EXTEND better.
18230 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18231             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18233         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
18234         logical operations.
18236 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18237             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18239         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
18240         costs when costing loads and stores to memory.
18242 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18243             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
18245         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
18246         for SET RTX.
18248 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18250         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
18252 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18253             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18255         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
18256         to...
18257         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
18258         well formed.
18259         (aarch64_rtx_mult_cost): New.
18260         (aarch64_rtx_costs): Use it, refactor as appropriate.
18262 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18263             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18265         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
18266         emit instructions, return number of instructions which would
18267         be emitted.
18268         (aarch64_add_constant): Update call to aarch64_build_constant.
18269         (aarch64_output_mi_thunk): Likewise.
18270         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
18271         a CONST_DOUBLE.
18273 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18275         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
18276         (TARGET_RTX_COSTS): Call it.
18278 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18280         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
18281         (cortexa57_vector_cost): Likewise.
18282         (cortexa57_tunings): Use them.
18284 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18286         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
18287         (cpu_addrcost_table): Use it.
18288         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
18289         (aarch64_address_cost): Rewrite using aarch64_classify_address,
18290         move it.
18292 2014-05-16  Richard Biener  <rguenther@suse.de>
18294         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
18295         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
18296         (visit_phi): Ignore edges marked as not executable.
18297         (class cond_dom_walker): New.
18298         (cond_dom_walker::before_dom_children): Value-number
18299         control statements and mark successor edges as not
18300         executable if possible.
18301         (run_scc_vn): First walk all control statements in
18302         dominator order, marking edges as not executable.
18303         * tree-inline.c (copy_edges_for_bb): Be not confused
18304         about random edge flags.
18306 2014-05-16  Richard Biener  <rguenther@suse.de>
18308         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
18310 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
18312         PR target/61193
18313         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
18314         (__TM_simple_begin): Use it.
18315         (__TM_begin): Likewise.
18317 2014-05-15  Martin Jambor  <mjambor@suse.cz>
18319         PR ipa/61085
18320         * ipa-prop.c (update_indirect_edges_after_inlining): Check
18321         type_preserved flag when the indirect edge is polymorphic.
18323 2014-05-15  Martin Jambor  <mjambor@suse.cz>
18325         PR tree-optimization/61090
18326         * tree-sra.c (sra_modify_expr): Pass the current gsi to
18327         build_ref_for_model.
18329 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18331         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
18332         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
18334 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
18336         PR tree-optimization/61158
18337         * fold-const.c (fold_binary_loc): If X is zero-extended and
18338         shiftc >= prec, make sure zerobits is all ones instead of
18339         invoking undefined behavior.
18341 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18343         * regcprop.h: New file.
18344         * regcprop.c (skip_debug_insn_p): New decl.
18345         (replace_oldest_value_reg): Check skip_debug_insn_p.
18346         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
18347         * shrink-wrap.c: Include regcprop.h.
18348         (prepare_shrink_wrap): Call
18349         copyprop_hardreg_forward_bb_without_debug_insn.
18351 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18353         * shrink-wrap.h: Update comment.
18354         * shrink-wrap.c: Update comment.
18355         (next_block_for_reg): Rename to live_edge_for_reg.
18356         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
18357         (move_insn_for_shrink_wrap): Split live_edge.
18358         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
18360 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
18362         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
18363         Delete.
18364         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
18365         * config/sparc/sparc.md (fptype_ut699): New attribute.
18366         (in_branch_delay): Return false if -mfix-ut699 is specified and
18367         fptype_ut699 is set to single.
18368         (truncdfsf2): Add fptype_ut699 attribute.
18369         (fix_truncdfsi2): Likewise.
18370         (floatsisf2): Change fptype attribute.
18371         (fix_truncsfsi2): Likewise.
18372         (negtf2_notv9): Delete.
18373         (negtf2_v9): Likewise.
18374         (negtf2_hq): New instruction.
18375         (negtf2): New instruction and splitter.
18376         (negdf2_notv9): Rewrite.
18377         (abstf2_notv9): Delete.
18378         (abstf2_hq_v9): Likewise.
18379         (abstf2_v9): Likewise.
18380         (abstf2_hq): New instruction.
18381         (abstf2): New instruction and splitter.
18382         (absdf2_notv9): Rewrite.
18384 2014-05-14  Cary Coutant  <ccoutant@google.com>
18386         PR debug/61013
18387         * opts.c (common_handle_option): Don't special-case "-g".
18388         (set_debug_level): Default to at least level 2 with "-g".
18390 2014-05-14  DJ Delorie  <dj@redhat.com>
18392         * config/msp430/msp430.c (msp430_builtin): Add
18393         MSP430_BUILTIN_DELAY_CYCLES.
18394         (msp430_init_builtins): Register void __delay_cycles(long long).
18395         (msp430_builtin_decl): Add it.
18396         (cg_magic_constant): New.
18397         (msp430_expand_delay_cycles): New.
18398         (msp430_expand_builtin): Call it.
18399         (msp430_print_operand_raw): Change integer printing from "int" to
18400         HOST_WIDE_INT.
18401         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
18402         (delay_cycles_start): New.
18403         (delay_cycles_end): New.
18404         (delay_cycles_32): New.
18405         (delay_cycles_32x): New.
18406         (delay_cycles_16): New.
18407         (delay_cycles_16x): New.
18408         (delay_cycles_2): New.
18409         (delay_cycles_1): New.
18410         * doc/extend.texi: Document __delay_cycles().
18412 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
18414         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
18415         length attribute computation.
18417 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
18419         PR debug/61188
18420         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
18422 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
18424         PR target/61084
18425         * config/sparc/sparc.md: Fix types of low and high in DI constant
18426         splitter.  Use gen_int_mode in some other splitters.
18428 2014-05-14  Martin Jambor  <mjambor@suse.cz>
18430         PR ipa/60897
18431         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
18433 2014-05-14  James Norris  <jnorris@codesourcery.com>
18435         * omp-low.c (expand_parallel_call): Remove shadow variable.
18436         (expand_omp_taskreg): Likewise.
18438 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
18440         * common/config/i386/i386-common.c
18441         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
18442         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
18443         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
18444         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
18445         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
18446         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
18447         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
18448         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
18449         xsavecintrin.h, xsavesintrin.h.
18450         (x86_64-*-*): Ditto.
18451         * config/i386/clflushoptintrin.h: New.
18452         * config/i386/xsavecintrin.h: Ditto.
18453         * config/i386/xsavesintrin.h: Ditto.
18454         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
18455         (bit_XSAVES): Ditto.
18456         (bit_XSAVES): Ditto.
18457         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18458         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
18459         -mno-clflushopt.
18460         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18461         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
18462         OPTION_MASK_ISA_XSAVES.
18463         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
18464         -mxsavec, -mxsaves.
18465         (PTA_CLFLUSHOPT) Define.
18466         (PTA_XSAVEC): Ditto.
18467         (PTA_XSAVES): Ditto.
18468         (ix86_option_override_internal): Handle new options.
18469         (ix86_valid_target_attribute_inner_p): Ditto.
18470         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
18471         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
18472         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
18473         (bdesc_special_args): Add __builtin_ia32_xsaves,
18474         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
18475         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
18476         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
18477         (ix86_expand_builtin): Handle new builtins.
18478         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
18479         (TARGET_CLFLUSHOPT_P): Ditto.
18480         (TARGET_XSAVEC): Ditto.
18481         (TARGET_XSAVEC_P): Ditto.
18482         (TARGET_XSAVES): Ditto.
18483         (TARGET_XSAVES_P): Ditto.
18484         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
18485         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
18486         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
18487         (ANY_XRSTOR): New.
18488         (ANY_XRSTOR64): Ditto.
18489         (xrstor): Ditto.
18490         (xrstor): Change into <xrstor>.
18491         (xrstor_rex64): Change into <xrstor>_rex64.
18492         (xrstor64): Change into <xrstor>64
18493         (clflushopt): New.
18494         * config/i386/i386.opt (mclflushopt): New.
18495         (mxsavec): Ditto.
18496         (mxsaves): Ditto.
18497         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
18498         xsavecintrin.h.
18499         * doc/invoke.texi: Document new options.
18501 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
18503         PR rtl-optimization/60866
18504         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
18505         Default it to -1.  Pass it down to init_simplejump_data.
18506         (init_simplejump_data): New parameter old_seqno.  Pass it down
18507         to get_seqno_for_a_jump.
18508         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
18509         initializing new jump seqno as a last resort.  Add comment.
18510         (sel_redirect_edge_and_branch): Save old seqno of the conditional
18511         jump and pass it down to sel_init_new_insn.
18512         (sel_redirect_edge_and_branch_force): Likewise.
18514 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
18516         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
18517         shifted values to avoid build warning.
18519 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
18521         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
18522         * cfgrtl.c (rtl_merge_blocks): Fix comment.
18523         (cfg_layout_merge_blocks): Likewise.
18524         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
18526 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
18528         PR rtl-optimization/60901
18529         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
18530         bb predecessor belongs to the same scheduling region.  Adjust comment.
18532 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
18534         * doc/sourcebuild.texi: (dfp_hw): Document.
18535         (p8vector_hw): Likewise.
18536         (powerpc_eabi_ok): Likewise.
18537         (powerpc_elfv2): Likewise.
18538         (powerpc_htm_ok): Likewise.
18539         (ppc_recip_hw): Likewise.
18540         (vsx_hw): Likewise.
18542 2014-05-13  Cary Coutant  <ccoutant@google.com>
18544         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
18546 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
18548         * gengtype-parse.c (require3): Eliminate in favor of...
18549         (require4): New.
18550         (require_template_declaration): Update to support optional single *
18551         on a type.
18553         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
18554         (create_user_defined_type): Handle a single level of explicit
18555         pointerness within template arguments.
18556         (struct write_types_data): Add field "kind".
18557         (filter_type_name): Handle "*" character.
18558         (write_user_func_for_structure_ptr): Require a write_types_data
18559         rather than just a prefix string, so that we can look up the kind
18560         of the wtd and use it as an index into wrote_user_func_for_ptr,
18561         ensuring that such functions are written at most once.  Support
18562         subclasses by invoking the marking function of the ultimate base class.
18563         (write_user_func_for_structure_body): Require a write_types_data
18564         rather than just a prefix string, so that we can pass this to
18565         write_user_func_for_structure_ptr.
18566         (write_func_for_structure): Likewise.
18567         (ggc_wtd): Add initializer of new "kind" field.
18568         (pch_wtd): Likewise.
18570         * gengtype.h (enum write_types_kinds): New.
18571         (struct type): Add field wrote_user_func_for_ptr to the "s"
18572         union member.
18574 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
18576         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
18577         instead of const_binop.
18578         (fold_binary_loc): Likewise.
18580 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
18582         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
18583         calculation to match get_ref_base_and_extent.
18585 2014-05-13  Catherine Moore  <clm@codesourcery.com>
18586             Sandra Loosemore  <sandra@codesourcery.com>
18588         * configure.ac: Fix assembly for explicit JALR relocation check.
18589         * configure: Regenerate.
18591 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18593         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
18594         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
18595         Remove associated type declarations and initialisations.
18596         (arm_expand_neon_builtin): Likewise.
18597         (neon_emit_pair_result_insn): Delete.
18598         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
18599         * config/arm/neon.md (neon_vtrn<mode>): Delete.
18600         (neon_vzip<mode>): Likewise.
18601         (neon_vuzp<mode>): Likewise.
18603 2014-05-13  Richard Biener  <rguenther@suse.de>
18605         PR ipa/60973
18606         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
18607         it needs revisiting whether the call still may be tail-called.
18609 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18611         * rtl.def (SYMBOL_REF): Remove middle "0" field.
18612         * rtl.h (block_symbol): Reduce number of fields to 2.
18613         (rtx_def): Add u2.symbol_ref_flags.
18614         (SYMBOL_REF_FLAGS): Use it.
18615         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
18616         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
18617         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
18618         Lower index of SYMBOL_REF_DATA.
18619         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
18620         Print SYMBOL_REF_FLAGS at the same time.
18621         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
18623 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18625         * rtl.def (VAR_LOCATION): Remove "i" field.
18626         * rtl.h (rtx_def): Add u2.var_location_status.
18627         (PAT_VAR_LOCATION_STATUS): Use it.
18628         (gen_rtx_VAR_LOCATION): Declare.
18629         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
18630         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
18631         * var-tracking.c (emit_note_insn_var_location): Remove casts.
18633 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18635         * rtl.def (scratch): Fix outdated comment and remove "0" field.
18636         * gengtype.c (adjust_field_rtx_def): Update accordingly.
18638 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18640         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
18641         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
18642         * rtl.h (rtx_def): Add insn_uid to u2 field.
18643         (RTX_FLAG_CHECK8): Delete in favor of...
18644         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
18645         (INSN_DELETED_P): Update accordingly.
18646         (INSN_UID): Use u2.insn_uid.
18647         (INSN_CHAIN_CODE_P): Define.
18648         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
18649         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
18650         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
18651         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
18652         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
18653         indices accordingly.
18654         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
18655         Update indices for insn-chain rtxes.
18656         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
18657         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
18658         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
18659         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
18660         * combine.c (try_combine): Likewise.
18661         * ira.c (setup_prohibited_mode_move_regs): Likewise.
18663 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18665         * rtl.def (REG): Remove middle field.
18666         * rtl.h (rtx_def): Add orignal_regno to u2.
18667         (ORIGINAL_REGNO): Use it instead of field 1.
18668         (REG_ATTRS): Lower field index accordingly.
18669         * gengtype.c (adjust_field_rtx_def): Remove handling of
18670         ORIGINAL_REGNO.  Move REG_ATTRS index down.
18671         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
18672         code that prints the REGNO.
18674 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18676         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
18677         GENERATOR_FILE.
18679 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18681         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
18683 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
18685         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
18686         (alloc_iv): Lower base expressions containing ADDR_EXPR.
18688 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
18690         * config/aarch64/aarch64-protos.h
18691         (aarch64_hard_regno_caller_save_mode): New prototype.
18692         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
18693         New function.
18694         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
18696 2014-05-13  Christian Bruel  <christian.bruel@st.com>
18698         * target.def (mode_switching): New hook vector.
18699         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
18700         (mode_exit, modepriority_to_mode): Likewise.
18701         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
18702         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18703         * target.h: Include tm.h and hard-reg-set.h.
18704         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
18705         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
18706         * doc/tm.texi Regenerate.
18707         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18708         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18709         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
18710         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
18711         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18712         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18713         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
18714         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
18715         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
18716         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
18717         (ix86_emit_mode_set): Hookify.
18718         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
18719         Delete.
18720         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18721         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
18722         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
18723         (epiphany_mode_priority_to_mode): Remove declaration.
18724         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
18725         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
18726         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
18727         Likewise.
18728         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
18729         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
18730         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
18732 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
18734         PR target/61060
18735         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
18736         is const0_rtx, return immediately.  Don't test count == 0 when
18737         it is always true.
18739 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18741         * Makefile.in: add shrink-wrap.o.
18742         * config/i386/i386.c: include "shrink-wrap.h"
18743         * function.c: Likewise.
18744         (requires_stack_frame_p, next_block_for_reg,
18745         move_insn_for_shrink_wrap, prepare_shrink_wrap,
18746         dup_block_and_redirect): Move to shrink-wrap.c
18747         (thread_prologue_and_epilogue_insns): Extract three code segments
18748         as functions in shrink-wrap.c
18749         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
18750         shrink-wrap.h
18751         * shrink-wrap.c: New file.
18752         * shrink-wrap.h: New file.
18754 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
18756         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
18757         reference to Solaris.
18759 2014-05-12  Mike Stump  <mikestump@comcast.net>
18761         PR other/31778
18762         * genattrtab.c (filename): Add.
18763         (convert_set_attr_alternative): Improve error message.
18764         (check_defs): Restore read_md_filename for error messages.
18765         (gen_insn): Save filename.
18767 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
18769         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
18770         -fno-local-ivars and -fivar-visibility.
18771         * c-family/c.opt: Make -Wshadow also implicitly enable
18772         -Wshadow-ivar.
18774 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
18776         * doc/tm.texi: Remove reference to deleted macro.
18777         * doc/tm.texi.in: Likewise.
18779 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18781         PR target/60991
18782         * config/avr/avr.c (avr_out_store_psi): Use correct constant
18783         to restore Y.
18785 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
18787         PR libgcc/61152
18788         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
18789         * config/arm/aout.h (License): Same.
18790         * config/arm/bpabi.h (License): Same.
18791         * config/arm/elf.h (License): Same.
18792         * config/arm/linux-elf.h (License): Same.
18793         * config/arm/linux-gas.h (License): Same.
18794         * config/arm/netbsd-elf.h (License): Same.
18795         * config/arm/uclinux-eabi.h (License): Same.
18796         * config/arm/uclinux-elf.h (License): Same.
18797         * config/arm/vxworks.h (License): Same.
18799 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
18801         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
18802         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
18803         number of operands to 3.
18804         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
18805         * tree-nested.c (convert_nonlocal_omp_clauses,
18806         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
18807         * gimplify.c (gimplify_scan_omp_clauses): Handle
18808         OMP_CLAUSE_LINEAR_STMT.
18809         * omp-low.c (lower_rec_input_clauses): Fix typo.
18810         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
18811         cast between Fortran boolean_type_node and C _Bool if
18812         needed.
18814 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
18816         PR tree-optimization/61136
18817         * wide-int.h (multiple_of_p): Define a version that doesn't return
18818         the quotient.
18819         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
18820         integer_zerop/const_binop pair.
18821         (multiple_of_p): Likewise, converting both operands to widest_int
18822         precision.
18824 2014-05-09  Teresa Johnson  <tejohnson@google.com>
18826         * cgraphunit.c (analyze_functions): Use correct dump file.
18828 2014-05-09  Florian Weimer  <fweimer@redhat.com>
18830         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
18831         expand_used_vars.
18832         (stack_protect_return_slot_p): New function.
18833         (expand_used_vars): Call stack_protect_decl_p and
18834         stack_protect_return_slot_p for -fstack-protector-strong.
18836 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
18837         Andrew Haley <aph@redhat.com>
18838         Richard Sandiford <rdsandiford@googlemail.com>
18840         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
18841         pages.
18843 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
18845         PR middle-end/61111
18846         * fold-const.c (fold_binary_loc): Changed width of mask.
18848 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
18850         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
18851         unsigned int initializers for regno_in, regno_out.
18853 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
18855         PR target/61055
18856         * config/avr/avr.md (cc): Add new attribute set_vzn.
18857         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
18858         Set cc insn attribute to set_vzn instead of set_zn for alternatives
18859         with INC, DEC or NEG.
18860         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
18861         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
18862         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
18864 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18866         Revert:
18867         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18869         * wide-int.cc (UTItype): Define.
18870         (UDWtype): Define for appropriate W_TYPE_SIZE.
18872 2014-05-09  Richard Biener  <rguenther@suse.de>
18874         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
18875         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
18876         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
18877         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
18878         ssa_propagate): Adjust.
18880 2014-05-08  Jeff Law  <law@redhat.com>
18882         PR tree-optimization/61009
18883         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
18884         tri-state rather than a boolean.  When a block is too big to
18885         thread through, inform caller via negative return value.
18886         (thread_across_edge): If a block was too big for normal threading,
18887         then it's too big for a joiner too, so remove temporary equivalences
18888         and return immediately.
18890 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18891             Matthias Klose  <doko@ubuntu.com>
18893         PR driver/61106
18894         * optc-gen.awk: Fix option handling for -Wunused-parameter.
18896 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
18898         PR target/59952
18899         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
18901 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
18903         PR target/61092
18904         * config/alpha/alpha.c: Include gimple-iterator.h.
18905         (alpha_gimple_fold_builtin): New function.  Move
18906         ALPHA_BUILTIN_UMULH folding from ...
18907         (alpha_fold_builtin): ... here.
18908         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
18910 2014-05-08  Wei Mi  <wmi@google.com>
18912         PR target/58066
18913         * config/i386/i386.c (ix86_compute_frame_layout): Update
18914         preferred_stack_boundary for call, expanded from tls descriptor.
18915         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
18916         to depend on SP register.
18917         (*tls_local_dynamic_base_32_gnu): Ditto.
18918         (*tls_local_dynamic_32_once): Ditto.
18919         (tls_global_dynamic_64_<mode>): Set
18920         ix86_tls_descriptor_calls_expanded_in_cfun.
18921         (tls_local_dynamic_base_64_<mode>): Ditto.
18922         (tls_global_dynamic_32): Set
18923         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
18924         to depend on SP register.
18925         (tls_local_dynamic_base_32): Ditto.
18927 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18929         * config/arm/arm_neon.h: Update comment.
18930         * config/arm/neon-docgen.ml: Delete.
18931         * config/arm/neon-gen.ml: Delete.
18932         * doc/arm-neon-intrinsics.texi: Update comment.
18934 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18936         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
18937         and v4sf versions.
18938         (vand, vorr, veor, vorn, vbic): Remove.
18939         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
18940         iterator.
18941         (neon_vsub_unspec): Likewise.
18942         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
18944 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18946         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
18947         (vadd_s16): Likewise.
18948         (vadd_s32): Likewise.
18949         (vadd_f32): Likewise.
18950         (vadd_u8): Likewise.
18951         (vadd_u16): Likewise.
18952         (vadd_u32): Likewise.
18953         (vadd_s64): Likewise.
18954         (vadd_u64): Likewise.
18955         (vaddq_s8): Likewise.
18956         (vaddq_s16): Likewise.
18957         (vaddq_s32): Likewise.
18958         (vaddq_s64): Likewise.
18959         (vaddq_f32): Likewise.
18960         (vaddq_u8): Likewise.
18961         (vaddq_u16): Likewise.
18962         (vaddq_u32): Likewise.
18963         (vaddq_u64): Likewise.
18964         (vmul_s8): Likewise.
18965         (vmul_s16): Likewise.
18966         (vmul_s32): Likewise.
18967         (vmul_f32): Likewise.
18968         (vmul_u8): Likewise.
18969         (vmul_u16): Likewise.
18970         (vmul_u32): Likewise.
18971         (vmul_p8): Likewise.
18972         (vmulq_s8): Likewise.
18973         (vmulq_s16): Likewise.
18974         (vmulq_s32): Likewise.
18975         (vmulq_f32): Likewise.
18976         (vmulq_u8): Likewise.
18977         (vmulq_u16): Likewise.
18978         (vmulq_u32): Likewise.
18979         (vsub_s8): Likewise.
18980         (vsub_s16): Likewise.
18981         (vsub_s32): Likewise.
18982         (vsub_f32): Likewise.
18983         (vsub_u8): Likewise.
18984         (vsub_u16): Likewise.
18985         (vsub_u32): Likewise.
18986         (vsub_s64): Likewise.
18987         (vsub_u64): Likewise.
18988         (vsubq_s8): Likewise.
18989         (vsubq_s16): Likewise.
18990         (vsubq_s32): Likewise.
18991         (vsubq_s64): Likewise.
18992         (vsubq_f32): Likewise.
18993         (vsubq_u8): Likewise.
18994         (vsubq_u16): Likewise.
18995         (vsubq_u32): Likewise.
18996         (vsubq_u64): Likewise.
18997         (vand_s8): Likewise.
18998         (vand_s16): Likewise.
18999         (vand_s32): Likewise.
19000         (vand_u8): Likewise.
19001         (vand_u16): Likewise.
19002         (vand_u32): Likewise.
19003         (vand_s64): Likewise.
19004         (vand_u64): Likewise.
19005         (vandq_s8): Likewise.
19006         (vandq_s16): Likewise.
19007         (vandq_s32): Likewise.
19008         (vandq_s64): Likewise.
19009         (vandq_u8): Likewise.
19010         (vandq_u16): Likewise.
19011         (vandq_u32): Likewise.
19012         (vandq_u64): Likewise.
19013         (vorr_s8): Likewise.
19014         (vorr_s16): Likewise.
19015         (vorr_s32): Likewise.
19016         (vorr_u8): Likewise.
19017         (vorr_u16): Likewise.
19018         (vorr_u32): Likewise.
19019         (vorr_s64): Likewise.
19020         (vorr_u64): Likewise.
19021         (vorrq_s8): Likewise.
19022         (vorrq_s16): Likewise.
19023         (vorrq_s32): Likewise.
19024         (vorrq_s64): Likewise.
19025         (vorrq_u8): Likewise.
19026         (vorrq_u16): Likewise.
19027         (vorrq_u32): Likewise.
19028         (vorrq_u64): Likewise.
19029         (veor_s8): Likewise.
19030         (veor_s16): Likewise.
19031         (veor_s32): Likewise.
19032         (veor_u8): Likewise.
19033         (veor_u16): Likewise.
19034         (veor_u32): Likewise.
19035         (veor_s64): Likewise.
19036         (veor_u64): Likewise.
19037         (veorq_s8): Likewise.
19038         (veorq_s16): Likewise.
19039         (veorq_s32): Likewise.
19040         (veorq_s64): Likewise.
19041         (veorq_u8): Likewise.
19042         (veorq_u16): Likewise.
19043         (veorq_u32): Likewise.
19044         (veorq_u64): Likewise.
19045         (vbic_s8): Likewise.
19046         (vbic_s16): Likewise.
19047         (vbic_s32): Likewise.
19048         (vbic_u8): Likewise.
19049         (vbic_u16): Likewise.
19050         (vbic_u32): Likewise.
19051         (vbic_s64): Likewise.
19052         (vbic_u64): Likewise.
19053         (vbicq_s8): Likewise.
19054         (vbicq_s16): Likewise.
19055         (vbicq_s32): Likewise.
19056         (vbicq_s64): Likewise.
19057         (vbicq_u8): Likewise.
19058         (vbicq_u16): Likewise.
19059         (vbicq_u32): Likewise.
19060         (vbicq_u64): Likewise.
19061         (vorn_s8): Likewise.
19062         (vorn_s16): Likewise.
19063         (vorn_s32): Likewise.
19064         (vorn_u8): Likewise.
19065         (vorn_u16): Likewise.
19066         (vorn_u32): Likewise.
19067         (vorn_s64): Likewise.
19068         (vorn_u64): Likewise.
19069         (vornq_s8): Likewise.
19070         (vornq_s16): Likewise.
19071         (vornq_s32): Likewise.
19072         (vornq_s64): Likewise.
19073         (vornq_u8): Likewise.
19074         (vornq_u16): Likewise.
19075         (vornq_u32): Likewise.
19076         (vornq_u64): Likewise.
19078 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19080         * wide-int.cc (UTItype): Define.
19081         (UDWtype): Define for appropriate W_TYPE_SIZE.
19083 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
19085         PR tree-optimization/59100
19086         * tree-ssa-phiopt.c: Include tree-inline.h.
19087         (neutral_element_p, absorbing_element_p): New functions.
19088         (value_replacement): Handle conditional binary operations with a
19089         neutral or absorbing element.
19091 2014-05-08  Richard Biener  <rguenther@suse.de>
19093         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
19094         folding the expression.
19095         (valueize_expr): Remove.
19096         (visit_reference_op_load): Do not valueize the result of
19097         vn_get_expr_for.
19098         (simplify_binary_expression): Likewise.
19099         (simplify_unary_expression): Likewise.
19101 2014-05-08  Richard Biener  <rguenther@suse.de>
19103         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
19104         looking at TYPE_ARG_TYPES.
19106 2014-05-08  Richard Biener  <rguenther@suse.de>
19108         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19109         pointer propagation special-case.
19111 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
19113         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
19114         core part of address expressions.
19116 2014-05-08  Alan Modra  <amodra@gmail.com>
19118         PR target/60737
19119         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
19120         loads and stores when -mno-strict-align at any alignment.
19121         (expand_block_clear): Similarly.  Also correct calculation of
19122         instruction count.
19124 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19126         PR middle-end/39246
19127         * tree-complex.c (expand_complex_move): Keep line info when expanding
19128         complex move.
19129         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
19130         of complex expression. Use new argument to display correct location
19131         for values coming from phi statement.
19132         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
19133         (warn_uninitialized_phi): Pass location of phi argument to
19134         warn_uninit.
19135         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
19136         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
19138 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
19140         * config/rs6000/predicates.md (indexed_address_mem): New.
19141         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
19142         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
19143         fpstore_ux, fpstore_u.
19144         (sign_extend, indexed, update): New.
19145         (cell_micro): Adjust.
19146         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
19147         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
19148         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
19149         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
19150         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19151         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
19152         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
19153         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
19154         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
19155         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
19156         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
19157         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
19158         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
19159         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
19160         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
19162         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
19163         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
19164         *vsx_extract_<mode>_store): Adjust.
19165         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
19166         is_cracked_insn, insn_must_be_first_in_group,
19167         insn_must_be_last_in_group): Adjust.
19169         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
19170         Adjust.
19171         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
19172         ppc440-fpstore): Adjust.
19173         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
19174         ppc476-fpstore): Adjust.
19175         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
19176         ppc601-fpstore): Adjust.
19177         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
19178         Adjust.
19179         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
19180         Adjust.
19181         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
19182         ppc7450-fpstore): Adjust.
19183         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
19184         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
19185         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
19186         Adjust.
19187         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
19188         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
19189         cell-fpstore, cell-fpstore-update): Adjust.
19190         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
19191         ppce300c3_store, ppce300c3_fpstore): Adjust.
19192         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
19193         e500mc_fpstore): Adjust.
19194         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
19195         e500mc64_store, e500mc64_fpstore): Adjust.
19196         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
19197         e5500_fpstore): Adjust.
19198         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
19199         e6500_fpstore): Adjust.
19200         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
19201         Adjust.
19202         * config/rs6000/power4.md (power4-load, power4-load-ext,
19203         power4-load-ext-update, power4-load-ext-update-indexed,
19204         power4-load-update-indexed, power4-load-update, power4-fpload,
19205         power4-fpload-update, power4-store, power4-store-update,
19206         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
19207         Adjust.
19208         * config/rs6000/power5.md (power5-load, power5-load-ext,
19209         power5-load-ext-update, power5-load-ext-update-indexed,
19210         power5-load-update-indexed, power5-load-update, power5-fpload,
19211         power5-fpload-update, power5-store, power5-store-update,
19212         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
19213         Adjust.
19214         * config/rs6000/power6.md (power6-load, power6-load-ext,
19215         power6-load-update, power6-load-update-indexed,
19216         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
19217         power6-fpload-update, power6-store, power6-store-update,
19218         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
19219         Adjust.
19220         * config/rs6000/power7.md (power7-load, power7-load-ext,
19221         power7-load-update, power7-load-update-indexed,
19222         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
19223         power7-fpload-update, power7-store, power7-store-update,
19224         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
19225         Adjust.
19226         * config/rs6000/power8.md (power8-load, power8-load-update,
19227         power8-load-ext, power8-load-ext-update, power8-fpload,
19228         power8-fpload-update, power8-store, power8-store-update-indexed,
19229         power8-fpstore, power8-fpstore-update): Adjust.
19230         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
19231         Adjust.
19232         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
19233         titan_lsu_store, titan_lsu_fpstore): Adjust.
19234         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
19236 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
19238         PR target/60884
19239         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
19240         unrolled byte insns.  Emit address increments after move insns.
19242 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
19244         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
19245         const_gimple, rather than a gimple.
19246         (gimple_call_builtin_p): Likewise, for the three variants.
19248         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
19249         (gimple_call_builtin_p): Likewise, for the three variants.
19251 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
19253         PR tree-optimization/61095
19254         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
19256 2014-05-07  Richard Biener  <rguenther@suse.de>
19258         PR tree-optimization/61034
19259         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
19260         (maybe_skip_until): Use translate to take into account
19261         lattices when trying to do disambiguations.
19262         (get_continuation_for_phi_1): Likewise.
19263         (get_continuation_for_phi): Adjust for added translate arguments.
19264         (walk_non_aliased_vuses): Likewise.
19265         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
19266         (walk_non_aliased_vuses): Likewise.
19267         (call_may_clobber_ref_p_1): Declare.
19268         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
19269         calls.  Stop early if we are only supposed to disambiguate.
19270         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
19272 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
19274         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
19275         Emit an error when the function has arguments.
19277 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
19279         * cfgloop.h (unswitch_loops): Remove.
19280         * doc/passes.texi: Remove references to loop-unswitch.c
19281         * timevar.def (TV_LOOP_UNSWITCH): Remove.
19283 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
19285         * tree-vect-data-refs.c (vect_grouped_load_supported): New
19286         check for loads group of length 3.
19287         (vect_permute_load_chain): New permutations for loads group of
19288         length 3.
19289         * tree-vect-stmts.c (vect_model_load_cost): Change cost
19290         of vec_perm_shuffle for the new permutations.
19292 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
19294         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
19295         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
19296         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
19297         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
19298         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
19299         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
19300         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
19301         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
19303 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
19305         * loop-unswitch.c: Delete.
19307 2014-05-07  Richard Biener  <rguenther@suse.de>
19309         * config.gcc: Always set need_64bit_hwint to yes.
19311 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
19313         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
19314         of using optimize_size.
19316 2014-05-06  Mike Stump  <mikestump@comcast.net>
19318         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
19320 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
19322         * config/i386/sse.md (*mov<mode>_internal)
19323         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
19324         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
19325         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
19326         (*<code><mode>3, *andnot<mode>3<mask_name>)
19327         (<mask_codefor><code><mode>3<mask_name>): Only consider
19328         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
19330 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
19332         Revert:
19333         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
19335         * lra-constraints.c (valid_address_p): Move earlier in file.
19336         Add a constraint argument to the address_info version.
19337         (satisfies_memory_constraint_p): New function.
19338         (satisfies_address_constraint_p): Likewise.
19339         (process_alt_operands, curr_insn_transform): Use them.
19340         (process_address): Pass the constraint to valid_address_p when
19341         checking address operands.
19343 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
19345         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
19346         to their respective blocks.  Fix inadvertent use of "node".
19348 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
19350         * emit-rtl.c (init_derived_machine_modes): New functionm, split
19351         out from...
19352         (init_emit_once): ...here.
19353         * rtl.h (init_derived_machine_modes): Declare.
19354         * toplev.c (do_compile): Call it even if no_backend.
19356 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
19357             Mike Stump  <mikestump@comcast.net>
19358             Richard Sandiford  <rdsandiford@googlemail.com>
19359             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19361         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
19362         (rtx_equal_for_memref_p): Update comment.
19363         (adjust_offset_for_component_ref): Use wide-int interfaces.
19364         * builtins.c (get_object_alignment_2): Likewise.
19365         (c_readstr): Likewise.
19366         (target_char_cast): Add comment.
19367         (determine_block_size): Use wide-int interfaces.
19368         (expand_builtin_signbit): Likewise.
19369         (fold_builtin_int_roundingfn): Likewise.
19370         (fold_builtin_bitop): Likewise.
19371         (fold_builtin_bswap): Likewise.
19372         (fold_builtin_logarithm): Use signop.
19373         (fold_builtin_pow): Likewise.
19374         (fold_builtin_memory_op): Use wide-int interfaces.
19375         (fold_builtin_object_size): Likewise.
19376         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
19377         nb_iterations_estimate.
19378         (record_niter_bound): Use wide-int interfaces.
19379         (get_estimated_loop_iterations_int): Likewise.
19380         (get_estimated_loop_iterations): Likewise.
19381         (get_max_loop_iterations): Likewise.
19382         * cfgloop.h: Include wide-int.h.
19383         (struct nb_iter_bound): Change bound to widest_int.
19384         (struct loop): Change nb_iterations_upper_bound and
19385         nb_iterations_estimate to widest_int.
19386         (record_niter_bound): Switch to use widest_int.
19387         (get_estimated_loop_iterations): Likewise.
19388         (get_max_loop_iterations): Likewise.
19389         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
19390         update for wide-int.
19391         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
19392         * combine.c (try_combine): Likewise.
19393         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
19394         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
19395         interfaces.
19396         (aarch64_float_const_representable_p): Likewise.
19397         * config/arc/arc.c: Include wide-int.h.
19398         (arc_can_use_doloop_p): Use wide-int interfaces.
19399         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
19400         (vfp3_const_double_index): Likewise.
19401         * config/avr/avr.c (avr_out_round): Likewise.
19402         (avr_fold_builtin): Likewise.
19403         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
19404         (bfin_can_use_doloop_p): Likewise.
19405         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
19406         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
19407         * config/i386/i386.c: Include wide-int.h.
19408         (ix86_data_alignment): Use wide-int interfaces.
19409         (ix86_local_alignment): Likewise.
19410         (ix86_emit_swsqrtsf): Update real_from_integer.
19411         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
19412         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
19413         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
19414         (zero_constant): Likewise.
19415         (input_operand): Likewise.
19416         (splat_input_operand): Likewise.
19417         (non_logical_cint_operand): Change const_double to const_wide_int.
19418         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
19419         (easy_altivec_constant): Remove comment.
19420         (paired_expand_vector_init): Use CONSTANT_P.
19421         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
19422         (rs6000_emit_move): Update checks.
19423         (rs6000_aggregate_candidate): Use wide-int interfaces.
19424         (rs6000_expand_ternop_builtin): Likewise.
19425         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
19426         (rs6000_assemble_integer): Likewise.
19427         (rs6000_hash_constant): Likewise.
19428         (output_toc): Likewise.
19429         (rs6000_rtx_costs): Likewise.
19430         (rs6000_emit_swrsqrt); Update call to real_from_integer.
19431         * config/rs6000/rs6000-c.c: Include wide-int.h.
19432         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
19433         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
19434         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
19435         Handle CONST_WIDE_INT.
19436         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
19437         Use tree_fits_uhwi_p.
19438         * config/sparc/sparc.c: Include wide-int.h.
19439         (sparc_fold_builtin): Use wide-int interfaces.
19440         * config/vax/vax.c: Include wide-int.h.
19441         (vax_float_literal): Use real_from_integer.
19442         * coretypes.h (struct hwivec_def): New.
19443         (hwivec): New.
19444         (const_hwivec): New.
19445         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
19446         (equiv_constant): Handle CONST_WIDE_INT.
19447         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
19448         (cselib_hash_rtx): Handle CONST_WIDE_INT.
19449         * dbxout.c (stabstr_U): Use wide-int interfaces.
19450         (dbxout_type): Update to use cst_fits_shwi_p.
19451         * defaults.h (LOG2_BITS_PER_UNIT): Define.
19452         (TARGET_SUPPORTS_WIDE_INT): Add default.
19453         * dfp.c: Include wide-int.h.
19454         (decimal_real_to_integer2): Use wide-int interfaces and rename to
19455         decimal_real_to_integer.
19456         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
19457         decimal_real_to_integer.
19458         * doc/generic.texi (Constant expressions): Update for wide_int.
19459         * doc/rtl.texi (const_double): Likewise.
19460         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
19461         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
19462         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
19463         (REAL_VALUE_FROM_INT): Remove.
19464         (TARGET_SUPPORTS_WIDE_INT): New.
19465         * doc/tm.texi: Regenerate.
19466         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
19467         * double-int.h: Include wide-int.h.
19468         (struct wi::int_traits): New.
19469         * dwarf2out.c (get_full_len): New.
19470         (dw_val_equal_p): Add case dw_val_class_wide_int.
19471         (size_of_loc_descr): Likewise.
19472         (output_loc_operands): Likewise.
19473         (insert_double): Remove.
19474         (insert_wide_int): New.
19475         (add_AT_wide): New.
19476         (print_die): Add case dw_val_class_wide_int.
19477         (attr_checksum): Likewise.
19478         (attr_checksum_ordered): Likewise.
19479         (same_dw_val_p): Likewise.
19480         (size_of_die): Likewise.
19481         (value_format): Likewise.
19482         (output_die): Likewise.
19483         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
19484         Use wide-int.
19485         (clz_loc_descriptor): Use wide-int interfaces.
19486         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
19487         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
19488         (round_up_to_align): Use wide-int interfaces.
19489         (field_byte_offset): Likewise.
19490         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
19491         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
19492         CONST_DOUBLE handling.  Use wide-int interfaces.
19493         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
19494         (gen_enumeration_type_die): Use add_AT_wide.
19495         (hash_loc_operands): Add case dw_val_class_wide_int.
19496         (compare_loc_operands): Likewise.
19497         * dwarf2out.h: Include wide-int.h.
19498         (wide_int_ptr): New.
19499         (enum dw_val_class): Add dw_val_class_wide_int.
19500         (struct dw_val_struct): Add val_wide.
19501         * emit-rtl.c (const_wide_int_htab): New.
19502         (const_wide_int_htab_hash): New.
19503         (const_wide_int_htab_eq): New.
19504         (lookup_const_wide_int): New.
19505         (const_double_htab_hash): Use wide-int interfaces.
19506         (const_double_htab_eq): Likewise.
19507         (rtx_to_double_int): Conditionally compile for wide-int.
19508         (immed_double_int_const): Rename to immed_wide_int_const and
19509         update for wide-int.
19510         (immed_double_const): Conditionally compile for wide-int.
19511         (init_emit_once): Use wide-int interfaces.
19512         * explow.c (plus_constant): Likewise.
19513         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
19514         (lshift_value): Use wide-int interfaces.
19515         (expand_mult): Likewise.
19516         (choose_multiplier): Likewise.
19517         (expand_smod_pow2): Likewise.
19518         (make_tree): Likewise.
19519         * expr.c (convert_modes): Consolidate handling of constants.
19520         Use wide-int interfaces.
19521         (emit_group_load_1): Add note.
19522         (store_expr): Update comment.
19523         (get_inner_reference): Use wide-int interfaces.
19524         (expand_constructor): Update comment.
19525         (expand_expr_real_2): Use wide-int interfaces.
19526         (expand_expr_real_1): Likewise.
19527         (reduce_to_bit_field_precision): Likewise.
19528         (const_vector_from_tree): Likewise.
19529         * final.c: Include wide-int-print.h.
19530         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
19531         * fixed-value.c: Include wide-int.h.
19532         (fixed_from_string): Use wide-int interfaces.
19533         (fixed_to_decimal): Likewise.
19534         (fixed_convert_from_real): Likewise.
19535         (real_convert_from_fixed): Likewise.
19536         * fold-const.h (mem_ref_offset): Return an offset_int.
19537         (div_if_zero_remainder): Remove code parameter.
19538         * fold-const.c (div_if_zero_remainder): Remove code parameter.
19539         Use wide-int interfaces.
19540         (may_negate_without_overflow_p): Use wide-int interfaces.
19541         (negate_expr_p): Likewise.
19542         (fold_negate_expr): Likewise.
19543         (int_const_binop_1): Likewise.
19544         (const_binop): Likewise.
19545         (fold_convert_const_int_from_int): Likewise.
19546         (fold_convert_const_int_from_real): Likewise.
19547         (fold_convert_const_int_from_fixed): Likewise.
19548         (fold_convert_const_fixed_from_int): Likewise.
19549         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
19550         (sign_bit_p): Use wide-int interfaces.
19551         (make_range_step): Likewise.
19552         (build_range_check): Likewise.  Pass an integer of the correct type
19553         instead of using integer_one_node.
19554         (range_predecessor): Pass an integer of the correct type instead
19555         of using integer_one_node.
19556         (range_successor): Likewise.
19557         (merge_ranges): Likewise.
19558         (unextend): Use wide-int interfaces.
19559         (extract_muldiv_1): Likewise.
19560         (fold_div_compare): Likewise.
19561         (fold_single_bit_test): Likewise.
19562         (fold_sign_changed_comparison): Likewise.
19563         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
19564         (fold_plusminus_mult_expr): Use wide-int interfaces.
19565         (native_encode_int): Likewise.
19566         (native_interpret_int): Likewise.
19567         (fold_unary_loc): Likewise.
19568         (pointer_may_wrap_p): Likewise.
19569         (size_low_cst): Likewise.
19570         (mask_with_tz): Likewise.
19571         (fold_binary_loc): Likewise.
19572         (fold_ternary_loc): Likewise.
19573         (multiple_of_p): Likewise.
19574         (tree_call_nonnegative_warnv_p): Update calls to
19575         tree_int_cst_min_precision and real_from_integer.
19576         (fold_negate_const): Use wide-int interfaces.
19577         (fold_abs_const): Likewise.
19578         (fold_relational_const): Use tree_int_cst_lt.
19579         (round_up_loc): Use wide-int interfaces.
19580         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
19581         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
19582         * gengtype.c: Remove include of double-int.h.
19583         (do_typedef): Use wide-int interfaces.
19584         (open_base_files): Add wide-int.h.
19585         (main): Add offset_int and widest_int typedefs.
19586         * gengtype-lex.l: Handle "^".
19587         (CXX_KEYWORD): Add "static".
19588         * gengtype-parse.c (require3): New.
19589         (require_template_declaration): Handle constant template arguments
19590         and nested templates.
19591         * gengtype-state.c: Don't include "double-int.h".
19592         * genpreds.c (write_one_predicate_function): Update comment.
19593         (write_tm_constrs_h): Add check for hval and lval use in
19594         CONST_WIDE_INT.
19595         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
19596         (add_to_sequence): Likewise.
19597         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
19598         and const_double_operand.
19599         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
19600         interfaces.
19601         * gimple-fold.c (get_base_constructor): Likewise.
19602         (fold_array_ctor_reference): Likewise.
19603         (fold_nonarray_ctor_reference): Likewise.
19604         (fold_const_aggregate_ref_1): Likewise.
19605         (gimple_val_nonnegative_real_p): Likewise.
19606         (gimple_fold_indirect_ref): Likewise.
19607         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
19608         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
19609         (struct slsr_cand_d): Change index to be widest_int.
19610         (struct incr_info_d): Change incr to be widest_int.
19611         (alloc_cand_and_find_basis): Use wide-int interfaces.
19612         (slsr_process_phi): Likewise.
19613         (backtrace_base_for_ref): Likewise.  Return a widest_int.
19614         (restructure_reference): Take a widest_int instead of a double_int.
19615         (slsr_process_ref): Use wide-int interfaces.
19616         (create_mul_ssa_cand): Likewise.
19617         (create_mul_imm_cand): Likewise.
19618         (create_add_ssa_cand): Likewise.
19619         (create_add_imm_cand): Take a widest_int instead of a double_int.
19620         (slsr_process_add): Use wide-int interfaces.
19621         (slsr_process_cast): Likewise.
19622         (slsr_process_copy): Likewise.
19623         (dump_candidate): Likewise.
19624         (dump_incr_vec): Likewise.
19625         (replace_ref): Likewise.
19626         (cand_increment): Likewise.  Return a widest_int.
19627         (cand_abs_increment): Likewise.
19628         (replace_mult_candidate): Take a widest_int instead of a double_int.
19629         (replace_unconditional_candidate): Use wide-int interfaces.
19630         (incr_vec_index): Take a widest_int instead of a double_int.
19631         (create_add_on_incoming_edge): Likewise.
19632         (create_phi_basis): Use wide-int interfaces.
19633         (replace_conditional_candidate): Likewise.
19634         (record_increment): Take a widest_int instead of a double_int.
19635         (record_phi_increments): Use wide-int interfaces.
19636         (phi_incr_cost): Take a widest_int instead of a double_int.
19637         (lowest_cost_path): Likewise.
19638         (total_savings): Likewise.
19639         (analyze_increments): Use wide-int interfaces.
19640         (ncd_with_phi): Take a widest_int instead of a double_int.
19641         (ncd_of_cand_and_phis): Likewise.
19642         (nearest_common_dominator_for_cands): Likewise.
19643         (insert_initializers): Use wide-int interfaces.
19644         (all_phi_incrs_profitable): Likewise.
19645         (replace_one_candidate): Likewise.
19646         (replace_profitable_candidates): Likewise.
19647         * godump.c: Include wide-int-print.h.
19648         (go_output_typedef): Use wide-int interfaces.
19649         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
19650         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
19651         (build_loop_iteration_domains): Likewise.
19652         * hooks.h: Include wide-int.h rather than double-int.h.
19653         (hook_bool_dint_dint_uint_bool_true): Delete.
19654         (hook_bool_wint_wint_uint_bool_true): Declare.
19655         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
19656         (hook_bool_wint_wint_uint_bool_true): New.
19657         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
19658         interfaces.
19659         (ubsan_expand_si_overflow_mul_check): Likewise.
19660         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
19661         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
19662         (get_ancestor_addr_info): Likewise.
19663         (ipa_modify_call_arguments): Likewise.
19664         * loop-doloop.c (doloop_modify): Likewise.
19665         (doloop_optimize): Likewise.
19666         * loop-iv.c (iv_number_of_iterations): Likewise.
19667         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
19668         (unroll_loop_constant_iterations): Likewise.
19669         (decide_unroll_runtime_iterations): Likewise.
19670         (unroll_loop_runtime_iterations): Likewise.
19671         (decide_peel_simple): Likewise.
19672         (decide_unroll_stupid): Likewise.
19673         * lto-streamer-in.c (streamer_read_wi): Add.
19674         (input_cfg): Use wide-int interfaces.
19675         (lto_input_tree_1): Likewise.
19676         * lto-streamer-out.c (streamer_write_wi): Add.
19677         (hash_tree): Use wide-int interfaces.
19678         (output_cfg): Likewise.
19679         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
19680         (GTFILES): Add wide-int.h and signop.h.
19681         (TAGS): Look for .cc files too.
19682         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
19683         * optabs.c (expand_subword_shift): Likewise.
19684         (expand_doubleword_shift): Likewise.
19685         (expand_absneg_bit): Likewise.
19686         (expand_copysign_absneg): Likewise.
19687         (expand_copysign_bit): Likewise.
19688         * postreload.c (reload_cse_simplify_set): Likewise.
19689         * predict.c (predict_iv_comparison): Likewise.
19690         * pretty-print.h: Include wide-int-print.h.
19691         (pp_wide_int) New.
19692         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
19693         * print-tree.c: Include wide-int-print.h.
19694         (print_node_brief): Use wide-int interfaces.
19695         (print_node): Likewise.
19696         * read-rtl.c (validate_const_wide_int): New.
19697         (read_rtx_code): Add CONST_WIDE_INT case.
19698         * real.c: Include wide-int.h.
19699         (real_to_integer2): Delete.
19700         (real_to_integer): New function, returning a wide_int.
19701         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19702         (ten_to_ptwo): Update call to real_from_integer.
19703         (real_digit): Likewise.
19704         * real.h: Include signop.h, wide-int.h and insn-modes.h.
19705         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
19706         (REAL_VALUE_TO_INT): Delete.
19707         (real_to_integer): Declare a wide-int form.
19708         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19709         * recog.c (const_int_operand): Improve comment.
19710         (const_scalar_int_operand): New.
19711         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
19712         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
19713         (split_double): Likewise.
19714         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
19715         (rtx_size): Likewise.
19716         (rtx_alloc_stat_v): New.
19717         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
19718         (cwi_output_hex): New.
19719         (iterative_hash_rtx): Handle CONST_WIDE_INT.
19720         (cwi_check_failed_bounds): New.
19721         * rtl.def (CONST_WIDE_INT): New.
19722         * rtl.h: Include <utility> and wide-int.h.
19723         (struct hwivec_def): New.
19724         (CWI_GET_NUM_ELEM): New.
19725         (CWI_PUT_NUM_ELEM): New.
19726         (struct rtx_def): Add num_elem and hwiv.
19727         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
19728         (CASE_CONST_UNIQUE): Likewise.
19729         (CASE_CONST_ANY): Likewise.
19730         (CONST_SCALAR_INT_P): Likewise.
19731         (CONST_WIDE_INT_P): New.
19732         (CWI_ELT): New.
19733         (HWIVEC_CHECK): New.
19734         (cwi_check_failed_bounds): New.
19735         (CWI_ELT): New.
19736         (HWIVEC_CHECK): New.
19737         (CONST_WIDE_INT_VEC) New.
19738         (CONST_WIDE_INT_NUNITS) New.
19739         (CONST_WIDE_INT_ELT) New.
19740         (rtx_mode_t): New type.
19741         (wi::int_traits <rtx_mode_t>): New.
19742         (wi::shwi): New.
19743         (wi::min_value): New.
19744         (wi::max_value): New.
19745         (rtx_alloc_v) New.
19746         (const_wide_int_alloc): New.
19747         (immed_wide_int_const): New.
19748         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
19749         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
19750         * signop.h: New file.
19751         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
19752         (simplify_const_unary_operation): Use wide-int interfaces.
19753         (simplify_binary_operation_1): Likewise.
19754         (simplify_const_binary_operation): Likewise.
19755         (simplify_const_relational_operation): Likewise.
19756         (simplify_immed_subreg): Likewise.
19757         * stmt.c (expand_case): Likewise.
19758         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
19759         signop rather than a bool.
19760         * stor-layout.c (layout_type): Use wide-int interfaces.
19761         (initialize_sizetypes): Update calls to
19762         set_min_and_max_values_for_integral_type.
19763         (set_min_and_max_values_for_integral_type): Take a signop rather
19764         than a bool.  Use wide-int interfaces.
19765         (fixup_signed_type): Update accordingly.  Remove
19766         HOST_BITS_PER_DOUBLE_INT limit.
19767         (fixup_unsigned_type): Likewise.
19768         * system.h (STATIC_CONSTANT_P): New.
19769         (STATIC_ASSERT): New.
19770         * target.def (can_use_doloop_p): Take widest_ints rather than
19771         double_ints.
19772         * target.h: Include wide-int.h rather than double-int.h.
19773         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
19774         than double_ints.
19775         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
19776         rather than INT_CST_LT_UNSIGNED.
19777         (can_use_doloop_if_innermost): Take widest_ints rather than
19778         double_ints.
19779         * tree-affine.c: Include wide-int-print.h.
19780         (double_int_ext_for_comb): Delete.
19781         (wide_int_ext_for_comb): New.
19782         (aff_combination_zero): Use wide-int interfaces.
19783         (aff_combination_const): Take a widest_int instead of a double_int.
19784         (aff_combination_elt): Use wide-int interfaces.
19785         (aff_combination_scale): Take a widest_int instead of a double_int.
19786         (aff_combination_add_elt): Likewise.
19787         (aff_combination_add_cst): Likewise.
19788         (aff_combination_add): Use wide-int interfaces.
19789         (aff_combination_convert): Likewise.
19790         (tree_to_aff_combination): Likewise.
19791         (add_elt_to_tree): Take a widest_int instead of a double_int.
19792         (aff_combination_to_tree): Use wide-int interfaces.
19793         (aff_combination_remove_elt): Likewise.
19794         (aff_combination_add_product): Take a widest_int instead of
19795         a double_int.
19796         (aff_combination_mult): Use wide-int interfaces.
19797         (aff_combination_expand): Likewise.
19798         (double_int_constant_multiple_p): Delete.
19799         (wide_int_constant_multiple_p): New.
19800         (aff_combination_constant_multiple_p): Take a widest_int pointer
19801         instead of a double_int pointer.
19802         (print_aff): Use wide-int interfaces.
19803         (get_inner_reference_aff): Take a widest_int pointer
19804         instead of a double_int pointer.
19805         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
19806         * tree-affine.h: Include wide-int.h.
19807         (struct aff_comb_elt): Change type of coef to widest_int.
19808         (struct affine_tree_combination): Change type of offset to widest_int.
19809         (double_int_ext_for_comb): Delete.
19810         (wide_int_ext_for_comb): New.
19811         (aff_combination_const): Use widest_int instead of double_int.
19812         (aff_combination_scale): Likewise.
19813         (aff_combination_add_elt): Likewise.
19814         (aff_combination_constant_multiple_p): Likewise.
19815         (get_inner_reference_aff): Likewise.
19816         (aff_comb_cannot_overlap_p): Likewise.
19817         (aff_combination_zero_p): Use wide-int interfaces.
19818         * tree.c: Include tree.h.
19819         (init_ttree): Use make_int_cst.
19820         (tree_code_size): Removed code for INTEGER_CST case.
19821         (tree_size): Add INTEGER_CST case.
19822         (make_node_stat): Update comment.
19823         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
19824         (build_int_cst_type): Use wide-int interfaces.
19825         (double_int_to_tree): Likewise.
19826         (double_int_fits_to_tree_p): Delete.
19827         (force_fit_type_double): Delete.
19828         (force_fit_type): New.
19829         (int_cst_hash_hash): Use wide-int interfaces.
19830         (int_cst_hash_eq): Likewise.
19831         (build_int_cst_wide): Delete.
19832         (wide_int_to_tree): New.
19833         (cache_integer_cst): Use wide-int interfaces.
19834         (build_low_bits_mask): Likewise.
19835         (cst_and_fits_in_hwi): Likewise.
19836         (real_value_from_int_cst): Likewise.
19837         (make_int_cst_stat): New.
19838         (integer_zerop): Use wide_int interfaces.
19839         (integer_onep): Likewise.
19840         (integer_all_onesp): Likewise.
19841         (integer_pow2p): Likewise.
19842         (integer_nonzerop): Likewise.
19843         (tree_log2): Likewise.
19844         (tree_floor_log2): Likewise.
19845         (tree_ctz): Likewise.
19846         (int_size_in_bytes): Likewise.
19847         (mem_ref_offset): Return an offset_int rather than a double_int.
19848         (build_type_attribute_qual_variant): Use wide_int interfaces.
19849         (type_hash_eq): Likewise
19850         (tree_int_cst_equal): Likewise.
19851         (tree_int_cst_lt): Delete.
19852         (tree_int_cst_compare): Likewise.
19853         (tree_fits_shwi_p): Use wide_int interfaces.
19854         (tree_fits_uhwi_p): Likewise.
19855         (tree_int_cst_sign_bit): Likewise.
19856         (tree_int_cst_sgn): Likewise.
19857         (tree_int_cst_min_precision): Take a signop rather than a bool.
19858         (simple_cst_equal): Use wide_int interfaces.
19859         (compare_tree_int): Likewise.
19860         (iterative_hash_expr): Likewise.
19861         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
19862         INT_CST_LT.
19863         (get_type_static_bounds): Use wide_int interfaces.
19864         (tree_int_cst_elt_check_failed): New.
19865         (build_common_tree_nodes): Reordered to set prec before filling in
19866         value.
19867         (int_cst_value): Check cst_and_fits_in_hwi.
19868         (widest_int_cst_value): Use wide_int interfaces.
19869         (upper_bound_in_type): Likewise.
19870         (lower_bound_in_type): Likewise.
19871         (num_ending_zeros): Likewise.
19872         (drop_tree_overflow): Likewise.
19873         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
19874         (gen_conditions_for_pow_cst_base): Likewise.
19875         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
19876         (group_case_labels_stmt): Use wide-int interfaces.
19877         (verify_gimple_assign_binary): Likewise.
19878         (print_loop): Likewise.
19879         * tree-chrec.c (tree_fold_binomial): Likewise.
19880         * tree-core.h (struct tree_base): Add int_length.
19881         (struct tree_int_cst): Change rep of value.
19882         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
19883         (dr_may_alias_p): Likewise.
19884         (max_stmt_executions_tree): Likewise.
19885         * tree.def (INTEGER_CST): Update comment.
19886         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
19887         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
19888         * tree-dump.c: Include wide-int.h and wide-int-print.h.
19889         (dequeue_and_dump): Use wide-int interfaces.
19890         * tree.h: Include wide-int.h.
19891         (NULL_TREE): Moved to earlier loc in file.
19892         (TREE_INT_CST_ELT_CHECK): New.
19893         (tree_int_cst_elt_check_failed): New.
19894         (TYPE_SIGN): New.
19895         (TREE_INT_CST): Delete.
19896         (TREE_INT_CST_LOW): Use wide-int interfaces.
19897         (TREE_INT_CST_HIGH): Delete.
19898         (TREE_INT_CST_NUNITS): New.
19899         (TREE_INT_CST_EXT_NUNITS): Likewise.
19900         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
19901         (TREE_INT_CST_ELT): Likewise.
19902         (INT_CST_LT): Delete.
19903         (tree_int_cst_elt_check): New (two forms).
19904         (type_code_size): Update comment.
19905         (make_int_cst_stat, make_int_cst): New.
19906         (tree_to_double_int): Delete.
19907         (double_int_fits_to_tree_p): Delete.
19908         (force_fit_type_double): Delete.
19909         (build_int_cstu): Replace with out-of-line function.
19910         (build_int_cst_wide): Delete.
19911         (tree_int_cst_lt): Define inline.
19912         (tree_int_cst_le): New.
19913         (tree_int_cst_compare): Define inline.
19914         (tree_int_cst_min_precision): Take a signop rather than a bool.
19915         (wi::int_traits <const_tree>): New.
19916         (wi::int_traits <tree>): New.
19917         (wi::extended_tree): New.
19918         (wi::int_traits <wi::extended_tree>): New.
19919         (wi::to_widest): New.
19920         (wi::to_offset): New.
19921         (wi::fits_to_tree_p): New.
19922         (wi::min_value): New.
19923         (wi::max_value): New.
19924         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
19925         (copy_tree_body_r): Likewise.
19926         * tree-object-size.c (compute_object_offset): Likewise.
19927         (addr_object_size): Likewise.
19928         * tree-predcom.c: Include wide-int-print.h.
19929         (struct dref_d): Change type of offset to widest_int.
19930         (dump_dref): Call wide-int printer.
19931         (aff_combination_dr_offset): Use wide-int interfaces.
19932         (determine_offset): Take a widest_int pointer rather than a
19933         double_int pointer.
19934         (split_data_refs_to_components): Use wide-int interfaces.
19935         (suitable_component_p): Likewise.
19936         (order_drefs): Likewise.
19937         (add_ref_to_chain): Likewise.
19938         (valid_initializer_p): Likewise.
19939         (determine_roots_comp): Likewise.
19940         * tree-pretty-print.c: Include wide-int-print.h.
19941         (dump_generic_node): Use wide-int interfaces.
19942         * tree-sra.c (sra_ipa_modify_expr): Likewise.
19943         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
19944         (move_fixed_address_to_symbol): Likewise.
19945         (move_hint_to_base): Likewise.
19946         (move_pointer_to_base): Likewise.
19947         (move_variant_to_index): Likewise.
19948         (most_expensive_mult_to_index): Likewise.
19949         (addr_to_parts): Likewise.
19950         (copy_ref_info): Likewise.
19951         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
19952         (indirect_refs_may_alias_p): Likewise.
19953         (stmt_kills_ref_p_1): Likewise.
19954         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
19955         * tree-ssa-ccp.c: Update comment at top of file.  Include
19956         wide-int-print.h.
19957         (struct prop_value_d): Change type of mask to widest_int.
19958         (extend_mask): New function.
19959         (dump_lattice_value): Use wide-int interfaces.
19960         (get_default_value): Likewise.
19961         (set_constant_value): Likewise.
19962         (set_value_varying): Likewise.
19963         (valid_lattice_transition): Likewise.
19964         (set_lattice_value): Likewise.
19965         (value_to_double_int): Delete.
19966         (value_to_wide_int): New.
19967         (get_value_from_alignment): Use wide-int interfaces.
19968         (get_value_for_expr): Likewise.
19969         (do_dbg_cnt): Likewise.
19970         (ccp_finalize): Likewise.
19971         (ccp_lattice_meet): Likewise.
19972         (bit_value_unop_1): Use widest_ints rather than double_ints.
19973         (bit_value_binop_1): Likewise.
19974         (bit_value_unop): Use wide-int interfaces.
19975         (bit_value_binop): Likewise.
19976         (bit_value_assume_aligned): Likewise.
19977         (evaluate_stmt): Likewise.
19978         (ccp_fold_stmt): Likewise.
19979         (visit_cond_stmt): Likewise.
19980         (ccp_visit_stmt): Likewise.
19981         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
19982         (constant_pointer_difference): Likewise.
19983         (associate_pointerplus): Likewise.
19984         (combine_conversions): Likewise.
19985         * tree-ssa-loop.h: Include wide-int.h.
19986         (struct tree_niter_desc): Change type of max to widest_int.
19987         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
19988         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
19989         (remove_redundant_iv_tests): Likewise.
19990         (canonicalize_loop_induction_variables): Likewise.
19991         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
19992         (constant_multiple_of): Take a widest_int pointer instead of
19993         a double_int pointer.
19994         (get_computation_aff): Use wide-int interfaces.
19995         (ptr_difference_cost): Likewise.
19996         (difference_cost): Likewise.
19997         (get_loop_invariant_expr_id): Likewise.
19998         (get_computation_cost_at): Likewise.
19999         (iv_elimination_compare_lt): Likewise.
20000         (may_eliminate_iv): Likewise.
20001         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
20002         instead of double_int.
20003         (max_loop_iterations): Likewise.
20004         (max_stmt_executions): Likewise.
20005         (estimated_stmt_executions): Likewise.
20006         * tree-ssa-loop-niter.c: Include wide-int-print.h.
20007         (split_to_var_and_offset): Use wide-int interfaces.
20008         (determine_value_range): Likewise.
20009         (bound_difference_of_offsetted_base): Likewise.
20010         (bounds_add): Take a widest_int instead of a double_int.
20011         (number_of_iterations_ne_max): Use wide-int interfaces.
20012         (number_of_iterations_ne): Likewise.
20013         (number_of_iterations_lt_to_ne): Likewise.
20014         (assert_loop_rolls_lt): Likewise.
20015         (number_of_iterations_lt): Likewise.
20016         (number_of_iterations_le): Likewise.
20017         (number_of_iterations_cond): Likewise.
20018         (number_of_iterations_exit): Likewise.
20019         (finite_loop_p): Likewise.
20020         (derive_constant_upper_bound_assign): Likewise.
20021         (derive_constant_upper_bound): Return a widest_int.
20022         (derive_constant_upper_bound_ops): Likewise.
20023         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
20024         (record_estimate): Take a widest_int rather than a double_int.
20025         (record_nonwrapping_iv): Use wide-int interfaces.
20026         (double_int_cmp): Delete.
20027         (wide_int_cmp): New.
20028         (bound_index): Take a widest_int rather than a double_int.
20029         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
20030         (maybe_lower_iteration_bound): Likewise.
20031         (estimate_numbers_of_iterations_loop): Likewise.
20032         (estimated_loop_iterations): Take a widest_int pointer than than
20033         a double_int pointer.
20034         (estimated_loop_iterations_int): Use wide-int interfaces.
20035         (max_loop_iterations): Take a widest_int pointer than than
20036         a double_int pointer.
20037         (max_loop_iterations_int): Use wide-int interfaces.
20038         (max_stmt_executions): Take a widest_int pointer than than
20039         a double_int pointer.
20040         (estimated_stmt_executions): Likewise.
20041         (n_of_executions_at_most): Use wide-int interfaces.
20042         (scev_probably_wraps_p): Likewise.
20043         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
20044         to real_to_integer.
20045         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
20046         interfaces.
20047         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
20048         double_ints.  Adjust for trailing_wide_ints <3> representation.
20049         (set_nonzero_bits): Likewise.
20050         (get_range_info): Return wide_ints rather than double_ints.
20051         Adjust for trailing_wide_ints <3> representation.
20052         (get_nonzero_bits): Likewise.
20053         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
20054         representation.
20055         * tree-ssanames.h (struct range_info_def): Replace min, max and
20056         nonzero_bits with a trailing_wide_ints <3>.
20057         (set_range_info): Use wide_int_refs rather than double_ints.
20058         (set_nonzero_bits): Likewise.
20059         (get_range_info): Return wide_ints rather than double_ints.
20060         (get_nonzero_bits): Likewise.
20061         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
20062         * tree-ssa-pre.c (phi_translate_1): Likewise.
20063         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
20064         (acceptable_pow_call): Likewise.
20065         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
20066         interfaces.
20067         (vn_reference_fold_indirect): Likewise.
20068         (vn_reference_maybe_forwprop_address): Likewise.
20069         (valueize_refs_1): Likewise.
20070         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
20071         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
20072         tree_int_cst_lt and tree_int_cst_le.
20073         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
20074         interfaces.
20075         (streamer_alloc_tree): Likewise.
20076         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
20077         (streamer_write_tree_header): Likewise.
20078         (streamer_write_integer_cst): Likewise.
20079         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20080         (build_constructors): Likewise.
20081         (array_value_type): Likewise.
20082         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
20083         (vect_check_gather): Likewise.
20084         * tree-vect-generic.c (build_replicated_const): Likewise.
20085         (expand_vector_divmod): Likewise.
20086         * tree-vect-loop.c (vect_transform_loop): Likewise.
20087         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
20088         (vect_do_peeling_for_alignment): Likewise.
20089         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
20090         * tree-vrp.c: Include wide-int.h.
20091         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
20092         (extract_range_from_assert): Use wide-int interfaces.
20093         (vrp_int_const_binop): Likewise.
20094         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
20095         double_int pointers.
20096         (ranges_from_anti_range): Use wide-int interfaces.
20097         (quad_int_cmp): Delete.
20098         (quad_int_pair_sort): Likewise.
20099         (extract_range_from_binary_expr_1): Use wide-int interfaces.
20100         (extract_range_from_unary_expr_1): Likewise.
20101         (adjust_range_with_scev): Likewise.
20102         (masked_increment): Take and return wide_ints rather than double_ints.
20103         (register_edge_assert_for_2): Use wide-int interfaces.
20104         (check_array_ref): Likewise.
20105         (search_for_addr_array): Likewise.
20106         (maybe_set_nonzero_bits): Likewise.
20107         (union_ranges): Pass an integer of the correct type instead of
20108         using integer_one_node.
20109         (intersect_ranges): Likewise.
20110         (simplify_truth_ops_using_ranges): Likewise.
20111         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
20112         (range_fits_type_p): Likewise.
20113         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
20114         a bool.
20115         (simplify_conversion_using_ranges): Use wide-int interfaces.
20116         (simplify_float_conversion_using_ranges): Likewise.
20117         (vrp_finalize): Likewise.
20118         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
20119         (gimple_stringops_transform): Likewise.
20120         * varasm.c (decode_addr_const): Likewise.
20121         (const_hash_1): Likewise.
20122         (const_rtx_hash_1): Likewise
20123         (output_constant): Likewise.
20124         (array_size_for_constructor): Likewise.
20125         (output_constructor_regular_field): Likewise.
20126         (output_constructor_bitfield): Likewise.
20127         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
20128         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
20129         GENERATOR_FILEs.
20130         * gencheck.c: Define BITS_PER_UNIT.
20131         * wide-int.cc: New.
20132         * wide-int.h: New.
20133         * wide-int-print.cc: New.
20134         * wide-int-print.h: New.
20136 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20138         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
20140 2014-05-06  Richard Biener  <rguenther@suse.de>
20142         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
20143         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
20144         (TODO_verify_all): Adjust.
20145         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
20146         TODO_verify_stmts and TODO_verify_rtl_sharing.
20147         * bb-reorder.c: Likewise.
20148         * cfgexpand.c: Likewise.
20149         * cprop.c: Likewise.
20150         * cse.c: Likewise.
20151         * function.c: Likewise.
20152         * fwprop.c: Likewise.
20153         * gcse.c: Likewise.
20154         * gimple-ssa-isolate-paths.c: Likewise.
20155         * gimple-ssa-strength-reduction.c: Likewise.
20156         * ipa-split.c: Likewise.
20157         * loop-init.c: Likewise.
20158         * loop-unroll.c: Likewise.
20159         * lower-subreg.c: Likewise.
20160         * modulo-sched.c: Likewise.
20161         * postreload-gcse.c: Likewise.
20162         * predict.c: Likewise.
20163         * recog.c: Likewise.
20164         * sched-rgn.c: Likewise.
20165         * store-motion.c: Likewise.
20166         * tracer.c: Likewise.
20167         * trans-mem.c: Likewise.
20168         * tree-call-cdce.c: Likewise.
20169         * tree-cfg.c: Likewise.
20170         * tree-cfgcleanup.c: Likewise.
20171         * tree-complex.c: Likewise.
20172         * tree-eh.c: Likewise.
20173         * tree-emutls.c: Likewise.
20174         * tree-if-conv.c: Likewise.
20175         * tree-into-ssa.c: Likewise.
20176         * tree-loop-distribution.c: Likewise.
20177         * tree-object-size.c: Likewise.
20178         * tree-parloops.c: Likewise.
20179         * tree-pass.h: Likewise.
20180         * tree-sra.c: Likewise.
20181         * tree-ssa-ccp.c: Likewise.
20182         * tree-ssa-copy.c: Likewise.
20183         * tree-ssa-copyrename.c: Likewise.
20184         * tree-ssa-dce.c: Likewise.
20185         * tree-ssa-dom.c: Likewise.
20186         * tree-ssa-dse.c: Likewise.
20187         * tree-ssa-forwprop.c: Likewise.
20188         * tree-ssa-ifcombine.c: Likewise.
20189         * tree-ssa-loop-ch.c: Likewise.
20190         * tree-ssa-loop-ivcanon.c: Likewise.
20191         * tree-ssa-loop.c: Likewise.
20192         * tree-ssa-math-opts.c: Likewise.
20193         * tree-ssa-phiopt.c: Likewise.
20194         * tree-ssa-phiprop.c: Likewise.
20195         * tree-ssa-pre.c: Likewise.
20196         * tree-ssa-reassoc.c: Likewise.
20197         * tree-ssa-sink.c: Likewise.
20198         * tree-ssa-strlen.c: Likewise.
20199         * tree-ssa-tail-merge.c: Likewise.
20200         * tree-ssa-uncprop.c: Likewise.
20201         * tree-switch-conversion.c: Likewise.
20202         * tree-tailcall.c: Likewise.
20203         * tree-vect-generic.c: Likewise.
20204         * tree-vectorizer.c: Likewise.
20205         * tree-vrp.c: Likewise.
20206         * tsan.c: Likewise.
20207         * var-tracking.c: Likewise.
20208         * bt-load.c: Likewise.
20209         * cfgcleanup.c: Likewise.
20210         * combine-stack-adj.c: Likewise.
20211         * combine.c: Likewise.
20212         * compare-elim.c: Likewise.
20213         * config/epiphany/resolve-sw-modes.c: Likewise.
20214         * config/i386/i386.c: Likewise.
20215         * config/mips/mips.c: Likewise.
20216         * config/s390/s390.c: Likewise.
20217         * config/sh/sh_treg_combine.cc: Likewise.
20218         * config/sparc/sparc.c: Likewise.
20219         * dce.c: Likewise.
20220         * dse.c: Likewise.
20221         * final.c: Likewise.
20222         * ifcvt.c: Likewise.
20223         * mode-switching.c: Likewise.
20224         * passes.c: Likewise.
20225         * postreload.c: Likewise.
20226         * ree.c: Likewise.
20227         * reg-stack.c: Likewise.
20228         * regcprop.c: Likewise.
20229         * regrename.c: Likewise.
20230         * web.c: Likewise.
20232 2014-05-06  Richard Biener  <rguenther@suse.de>
20234         PR middle-end/61070
20235         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
20236         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
20238 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
20240         PR ipa/60965
20241         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
20243 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
20244             Tom de Vries  <tom@codesourcery.com>
20246         * target.def (call_fusage_contains_non_callee_clobbers): New
20247         DEFHOOKPOD.
20248         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
20249         Hooks to @menu.
20250         (@node Miscellaneous Register Hooks): New node.
20251         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
20252         * doc/tm.texi: Regenerate.
20254 2014-05-05  Marek Polacek  <polacek@redhat.com>
20256         PR driver/61065
20257         * opts.c (common_handle_option): Call error_at instead of warning_at.
20259 2014-05-05  Richard Biener  <rguenther@suse.de>
20261         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
20262         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
20263         under the TODO_verify_il umbrella.
20265 2014-05-05  Richard Biener  <rguenther@suse.de>
20267         * passes.c (execute_function_todo): Move TODO_verify_flow under
20268         the TODO_verify_ul umbrella.
20270 2014-05-05  Richard Biener  <rguenther@suse.de>
20272         PR middle-end/61010
20273         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
20274         X & CST away from a CST that is the mask of a mode.
20276 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20278         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
20279         int argument to enum machine_mode.
20280         (picochip_class_max_nregs): Ditto.
20281         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
20282         (picochip_class_max_nregs): Ditto.
20284 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20286         * target.def: Add new target hook.
20287         * doc/tm.texi: Regenerate.
20288         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
20289         * targhooks.c (default_keep_leaf_when_profiled): New function.
20291         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
20292         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
20294 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
20296         PR tree-optimization/60363
20297         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
20298         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
20299         (update_destination_phis): New parameter.
20300         (create_edge_and_update_destination_phis): Ditto.
20301         (ssa_fix_duplicate_block_edges): Pass new arguments.
20302         (thread_single_edge): Ditto.
20304 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
20306         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
20307         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
20308         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
20309         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
20310         Use RS6000_BTM_HARD_FLOAT.
20311         (BU_MISC_2): Likewise.
20312         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20313         RS6000_BTM_HARD_FLOAT.
20314         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
20315         is explicitly used.
20316         (rs6000_invalid_builtin): Add hard floating builtin support.
20317         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
20318         hard float builtins.
20319         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
20321 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20323         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
20324         Add missing function* argument.
20326 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
20328         * lra-constraints.c (valid_address_p): Move earlier in file.
20329         Add a constraint argument to the address_info version.
20330         (satisfies_memory_constraint_p): New function.
20331         (satisfies_address_constraint_p): Likewise.
20332         (process_alt_operands, curr_insn_transform): Use them.
20333         (process_address): Pass the constraint to valid_address_p when
20334         checking address operands.
20336 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
20338         * config/mips/mips.c (mips_isa_rev): New variable.
20339         (mips_set_architecture): Set it.
20340         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
20341         from mips_isa_rev.
20342         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
20343         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
20344         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
20345         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
20346         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
20347         conditions in terms of mips_isa_rev.
20348         (mips_isa_rev): Declare.
20350 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20352         * config/sh/sh-mem.cc: Use tabs instead of spaces.
20353         (prob_unlikely, prob_likely): Make variables const.
20355 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
20357         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
20359 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20361         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
20363 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20365         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
20366         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
20367         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
20368         functions.
20369         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
20370         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
20371         sh_pass_in_reg_p.
20372         Replace usage of ROUND_REG with sh_round_reg.
20373         Use CEIL instead of ROUND_ADVANCE.
20375 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20377         PR target/61026
20378         * config/sh/sh.c: Include stdlib headers before everything else.
20380 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
20382         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
20383         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
20384         (gimplify_adjust_omp_clauses): Simd region is never
20385         directly nested in combined parallel.  Instead, for linear
20386         with copyin/copyout, if in combined for simd loop, make decl
20387         firstprivate/lastprivate on OMP_FOR.
20388         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
20389         expand_omp_for_static_chunk): When setting endvar, also set
20390         fd->loop.v to the same value.
20392 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20394         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
20396 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
20398         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
20399         expression.
20401 2014-05-02  Marek Polacek  <polacek@redhat.com>
20403         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
20405 2014-05-02  Kito Cheng  <kito@0xlab.org>
20407         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
20408         to a C expression marco.
20409         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
20410         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
20411         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
20412         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
20413         HONOR_REG_ALLOC_ORDER.
20414         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
20416 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20418         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
20420 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20422         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
20424 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
20426         * tree-if-conv.c (is_cond_scalar_reduction): New function.
20427         (convert_scalar_cond_reduction): Likewise.
20428         (predicate_scalar_phi): Add recognition and transformation
20429         of simple conditioanl reduction to be vectorizable.
20431 2014-05-01  Marek Polacek  <polacek@redhat.com>
20433         PR c/43245
20434         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
20436 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
20438         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
20439         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
20440         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
20441         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
20442         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
20443         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
20444         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
20445         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
20447 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
20449         * config/arc/arc.opt (mlra): Move comment above option name
20450         to avoid mis-parsing as language options.
20452 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20454         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
20455         * config/sol2.h: ... here.
20456         * config/sol2-10.h: Remove.
20458         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
20459         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
20460         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
20461         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
20462         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
20463         * config/sol2.h: ... here.
20464         (SECTION_NAME_FORMAT): Don't redefine.
20465         (STARTFILE_ARCH32_SPEC): Rename to ...
20466         (STARTFILE_ARCH_SPEC): ... this.
20467         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
20468         * config/sparc/sol2.h: ... here.
20469         (SECTION_NAME_FORMAT): Don't undef.
20470         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
20471         (SUBTARGET_EXTRA_SPECS): Remove.
20472         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
20474         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
20475         (MD_STARTFILE_PREFIX): Remove.
20476         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
20477         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
20478         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
20479         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
20480         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
20481         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
20482         * config/i386/sol2.h: ... here.
20483         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
20484         * config/i386/sol2-bi.h: Remove.
20485         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
20486         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
20488         * config/i386/t-sol2-64: Rename to ...
20489         * config/i386/t-sol2: ... this.
20490         * config/sparc/t-sol2-64: Rename to ...
20491         * config/sparc/t-sol2: ... this.
20493         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
20494         sol2_tm_file_head, sol2_tm_file_tail.
20495         Include ${cpu_type}/sol2.h before sol2.h.
20496         Remove sol2-10.h.
20497         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
20498         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
20499         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
20500         Reflect i386/t-sol2-64 renaming.
20501         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
20502         Reflect sparc/t-sol2-64 renaming.
20504 2014-04-30  Richard Biener  <rguenther@suse.de>
20506         * passes.c (execute_function_todo): Move TODO_verify_stmts
20507         and TODO_verify_ssa under the TODO_verify_il umbrella.
20508         * tree-ssa.h (verify_ssa): Adjust prototype.
20509         * tree-ssa.c (verify_ssa): Add parameter to tell whether
20510         we should verify SSA operands.
20511         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
20512         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
20513         whether we should verify whether not throwing stmts have EH info.
20514         * graphite-scop-detection.c (create_sese_edges): Adjust.
20515         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
20516         * tree-eh.c (lower_try_finally_switch): Do not add the
20517         default case label twice.
20519 2014-04-30  Marek Polacek  <polacek@redhat.com>
20521         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
20522         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
20523         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
20524         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
20526 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
20528         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
20529         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
20530         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
20531         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
20532         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
20533         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
20534         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
20535         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
20537 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
20539         * tree-cfg.c (dump_function_to_file): Dump the return type of
20540         functions, in a line to itself before the function body, mimicking
20541         the layout of a C function.
20543 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
20545         PR tree-optimization/60971
20546         * tree-tailcall.c (process_assignment): Reject conversions which
20547         reduce precision.
20549 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
20551         * calls.c (initialize_argument_information): Always treat
20552         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
20553         (expand_call): Likewise.
20554         (emit_library_call_calue_1): Likewise.
20555         * expr.c (PUSH_ARGS_REVERSED): Do not define.
20556         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
20557         code accordingly.
20559 2014-04-29  Nick Clifton  <nickc@redhat.com>
20561         * config/msp430/msp430.md (umulsidi): Fix typo.
20562         (mulhisi3): Enable even inside interrupt handlers.
20563         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
20564         bigger return address pushed in large mode.
20566 2014-04-29  Nick Clifton  <nickc@redhat.com>
20568         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
20569         (arc_init_reg_tables): Use a machine_mode enum to iterate over
20570         available modes.
20571         * config/m32r/m32r.c (init_reg_tables): Likewise.
20572         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
20573         enum to hold the modes.
20575 2014-04-29  Richard Biener  <rguenther@suse.de>
20577         * dominance.c (free_dominance_info): Add overload with
20578         function parameter.
20579         (dom_info_state): Likewise.
20580         (dom_info_available_p): Likewise.
20581         * basic-block.h (free_dominance_info, dom_info_state,
20582         dom_info_available_p): Declare overloads.
20583         * passes.c (execute_function_todo): Verify that verifiers
20584         don't change dominator info state.  Drop dominator info
20585         for IPA pass invocations.
20586         * cgraph.c (release_function_body): Restore asserts that
20587         dominator information is released.
20589 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
20591         * doc/invoke.texi: Fix typo.
20592         * tree-vrp.c: Fix typos.
20593         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
20595 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20597         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
20599 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
20601         * config/aarch64/aarch64-builtins.c
20602         (aarch64_types_storestruct_lane_qualifiers): New.
20603         (TYPES_STORESTRUCT_LANE): Likewise.
20604         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
20605         (st3_lane): Likewise.
20606         (st4_lane): Likewise.
20607         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
20608         (vec_store_lanesci_lane<mode>): Likewise.
20609         (vec_store_lanesxi_lane<mode>): Likewise.
20610         (aarch64_st2_lane<VQ:mode>): Likewise.
20611         (aarch64_st3_lane<VQ:mode>): Likewise.
20612         (aarch64_st4_lane<VQ:mode>): Likewise.
20613         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
20614         * config/aarch64/arm_neon.h
20615         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
20616         use new macro arguments.
20617         (__ST3_LANE_FUNC): Likewise.
20618         (__ST4_LANE_FUNC): Likewise.
20619         * config/aarch64/iterators.md (V_TWO_ELEM): New.
20620         (V_THREE_ELEM): Likewise.
20621         (V_FOUR_ELEM): Likewise.
20623 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
20625         * doc/gimple.texi: Replace the description of the now-defunct
20626         union gimple_statement_d with a diagram showing the
20627         gimple_statement_base class hierarchy and its relationships to
20628         the GSS_ and GIMPLE_ enums.
20630 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
20632         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
20633         * config/aarch64/aarch64.c
20634         (aarch64_cannot_change_mode_class): Weaken conditions.
20635         (aarch64_modes_tieable_p): New.
20636         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
20638 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
20640         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20641         (loadsync_<mode>): Change mode.
20642         (load_quadpti, store_quadpti): New.
20643         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20644         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20646 2014-04-28  Martin Jambor  <mjambor@suse.cz>
20648         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
20649         same alias type as the original statement.
20650         (subreplacement_assignment_data): New type.
20651         (handle_unscalarized_data_in_subtree): New type of parameter,
20652         generate new memory accesses with same alias type as the original
20653         statement.
20654         (load_assign_lhs_subreplacements): Likewise.
20655         (sra_modify_constructor_assign): Generate new memory accesses with
20656         same alias type as the original statement.
20658 2014-04-28  Richard Biener  <rguenther@suse.de>
20660         * tree-pass.h (TODO_verify_il): Define.
20661         (TODO_verify_all): Complete properly.
20662         * passes.c (execute_function_todo): Move existing loop-closed
20663         SSA verification under TODO_verify_il.
20664         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
20665         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
20666         Fix tree sharing issue.
20668 2014-04-28  Richard Biener  <rguenther@suse.de>
20670         PR middle-end/60092
20671         * builtins.def (DEF_C11_BUILTIN): Add.
20672         (BUILT_IN_ALIGNED_ALLOC): Likewise.
20673         * coretypes.h (enum function_class): Add function_c11_misc.
20674         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20675         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
20676         (call_may_clobber_ref_p_1): Likewise.
20677         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20678         (mark_all_reaching_defs_necessary_1): Likewise.
20679         (propagate_necessity): Likewise.
20680         (eliminate_unnecessary_stmts): Likewise.
20681         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
20683 2014-04-28  Richard Biener  <rguenther@suse.de>
20685         * tree-vrp.c (vrp_var_may_overflow): Remove.
20686         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
20687         with overflow immediately bump to one before that value and
20688         let iteration figure out overflow status.
20690 2014-04-28  Richard Biener  <rguenther@suse.de>
20692         * configure.ac: Do valgrind header checks unconditionally.
20693         Add --enable-valgrind-annotations.
20694         * system.h: Guard valgrind header inclusion with
20695         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
20696         * alloc-pool.c (pool_alloc, pool_free): Use
20697         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
20698         to guard possibly dead code.
20699         * config.in: Regenerated.
20700         * configure: Likewise.
20702 2014-04-28  Jeff Law  <law@redhat.com>
20704         PR tree-optimization/60902
20705         * tree-ssa-threadedge.c
20706         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
20707         over real defs when invalidating outputs from statements that do not
20708         produce useful outputs for threading.
20710 2014-04-28  Richard Biener  <rguenther@suse.de>
20712         PR tree-optimization/60979
20713         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
20714         SCOPs that end in a block with a successor with abnormal
20715         predecessors.
20717 2014-04-28  Richard Biener  <rguenther@suse.de>
20719         * tree-pass.h (execute_pass_list): Adjust prototype.
20720         * passes.c (pass_manager::execute_early_local_passes): Adjust.
20721         (do_per_function): Change callback signature, push all actual
20722         work to the callbals.
20723         (do_per_function_toporder): Likewise.
20724         (execute_function_dump): Adjust.
20725         (execute_function_todo): Likewise.
20726         (clear_last_verified): Likewise.
20727         (verify_curr_properties): Likewise.
20728         (update_properties_after_pass): Likewise.
20729         (execute_pass_list_1): Split out from ...
20730         (execute_pass_list): ... here.  Adjust.
20731         (execute_ipa_pass_list): Likewise.
20732         * cgraphunit.c (cgraph_add_new_function): Adjust.
20733         (analyze_function): Likewise.
20734         (expand_function): Likewise.
20735         * cgraph.c (release_function_body): Free dominance info
20736         here instead of asserting it was magically freed elsewhere.
20738 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
20740         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
20741         * configure: Regenerate.
20742         * config/sparc/sparc.opt (muser-mode): New option.
20743         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
20744         for LEON3.
20745         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
20746         * doc/invoke.texi (SPARC options): Document -muser-mode.
20748 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
20750         * cselib.c (find_slot_memmode): Delete.
20751         (cselib_hasher): Change compare_type to a struct.
20752         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
20753         constants.
20754         (preserve_constants_and_equivs): Adjust for new compare_type.
20755         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
20756         (wrap_constant): Delete.
20757         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
20759 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
20761         * doc/install.texi (Building with profile feedback): Remove
20762         outdated sentence.
20764 2014-04-26  Tom de Vries  <tom@codesourcery.com>
20766         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
20767         array accesses.
20769 2014-04-25  Cary Coutant  <ccoutant@google.com>
20771         PR debug/60929
20772         * dwarf2out.c (should_move_die_to_comdat): A type definition
20773         can contain a subprogram definition, but don't move it to a
20774         comdat unit.
20775         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
20776         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
20777         from original DIE.
20778         (clone_tree_hash): Rename to...
20779         (clone_tree_partial): ...this; change callers.  Copy
20780         DW_TAG_subprogram DIEs as declarations.
20781         (copy_decls_walk): Don't copy children of a declaration into a
20782         type unit.
20784 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
20786         PR target/60969
20787         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
20788         alternative 12.
20790 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
20792         * config/arm/predicates.md (call_insn_operand): Add long_call check.
20793         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
20794         reg for long_call.
20795         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
20796         restriction.
20798 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20800         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
20802 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20804         PR tree-optimization/60930
20805         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
20806         creating a multiply candidate by folding two constant
20807         multiplicands when the result overflows.
20809 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
20811         PR tree-optimization/60960
20812         * tree-vect-generic.c (expand_vector_operation): Only call
20813         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
20815 2014-04-25  Tom de Vries  <tom@codesourcery.com>
20817         * expr.c (clobber_reg_mode): New function.
20818         * expr.h (clobber_reg): New function.
20820 2014-04-25  Tom de Vries  <tom@codesourcery.com>
20822         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
20823         clobbers.
20825 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
20826             Tom de Vries  <tom@codesourcery.com>
20828         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
20829         handle.
20830         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
20831         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
20832         new argument to find_all_hard_reg_sets call.
20834 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20836         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
20837         Use HOST_WIDE_INT_C for mask literal.
20838         (aarch_rev16_shleft_mask_imm_p): Likewise.
20840 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
20842         PR target/60941
20843         * config/sparc/sparc.md (ashlsi3_extend): Delete.
20845 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
20847         PR preprocessor/56540
20848         * config/i386/i386-c.c (ix86_target_macros): Define
20849         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
20851 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20853         * configure.ac (tga_func): Remove.
20854         (LIB_TLS_SPEC): Remove.
20855         * configure: Regenerate.
20856         * config.in: Regenerate.
20857         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
20859 2014-04-25  Richard Biener  <rguenther@suse.de>
20861         PR ipa/60912
20862         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
20863         call stmt use/clobber sets during stmt walk instead of
20864         walking the possibly incomplete set of caller edges.
20866 2014-04-25  Richard Biener  <rguenther@suse.de>
20868         PR ipa/60911
20869         * passes.c (apply_ipa_transforms): Inline into only caller ...
20870         (execute_one_pass): ... here.  Properly bring in function
20871         bodies for nodes we want to apply IPA transforms to.
20873 2014-04-24  Cong Hou  <congh@google.com>
20875         PR tree-optimization/60896
20876         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
20877         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
20878         (vect_mark_pattern_stmts): Set the def type of all statements in
20879         PATTERN_DEF_SEQ as vect_internal_def.
20881 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20883         * doc/extend.texi (PowerPC Built-in Functions): Document new
20884         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
20885         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
20887         * config/rs6000/predicates.md (const_0_to_3_operand): New
20888         predicate to match 0..3 integer constants.
20890         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
20891         to support adding miscellaneous builtin functions.
20892         (BU_DFP_MISC_2): Likewise.
20893         (BU_P7_MISC_1): Likewise.
20894         (BU_P7_MISC_2): Likewise.
20895         (BU_P8V_MISC_3): Likewise.
20896         (BU_MISC_1): Likewise.
20897         (BU_MISC_2): Likewise.
20898         (DIVWE): Add extended divide builtin functions.
20899         (DIVWEO): Likewise.
20900         (DIVWEU): Likewise.
20901         (DIVWEUO): Likewise.
20902         (DIVDE): Likewise.
20903         (DIVDEO): Likewise.
20904         (DIVDEU): Likewise.
20905         (DIVDEUO): Likewise.
20906         (DXEX): Add decimal floating-point builtin functions.
20907         (DXEXQ): Likewise.
20908         (DDEDPD): Likewise.
20909         (DDEDPDQ): Likewise.
20910         (DENBCD): Likewise.
20911         (DENBCDQ): Likewise.
20912         (DIEX): Likewise.
20913         (DIEXQ): Likewise.
20914         (DSCLI): Likewise.
20915         (DSCLIQ): Likewise.
20916         (DSCRI): Likewise.
20917         (DSCRIQ): Likewise.
20918         (CDTBCD): Add new BCD builtin functions.
20919         (CBCDTD): Likewise.
20920         (ADDG6S): Likewise.
20921         (BCDADD): Likewise.
20922         (BCDADD_LT): Likewise.
20923         (BCDADD_EQ): Likewise.
20924         (BCDADD_GT): Likewise.
20925         (BCDADD_OV): Likewise.
20926         (BCDSUB): Likewise.
20927         (BCDSUB_LT): Likewise.
20928         (BCDSUB_EQ): Likewise.
20929         (BCDSUB_GT): Likewise.
20930         (BCDSUB_OV): Likewise.
20931         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
20932         (UNPACK_TD): Likewise.
20933         (PACK_TF): Likewise.
20934         (UNPACK_TF): Likewise.
20935         (UNPACK_TF_0): Likewise.
20936         (UNPACK_TF_1): Likewise.
20937         (PACK_V1TI): Likewise.
20938         (UNPACK_V1TI): Likewise.
20940         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
20941         support for decimal floating point builtin functions.
20942         (rs6000_expand_ternop_builtin): Add checks for the new builtin
20943         functions that take constant arguments.
20944         (rs6000_invalid_builtin): Add decimal floating point builtin support.
20945         (rs6000_init_builtins): Setup long double, _Decimal64, and
20946         _Decimal128 types for new builtin functions.
20947         (builtin_function_type): Set the unsigned flags appropriately for
20948         the new builtin functions.
20949         (rs6000_opt_masks): Add support for decimal floating point builtin
20950         functions.
20952         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
20953         floating point builtin functions.
20954         (RS6000_BTM_COMMON): Likewise.
20955         (RS6000_BTI_long_double): Likewise.
20956         (RS6000_BTI_dfloat64): Likewise.
20957         (RS6000_BTI_dfloat128): Likewise.
20958         (long_double_type_internal_node): Likewise.
20959         (dfloat64_type_internal_node): Likewise.
20960         (dfloat128_type_internal_node): Likewise.
20962         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
20963         2.07 bcd arithmetic instructions.
20964         (UNSPEC_BCDSUB): Likewise.
20965         (UNSPEC_BCD_OVERFLOW): Likewise.
20966         (UNSPEC_BCD_ADD_SUB): Likewise.
20967         (bcd_add_sub): Likewise.
20968         (BCD_TEST): Likewise.
20969         (bcd<bcd_add_sub>): Likewise.
20970         (bcd<bcd_add_sub>_test): Likewise.
20971         (bcd<bcd_add_sub>_test2): Likewise.
20972         (bcd<bcd_add_sub>_<code>): Likewise.
20973         (peephole2 for combined bcd ops): Likewise.
20975         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
20976         decimal floating point builtin functions.
20977         (UNSPEC_DENBCD): Likewise.
20978         (UNSPEC_DXEX): Likewise.
20979         (UNSPEC_DIEX): Likewise.
20980         (UNSPEC_DSCLI): Likewise.
20981         (UNSPEC_DSCRI): Likewise.
20982         (D64_D128): Likewise.
20983         (dfp_suffix): Likewise.
20984         (dfp_ddedpd_<mode>): Likewise.
20985         (dfp_denbcd_<mode>): Likewise.
20986         (dfp_dxex_<mode>): Likewise.
20987         (dfp_diex_<mode>): Likewise.
20988         (dfp_dscli_<mode>): Likewise.
20989         (dfp_dscri_<mode>): Likewise.
20991         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
20992         builtin functions.
20993         (UNSPEC_CDTBCD): Likewise.
20994         (UNSPEC_CBCDTD): Likewise.
20995         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
20996         (UNSPEC_DIVEO): Likewise.
20997         (UNSPEC_DIVEU): Likewise.
20998         (UNSPEC_DIVEUO): Likewise.
20999         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
21000         pack/unpack 128-bit types.
21001         (UNSPEC_PACK_128BIT): Likewise.
21002         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
21003         (udiv<mode>3): Use idiv_ldiv mode attribute.
21004         (div<mode>3): Likewise.
21005         (addg6s): Add new BCD builtin functions.
21006         (cdtbcd): Likewise.
21007         (cbcdtd): Likewise.
21008         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
21009         (div_extend): Likewise.
21010         (div<div_extend>_<mode>"): Likewise.
21011         (FP128_64): Add support for new builtin functions to pack/unpack
21012         128-bit types.
21013         (unpack<mode>): Likewise.
21014         (unpacktf_0): Likewise.
21015         (unpacktf_1): Likewise.
21016         (unpack<mode>_dm): Likewise.
21017         (unpack<mode>_nodm): Likewise.
21018         (pack<mode>): Likewise.
21019         (unpackv1ti): Likewise.
21020         (packv1ti): Likewise.
21022 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
21024         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
21025         is disabled.
21027 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
21029         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
21030         * gimplify.c (omp_is_private): Change last argument's type to int.
21031         Only diagnose lastprivate if the simd argument is 1, only diagnose
21032         linear if the simd argument is 2.
21033         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
21034         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
21035         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
21036         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
21037         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
21038         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21039         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
21040         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21041         * tree-nested.c (convert_nonlocal_omp_clauses,
21042         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
21044 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
21046         PR target/60822
21047         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
21048         operand 1.
21050 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
21052         * flag-types.h (enum ivar_visibility): Add.
21054 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
21056         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
21057         function * argument.
21059 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
21061         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
21063 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
21064             Tom de Vries  <tom@codesourcery.com>
21066         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
21067         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
21068         reg-note.
21069         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
21070         * emit-rtl.c (try_split): Same.
21072 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
21073             Tom de Vries  <tom@codesourcery.com>
21075         * common.opt (fuse-caller-save): New option.
21077 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
21079         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
21080         elements for big-endian.
21082 2014-04-24  Richard Biener  <rguenther@suse.de>
21084         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
21085         during TER and instead use the sepops interface for expanding
21086         non-GIMPLE_SINGLE_RHS.
21088 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21090         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
21091         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
21093 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21095         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
21096         assembler 64-bit option.
21097         * configure: Regenerate.
21099 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21101         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
21102         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
21103         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
21104         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
21105         (TARGET_CRYPTO): Take TARGET_SIMD into account.
21107 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21109         * config/aarch64/aarch64-builtins.c
21110         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
21111         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
21112         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
21113         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
21114         builtins.
21115         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
21116         (Vrevsuff): New mode attribute.
21118 2014-04-24  Terry Guo  <terry.guo@arm.com>
21120         * config/arm/arm.h (machine_function): Define variable
21121         after_arm_reorg here.
21122         * config/arm/arm.c (after_arm_reorg): Remove the definition.
21123         (arm_split_constant): Update the way to access variable
21124         after_arm_reorg.
21125         (arm_reorg): Ditto.
21126         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
21128 2014-04-23  Tom de Vries  <tom@codesourcery.com>
21130         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
21132 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
21134         * is-a.h: Update comments to reflect the following changes to the
21135         "pointerness" of the API, making the template parameter match the
21136         return type, allowing use of is-a.h with typedefs of pointers.
21137         (is_a_helper::cast): Return a T rather then a pointer to a T, so
21138         that the return type matches the parameter to the is_a_helper.
21139         (as_a): Likewise.
21140         (dyn_cast): Likewise.
21142         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
21143         pointer from the is-a.h API.
21145         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
21146         (is_a_helper <cgraph_node *>::test): ...this, matching change to
21147         is-a.h API.
21148         (is_a_helper <varpool_node>::test): Likewise, convert to...
21149         (is_a_helper <varpool_node *>::test): ...this.
21151         (varpool_first_variable): Update for removal of implicit pointer
21152         from the is-a.h API.
21153         (varpool_next_variable): Likewise.
21154         (varpool_first_static_initializer): Likewise.
21155         (varpool_next_static_initializer): Likewise.
21156         (varpool_first_defined_variable): Likewise.
21157         (varpool_next_defined_variable): Likewise.
21158         (cgraph_first_defined_function): Likewise.
21159         (cgraph_next_defined_function): Likewise.
21160         (cgraph_first_function): Likewise.
21161         (cgraph_next_function): Likewise.
21162         (cgraph_first_function_with_gimple_body): Likewise.
21163         (cgraph_next_function_with_gimple_body): Likewise.
21164         (cgraph_alias_target): Likewise.
21165         (varpool_alias_target): Likewise.
21166         (cgraph_function_or_thunk_node): Likewise.
21167         (varpool_variable_node): Likewise.
21168         (symtab_real_symbol_p): Likewise.
21169         * cgraphunit.c (referred_to_p): Likewise.
21170         (analyze_functions): Likewise.
21171         (handle_alias_pairs): Likewise.
21172         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
21173         * gimple-ssa.h (gimple_vuse_op): Likewise.
21174         (gimple_vdef_op): Likewise.
21175         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
21176         * gimple.c (gimple_build_asm_1): Likewise.
21177         (gimple_build_try): Likewise.
21178         (gimple_build_resx): Likewise.
21179         (gimple_build_eh_dispatch): Likewise.
21180         (gimple_build_omp_for): Likewise.
21181         (gimple_omp_for_set_clauses): Likewise.
21183         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
21184         (is_a_helper <gimple_statement_asm *>::test): ...this.
21185         (is_a_helper <gimple_statement_bind>::test): Convert to...
21186         (is_a_helper <gimple_statement_bind *>::test): ...this.
21187         (is_a_helper <gimple_statement_call>::test): Convert to...
21188         (is_a_helper <gimple_statement_call *>::test): ...this.
21189         (is_a_helper <gimple_statement_catch>::test): Convert to...
21190         (is_a_helper <gimple_statement_catch *>::test): ...this.
21191         (is_a_helper <gimple_statement_resx>::test): Convert to...
21192         (is_a_helper <gimple_statement_resx *>::test): ...this.
21193         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
21194         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
21195         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
21196         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
21197         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
21198         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
21199         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
21200         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
21201         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
21202         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
21203         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
21204         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
21205         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
21206         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
21207         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
21208         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
21209         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
21210         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
21211         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
21212         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
21213         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
21214         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
21215         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
21216         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
21217         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
21218         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
21219         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
21220         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
21221         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
21222         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
21223         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
21224         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
21225         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
21226         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
21227         (is_a_helper <gimple_statement_phi>::test): Convert to...
21228         (is_a_helper <gimple_statement_phi *>::test): ...this.
21229         (is_a_helper <gimple_statement_transaction>::test): Convert to...
21230         (is_a_helper <gimple_statement_transaction *>::test): ...this.
21231         (is_a_helper <gimple_statement_try>::test): Convert to...
21232         (is_a_helper <gimple_statement_try *>::test): ...this.
21233         (is_a_helper <gimple_statement_wce>::test): Convert to...
21234         (is_a_helper <gimple_statement_wce *>::test): ...this.
21235         (is_a_helper <const gimple_statement_asm>::test): Convert to...
21236         (is_a_helper <const gimple_statement_asm *>::test): ...this.
21237         (is_a_helper <const gimple_statement_bind>::test): Convert to...
21238         (is_a_helper <const gimple_statement_bind *>::test): ...this.
21239         (is_a_helper <const gimple_statement_call>::test): Convert to...
21240         (is_a_helper <const gimple_statement_call *>::test): ...this.
21241         (is_a_helper <const gimple_statement_catch>::test): Convert to...
21242         (is_a_helper <const gimple_statement_catch *>::test): ...this.
21243         (is_a_helper <const gimple_statement_resx>::test): Convert to...
21244         (is_a_helper <const gimple_statement_resx *>::test): ...this.
21245         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
21246         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
21247         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
21248         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
21249         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
21250         Convert to...
21251         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
21252         ...this.
21253         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
21254         Convert to...
21255         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
21256         ...this.
21257         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
21258         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
21259         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
21260         to...
21261         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
21262         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
21263         to...
21264         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
21265         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
21266         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
21267         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
21268         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
21269         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
21270         to...
21271         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
21272         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
21273         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
21274         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
21275         to...
21276         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
21277         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
21278         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
21279         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
21280         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
21281         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
21282         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
21283         (is_a_helper <const gimple_statement_phi>::test): Convert to...
21284         (is_a_helper <const gimple_statement_phi *>::test): ...this.
21285         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
21286         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
21287         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
21288         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
21289         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
21290         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
21291         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
21292         to...
21293         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
21294         ...this.
21295         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
21296         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
21298         (gimple_use_ops): Update for removal of implicit pointer from the
21299         is-a.h API.
21300         (gimple_set_use_ops): Likewise.
21301         (gimple_vuse): Likewise.
21302         (gimple_vdef): Likewise.
21303         (gimple_vuse_ptr): Likewise.
21304         (gimple_vdef_ptr): Likewise.
21305         (gimple_set_vuse): Likewise.
21306         (gimple_set_vdef): Likewise.
21307         (gimple_omp_return_set_lhs): Likewise.
21308         (gimple_omp_return_lhs): Likewise.
21309         (gimple_omp_return_lhs_ptr): Likewise.
21310         (gimple_call_fntype): Likewise.
21311         (gimple_call_set_fntype): Likewise.
21312         (gimple_call_set_internal_fn): Likewise.
21313         (gimple_call_use_set): Likewise.
21314         (gimple_call_clobber_set): Likewise.
21315         (gimple_bind_vars): Likewise.
21316         (gimple_bind_set_vars): Likewise.
21317         (gimple_bind_body_ptr): Likewise.
21318         (gimple_bind_set_body): Likewise.
21319         (gimple_bind_add_stmt): Likewise.
21320         (gimple_bind_block): Likewise.
21321         (gimple_bind_set_block): Likewise.
21322         (gimple_asm_ninputs): Likewise.
21323         (gimple_asm_noutputs): Likewise.
21324         (gimple_asm_nclobbers): Likewise.
21325         (gimple_asm_nlabels): Likewise.
21326         (gimple_asm_input_op): Likewise.
21327         (gimple_asm_input_op_ptr): Likewise.
21328         (gimple_asm_output_op): Likewise.
21329         (gimple_asm_output_op_ptr): Likewise.
21330         (gimple_asm_set_output_op): Likewise.
21331         (gimple_asm_clobber_op): Likewise.
21332         (gimple_asm_set_clobber_op): Likewise.
21333         (gimple_asm_label_op): Likewise.
21334         (gimple_asm_set_label_op): Likewise.
21335         (gimple_asm_string): Likewise.
21336         (gimple_catch_types): Likewise.
21337         (gimple_catch_types_ptr): Likewise.
21338         (gimple_catch_handler_ptr): Likewise.
21339         (gimple_catch_set_types): Likewise.
21340         (gimple_catch_set_handler): Likewise.
21341         (gimple_eh_filter_types): Likewise.
21342         (gimple_eh_filter_types_ptr): Likewise.
21343         (gimple_eh_filter_failure_ptr): Likewise.
21344         (gimple_eh_filter_set_types): Likewise.
21345         (gimple_eh_filter_set_failure): Likewise.
21346         (gimple_eh_must_not_throw_fndecl): Likewise.
21347         (gimple_eh_must_not_throw_set_fndecl): Likewise.
21348         (gimple_eh_else_n_body_ptr): Likewise.
21349         (gimple_eh_else_e_body_ptr): Likewise.
21350         (gimple_eh_else_set_n_body): Likewise.
21351         (gimple_eh_else_set_e_body): Likewise.
21352         (gimple_try_eval_ptr): Likewise.
21353         (gimple_try_cleanup_ptr): Likewise.
21354         (gimple_try_set_eval): Likewise.
21355         (gimple_try_set_cleanup): Likewise.
21356         (gimple_wce_cleanup_ptr): Likewise.
21357         (gimple_wce_set_cleanup): Likewise.
21358         (gimple_phi_capacity): Likewise.
21359         (gimple_phi_num_args): Likewise.
21360         (gimple_phi_result): Likewise.
21361         (gimple_phi_result_ptr): Likewise.
21362         (gimple_phi_set_result): Likewise.
21363         (gimple_phi_arg): Likewise.
21364         (gimple_phi_set_arg): Likewise.
21365         (gimple_resx_region): Likewise.
21366         (gimple_resx_set_region): Likewise.
21367         (gimple_eh_dispatch_region): Likewise.
21368         (gimple_eh_dispatch_set_region): Likewise.
21369         (gimple_omp_critical_name): Likewise.
21370         (gimple_omp_critical_name_ptr): Likewise.
21371         (gimple_omp_critical_set_name): Likewise.
21372         (gimple_omp_for_clauses): Likewise.
21373         (gimple_omp_for_clauses_ptr): Likewise.
21374         (gimple_omp_for_set_clauses): Likewise.
21375         (gimple_omp_for_collapse): Likewise.
21376         (gimple_omp_for_index): Likewise.
21377         (gimple_omp_for_index_ptr): Likewise.
21378         (gimple_omp_for_set_index): Likewise.
21379         (gimple_omp_for_initial): Likewise.
21380         (gimple_omp_for_initial_ptr): Likewise.
21381         (gimple_omp_for_set_initial): Likewise.
21382         (gimple_omp_for_final): Likewise.
21383         (gimple_omp_for_final_ptr): Likewise.
21384         (gimple_omp_for_set_final): Likewise.
21385         (gimple_omp_for_incr): Likewise.
21386         (gimple_omp_for_incr_ptr): Likewise.
21387         (gimple_omp_for_set_incr): Likewise.
21388         (gimple_omp_for_pre_body_ptr): Likewise.
21389         (gimple_omp_for_set_pre_body): Likewise.
21390         (gimple_omp_parallel_clauses): Likewise.
21391         (gimple_omp_parallel_clauses_ptr): Likewise.
21392         (gimple_omp_parallel_set_clauses): Likewise.
21393         (gimple_omp_parallel_child_fn): Likewise.
21394         (gimple_omp_parallel_child_fn_ptr): Likewise.
21395         (gimple_omp_parallel_set_child_fn): Likewise.
21396         (gimple_omp_parallel_data_arg): Likewise.
21397         (gimple_omp_parallel_data_arg_ptr): Likewise.
21398         (gimple_omp_parallel_set_data_arg): Likewise.
21399         (gimple_omp_task_clauses): Likewise.
21400         (gimple_omp_task_clauses_ptr): Likewise.
21401         (gimple_omp_task_set_clauses): Likewise.
21402         (gimple_omp_task_child_fn): Likewise.
21403         (gimple_omp_task_child_fn_ptr): Likewise.
21404         (gimple_omp_task_set_child_fn): Likewise.
21405         (gimple_omp_task_data_arg): Likewise.
21406         (gimple_omp_task_data_arg_ptr): Likewise.
21407         (gimple_omp_task_set_data_arg): Likewise.
21408         (gimple_omp_taskreg_clauses): Likewise.
21409         (gimple_omp_taskreg_clauses_ptr): Likewise.
21410         (gimple_omp_taskreg_set_clauses): Likewise.
21411         (gimple_omp_taskreg_child_fn): Likewise.
21412         (gimple_omp_taskreg_child_fn_ptr): Likewise.
21413         (gimple_omp_taskreg_set_child_fn): Likewise.
21414         (gimple_omp_taskreg_data_arg): Likewise.
21415         (gimple_omp_taskreg_data_arg_ptr): Likewise.
21416         (gimple_omp_taskreg_set_data_arg): Likewise.
21417         (gimple_omp_task_copy_fn): Likewise.
21418         (gimple_omp_task_copy_fn_ptr): Likewise.
21419         (gimple_omp_task_set_copy_fn): Likewise.
21420         (gimple_omp_task_arg_size): Likewise.
21421         (gimple_omp_task_arg_size_ptr): Likewise.
21422         (gimple_omp_task_set_arg_size): Likewise.
21423         (gimple_omp_task_arg_align): Likewise.
21424         (gimple_omp_task_arg_align_ptr): Likewise.
21425         (gimple_omp_task_set_arg_align): Likewise.
21426         (gimple_omp_single_clauses): Likewise.
21427         (gimple_omp_single_clauses_ptr): Likewise.
21428         (gimple_omp_single_set_clauses): Likewise.
21429         (gimple_omp_target_clauses): Likewise.
21430         (gimple_omp_target_clauses_ptr): Likewise.
21431         (gimple_omp_target_set_clauses): Likewise.
21432         (gimple_omp_target_child_fn): Likewise.
21433         (gimple_omp_target_child_fn_ptr): Likewise.
21434         (gimple_omp_target_set_child_fn): Likewise.
21435         (gimple_omp_target_data_arg): Likewise.
21436         (gimple_omp_target_data_arg_ptr): Likewise.
21437         (gimple_omp_target_set_data_arg): Likewise.
21438         (gimple_omp_teams_clauses): Likewise.
21439         (gimple_omp_teams_clauses_ptr): Likewise.
21440         (gimple_omp_teams_set_clauses): Likewise.
21441         (gimple_omp_sections_clauses): Likewise.
21442         (gimple_omp_sections_clauses_ptr): Likewise.
21443         (gimple_omp_sections_set_clauses): Likewise.
21444         (gimple_omp_sections_control): Likewise.
21445         (gimple_omp_sections_control_ptr): Likewise.
21446         (gimple_omp_sections_set_control): Likewise.
21447         (gimple_omp_for_set_cond): Likewise.
21448         (gimple_omp_for_cond): Likewise.
21449         (gimple_omp_atomic_store_set_val): Likewise.
21450         (gimple_omp_atomic_store_val): Likewise.
21451         (gimple_omp_atomic_store_val_ptr): Likewise.
21452         (gimple_omp_atomic_load_set_lhs): Likewise.
21453         (gimple_omp_atomic_load_lhs): Likewise.
21454         (gimple_omp_atomic_load_lhs_ptr): Likewise.
21455         (gimple_omp_atomic_load_set_rhs): Likewise.
21456         (gimple_omp_atomic_load_rhs): Likewise.
21457         (gimple_omp_atomic_load_rhs_ptr): Likewise.
21458         (gimple_omp_continue_control_def): Likewise.
21459         (gimple_omp_continue_control_def_ptr): Likewise.
21460         (gimple_omp_continue_set_control_def): Likewise.
21461         (gimple_omp_continue_control_use): Likewise.
21462         (gimple_omp_continue_control_use_ptr): Likewise.
21463         (gimple_omp_continue_set_control_use): Likewise.
21464         (gimple_transaction_body_ptr): Likewise.
21465         (gimple_transaction_label): Likewise.
21466         (gimple_transaction_label_ptr): Likewise.
21467         (gimple_transaction_set_body): Likewise.
21468         (gimple_transaction_set_label): Likewise.
21470         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
21471         * ipa-inline-analysis.c (inline_write_summary): Likewise.
21472         * ipa-ref.c (ipa_record_reference): Likewise.
21473         * ipa-reference.c (analyze_function): Likewise.
21474         (ipa_reference_write_optimization_summary): Likewise.
21475         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
21476         (address_taken_from_non_vtable_p): Likewise.
21477         (comdat_can_be_unshared_p_1): Likewise.
21478         * lto-cgraph.c (lto_output_ref): Likewise.
21479         (add_references): Likewise.
21480         (compute_ltrans_boundary): Likewise.
21481         (output_symtab): Likewise.
21482         (input_ref): Likewise.
21483         (input_cgraph_1): Likewise.
21484         (output_cgraph_opt_summary): Likewise.
21485         * lto-streamer-out.c (lto_output): Likewise.
21486         (output_symbol_p): Likewise.
21487         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
21488         (lsei_start_function_in_partition): Likewise.
21489         (lsei_next_variable_in_partition): Likewise.
21490         (lsei_start_variable_in_partition): Likewise.
21491         * symtab.c (insert_to_assembler_name_hash): Likewise.
21492         (unlink_from_assembler_name_hash): Likewise.
21493         (symtab_unregister_node): Likewise.
21494         (symtab_remove_node): Likewise.
21495         (dump_symtab_node): Likewise.
21496         (verify_symtab_base): Likewise.
21497         (verify_symtab_node): Likewise.
21498         (symtab_make_decl_local): Likewise.
21499         (symtab_alias_ultimate_target): Likewise.
21500         (symtab_resolve_alias): Likewise.
21501         (symtab_get_symbol_partitioning_class): Likewise.
21502         * tree-phinodes.c (allocate_phi_node): Likewise.
21503         (reserve_phi_args_for_new_edge): Likewise.
21504         (remove_phi_args): Likewise.
21505         * varpool.c (varpool_node_for_asm): Likewise.
21506         (varpool_remove_unreferenced_decls): Likewise.
21508 2014-04-23  Jeff Law  <law@redhat.com>
21510         PR tree-optimization/60902
21511         * tree-ssa-threadedge.c
21512         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
21513         invalidate outputs from statements that do not produce useful
21514         outputs for threading.
21516 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
21518         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
21519         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
21520         machine descriptions for Stack Smashing Protector.
21522 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
21524         * aarch64.md (<optab>_rol<mode>3): New pattern.
21525         (<optab>_rolsi3_uxtw): Likewise.
21526         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
21528 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
21530         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
21531         (arm_cortex_a12_tune): Likewise.
21533 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21535         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
21537 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21539         * config/arm/arm.md (arm_rev16si2): New pattern.
21540         (arm_rev16si2_alt): Likewise.
21541         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
21543 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21545         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
21546         (rev16<mode>2_alt): Likewise.
21547         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
21548         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
21549         (aarch_rev16_shleft_mask_imm_p): Likewise.
21550         (aarch_rev16_p_1): Likewise.
21551         (aarch_rev16_p): Likewise.
21552         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
21553         (aarch_rev16_shright_mask_imm_p): Likewise.
21554         (aarch_rev16_shleft_mask_imm_p): Likewise.
21556 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21558         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
21559         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
21560         rev cost.
21561         (cortex_a53_extra_costs): Likewise.
21562         (cortex_a57_extra_costs): Likewise.
21563         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
21564         (cortexa7_extra_costs): Likewise.
21565         (cortexa8_extra_costs): Likewise.
21566         (cortexa12_extra_costs): Likewise.
21567         (cortexa15_extra_costs): Likewise.
21568         (v7m_extra_costs): Likewise.
21569         (arm_new_rtx_costs): Handle BSWAP.
21571 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21573         * config/arm/arm.c (cortexa8_extra_costs): New table.
21574         (arm_cortex_a8_tune): New tuning struct.
21575         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
21577 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21579         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
21581 2014-04-23  Richard Biener  <rguenther@suse.de>
21583         * Makefile.in (OBJS): Remove loop-unswitch.o.
21584         * tree-pass.h (make_pass_rtl_unswitch): Remove.
21585         * passes.def (pass_rtl_unswitch): Likewise.
21586         * loop-init.c (gate_rtl_unswitch): Likewise.
21587         (rtl_unswitch): Likewise.
21588         (pass_data_rtl_unswitch): Likewise.
21589         (pass_rtl_unswitch): Likewise.
21590         (make_pass_rtl_unswitch): Likewise.
21591         * rtl.h (reversed_condition): Likewise.
21592         (compare_and_jump_seq): Likewise.
21593         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
21594         and make static.
21595         * loop-unroll.c (compare_and_jump_seq): Likewise.
21597 2014-04-23  Richard Biener  <rguenther@suse.de>
21599         PR tree-optimization/60903
21600         * tree-ssa-loop-im.c (analyze_memory_references): Remove
21601         commented code block.
21602         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
21603         loop flags to newly created BBs and edges.
21605 2014-04-23  Nick Clifton  <nickc@redhat.com>
21607         * config/msp430/msp430.c (msp430_handle_option): Move function
21608         to msp430-common.c
21609         (msp430_option_override): Simplify mcu and mcpu option handling.
21610         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
21611         support for -mhwmult command line option.
21612         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
21613         -mhwmult command line option.
21614         (msp430_hwmult_enabled): Delete.
21615         (msp43o_output_labelref): Add support for -mhwmult command line option.
21616         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
21617         (umulsidi3): Likewise.
21618         * config/msp430/msp430.opt (mmcu): Add Report attribute.
21619         (mcpu, mlarge, msmall): Likewise.
21620         (mhwmult): New option.
21621         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
21622         prototype.
21623         (msp430_is_f5_mcu): Remove prototype.
21624         (msp430_use_f5_series_hwmult): Add prototype.
21625         * config/msp430/msp430-opts.h: New file.
21626         * common/config/msp430: New directory.
21627         * common/config/msp430/msp430-common.c: New file.
21628         * config.gcc (msp430): Remove target_has_targetm_common.
21629         * doc/invoke.texi: Document -mhwmult command line option.
21631 2014-04-23  Nick Clifton  <nickc@redhat.com>
21633         * config/i386/cygwin.h (ENDFILE_SPEC): Include
21634         default-manifest.o if it can be found in the search path.
21635         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21637 2014-04-23  Terry Guo  <terry.guo@arm.com>
21639         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
21641 2014-04-23  Richard Biener  <rguenther@suse.de>
21643         PR middle-end/60895
21644         * tree-inline.c (declare_return_variable): Use mark_addressable.
21646 2014-04-23  Richard Biener  <rguenther@suse.de>
21648         PR middle-end/60891
21649         * loop-init.c (loop_optimizer_init): Make sure to apply
21650         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
21652 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
21654         PR sanitizer/60275
21655         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
21656         New options.
21657         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
21658         if flag_sanitize_undefined_trap_on_error.
21659         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
21660         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
21661         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
21662         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
21663         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
21664         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
21665         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
21666         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
21667         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
21668         * ubsan.c (ubsan_instrument_unreachable): Return
21669         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
21670         (ubsan_expand_null_ifn): Emit __builtin_trap ()
21671         if flag_sanitize_undefined_trap_on_error and
21672         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
21673         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
21674         instrument_bool_enum_load): Emit __builtin_trap () if
21675         flag_sanitize_undefined_trap_on_error and
21676         __builtin_handle_*_abort () if !flag_sanitize_recover.
21677         * doc/invoke.texi (-fsanitize-recover,
21678         -fsanitize-undefined-trap-on-error): Document.
21680 2014-04-22  Christian Bruel  <christian.bruel@st.com>
21682         * config/sh/sh.md (mov<mode>): Replace movQIHI.
21683          Force immediates to SImode.
21685 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
21687         * config/nios2/nios2.md (UNSPEC_ROUND): New.
21688         (lroundsfsi2): New.
21689         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
21690         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
21691         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
21692         (nios2_fpu_insn): Add entry for round.
21693         (N2FPU_NO_ERRNO_P): Define.
21694         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
21695         flag_errno_math.
21696         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
21698 2014-04-22  Richard Henderson  <rth@redhat.com>
21700         * config/aarch64/aarch64 (addti3, subti3): New expanders.
21701         (add<GPI>3_compare0): Remove leading * from name.
21702         (add<GPI>3_carryin): Likewise.
21703         (sub<GPI>3_compare0): Likewise.
21704         (sub<GPI>3_carryin): Likewise.
21705         (<su_optab>mulditi3): New expander.
21706         (multi3): New expander.
21707         (madd<GPI>): Remove leading * from name.
21709 2014-04-22  Martin Jambor  <mjambor@suse.cz>
21711         * cgraphclones.c (cgraph_function_versioning): Copy
21712         ipa_transforms_to_apply instead of asserting it is empty.
21714 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
21716         PR target/60868
21717         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
21718         on count_exp to get mode.
21720 2014-04-22  Andrew Pinski  <apinski@cavium.com>
21722         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21723         Handle TLS for ILP32.
21724         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
21725         (tlsie_small_<mode>): this and handle PTR.
21726         (tlsie_small_sidi): New pattern.
21727         (tlsle_small): Change to an expand to handle ILP32.
21728         (tlsle_small_<mode>): New pattern.
21729         (tlsdesc_small): Rename to ...
21730         (tlsdesc_small_<mode>): this and handle PTR.
21732 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21734         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
21736 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21738         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21739         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
21740         (aarch64_types_signed_poly_qualifiers): Likewise.
21741         (aarch64_types_unsigned_signed_qualifiers): Likewise.
21742         (aarch64_types_poly_signed_qualifiers): Likewise.
21743         (TYPES_REINTERP_SS): Type macro added.
21744         (TYPES_REINTERP_SU): Likewise.
21745         (TYPES_REINTERP_SP): Likewise.
21746         (TYPES_REINTERP_US): Likewise.
21747         (TYPES_REINTERP_PS): Likewise.
21748         (aarch64_fold_builtin): New expression folding added.
21749         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
21750         Declarations removed.
21751         (REINTERP_SS): Declarations added.
21752         (REINTERP_US): Likewise.
21753         (REINTERP_PS): Likewise.
21754         (REINTERP_SU): Likewise.
21755         (REINTERP_SP): Likewise.
21756         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
21757         (vreinterpretq_p8_f64): Likewise.
21758         (vreinterpret_p16_f64): Likewise.
21759         (vreinterpretq_p16_f64): Likewise.
21760         (vreinterpret_f32_f64): Likewise.
21761         (vreinterpretq_f32_f64): Likewise.
21762         (vreinterpret_f64_f32): Likewise.
21763         (vreinterpret_f64_p8): Likewise.
21764         (vreinterpret_f64_p16): Likewise.
21765         (vreinterpret_f64_s8): Likewise.
21766         (vreinterpret_f64_s16): Likewise.
21767         (vreinterpret_f64_s32): Likewise.
21768         (vreinterpret_f64_s64): Likewise.
21769         (vreinterpret_f64_u8): Likewise.
21770         (vreinterpret_f64_u16): Likewise.
21771         (vreinterpret_f64_u32): Likewise.
21772         (vreinterpret_f64_u64): Likewise.
21773         (vreinterpretq_f64_f32): Likewise.
21774         (vreinterpretq_f64_p8): Likewise.
21775         (vreinterpretq_f64_p16): Likewise.
21776         (vreinterpretq_f64_s8): Likewise.
21777         (vreinterpretq_f64_s16): Likewise.
21778         (vreinterpretq_f64_s32): Likewise.
21779         (vreinterpretq_f64_s64): Likewise.
21780         (vreinterpretq_f64_u8): Likewise.
21781         (vreinterpretq_f64_u16): Likewise.
21782         (vreinterpretq_f64_u32): Likewise.
21783         (vreinterpretq_f64_u64): Likewise.
21784         (vreinterpret_s64_f64): Likewise.
21785         (vreinterpretq_s64_f64): Likewise.
21786         (vreinterpret_u64_f64): Likewise.
21787         (vreinterpretq_u64_f64): Likewise.
21788         (vreinterpret_s8_f64): Likewise.
21789         (vreinterpretq_s8_f64): Likewise.
21790         (vreinterpret_s16_f64): Likewise.
21791         (vreinterpretq_s16_f64): Likewise.
21792         (vreinterpret_s32_f64): Likewise.
21793         (vreinterpretq_s32_f64): Likewise.
21794         (vreinterpret_u8_f64): Likewise.
21795         (vreinterpretq_u8_f64): Likewise.
21796         (vreinterpret_u16_f64): Likewise.
21797         (vreinterpretq_u16_f64): Likewise.
21798         (vreinterpret_u32_f64): Likewise.
21799         (vreinterpretq_u32_f64): Likewise.
21801 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21803         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21804         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
21805         (vreinterpret_p8_s8): Likewise.
21806         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
21807         (vreinterpret_p8_s16): Likewise.
21808         (vreinterpret_p8_s32): Likewise.
21809         (vreinterpret_p8_s64): Likewise.
21810         (vreinterpret_p8_f32): Likewise.
21811         (vreinterpret_p8_u8): Likewise.
21812         (vreinterpret_p8_u16): Likewise.
21813         (vreinterpret_p8_u32): Likewise.
21814         (vreinterpret_p8_u64): Likewise.
21815         (vreinterpret_p8_p16): Likewise.
21816         (vreinterpretq_p8_s8): Likewise.
21817         (vreinterpretq_p8_s16): Likewise.
21818         (vreinterpretq_p8_s32): Likewise.
21819         (vreinterpretq_p8_s64): Likewise.
21820         (vreinterpretq_p8_f32): Likewise.
21821         (vreinterpretq_p8_u8): Likewise.
21822         (vreinterpretq_p8_u16): Likewise.
21823         (vreinterpretq_p8_u32): Likewise.
21824         (vreinterpretq_p8_u64): Likewise.
21825         (vreinterpretq_p8_p16): Likewise.
21826         (vreinterpret_p16_s8): Likewise.
21827         (vreinterpret_p16_s16): Likewise.
21828         (vreinterpret_p16_s32): Likewise.
21829         (vreinterpret_p16_s64): Likewise.
21830         (vreinterpret_p16_f32): Likewise.
21831         (vreinterpret_p16_u8): Likewise.
21832         (vreinterpret_p16_u16): Likewise.
21833         (vreinterpret_p16_u32): Likewise.
21834         (vreinterpret_p16_u64): Likewise.
21835         (vreinterpret_p16_p8): Likewise.
21836         (vreinterpretq_p16_s8): Likewise.
21837         (vreinterpretq_p16_s16): Likewise.
21838         (vreinterpretq_p16_s32): Likewise.
21839         (vreinterpretq_p16_s64): Likewise.
21840         (vreinterpretq_p16_f32): Likewise.
21841         (vreinterpretq_p16_u8): Likewise.
21842         (vreinterpretq_p16_u16): Likewise.
21843         (vreinterpretq_p16_u32): Likewise.
21844         (vreinterpretq_p16_u64): Likewise.
21845         (vreinterpretq_p16_p8): Likewise.
21846         (vreinterpret_f32_s8): Likewise.
21847         (vreinterpret_f32_s16): Likewise.
21848         (vreinterpret_f32_s32): Likewise.
21849         (vreinterpret_f32_s64): Likewise.
21850         (vreinterpret_f32_u8): Likewise.
21851         (vreinterpret_f32_u16): Likewise.
21852         (vreinterpret_f32_u32): Likewise.
21853         (vreinterpret_f32_u64): Likewise.
21854         (vreinterpret_f32_p8): Likewise.
21855         (vreinterpret_f32_p16): Likewise.
21856         (vreinterpretq_f32_s8): Likewise.
21857         (vreinterpretq_f32_s16): Likewise.
21858         (vreinterpretq_f32_s32): Likewise.
21859         (vreinterpretq_f32_s64): Likewise.
21860         (vreinterpretq_f32_u8): Likewise.
21861         (vreinterpretq_f32_u16): Likewise.
21862         (vreinterpretq_f32_u32): Likewise.
21863         (vreinterpretq_f32_u64): Likewise.
21864         (vreinterpretq_f32_p8): Likewise.
21865         (vreinterpretq_f32_p16): Likewise.
21866         (vreinterpret_s64_s8): Likewise.
21867         (vreinterpret_s64_s16): Likewise.
21868         (vreinterpret_s64_s32): Likewise.
21869         (vreinterpret_s64_f32): Likewise.
21870         (vreinterpret_s64_u8): Likewise.
21871         (vreinterpret_s64_u16): Likewise.
21872         (vreinterpret_s64_u32): Likewise.
21873         (vreinterpret_s64_u64): Likewise.
21874         (vreinterpret_s64_p8): Likewise.
21875         (vreinterpret_s64_p16): Likewise.
21876         (vreinterpretq_s64_s8): Likewise.
21877         (vreinterpretq_s64_s16): Likewise.
21878         (vreinterpretq_s64_s32): Likewise.
21879         (vreinterpretq_s64_f32): Likewise.
21880         (vreinterpretq_s64_u8): Likewise.
21881         (vreinterpretq_s64_u16): Likewise.
21882         (vreinterpretq_s64_u32): Likewise.
21883         (vreinterpretq_s64_u64): Likewise.
21884         (vreinterpretq_s64_p8): Likewise.
21885         (vreinterpretq_s64_p16): Likewise.
21886         (vreinterpret_u64_s8): Likewise.
21887         (vreinterpret_u64_s16): Likewise.
21888         (vreinterpret_u64_s32): Likewise.
21889         (vreinterpret_u64_s64): Likewise.
21890         (vreinterpret_u64_f32): Likewise.
21891         (vreinterpret_u64_u8): Likewise.
21892         (vreinterpret_u64_u16): Likewise.
21893         (vreinterpret_u64_u32): Likewise.
21894         (vreinterpret_u64_p8): Likewise.
21895         (vreinterpret_u64_p16): Likewise.
21896         (vreinterpretq_u64_s8): Likewise.
21897         (vreinterpretq_u64_s16): Likewise.
21898         (vreinterpretq_u64_s32): Likewise.
21899         (vreinterpretq_u64_s64): Likewise.
21900         (vreinterpretq_u64_f32): Likewise.
21901         (vreinterpretq_u64_u8): Likewise.
21902         (vreinterpretq_u64_u16): Likewise.
21903         (vreinterpretq_u64_u32): Likewise.
21904         (vreinterpretq_u64_p8): Likewise.
21905         (vreinterpretq_u64_p16): Likewise.
21906         (vreinterpret_s8_s16): Likewise.
21907         (vreinterpret_s8_s32): Likewise.
21908         (vreinterpret_s8_s64): Likewise.
21909         (vreinterpret_s8_f32): Likewise.
21910         (vreinterpret_s8_u8): Likewise.
21911         (vreinterpret_s8_u16): Likewise.
21912         (vreinterpret_s8_u32): Likewise.
21913         (vreinterpret_s8_u64): Likewise.
21914         (vreinterpret_s8_p8): Likewise.
21915         (vreinterpret_s8_p16): Likewise.
21916         (vreinterpretq_s8_s16): Likewise.
21917         (vreinterpretq_s8_s32): Likewise.
21918         (vreinterpretq_s8_s64): Likewise.
21919         (vreinterpretq_s8_f32): Likewise.
21920         (vreinterpretq_s8_u8): Likewise.
21921         (vreinterpretq_s8_u16): Likewise.
21922         (vreinterpretq_s8_u32): Likewise.
21923         (vreinterpretq_s8_u64): Likewise.
21924         (vreinterpretq_s8_p8): Likewise.
21925         (vreinterpretq_s8_p16): Likewise.
21926         (vreinterpret_s16_s8): Likewise.
21927         (vreinterpret_s16_s32): Likewise.
21928         (vreinterpret_s16_s64): Likewise.
21929         (vreinterpret_s16_f32): Likewise.
21930         (vreinterpret_s16_u8): Likewise.
21931         (vreinterpret_s16_u16): Likewise.
21932         (vreinterpret_s16_u32): Likewise.
21933         (vreinterpret_s16_u64): Likewise.
21934         (vreinterpret_s16_p8): Likewise.
21935         (vreinterpret_s16_p16): Likewise.
21936         (vreinterpretq_s16_s8): Likewise.
21937         (vreinterpretq_s16_s32): Likewise.
21938         (vreinterpretq_s16_s64): Likewise.
21939         (vreinterpretq_s16_f32): Likewise.
21940         (vreinterpretq_s16_u8): Likewise.
21941         (vreinterpretq_s16_u16): Likewise.
21942         (vreinterpretq_s16_u32): Likewise.
21943         (vreinterpretq_s16_u64): Likewise.
21944         (vreinterpretq_s16_p8): Likewise.
21945         (vreinterpretq_s16_p16): Likewise.
21946         (vreinterpret_s32_s8): Likewise.
21947         (vreinterpret_s32_s16): Likewise.
21948         (vreinterpret_s32_s64): Likewise.
21949         (vreinterpret_s32_f32): Likewise.
21950         (vreinterpret_s32_u8): Likewise.
21951         (vreinterpret_s32_u16): Likewise.
21952         (vreinterpret_s32_u32): Likewise.
21953         (vreinterpret_s32_u64): Likewise.
21954         (vreinterpret_s32_p8): Likewise.
21955         (vreinterpret_s32_p16): Likewise.
21956         (vreinterpretq_s32_s8): Likewise.
21957         (vreinterpretq_s32_s16): Likewise.
21958         (vreinterpretq_s32_s64): Likewise.
21959         (vreinterpretq_s32_f32): Likewise.
21960         (vreinterpretq_s32_u8): Likewise.
21961         (vreinterpretq_s32_u16): Likewise.
21962         (vreinterpretq_s32_u32): Likewise.
21963         (vreinterpretq_s32_u64): Likewise.
21964         (vreinterpretq_s32_p8): Likewise.
21965         (vreinterpretq_s32_p16): Likewise.
21966         (vreinterpret_u8_s8): Likewise.
21967         (vreinterpret_u8_s16): Likewise.
21968         (vreinterpret_u8_s32): Likewise.
21969         (vreinterpret_u8_s64): Likewise.
21970         (vreinterpret_u8_f32): Likewise.
21971         (vreinterpret_u8_u16): Likewise.
21972         (vreinterpret_u8_u32): Likewise.
21973         (vreinterpret_u8_u64): Likewise.
21974         (vreinterpret_u8_p8): Likewise.
21975         (vreinterpret_u8_p16): Likewise.
21976         (vreinterpretq_u8_s8): Likewise.
21977         (vreinterpretq_u8_s16): Likewise.
21978         (vreinterpretq_u8_s32): Likewise.
21979         (vreinterpretq_u8_s64): Likewise.
21980         (vreinterpretq_u8_f32): Likewise.
21981         (vreinterpretq_u8_u16): Likewise.
21982         (vreinterpretq_u8_u32): Likewise.
21983         (vreinterpretq_u8_u64): Likewise.
21984         (vreinterpretq_u8_p8): Likewise.
21985         (vreinterpretq_u8_p16): Likewise.
21986         (vreinterpret_u16_s8): Likewise.
21987         (vreinterpret_u16_s16): Likewise.
21988         (vreinterpret_u16_s32): Likewise.
21989         (vreinterpret_u16_s64): Likewise.
21990         (vreinterpret_u16_f32): Likewise.
21991         (vreinterpret_u16_u8): Likewise.
21992         (vreinterpret_u16_u32): Likewise.
21993         (vreinterpret_u16_u64): Likewise.
21994         (vreinterpret_u16_p8): Likewise.
21995         (vreinterpret_u16_p16): Likewise.
21996         (vreinterpretq_u16_s8): Likewise.
21997         (vreinterpretq_u16_s16): Likewise.
21998         (vreinterpretq_u16_s32): Likewise.
21999         (vreinterpretq_u16_s64): Likewise.
22000         (vreinterpretq_u16_f32): Likewise.
22001         (vreinterpretq_u16_u8): Likewise.
22002         (vreinterpretq_u16_u32): Likewise.
22003         (vreinterpretq_u16_u64): Likewise.
22004         (vreinterpretq_u16_p8): Likewise.
22005         (vreinterpretq_u16_p16): Likewise.
22006         (vreinterpret_u32_s8): Likewise.
22007         (vreinterpret_u32_s16): Likewise.
22008         (vreinterpret_u32_s32): Likewise.
22009         (vreinterpret_u32_s64): Likewise.
22010         (vreinterpret_u32_f32): Likewise.
22011         (vreinterpret_u32_u8): Likewise.
22012         (vreinterpret_u32_u16): Likewise.
22013         (vreinterpret_u32_u64): Likewise.
22014         (vreinterpret_u32_p8): Likewise.
22015         (vreinterpret_u32_p16): Likewise.
22016         (vreinterpretq_u32_s8): Likewise.
22017         (vreinterpretq_u32_s16): Likewise.
22018         (vreinterpretq_u32_s32): Likewise.
22019         (vreinterpretq_u32_s64): Likewise.
22020         (vreinterpretq_u32_f32): Likewise.
22021         (vreinterpretq_u32_u8): Likewise.
22022         (vreinterpretq_u32_u16): Likewise.
22023         (vreinterpretq_u32_u64): Likewise.
22024         (vreinterpretq_u32_p8): Likewise.
22025         (vreinterpretq_u32_p16): Likewise.
22027 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
22029         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
22030         Pattern extended.
22031         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
22032         (sqabs): Likewise.
22033         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
22034         (vqnegd_s64): Likewise.
22035         (vqabs_s64): Likewise.
22036         (vqabsd_s64): Likewise.
22038 2014-04-22  Richard Henderson  <rth@redhat.com>
22040         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
22041         computation to the top of the loop.
22043 2014-04-22  Renlin  <renlin.li@arm.com>
22044             Jiong Wang  <jiong.wang@arm.com>
22046         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
22047         * config/aarch64/aarch64.c (aarch64_layout_frame)
22048         (aarch64_initial_elimination_offset): Likewise.
22050 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22052         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
22053         Fix indentation.
22055 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
22057         * machmode.h (bitwise_mode_for_mode): Declare.
22058         * stor-layout.h (bitwise_type_for_mode): Likewise.
22059         * stor-layout.c (bitwise_mode_for_mode): New function.
22060         (bitwise_type_for_mode): Likewise.
22061         * builtins.c (fold_builtin_memory_op): Use it instead of
22062         int_mode_for_mode and build_nonstandard_integer_type.
22064 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22066         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
22067         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
22068         (*-*-solaris2*): Simplify.
22069         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
22070         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
22071         *-*-solaris2.9* handling.
22073         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
22074         as bug.
22075         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
22076         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
22077         handling, simplify.
22078         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
22079         * configure: Regenerate.
22081         * config/i386/sol2-9.h: Remove.
22083         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
22084         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
22085         Remove Solaris 9 references.
22087 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
22089         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
22090         (floatuns<GPI:mode><GPF:mode>2): Remove.
22091         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
22092         and floatuns conversions.
22093         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
22094         and floatuns conversions.
22095         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
22096         (w1,w2): New mode attributes for inequal width conversions.
22098 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
22100         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
22101         the output asm format.
22103 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
22105         * config/aarch64/aarch64-simd.md
22106         (aarch64_cm<optab>di): Always split.
22107         (*aarch64_cm<optab>di): New.
22108         (aarch64_cmtstdi): Always split.
22109         (*aarch64_cmtstdi): New.
22111 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
22113         PR tree-optimization/60823
22114         * omp-low.c (ipa_simd_modify_function_body): Go through
22115         all SSA_NAMEs and for those refering to vector arguments
22116         which are going to be replaced adjust SSA_NAME_VAR and,
22117         if it is a default definition, change it into a non-default
22118         definition assigned at the beginning of function from new_decl.
22119         (ipa_simd_modify_stmt_ops): Rewritten.
22120         * tree-dfa.c (set_ssa_default_def): When removing default def,
22121         check for NULL loc instead of NULL *loc.
22123 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22125         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
22126         restrictions on core registers for DImode values in Thumb2.
22128 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
22130         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
22131         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
22133 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
22135         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
22136         (*iordi_notzesidi_di): Likewise.
22137         (*iordi_notsesidi_di): Likewise.
22139 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
22141         * config/arm/arm-protos.h (tune_params): New struct members.
22142         * config/arm/arm.c: Initialise tune_params per processor.
22143         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
22144         for speed, based on new tune_params.
22146 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
22148         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
22149         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
22150         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
22151         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
22152         * config/aarch64/arm_neon.h (vrnd_f64): Added.
22153         (vrnda_f64): Likewise.
22154         (vrndi_f64): Likewise.
22155         (vrndm_f64): Likewise.
22156         (vrndn_f64): Likewise.
22157         (vrndp_f64): Likewise.
22158         (vrndx_f64): Likewise.
22160 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22162         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
22163         GET_MODE_SIZE argument is enum machine_mode.
22165 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
22167         PR target/60910
22168         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
22169         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
22171 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
22173         PR middle-end/60281
22174         * asan.c (asan_emit_stack_protection): Force the base to align to
22175         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
22176         appropriate bits if STRICT_ALIGNMENT.
22177         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
22178         when asan is on.
22179         (expand_used_vars): Leave a space in the stack frame for alignment
22180         if STRICT_ALIGNMENT.
22182 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
22184         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
22185         than a gimple.
22186         (gimple_store_p): Likewise.
22187         (gimple_assign_load_p): Likewise.
22188         (gimple_assign_cast_p): Likewise.
22189         (gimple_clobber_p): Likewise.
22191         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
22192         rather than a gimple.
22193         (gimple_assign_cast_p): Likewise.
22195 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22197         PR target/60735
22198         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
22199         If mode is DDmode and TARGET_E500_DOUBLE allow move.
22201         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
22202         more debug information for E500 if -mdebug=reg.
22204 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
22206         PR target/60909
22207         * config/i386/i386.c (ix86_expand_builtin)
22208         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
22209         register for target RTX.
22210         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
22212 2014-04-18  Cong Hou  <congh@google.com>
22214         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
22215         the widen-mult pattern by handling two operands with different sizes,
22216         and operands whose size is smaller than half of the result type.
22218 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
22220         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
22221         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
22222         (do_estimate_edge_time): Compute it.
22223         * ipa-inline.c (want_inline_small_function_p): Bypass
22224         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
22226 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
22228         * ipa-inline.c (spec_rem): New static variable.
22229         (dump_overall_stats): New function.
22230         (dump_inline_stats): New function.
22232 2014-04-18  Richard Henderson  <rth@redhat.com>
22234         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
22235         to GET_MODE_SIZE, not a reg_class_t.
22237 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22239         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
22240         (vsx_xxmrglw_<mode>): Likewise.
22242 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
22244         PR target/60876
22245         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
22246         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
22247         (rs6000_init_hard_regno_mode_ok): Likewise.
22249 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
22251         * ipa-inline.c (inline_small_functions): Account only non-cold
22252         functions.
22253         * doc/invoke.texi (inline-unit-growth): Update documentation.
22255 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
22257         * config/rs6000/rs6000.md (addti3, subti3): New.
22259 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
22261         PR target/60863
22262         * config/i386/i386.c (ix86_expand_clear): Remove outdated
22263         comment.  Check optimize_insn_for_size_p instead of
22264         optimize_insn_for_speed_p.
22266 2014-04-17  Martin Jambor  <mjambor@suse.cz>
22268         * gimple-iterator.c (gsi_start_edge): New function.
22269         * gimple-iterator.h (gsi_start_edge): Declare.
22270         * tree-sra.c (single_non_eh_succ): New function.
22271         (disqualify_ops_if_throwing_stmt): Renamed to
22272         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
22273         having one non-EH successor BB.
22274         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
22275         generate loads into replacements.
22276         (sra_modify_assign): Likewise and and also use the simple path for
22277         such statements.
22278         (sra_modify_function_body): Commit statements on edges.
22280 2014-04-17  Richard Biener  <rguenther@suse.de>
22282         PR middle-end/60849
22283         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
22284         comparison results and add clarifying comment.
22286 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
22288         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
22289         (blank_mode): Initialize it.
22290         (emit_mode_size_inline, emit_mode_nunits_inline,
22291         emit_mode_inner_inline): New functions.
22292         (emit_insn_modes_h): Call them and surround their output with
22293         #if GCC_VERSION >= 4001 ... #endif.
22294         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
22295         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
22296         mode_* arrays if the argument is __builtin_constant_p.
22297         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
22298         is enum machine_mode.
22300 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22302         * passes.c (opt_pass::execute): Adjust.
22303         (pass_manager::execute_pass_mode_switching): Likewise.
22304         (early_local_passes::execute): Likewise.
22305         (execute_one_pass): Pass cfun to the pass's execute method.
22306         * tree-pass.h (opt_pass::execute): Add function * argument.
22307         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22308         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22309         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22310         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22311         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22312         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
22313         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
22314         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22315         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22316         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
22317         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
22318         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
22319         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
22320         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
22321         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22322         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22323         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22324         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
22325         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
22326         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22327         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22328         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22329         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22330         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22331         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22332         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22333         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22334         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22335         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
22336         Adjust.
22338 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22340         * passes.c (opt_pass::gate): Take function * argument.
22341         (gate_all_early_local_passes): Merge into
22342         (early_local_passes::gate): this.
22343         (gate_all_early_optimizations): Merge into
22344         (all_early_optimizations::gate): this.
22345         (gate_all_optimizations): Mege into
22346         (all_optimizations::gate): this.
22347         (gate_all_optimizations_g): Merge into
22348         (all_optimizations_g::gate): this.
22349         (gate_rest_of_compilation): Mege into
22350         (rest_of_compilation::gate): this.
22351         (gate_postreload): Merge into
22352         (postreload::gate): this.
22353         (dump_one_pass): Pass cfun to the pass's gate method.
22354         (execute_ipa_summary_passes): Likewise.
22355         (execute_one_pass): Likewise.
22356         (ipa_write_summaries_2): Likewise.
22357         (ipa_write_optimization_summaries_1): Likewise.
22358         (ipa_read_summaries_1): Likewise.
22359         (ipa_read_optimization_summaries_1): Likewise.
22360         (execute_ipa_stmt_fixups): Likewise.
22361         * tree-pass.h (opt_pass::gate): Add function * argument.
22362         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
22363         combine-stack-adj.c, combine.c, compare-elim.c,
22364         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22365         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
22366         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
22367         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
22368         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22369         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22370         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22371         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
22372         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
22373         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
22374         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22375         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22376         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
22377         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22378         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22379         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22380         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22381         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22382         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22383         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22384         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22385         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22386         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
22387         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
22388         var-tracking.c, vtable-verify.c, web.c: Adjust.
22390 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22392         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
22393         * configure: Regenerate.
22395 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22397         * passes.c (dump_one_pass): don't check pass->has_gate.
22398         (execute_ipa_summary_passes): Likewise.
22399         (execute_one_pass): Likewise.
22400         (ipa_write_summaries_2): Likewise.
22401         (ipa_write_optimization_summaries_1): Likewise.
22402         (ipa_read_optimization_summaries_1): Likewise.
22403         (execute_ipa_stmt_fixups): Likewise.
22404         * tree-pass.h (pass_data::has_gate): Remove.
22405         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22406         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22407         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22408         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22409         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22410         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
22411         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
22412         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
22413         gimple-low.c, gimple-ssa-isolate-paths.c,
22414         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
22415         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
22416         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22417         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
22418         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
22419         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
22420         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
22421         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
22422         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
22423         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22424         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22425         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22426         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22427         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22428         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22429         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22430         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22431         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22432         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22433         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22434         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22435         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
22436         Adjust.
22438 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22440         * pass_manager.h (pass_manager::register_dump_files_1): Remove
22441         declaration.
22442         * passes.c (pass_manager::register_dump_files_1): Merge into
22443         (pass_manager::register_dump_files): this, and remove its handling of
22444         properties since the pass always has the properties anyway.
22445         (pass_manager::pass_manager): Adjust.
22447 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22449         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
22450         * passes.c (pass_manager::register_dump_files_1): Remove dead code
22451         dealing with properties.
22452         (pass_manager::register_dump_files): Adjust.
22454 2014-03-20  Mark Wielaard  <mjw@redhat.com>
22456         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
22457         then represent the bound as normal constant value.
22459 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
22461         PR target/60847
22462         Forward port from 4.8 branch
22463         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
22465         * config/i386/bmiintrin.h (_blsi_u32): New.
22466         (_blsi_u64): Ditto.
22467         (_blsr_u32): Ditto.
22468         (_blsr_u64): Ditto.
22469         (_blsmsk_u32): Ditto.
22470         (_blsmsk_u64): Ditto.
22471         (_tzcnt_u32): Ditto.
22472         (_tzcnt_u64): Ditto.
22474 2014-04-17  Kito Cheng  <kito@0xlab.org>
22476         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
22478 2014-04-17  Richard Biener  <rguenther@suse.de>
22480         PR middle-end/60849
22481         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
22482         boolean results for comparisons.
22484 2014-04-17  Richard Biener  <rguenther@suse.de>
22486         PR tree-optimization/60836
22487         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
22488         initial PHI args to be gimple values.
22490 2014-04-17  Richard Biener  <rguenther@suse.de>
22492         PR tree-optimization/60841
22493         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
22494         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
22495         of stmts to SLP build.
22496         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
22497         (vect_analyze_slp): Likewise.
22498         (vect_analyze_slp_instance): Likewise.
22499         (vect_build_slp_tree): Limit overall SLP tree growth.
22500         * tree-vectorizer.h (vect_analyze_data_refs,
22501         vect_analyze_slp): Adjust prototypes.
22503 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
22505         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
22506         Silvermont.
22508 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
22510         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
22511         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
22512         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
22513         for TARGET_SLOW_PSHUFB
22515 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
22517         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
22518         * config/i386/i386.c (intel_cost): Ditto.
22520 2014-04-17  Joey Ye  <joey.ye@arm.com>
22522         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
22524 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
22526         * opts.c (common_handle_option): Disable -fipa-reference coorectly
22527         with -fuse-profile.
22529 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
22531         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
22532         (type_all_derivations_known_p): New predicate.
22533         (type_all_ctors_visible_p): New predicate.
22534         (type_possibly_instantiated_p): New predicate.
22535         (get_odr_type): Compute all_derivations_known.
22536         (dump_odr_type): Dump the flag.
22537         (maybe_record_type): Cleanup.
22538         (record_target_from_binfo): Add bases_to_consider array;
22539         record bases for types w/o instances and skip CXX destructor.
22540         (possible_polymorphic_call_targets_1): Add bases_to_consider
22541         and consider_construction parameters; check if type may have instance.
22542         (get_polymorphic_call_info): Set maybe_in_construction to true
22543         when we know nothing.
22544         (record_targets_from_bases): Skip CXX destructors; they are
22545         never called for types in construction.
22546         (possible_polymorphic_call_targets): Do not record target when
22547         type may not have instance.
22549 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
22551         PR ipa/60854
22552         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
22553         external aliases alive, too.
22555 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
22557         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
22558         definition.
22560 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
22562         * final.c (compute_alignments): Do not apply loop alignment to a block
22563         falling through to the exit.
22565 2014-04-16  Catherine Moore  <clm@codesourcery.com>
22567         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
22568         Adjust constraints for microMIPS store patterns.
22570 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
22572         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
22574 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
22576         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
22577         (append_use): Run at -O0.
22578         (append_vdef): Likewise.
22579         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
22580         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
22582 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
22584         PR tree-optimization/60844
22585         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
22586         (propagate_op_to_single_use, remove_visited_stmt_chain,
22587         linearize_expr, repropagate_negates, reassociate_bb): Use it
22588         instead of gsi_remove.
22590 2014-04-16  Martin Jambor  <mjambor@suse.cz>
22592         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
22593         ipa_transforms_to_apply.
22594         (cgraph_function_versioning): Assert that old_node has empty
22595         ipa_transforms_to_apply.
22596         * trans-mem.c (ipa_tm_create_version): Likewise.
22597         * tree-inline.c (tree_function_versioning): Do not duplicate
22598         ipa_transforms_to_apply.
22600 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22602         PR target/60817
22603         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
22604         x86_64-*-* cases.
22605         Pass necessary as flags on 64-bit Solaris/x86.
22606         Use lowercase relocs for x86_64-*-*.
22607         * configure: Regenerate.
22609 2014-04-15  Jan Hubicka  <jh@suse.cz>
22611         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
22612         (maybe_record_node, likely_target_p): Use it.
22614 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22616         PR target/60839
22617         Revert following patch
22619         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22621         PR target/60735
22622         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
22623         software floating point or no floating point registers, do not
22624         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
22625         in GPRs that occurs after we tested for GPRs that would never be
22626         true.
22628         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
22629         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
22630         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
22631         specifically allow DDmode, since that does not use the SPE SIMD
22632         instructions.
22634 2014-03-21  Mark Wielaard  <mjw@redhat.com>
22636         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
22637         as unsigned or int depending on type and value used.
22639 2014-04-15  Richard Biener  <rguenther@suse.de>
22641         PR rtl-optimization/56965
22642         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
22643         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
22644         ... here.
22645         * alias.c (true_dependence_1): Do not call
22646         nonoverlapping_component_refs_p.
22647         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
22648         nonoverlapping_component_refs_p.
22649         (indirect_refs_may_alias_p): Likewise.
22651 2014-04-15  Teresa Johnson  <tejohnson@google.com>
22653         * cfg.c (dump_bb_info): Fix flags check.
22654         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
22656 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22658         PR rtl-optimization/60663
22659         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
22660         avoid 0 cost.
22662 2014-04-15  Richard Biener  <rguenther@suse.de>
22664         * lto-streamer.h (LTO_major_version): Bump to 4.
22666 2014-04-15  Richard Biener  <rguenther@suse.de>
22668         * common.opt (lto_partition_model): New enum.
22669         (flto-partition=): Merge separate options with a single with argument,
22670         add -flto-partition=one support.
22671         * flag-types.h (enum lto_partition_model): Declare.
22672         * opts.c (finish_options): Remove duplicate -flto-partition=
22673         option check.
22674         * lto-wrapper.c (run_gcc): Adjust.
22676 2014-04-15  Richard Biener  <rguenther@suse.de>
22678         * alias.c (ncr_compar): New function.
22679         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
22681 2014-04-15  Richard Biener  <rguenther@suse.de>
22683         * alias.c (record_component_aliases): Do not walk BINFOs.
22685 2014-04-15  Richard Biener  <rguenther@suse.de>
22687         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22688         Add struct function argument and adjust.
22689         (find_func_aliases_for_call): Likewise.
22690         (find_func_aliases): Likewise.
22691         (find_func_clobbers): Likewise.
22692         (intra_create_variable_infos): Likewise.
22693         (compute_points_to_sets): Likewise.
22694         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
22696 2014-04-15  Richard Biener  <rguenther@suse.de>
22698         * tree.c (iterative_hash_expr): Use enum tree_code_class
22699         to store TREE_CODE_CLASS.
22700         (tree_block): Likewise.
22701         (tree_set_block): Likewise.
22702         * tree.h (fold_build_pointer_plus_loc): Use
22703         convert_to_ptrofftype_loc.
22705 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
22707         PR plugins/59335
22708         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
22709         added in 4.9.
22711 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
22713         * cfgloop.h (struct loop): Move force_vectorize down.
22714         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
22715         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
22716         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
22717         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
22718         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
22719         * tree-core.h (enum annot_expr_kind): Add new kind values.
22720         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
22721         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
22722         kinds.
22723         * tree.def (ANNOTATE_EXPR): Tweak comment.
22725 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
22727         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
22728         cxa_pure_virtual).
22730 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
22732         * tree.h (TYPE_IDENTIFIER): Declare.
22733         * tree.c (subrange_type_for_debug_p): Use it.
22734         * godump.c (go_format_type): Likewise.
22735         * dwarf2out.c (is_cxx_auto, modified_type_die,
22736         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
22737         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
22739 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
22741         PR lto/60820
22742         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
22744 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
22746         * config/i386/i386.c (examine_argument): Return bool.  Return true if
22747         parameter should be passed in memory.
22748         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
22749         (construct_container): Update calls to examine_argument.
22750         (function_arg_advance_64): Ditto.
22751         (return_in_memory_32): Merge with ix86_return_in_memory.
22752         (return_in_memory_64): Ditto.
22753         (return_in_memory_ms_64): Ditto.
22755 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
22757         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
22758         * coverage.c (coverage_compute_profile_id): Handle externally visible
22759         symbols.
22761 2014-04-14  Martin Jambor  <mjambor@suse.cz>
22763         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
22764         DECL_DISREGARD_INLINE_LIMITS functions.
22766 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
22768         PR target/60827
22769         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
22771 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
22773         PR target/60827
22774         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
22775         optimize_insn_for_speed_p instead of
22776         optimize_function_for_speed_p.
22778 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
22780         * doc/invoke.texi (free): Document AArch64.
22782 2014-04-14  Richard Biener  <rguenther@suse.de>
22784         PR tree-optimization/60042
22785         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
22786         (insert_into_preds_of_block): Do not prevent PHI insertion
22787         for REFERENCE exprs here ...
22788         (eliminate_dom_walker::before_dom_children): ... but prevent
22789         their use here under similar conditions when applied to the
22790         IL after PRE optimizations.
22792 2014-04-14  Richard Biener  <rguenther@suse.de>
22794         * passes.def: Move early points-to after early SRA.
22796 2014-04-14  Richard Biener  <rguenther@suse.de>
22798         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
22799         check for which sign-changes we allow when forwarding
22800         a converted value into a switch.
22802 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
22804         * stor-layout.c (place_field): Finalize non-constant offset for the
22805         field, if any.
22807 2014-04-14  Richard Biener  <rguenther@suse.de>
22809         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
22810         as argument.
22811         (expand_switch_using_bit_tests_p): Likewise.
22812         (process_switch): Compute and pass on speed_p based on the
22813         switch stmt.
22814         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
22815         optimize_bb_for_speed_p.
22817 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
22819         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
22820         * function.h (struct function): Rename has_force_vect_loops into
22821         has_force_vectorize_loops.
22822         * lto-streamer-in.c (input_cfg): Adjust for renaming.
22823         (input_struct_function_base): Likewise.
22824         * lto-streamer-out.c (output_cfg): Likewise.
22825         (output_struct_function_base): Likewise.
22826         * omp-low.c (expand_omp_simd): Likewise.
22827         * tree-cfg.c (move_sese_region_to_fn): Likewise.
22828         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
22829         (version_loop_for_if_conversion): Likewise.
22830         (tree_if_conversion): Likewise.
22831         (main_tree_if_conversion): Likewise.
22832         (gate_tree_if_conversion): Likewise.
22833         * tree-inline.c (copy_loops): Likewise.
22834         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
22835         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
22836         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22837         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
22838         * tree-vectorizer.c (vectorize_loops): Likewise.
22839         * tree-vectorizer.h (unlimited_cost_model): Likewise.
22841 2014-04-14  Richard Biener  <rguenther@suse.de>
22843         PR lto/60720
22844         * lto-streamer-out.c (wrap_refs): New function.
22845         (lto_output): Wrap symbol references in global initializes in
22846         type-preserving MEM_REFs.
22848 2014-04-14  Christian Bruel  <christian.bruel@st.com>
22850         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
22852 2014-04-14  Christian Bruel  <christian.bruel@st.com>
22854         * config/sh/sh.md (setmemqi): New expand pattern.
22855         * config/sh/sh.h (CLEAR_RATIO): Define.
22856         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
22857         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
22859 2014-04-14  Richard Biener  <rguenther@suse.de>
22861         PR middle-end/55022
22862         * fold-const.c (negate_expr_p): Don't negate directional rounding
22863         division.
22864         (fold_negate_expr): Likewise.
22866 2014-04-14  Richard Biener  <rguenther@suse.de>
22868         PR tree-optimization/59817
22869         PR tree-optimization/60453
22870         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
22871         recursion to catch all CHRECs in the scalar evolution and restrict
22872         the predicate for the remains appropriately.
22874 2014-04-12  Catherine Moore  <clm@codesourcery.com>
22876         * config/mips/constraints.md: Add new register constraint "kb".
22877         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
22878         (*movhi_internal): Likewise.
22879         (*movqi_internal): Likewise.
22880         * config/mips/mips.h (M16_STORE_REGS): New register class.
22881         (REG_CLASS_NAMES): Add M16_STORE_REGS.
22882         (REG_CLASS_CONTENTS): Likewise.
22883         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
22885 2014-04-11  Tobias Burnus  <burnus@net-b.de>
22887         PR c/60194
22888         * doc/invoke.texi (-Wformat-signedness): Document it.
22889         (Wformat=2): Mention that this enables -Wformat-signedness.
22891 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22893         * common/config/epiphany/epiphany-common.c
22894         (epiphany_option_optimization_table): Enable section anchors by
22895         default at -O1 or higher.
22896         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
22897         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
22898         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
22899         carries no extra cost.
22900         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
22901         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
22902         * config/epiphany/predicates.md (memclob_operand): New predicate.
22903         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
22904         Use memclob_operand predicate and X constraint for operand 3.
22906 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22908         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
22909         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
22910         its operands.
22912 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22914         PR rtl-optimization/60651
22915         * mode-switching.c (optimize_mode_switching): Make sure to emit
22916         sets of a lower numbered entity before sets of a higher numbered
22917         entity to a mode of the same or lower priority.
22918         When creating a seginfo for a basic block that starts with a code
22919         label, move the insertion point past the code label.
22920         (new_seginfo): Document and enforce requirement that
22921         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
22922         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
22923         * doc/tm.texi: Regenerate.
22925 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
22927         PR target/60811
22928         * config/arc/arc.c (arc_save_restore): Fix assert typo.
22930 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
22932         * BASE-VER: Set to 4.10.0.
22934 2014-04-11  Tobias Burnus  <burnus@net-b.de>
22936         PR other/59055
22937         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
22938         * doc/gcc.texi (Service): Update description in the @menu
22939         * doc/invoke.texi (Option Summary): Remove misplaced and
22940         duplicated @menu.
22942 2014-04-11  Steve Ellcey  <sellcey@mips.com>
22943             Jakub Jelinek  <jakub@redhat.com>
22945         PR middle-end/60556
22946         * expr.c (convert_move): Use emit_store_flag_force instead of
22947         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
22948         argument to it.
22950 2014-04-11  Richard Biener  <rguenther@suse.de>
22952         PR middle-end/60797
22953         * varasm.c (assemble_alias): Avoid endless error reporting
22954         recursion by setting TREE_ASM_WRITTEN.
22956 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22958         * config/s390/s390.md: Add a splitter for NOT rtx.
22960 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
22962         PR rtl-optimization/60663
22963         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
22965 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
22966             Jakub Jelinek  <jakub@redhat.com>
22968         PR lto/60567
22969         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
22970         flag from decl_node to node.
22972 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22974         PR debug/60655
22975         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
22976         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
22977         ameliorating the cases where it can be.
22979 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
22981         Revert
22982         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
22984         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22985         (loadsync_<mode>): Change mode.
22986         (load_quadpti, store_quadpti): New.
22987         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22988         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22989         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
22991 2014-04-09  Cong Hou  <congh@google.com>
22993         PR testsuite/60773
22994         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
22995         documentation.
22997 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22999         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
23000         instead of vnor to exploit possible fusion opportunity in the
23001         future.
23002         (altivec_expand_vec_perm_const_le): Likewise.
23004 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
23006         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23007         (loadsync_<mode>): Change mode.
23008         (load_quadpti, store_quadpti): New.
23009         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23010         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23012 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
23014         PR target/60763
23015         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
23016         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
23017         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
23019 2014-04-08  Richard Biener  <rguenther@suse.de>
23021         PR middle-end/60706
23022         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
23023         a 64bit widest int print double-int similar to on HWI64 hosts.
23025 2014-04-08  Richard Biener  <rguenther@suse.de>
23027         PR tree-optimization/60785
23028         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
23029         default defs properly.
23031 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
23033         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
23034         (Weffc++): Likewise.
23036 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
23038         * ipa-devirt.c (maybe_record_node): When node is not recorded,
23039         set completep to false rather than true.
23041 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
23043         PR target/60504
23044         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
23045         ARM_TARGET2_DWARF_FORMAT.
23047 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
23049         PR target/60609
23050         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
23051         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
23052         ADDR_DIFF_VEC.
23054 2014-04-07  Richard Biener  <rguenther@suse.de>
23056         PR tree-optimization/60766
23057         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
23058         (may_eliminate_iv): Convert cand_value_at result to desired type.
23060 2014-04-07  Jason Merrill  <jason@redhat.com>
23062         PR c++/60731
23063         * common.opt (-fno-gnu-unique): Add.
23064         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
23066 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23068         * haifa-sched.c: Fix outdated function reference and minor
23069         grammar errors in introductory comment.
23071 2014-04-07  Richard Biener  <rguenther@suse.de>
23073         PR middle-end/60750
23074         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
23075         for noreturn calls.
23076         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
23078 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
23080         PR debug/55794
23081         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
23082         size accounting for thunks.
23083         (pa_asm_output_mi_thunk): Use final_start_function() and
23084         final_end_function() to output function start and end directives.
23086 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
23088         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
23089         device specific ISA/ feature information. Remove short_sp and
23090         errata_skip ds.  Add avr_device_specific_features enum to have device
23091         specific info.
23092         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
23093         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
23094         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
23095         updated device specific info.
23096         * config/avr/avr-mcus.def: Merge device specific details to
23097         dev_attribute field.
23098         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
23099         errata_skip.
23100         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
23101         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
23102         assembler if RMW isa supported by current device.
23103         * config/avr/genmultilib.awk: Update as device info structure changed.
23104         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
23106 2014-04-04  Cong Hou  <congh@google.com>
23108         PR tree-optimization/60656
23109         * tree-vect-stmts.c (supportable_widening_operation):
23110         Fix a bug that elements in a vector with vect_used_by_reduction
23111         property are incorrectly reordered when the operation on it is not
23112         consistant with the one in reduction operation.
23114 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
23116         PR rtl-optimization/60155
23117         * gcse.c (record_set_data): New function.
23118         (single_set_gcse): New function.
23119         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
23120         (hoist_code): Likewise.
23121         (get_pressure_class_and_nregs): Likewise.
23123 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
23125         * explow.c (probe_stack_range): Emit a final optimization blockage.
23127 2014-04-04  Anthony Green  <green@moxielogic.com>
23129         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
23130         typos.
23132 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
23134         PR ipa/59626
23135         * lto-cgraph.c (input_overwrite_node): Check that partitioning
23136         flags are set only during streaming.
23137         * ipa.c (process_references, walk_polymorphic_call_targets,
23138         symtab_remove_unreachable_nodes): Drop bodies of always inline
23139         after early inlining.
23140         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
23142 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
23143         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23145         PR debug/60655
23146         * dwarf2out.c (const_ok_for_output_1): Reject expressions
23147         containing a NOT.
23149 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23151         PR bootstrap/60743
23152         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
23153         duration.
23154         (cortex_a53_fdivd): Likewise.
23156 2014-04-04  Martin Jambor  <mjambor@suse.cz>
23158         PR ipa/60640
23159         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
23160         Adjust all callers.
23161         * cgraph.c (clone_of_p): Also return true if thunks match.
23162         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
23163         cgraph_function_or_thunk_node and an obsolete comment.
23164         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
23165         file.
23166         (build_function_decl_skip_args): Likewise.
23167         (set_new_clone_decl_and_node_flags): New function.
23168         (duplicate_thunk_for_node): Likewise.
23169         (redirect_edge_duplicating_thunks): Likewise.
23170         (cgraph_clone_node): New parameter args_to_skip, pass it to
23171         redirect_edge_duplicating_thunks which is called instead of
23172         cgraph_redirect_edge_callee.
23173         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
23174         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
23176 2014-04-04  Jeff Law  <law@redhat.com>
23178         PR target/60657
23179         * config/arm/predicates.md (const_int_I_operand): New predicate.
23180         (const_int_M_operand): Similarly.
23181         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
23182         const_int_operand.
23183         (insv_t2, extv_reg, extzv_t2): Likewise.
23184         (load_multiple_with_writeback): Similarly for const_int_I_operand.
23185         (pop_multiple_with_writeback_and_return): Likewise.
23186         (vfp_pop_multiple_with_writeback): Likewise
23188 2014-04-04  Richard Biener  <rguenther@suse.de>
23190         PR ipa/60746
23191         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
23192         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
23193         non-GIMPLE_LABELs.
23194         * gimplify.h (gimple_add_tmp_var_fn): Declare.
23195         * gimplify.c (gimple_add_tmp_var_fn): New function.
23196         * gimple-expr.h (create_tmp_reg_fn): Declare.
23197         * gimple-expr.c (create_tmp_reg_fn): New function.
23198         * gimple-low.c (record_vars_into): Don't change cfun.
23199         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
23200         code generation without cfun.
23202 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
23204         PR bootstrap/60719
23205         * Makefile.in (install-driver): Fix shell scripting.
23207 2014-04-03  Cong Hou  <congh@google.com>
23209         PR tree-optimization/60505
23210         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
23211         threshold of number of iterations below which no vectorization
23212         will be done.
23213         * tree-vect-loop.c (new_loop_vec_info):
23214         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
23215         * tree-vect-loop.c (vect_analyze_loop_operations):
23216         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
23217         * tree-vect-loop.c (vect_transform_loop):
23218         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
23219         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
23220         of iterations of the loop and see if we should build the epilogue.
23222 2014-04-03  Richard Biener  <rguenther@suse.de>
23224         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
23225         (streamer_tree_cache_create): Adjust.
23226         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
23227         to allow optional nodes array.
23228         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
23229         (streamer_tree_cache_append): Likewise.
23230         (streamer_tree_cache_create): Create nodes array optionally
23231         as specified by parameter.
23232         * lto-streamer-out.c (create_output_block): Avoid maintaining
23233         the node array in the writer cache.
23234         (DFS_write_tree): Remove assertion.
23235         (produce_asm_for_decls): Free the out decl state hash table early.
23236         * lto-streamer-in.c (lto_data_in_create): Adjust for
23237         streamer_tree_cache_create prototype change.
23239 2014-04-03  Richard Biener  <rguenther@suse.de>
23241         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
23242         set TREE_CHAIN to NULL_TREE.
23244 2014-04-03  Richard Biener  <rguenther@suse.de>
23246         PR tree-optimization/60740
23247         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
23248         over all GIMPLE_COND operands.
23250 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
23252         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
23253         (Weffc++): Remove Scott's numbering, merge lists and reference
23254         Wnon-virtual-dtor.
23256 2014-04-03  Nick Clifton  <nickc@redhat.com>
23258         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
23259         properly.
23261 2014-04-03  Martin Jambor  <mjambor@suse.cz>
23263         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
23264         mention gcc_unreachable before failing.
23265         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
23266         removed symbols.
23268 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
23270         PR ipa/60659
23271         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
23272         inconsistent code and instead mark the context inconsistent.
23273         (possible_polymorphic_call_targets): For inconsistent contexts
23274         return empty complete list.
23276 2014-04-02  Anthony Green  <green@moxielogic.com>
23278         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
23279         (extendqisi2, extendhisi2): Define.
23280         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
23281         (WCHAR_TYPE): Change to unsigned int.
23283 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23285         PR tree-optimization/60733
23286         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
23287         insertion point for PHI candidates to be the end of the feeding
23288         block for the PHI argument.
23290 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
23292         PR rtl-optimization/60650
23293         * lra-constraints.c (process_alt_operands): Decrease reject for
23294         earlyclobber matching.
23296 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23298         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
23300 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23302         * config/spu/spu.c (pad_bb): Do not crash when the last
23303         insn is CODE_FOR_blockage.
23305 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23307         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
23308         lies outside the target mode.
23310 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23312         PR target/60735
23313         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23314         software floating point or no floating point registers, do not
23315         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
23316         in GPRs that occurs after we tested for GPRs that would never be
23317         true.
23319         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23320         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23321         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
23322         specifically allow DDmode, since that does not use the SPE SIMD
23323         instructions.
23325 2014-04-02  Richard Biener  <rguenther@suse.de>
23327         PR middle-end/60729
23328         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
23329         MODE_INTs.  Properly use negv_optab.
23330         (expand_abs): Likewise.
23332 2014-04-02  Richard Biener  <rguenther@suse.de>
23334         PR bootstrap/60719
23335         * Makefile.in (install-driver): Guard extra installs with special
23336         names properly.
23338 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
23340         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23341         Document vec_vgbbd.
23343 2014-04-01  Richard Henderson  <rth@redhat.com>
23345         PR target/60704
23346         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
23347         alternative enabled before register allocation.
23349 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
23351         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
23352         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
23353         typo.
23354         (nios2_large_got_address): Remove unneeded 'sym' parameter.
23355         (nios2_got_address): Update nios2_large_got_address call site.
23356         (nios2_delegitimize_address): New function.
23357         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
23358         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
23359         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
23361 2014-04-01  Martin Husemann  <martin@duskware.de>
23363         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
23364         for -mabi=32.
23366 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
23368         PR rtl-optimization/60604
23369         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
23370         check from register_operand.
23371         (register_operand): Redefine in terms of general_operand.
23372         (nonmemory_operand): Use register_operand for the non-constant cases.
23374 2014-04-01  Richard Biener  <rguenther@suse.de>
23376         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
23378 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23380         * doc/invoke.texi (mapp-regs): Clarify.
23382 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
23384         * config/i386/avx512fintrin.h (__v32hi): Define type.
23385         (__v64qi): Likewise.
23386         (_mm512_set1_epi8): Define.
23387         (_mm512_set1_epi16): Define.
23388         (_mm512_set4_epi32): Define.
23389         (_mm512_set4_epi64): Define.
23390         (_mm512_set4_pd): Define.
23391         (_mm512_set4_ps): Define.
23392         (_mm512_setr4_epi64): Define.
23393         (_mm512_setr4_epi32): Define.
23394         (_mm512_setr4_pd): Define.
23395         (_mm512_setr4_ps): Define.
23396         (_mm512_setzero_epi32): Define.
23398 2014-03-31  Martin Jambor  <mjambor@suse.cz>
23400         PR middle-end/60647
23401         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
23402         callsite_arguments_match_p.  Updated all callers.  Also check types of
23403         corresponding formal parameters and actual arguments.
23404         (not_all_callers_have_enough_arguments_p) Renamed to
23405         some_callers_have_mismatched_arguments_p.
23407 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
23409         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
23411 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
23413         PR target/60034
23414         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
23415         section anchor.
23417 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
23419         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
23420         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
23421         Split out
23422         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
23423         Use FMAMODE_NOVF512 mode iterator.
23424         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
23425         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
23426         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
23427         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
23428         Split out
23429         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
23430         Use VF_128_256 mode iterator.
23431         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
23432         Ditto.
23434 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
23436         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
23437         static chain if needed.
23439 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
23441         PR target/60697
23442         * lra-constraints.c (index_part_to_reg): New.
23443         (process_address): Use it.
23445 2014-03-27  Jeff Law  <law@redhat.com>
23446             Jakub Jelinek  <jakub@redhat.com>
23448         PR target/60648
23449         * expr.c (do_tablejump): Use simplify_gen_binary rather than
23450         gen_rtx_{PLUS,MULT} to build up the address expression.
23452         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
23453         creating non-canonical RTL.
23455 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
23457         PR ipa/60243
23458         * ipa-inline.c (want_inline_small_function_p): Short circuit large
23459         functions; reorganize to make cheap checks first.
23460         (inline_small_functions): Do not estimate growth when dumping;
23461         it is expensive.
23462         * ipa-inline.h (inline_summary): Add min_size.
23463         (growth_likely_positive): New function.
23464         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
23465         (set_cond_stmt_execution_predicate): Cleanup.
23466         (estimate_edge_size_and_time): Compute min_size.
23467         (estimate_calls_size_and_time): Likewise.
23468         (estimate_node_size_and_time): Likewise.
23469         (inline_update_overall_summary): Update min_size.
23470         (do_estimate_edge_time): Likewise.
23471         (do_estimate_edge_size): Update.
23472         (do_estimate_edge_hints): Update.
23473         (growth_likely_positive): New function.
23475 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
23477         PR target/60693
23478         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
23479         also if addr has VOIDmode.
23481 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23483         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
23484         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
23485         Declare extern.
23486         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
23487         instructions as well as AdvancedSIMD loads.
23489 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23491         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
23492         Use crypto_aese type.
23493         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
23494         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
23495         crypto_aese, crypto_aesmc.  Move to types.md.
23496         * config/arm/types.md (crypto_aes): Split into crypto_aese,
23497         crypto_aesmc.
23498         * config/arm/iterators.md (crypto_type): Likewise.
23500 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
23502         * cgraph.c: Include expr.h and tree-dfa.h.
23503         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
23504         remove LHS.
23506 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
23508         PR target/60675
23509         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
23510         regs from checking multi-reg pseudos.
23512 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23514         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
23516 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23518         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
23519         if it would clobber the stack pointer, even temporarily.
23521 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
23523         * mode-switching.c: Make small adjustments to the top comment.
23525 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
23527         * config/rs6000/constraints.md (wD constraint): New constraint to
23528         match the constant integer to get the top DImode/DFmode out of a
23529         vector in a VSX register.
23531         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
23532         match the constant integer to get the top DImode/DFmode out of a
23533         vector in a VSX register.
23535         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
23536         for ISA 2.07.
23538         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23539         vbpermq builtins.
23541         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
23542         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
23544         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
23545         Optimize vec_extract of 64-bit values, where the value being
23546         extracted is in the top word, where we can use scalar
23547         instructions.  Add direct move and store support.  Combine the big
23548         endian/little endian vector select load support into a single insn.
23549         (vsx_extract_<mode>_internal1): Likewise.
23550         (vsx_extract_<mode>_internal2): Likewise.
23551         (vsx_extract_<mode>_load): Likewise.
23552         (vsx_extract_<mode>_store): Likewise.
23553         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
23554         combined into vsx_extract_<mode>_load.
23555         (vsx_extract_<mode>_one_le): Likewise.
23557         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
23558         define the top 64-bit vector element.
23560         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
23561         constraint.
23563         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23564         Document vec_vbpermq builtin.
23566         PR target/60672
23567         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
23568         enable use of xxsldwi and xxpermdi builtin functions.
23569         (vec_xxpermdi): Likewise.
23571         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23572         Document use of vec_xxsldwi and vec_xxpermdi builtins.
23574 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
23576         PR rtl-optimization/60650
23577         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
23578         first_p.  Use it.
23579         (find_spills_for): New.
23580         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
23581         Spill all pseudos on the second iteration.
23583 2014-03-27  Marek Polacek  <polacek@redhat.com>
23585         PR c/50347
23586         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
23587         types.
23589 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23591         * config/s390/s390.c (s390_can_use_return_insn): Check for
23592         call-saved FPRs on 31 bit.
23594 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
23596         PR middle-end/60682
23597         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
23598         if they need regimplification, just drop them instead of
23599         calling gimple_regimplify_operands on them.
23601 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23603         PR target/60580
23604         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
23605         (aarch64_frame_pointer_required): Adjust logic.
23606         (aarch64_can_eliminate): Adjust logic.
23607         (aarch64_override_options_after_change): Adjust logic.
23609 2014-03-27  Dehao Chen  <dehao@google.com>
23611         * ipa-inline.c (early_inliner): Update node's inline info.
23613 2014-03-26  Dehao Chen  <dehao@google.com>
23615         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
23616         compiler inserted conditional jumps for NAN float check.
23618 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
23620         * ubsan.h (ubsan_create_data): Change second argument's type
23621         to const location_t *.
23622         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
23623         _("<unknown>").
23624         (ubsan_create_data): Change second argument to const location_t *PLOC.
23625         Create Loc field whenever PLOC is non-NULL.
23626         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
23627         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
23628         callers.
23630         PR other/59545
23631         * real.c (real_to_integer2): Change type of low to UHWI.
23633 2014-03-26  Tobias Burnus  <burnus@net-b.de>
23635         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
23636         (CILK_SELF_SPECS): New define.
23637         (driver_self_specs): Use it.
23639 2014-03-26  Richard Biener  <rguenther@suse.de>
23641         * tree-pretty-print.c (percent_K_format): Implement special
23642         case for LTO and its stripped down BLOCK tree.
23644 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
23646         PR sanitizer/60636
23647         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
23649         * tree-vrp.c (simplify_internal_call_using_ranges): If only
23650         one range is range_int_cst_p, but not both, at least optimize
23651         addition/subtraction of 0 and multiplication by 0 or 1.
23652         * gimple-fold.c (gimple_fold_call): Fold
23653         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
23654         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
23655         INTEGER_CSTs, try to fold at least x * 0 and y - y.
23657 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
23659         PR rtl-optimization/60452
23660         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
23661         <case REG>: Return 1 for invalid offsets from the frame pointer.
23663 2014-03-26  Marek Polacek  <polacek@redhat.com>
23665         PR c/37428
23666         * doc/extend.texi (C Extensions): Mention variable-length arrays in
23667         a structure/union.
23669 2014-03-26  Marek Polacek  <polacek@redhat.com>
23671         PR c/39525
23672         * doc/extend.texi (Designated Inits): Describe what happens to omitted
23673         field members.
23675 2014-03-26  Marek Polacek  <polacek@redhat.com>
23677         PR other/59545
23678         * ira-color.c (update_conflict_hard_regno_costs): Perform the
23679         multiplication in unsigned type.
23681 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
23683         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
23685 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
23687         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
23689 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
23691         PR ipa/60315
23692         * cif-code.def (UNREACHABLE) New code.
23693         * ipa-inline.c (inline_small_functions): Skip edges to
23694         __builtlin_unreachable.
23695         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
23696         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
23697         predicate to __bulitin_unreachable.
23698         (set_cond_stmt_execution_predicate): Fix issue when
23699         invert_tree_comparison returns ERROR_MARK.
23700         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
23701         propagate to inline clones.
23702         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
23703         to unreachable.
23704         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
23705         * cgraphclones.c (cgraph_clone_node): If call destination is already
23706         ureachable, do not redirect it back.
23707         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
23708         unreachable.
23710 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
23712         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
23713         Do not modify inline clones.
23715 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
23717         * config/i386/i386.md (general_sext_operand): New mode attr.
23718         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
23719         don't generate (sign_extend (const_int)).
23720         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
23721         operands[2].  Use We constraint instead of <i> and
23722         <general_sext_operand> predicate instead of <general_operand>.
23723         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
23724         * config/i386/constraints.md (We): New constraint.
23725         * config/i386/predicates.md (x86_64_sext_operand,
23726         sext_operand): New predicates.
23728 2014-03-25  Martin Jambor  <mjambor@suse.cz>
23730         PR ipa/60600
23731         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
23732         inconsistent devirtualizations to __builtin_unreachable.
23734 2014-03-25  Marek Polacek  <polacek@redhat.com>
23736         PR c/35449
23737         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
23739 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
23741         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
23742         order of elements for big-endian.
23744 2014-03-25  Richard Biener  <rguenther@suse.de>
23746         PR middle-end/60635
23747         * gimplify-me.c (gimple_regimplify_operands): Update the
23748         re-gimplifed stmt.
23750 2014-03-25  Martin Jambor  <mjambor@suse.cz>
23752         PR ipa/59176
23753         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
23754         (lto_output_varpool_node): Likewise.
23755         (input_overwrite_node): Likewise.
23756         (input_varpool_node): Likewise.
23758 2014-03-25  Richard Biener  <rguenther@suse.de>
23760         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
23761         (run_gcc): Likewise.
23763 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
23765         * combine.c (simplify_compare_const): Add MODE argument.
23766         Handle mode_width 0 as very large mode_width.
23767         (try_combine, simplify_comparison): Adjust callers.
23769         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
23770         type to avoid signed integer overflow.
23771         * explow.c (plus_constant): Likewise.
23773 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23775         * doc/generic.texi: Correct typos.
23777 2014-03-24  Tobias Burnus  <burnus@net-b.de>
23779         * doc/invoke.texi (-flto): Expand section about
23780         using static libraries with LTO.
23782 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23784         PR rtl-optimization/60501
23785         * optabs.def (addptr3_optab): New optab.
23786         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
23787         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
23788         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
23790         * lra.c (emit_add3_insn): Use the addptr pattern if available.
23792         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
23794 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
23796         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
23797         _mm512_set1_pd.
23799         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
23800         (_mm256_undefined_ps): Define.
23801         (_mm256_undefined_pd): Define.
23802         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
23803         (_mm_undefined_pd): Define.
23804         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
23805         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
23806         (_mm512_undefined_ps): Define.
23807         (_mm512_undefined_pd): Define.
23808         Use _mm*_undefined_*.
23809         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
23811 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
23813         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
23814         (lshr_simd): DI mode added.
23815         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
23816         (aarch64_ushr_simddi): Likewise.
23817         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
23818         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
23819         (vshrd_n_u64): Likewise.
23821 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23823         * Makefile.in (s-macro_list): Depend on cc1.
23825 2014-03-23  Teresa Johnson  <tejohnson@google.com>
23827         * ipa-utils.c (ipa_print_order): Use specified dump file.
23829 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
23831         PR rtl-optimization/60601
23832         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
23834         * gcc.c (eval_spec_function): Initialize save_growing_value.
23836 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
23838         PR sanitizer/60613
23839         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
23840         code == MINUS_EXPR, never swap op0 with op1.
23842         * toplev.c (init_local_tick): Avoid signed integer multiplication
23843         overflow.
23844         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
23845         shift by first operand's bitsize.
23847 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
23849         PR target/60610
23850         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
23851         redefine to 1 or 0.
23852         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
23853         TARGET_ISA_64BIT_P(x).
23855 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23857         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
23858         pattern for vector nor instead of subtract from splat(-1).
23859         (altivec_expand_vec_perm_const_le): Likewise.
23861 2014-03-21  Richard Henderson  <rth@twiddle.net>
23863         PR target/60598
23864         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
23865         related insns after epilogue_completed.
23867 2014-03-21  Martin Jambor  <mjambor@suse.cz>
23869         PR ipa/59176
23870         * cgraph.h (symtab_node): New flag body_removed.
23871         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
23872         when removing bodies.
23873         * symtab.c (dump_symtab_base): Dump body_removed flag.
23874         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
23875         had their bodies removed.
23877 2014-03-21  Martin Jambor  <mjambor@suse.cz>
23879         PR ipa/60419
23880         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
23881         in the border.
23883 2014-03-21  Richard Biener  <rguenther@suse.de>
23885         PR tree-optimization/60577
23886         * tree-core.h (struct tree_base): Document nothrow_flag use
23887         in DECL_NONALIASED.
23888         * tree.h (DECL_NONALIASED): New.
23889         (may_be_aliased): Adjust.
23890         * coverage.c (build_var): Set DECL_NONALIASED.
23892 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23894         * expr.c (expand_expr_real_1): Remove outdated comment.
23896 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
23898         PR middle-end/60597
23899         * ira.c (adjust_cleared_regs): Call copy_rtx on
23900         *reg_equiv[REGNO (loc)].src_p before passing it to
23901         simplify_replace_fn_rtx.
23903         PR target/60568
23904         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
23905         into CONST, put pic register as first operand of PLUS.  Use
23906         gen_const_mem for both 32-bit and 64-bit PIC got loads.
23908 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23910         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
23912 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23914         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
23915         around for store forwarding issue in the FPU on the UT699.
23916         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
23917         loads and operations if -mfix-ut699 is specified.
23918         (divtf3_hq): Tweak attribute.
23919         (sqrttf2_hq): Likewise.
23921 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
23923         * calls.c (store_one_arg): Remove incorrect const qualification on the
23924         type of the temporary.
23925         * cfgexpand.c (expand_return): Likewise.
23926         * expr.c (expand_constructor): Likewise.
23927         (expand_expr_real_1): Likewise.
23929 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23931         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
23932         of parts.
23934 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
23936         PR target/60039
23937         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
23939 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
23941         * config/arm/aarch-common-protos.h
23942         (alu_cost_table): Fix spelling of "extend".
23943         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
23945 2014-03-19  Richard Biener  <rguenther@suse.de>
23947         PR middle-end/60553
23948         * tree-core.h (tree_type_common): Re-order pointer members
23949         to reduce recursion depth during GC walks.
23951 2014-03-19  Marek Polacek  <polacek@redhat.com>
23953         PR sanitizer/60569
23954         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
23955         before accessing it.
23957 2014-03-19  Richard Biener  <rguenther@suse.de>
23959         PR lto/59543
23960         * lto-streamer-in.c (input_function): In WPA stage do not drop
23961         debug stmts.
23963 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
23965         PR tree-optimization/60559
23966         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
23967         with build_zero_cst assignment.
23969 2014-03-18  Kai Tietz  <ktietz@redhat.com>
23971         PR rtl-optimization/56356
23972         * sdbout.c (sdbout_parms): Verify that parms'
23973         incoming argument is valid.
23974         (sdbout_reg_parms): Likewise.
23976 2014-03-18  Richard Henderson  <rth@redhat.com>
23978         PR target/60562
23979         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
23980         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
23981         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
23983 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
23985         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
23986         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
23987         Italicize plugin event names in description.  Explain that
23988         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
23989         Remind that no GCC functions should be called after PLUGIN_FINISH.
23990         Explain what pragmas with expansion are.
23992 2014-03-18  Martin Liska  <mliska@suse.cz>
23994         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
23995         gimple call statement is update.
23996         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
23997         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
23999 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
24001         PR sanitizer/60557
24002         * ubsan.c (ubsan_instrument_unreachable): Call
24003         initialize_sanitizer_builtins.
24004         (ubsan_pass): Likewise.
24006         PR sanitizer/60535
24007         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
24008         varpool_finalize_decl instead of rest_of_decl_compilation.
24010 2014-03-18  Richard Biener  <rguenther@suse.de>
24012         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
24013         by using bitmap_and_compl instead of bitmap_and_compl_into.
24014         (df_rd_transfer_function): Likewise.
24016 2014-03-18  Richard Biener  <rguenther@suse.de>
24018         * doc/lto.texi (fresolution): Fix typo.
24020 2014-03-18  Richard Biener  <rguenther@suse.de>
24022         * doc/invoke.texi (flto): Update for changes in 4.9.
24024 2014-03-18  Richard Biener  <rguenther@suse.de>
24026         * doc/loop.texi: Remove section on the removed lambda framework.
24027         Update loop docs with recent changes in preserving loop structure.
24029 2014-03-18  Richard Biener  <rguenther@suse.de>
24031         * doc/lto.texi (-fresolution): Document.
24033 2014-03-18  Richard Biener  <rguenther@suse.de>
24035         * doc/contrib.texi: Adjust my name.
24037 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
24039         PR ipa/58721
24040         * internal-fn.c: Include diagnostic-core.h.
24041         (expand_BUILTIN_EXPECT): New function.
24042         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
24043         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
24044         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
24045         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
24046         IFN_BUILTIN_EXPECT.
24047         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
24048         Revert 3 argument __builtin_expect code.
24049         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
24050         * gimple-fold.c (gimple_fold_call): Likewise.
24051         * tree.h (fold_builtin_expect): New prototype.
24052         * builtins.c (build_builtin_expect_predicate): Add predictor
24053         argument, if non-NULL, create 3 argument __builtin_expect.
24054         (fold_builtin_expect): No longer static.  Add ARG2 argument,
24055         pass it through to build_builtin_expect_predicate.
24056         (fold_builtin_2): Adjust caller.
24057         (fold_builtin_3): Handle BUILT_IN_EXPECT.
24058         * internal-fn.def (BUILTIN_EXPECT): New.
24060 2014-03-18  Tobias Burnus  <burnus@net-b.de>
24062         PR ipa/58721
24063         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
24064         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
24065         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
24067 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
24069         PR ipa/58721
24070         * predict.c (combine_predictions_for_bb): Fix up formatting.
24071         (expr_expected_value_1, expr_expected_value): Add predictor argument,
24072         fill what it points to if non-NULL.
24073         (tree_predict_by_opcode): Adjust caller, use the predictor.
24074         * predict.def (PRED_COMPARE_AND_SWAP): Add.
24076 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
24078         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
24079         proper constant for the store mode.
24081 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
24083         * symtab.c (change_decl_assembler_name): Fix transparent alias
24084         chain construction.
24086 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
24088         * config/aarch64/aarch64.c: Correct the comments about the
24089         aarch64 stack layout.
24091 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
24093         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
24094         check for GF_OMP_FOR_KIND_FOR.
24096 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
24098         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
24099         ymm and zmm register names.
24101 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
24103         PR target/60516
24104         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
24105         note creation for the 2010-08-31 changes.
24107 2014-03-17  Marek Polacek  <polacek@redhat.com>
24109         PR middle-end/60534
24110         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
24111         as -fno-tree-loop-vectorize.
24112         (expand_omp_simd): Likewise.
24114 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
24116         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
24117         (eligible_for_call_delay): New prototype.
24118         * config/sparc/sparc.c (tls_call_delay): Rename into...
24119         (eligible_for_call_delay): ...this.  Return false if the instruction
24120         cannot be put in the delay slot of a branch.
24121         (eligible_for_restore_insn): Simplify.
24122         (eligible_for_return_delay): Return false if the instruction cannot be
24123         put in the delay slot of a branch and simplify.
24124         (eligible_for_sibcall_delay): Return false if the instruction cannot be
24125         put in the delay slot of a branch.
24126         * config/sparc/sparc.md (fix_ut699): New attribute.
24127         (tls_call_delay): Delete.
24128         (in_call_delay): Reimplement.
24129         (eligible_for_sibcall_delay): Rename into...
24130         (in_sibcall_delay): ...this.
24131         (eligible_for_return_delay): Rename into...
24132         (in_return_delay): ...this.
24133         (in_branch_delay): Reimplement.
24134         (in_uncond_branch_delay): Delete.
24135         (in_annul_branch_delay): Delete.
24137 2014-03-14  Richard Henderson  <rth@redhat.com>
24139         PR target/60525
24140         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
24141         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
24142         (*floathi<X87MODEF>2_i387_with_temp): Remove.
24143         (floathi splitters): Remove.
24144         (float<SWI48x>xf2): New pattern.
24145         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
24146         code that tried to handle DImode for 32-bit, but which was excluded
24147         by the pattern's condition.  Drop allocation of stack temporary.
24148         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
24149         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
24150         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
24151         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
24152         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
24153         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
24154         (*float<SWI48><MODEF>2_sse_interunit): Remove.
24155         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
24156         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
24157         (*float<SWI48x><X87MODEF>2_i387): Remove.
24158         (all float _with_temp splitters): Remove.
24159         (*float<SWI48x><MODEF>2_i387): New pattern.
24160         (*float<SWI48><MODEF>2_sse): New pattern.
24161         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
24162         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
24164 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
24165             Marek Polacek  <polacek@redhat.com>
24167         PR middle-end/60484
24168         * common.opt (dump_base_name_prefixed): New Variable.
24169         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
24170         if x_dump_base_name_prefixed is already set, set it at the end.
24172 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
24174         PR rtl-optimization/60508
24175         * lra-constraints.c (get_reload_reg): Add new parameter
24176         in_subreg_p.
24177         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
24178         Pass the new parameter values.
24180 2014-03-14  Richard Biener  <rguenther@suse.de>
24182         * common.opt: Revert unintented changes from r205065.
24183         * opts.c: Likewise.
24185 2014-03-14  Richard Biener  <rguenther@suse.de>
24187         PR middle-end/60518
24188         * cfghooks.c (split_block): Properly adjust all loops the
24189         block was a latch of.
24191 2014-03-14  Martin Jambor  <mjambor@suse.cz>
24193         PR lto/60461
24194         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
24195         and simplify it.
24197 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
24199         PR target/59396
24200         * config/avr/avr.c (avr_set_current_function): Pass function name
24201         through default_strip_name_encoding before sanity checking instead
24202         of skipping the first char of the assembler name.
24204 2014-03-13  Richard Henderson  <rth@redhat.com>
24206         PR debug/60438
24207         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
24208         (ix86_force_to_memory, ix86_free_from_memory): Remove.
24209         * config/i386/i386-protos.h: Likewise.
24210         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
24211         in the expander instead of a splitter.
24212         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
24213         any possibility of requiring a memory.
24214         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
24215         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
24216         (fp branch splitters): Update for ix86_split_fp_branch.
24217         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
24218         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
24219         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
24220         (*fop_<MODEF>_2_i387): Remove f/r alternative.
24221         (*fop_<MODEF>_3_i387): Likewise.
24222         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
24223         (splitters for the fop_* register patterns): Remove.
24224         (fscalexf4_i387): Rename from *fscalexf4_i387.
24225         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
24227 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
24229         PR tree-optimization/59779
24230         * tree-dfa.c (get_ref_base_and_extent): Use double_int
24231         type for bitsize and maxsize instead of HOST_WIDE_INT.
24233 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
24235         PR rtl-optimization/57320
24236         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
24237         the CFG after thread_prologue_and_epilogue_insns.
24239 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
24241         PR rtl-optimization/57189
24242         * lra-constraints.c (process_alt_operands): Disfavor spilling
24243         vector pseudos.
24245 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
24247         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
24249 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
24251         PR tree-optimization/59025
24252         PR middle-end/60418
24253         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
24254         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
24256 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
24258         PR target/60486
24259         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
24260         calls of avr_out_plus_1.
24262 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
24264         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
24265         BB's single pred and update the father loop's latch info later.
24267 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
24269         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
24270         (VEC_M): Likewise.
24271         (VEC_N): Likewise.
24272         (VEC_R): Likewise.
24273         (VEC_base): Likewise.
24274         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
24275         registers, we need to swap double words in little endian mode.
24277         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
24278         to be a container mode for 128-bit integer operations added in ISA
24279         2.07.  Unlike TImode and PTImode, the preferred register set is
24280         the Altivec/VMX registers for the 128-bit operations.
24282         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
24283         declarations.
24284         (rs6000_split_128bit_ok_p): Likewise.
24286         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
24287         macros for creating ISA 2.07 normal and overloaded builtin
24288         functions with 3 arguments.
24289         (BU_P8V_OVERLOAD_3): Likewise.
24290         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
24291         for use as overloaded functions.
24292         (VPERM_1TI_UNS): Likewise.
24293         (VSEL_1TI): Likewise.
24294         (VSEL_1TI_UNS): Likewise.
24295         (ST_INTERNAL_1ti): Likewise.
24296         (LD_INTERNAL_1ti): Likewise.
24297         (XXSEL_1TI): Likewise.
24298         (XXSEL_1TI_UNS): Likewise.
24299         (VPERM_1TI): Likewise.
24300         (VPERM_1TI_UNS): Likewise.
24301         (XXPERMDI_1TI): Likewise.
24302         (SET_1TI): Likewise.
24303         (LXVD2X_V1TI): Likewise.
24304         (STXVD2X_V1TI): Likewise.
24305         (VEC_INIT_V1TI): Likewise.
24306         (VEC_SET_V1TI): Likewise.
24307         (VEC_EXT_V1TI): Likewise.
24308         (EQV_V1TI): Likewise.
24309         (NAND_V1TI): Likewise.
24310         (ORC_V1TI): Likewise.
24311         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
24312         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
24313         overloaded builtin.
24314         (VADDUQM): Likewise.
24315         (VSUBCUQ): Likewise.
24316         (VADDEUQM): Likewise.
24317         (VADDECUQ): Likewise.
24318         (VSUBEUQM): Likewise.
24319         (VSUBECUQ): Likewise.
24321         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
24322         __int128_t and __uint128_t types.
24323         (__uint128_type): Likewise.
24324         (altivec_categorize_keyword): Add support for vector __int128_t,
24325         vector __uint128_t, vector __int128, and vector unsigned __int128
24326         as a container type for TImode operations that need to be done in
24327         VSX/Altivec registers.
24328         (rs6000_macro_to_expand): Likewise.
24329         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
24330         to support 128-bit integer instructions vaddcuq, vadduqm,
24331         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
24332         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
24334         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
24335         for V1TImode, and set up preferences to use VSX/Altivec registers.
24336         Setup VSX reload handlers.
24337         (rs6000_debug_reg_global): Likewise.
24338         (rs6000_init_hard_regno_mode_ok): Likewise.
24339         (rs6000_preferred_simd_mode): Likewise.
24340         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
24341         (easy_altivec_constant): Likewise.
24342         (output_vec_const_move): Likewise.
24343         (rs6000_expand_vector_set): Convert V1TImode set and extract to
24344         simple move.
24345         (rs6000_expand_vector_extract): Likewise.
24346         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
24347         addressing.
24348         (rs6000_const_vec): Add support for V1TImode.
24349         (rs6000_emit_le_vsx_load): Swap double words when loading or
24350         storing TImode/V1TImode.
24351         (rs6000_emit_le_vsx_store): Likewise.
24352         (rs6000_emit_le_vsx_move): Likewise.
24353         (rs6000_emit_move): Add support for V1TImode.
24354         (altivec_expand_ld_builtin): Likewise.
24355         (altivec_expand_st_builtin): Likewise.
24356         (altivec_expand_vec_init_builtin): Likewise.
24357         (altivec_expand_builtin): Likewise.
24358         (rs6000_init_builtins): Add support for V1TImode type.  Add
24359         support for ISA 2.07 128-bit integer builtins.  Define type names
24360         for the VSX/Altivec vector types.
24361         (altivec_init_builtins): Add support for overloaded vector
24362         functions with V1TImode type.
24363         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
24364         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
24365         external function.
24366         (rs6000_split_128bit_ok_p): Likewise.
24367         (rs6000_handle_altivec_attribute): Create V1TImode from vector
24368         __int128_t and vector __uint128_t.
24370         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
24371         and mode attributes.
24372         (VSX_M): Likewise.
24373         (VSX_M2): Likewise.
24374         (VSm): Likewise.
24375         (VSs): Likewise.
24376         (VSr): Likewise.
24377         (VSv): Likewise.
24378         (VS_scalar): Likewise.
24379         (VS_double): Likewise.
24380         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
24382         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
24383         we support the ISA 2.07 128-bit integer arithmetic instructions.
24384         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
24385         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
24386         and TImode types for use with the builtin functions.
24387         (V1TI_type_node): Likewise.
24388         (unsigned_V1TI_type_node): Likewise.
24389         (intTI_type_internal_node): Likewise.
24390         (uintTI_type_internal_node): Likewise.
24392         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
24393         128-bit builtin functions.
24394         (UNSPEC_VADDEUQM): Likewise.
24395         (UNSPEC_VADDECUQ): Likewise.
24396         (UNSPEC_VSUBCUQ): Likewise.
24397         (UNSPEC_VSUBEUQM): Likewise.
24398         (UNSPEC_VSUBECUQ): Likewise.
24399         (VM): Add V1TImode to vector mode iterators.
24400         (VM2): Likewise.
24401         (VI_unit): Likewise.
24402         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
24403         (altivec_vaddcuq): Likewise.
24404         (altivec_vsubuqm): Likewise.
24405         (altivec_vsubcuq): Likewise.
24406         (altivec_vaddeuqm): Likewise.
24407         (altivec_vaddecuq): Likewise.
24408         (altivec_vsubeuqm): Likewise.
24409         (altivec_vsubecuq): Likewise.
24411         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
24412         mode iterators.
24413         (BOOL_128): Likewise.
24414         (BOOL_REGS_OUTPUT): Likewise.
24415         (BOOL_REGS_OP1): Likewise.
24416         (BOOL_REGS_OP2): Likewise.
24417         (BOOL_REGS_UNARY): Likewise.
24418         (BOOL_REGS_AND_CR0): Likewise.
24420         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
24421         128-bit integer builtin support.
24422         (vec_vadduqm): Likewise.
24423         (vec_vaddecuq): Likewise.
24424         (vec_vaddeuqm): Likewise.
24425         (vec_vsubecuq): Likewise.
24426         (vec_vsubeuqm): Likewise.
24427         (vec_vsubcuq): Likewise.
24428         (vec_vsubuqm): Likewise.
24430         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24431         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
24432         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
24433         128-bit integer add/subtract to ISA 2.07.
24435 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
24437         * config/arc/arc.c (arc_predicate_delay_insns):
24438         Fix third argument passed to conditionalize_nonjump.
24440 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
24442         * config/aarch64/aarch64-builtins.c
24443         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
24444         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
24445         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
24446         instead of __builtin_lfloor.
24447         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
24449 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
24451         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
24452         (tree_ssa_ifcombine_bb_1): New function.
24453         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
24454         is an empty forwarder block to then_bb or vice versa and then_bb
24455         and else_bb are effectively swapped.
24457 2014-03-12  Christian Bruel  <christian.bruel@st.com>
24459         PR target/60264
24460         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
24461         REG_CFA_DEF_CFA note.
24462         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
24463         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
24465 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24467         PR tree-optimization/60454
24468         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
24470 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24472         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
24473         Do not define target_cpu_default2 to generic.
24474         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
24475         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
24476         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
24478 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
24479             Marc Glisse  <marc.glisse@inria.fr>
24481         PR tree-optimization/60502
24482         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
24483         instead of build_low_bits_mask.
24485 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
24487         PR middle-end/60482
24488         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
24489         if there are multiple uses, but op doesn't live on E edge.
24490         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
24491         clobber stmts before __builtin_unreachable.
24493 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
24495         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
24496         hard_frame_pointer_rtx.
24497         * cse.c (cse_insn): Remove volatile check.
24498         * cselib.c (cselib_process_insn): Likewise.
24499         * dse.c (scan_insn): Likewise.
24501 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24503         * config/arc/arc.c (conditionalize_nonjump): New function,
24504         broken out of ...
24505         (arc_ifcvt): ... this.
24506         (arc_predicate_delay_insns): Use it.
24508 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24510         * config/arc/predicates.md (extend_operand): During/after reload,
24511         allow const_int_operand.
24512         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
24513         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
24514         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
24515         to "i".
24516         (umulsi3_highpart_i): Likewise.
24518 2014-03-11  Richard Biener  <rguenther@suse.de>
24520         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
24521         Add asserts to guard possible wrong-code bugs.
24523 2014-03-11  Richard Biener  <rguenther@suse.de>
24525         PR tree-optimization/60429
24526         PR tree-optimization/60485
24527         * tree-ssa-structalias.c (set_union_with_increment): Properly
24528         take into account all fields that overlap the shifted vars.
24529         (do_sd_constraint): Likewise.
24530         (do_ds_constraint): Likewise.
24531         (get_constraint_for_ptr_offset): Likewise.
24533 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
24535         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
24536         (nios2_compute_frame_layout):
24537         Add calculation of cfun->machine->fp_save_offset.
24538         (nios2_expand_prologue): Correct setting of frame pointer register
24539         in prologue.
24540         (nios2_expand_epilogue): Update recovery of stack pointer from
24541         frame pointer accordingly.
24542         (nios2_initial_elimination_offset): Update calculation of offset
24543         for eliminating to HARD_FRAME_POINTER_REGNUM.
24545 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
24547         PR ipa/60457
24548         * ipa.c (symtab_remove_unreachable_nodes): Don't call
24549         cgraph_get_create_node on VAR_DECLs.
24551 2014-03-10  Richard Biener  <rguenther@suse.de>
24553         PR middle-end/60474
24554         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
24556 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
24558         * config/vms/vms.opt (vms_float_format): New variable.
24560 2014-03-08  Tobias Burnus  <burnus@net-b.de>
24562         * doc/invoke.texi (-fcilkplus): Update implementation status.
24564 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
24565             Richard Biener  <rguenther@suse.de>
24567         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
24568         consistently accross all TUs.
24569         (run_gcc): Enable -fshort-double automatically at link at link-time
24570         and disallow override.
24572 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
24574         PR target/58271
24575         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
24576         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
24577         if they can't be used.
24579 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24581         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
24582         for Solaris 11/x86 ld.
24583         * configure: Regenerate.
24585 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24587         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
24588         (LIB_TLS_SPEC): Save as ld_tls_libs.
24589         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
24590         (HAVE_AS_IX86_TLSLDM): New test.
24591         * configure, config.in: Regenerate.
24592         * config/i386/i386.c (legitimize_tls_address): Fall back to
24593         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
24594         cannot support TLS_MODEL_LOCAL_DYNAMIC.
24595         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
24596         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
24598 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
24600         * common.opt (fira-loop-pressure): Mark as optimization.
24602 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
24604         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
24605         an OpenMP mappable type.
24607 2014-03-06  Matthias Klose  <doko@ubuntu.com>
24609         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
24610         MULTILIB_OSDIRNAMES is not defined.
24612 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
24613             Meador Inge  <meadori@codesourcery.com>
24615         PR target/58595
24616         * config/arm/arm.c (arm_tls_symbol_p): Remove.
24617         (arm_legitimize_address): Call legitimize_tls_address for any
24618         arm_tls_referenced_p expression, handle constant addend.  Call it
24619         before testing for !TARGET_ARM.
24620         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
24622 2014-03-06  Richard Biener  <rguenther@suse.de>
24624         PR middle-end/60445
24625         PR lto/60424
24626         PR lto/60427
24627         Revert
24628         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
24630         * tree-streamer.c (record_common_node): Assert we don't record
24631         nodes with type double.
24632         (preload_common_node): Skip type double, complex double and double
24633         pointer since it is now frontend dependent due to fshort-double option.
24635 2014-03-06  Richard Biener  <rguenther@suse.de>
24637         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
24638         or -fno-lto is specified and the linker has full plugin support.
24639         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
24640         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
24641         * lto-wrapper.c (merge_and_complain): Merge compile-time
24642         optimization levels.
24643         (run_gcc): And pass it through to the link options.
24645 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
24647         PR debug/60381
24648         Revert:
24649         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24650         PR debug/59992
24651         * cselib.c (remove_useless_values): Skip to avoid quadratic
24652         behavior if the condition moved from...
24653         (cselib_process_insn): ... here holds.
24655 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
24657         PR plugins/59335
24658         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
24659         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
24661         PR plugins/59335
24662         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
24663         (TM_H): Add x86-tune.def.
24665 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24667         * config/aarch64/aarch64.c (generic_tunings):
24668         Use cortexa57_extra_costs.
24670 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
24672         PR lto/60404
24673         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
24674         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
24675         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
24676         cost for in_lto_p.
24678 2014-03-04  Heiher  <r@hev.cc>
24680         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
24681         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
24683 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
24685         * config/i386/predicates.md (const2356_operand): Change to ...
24686         (const2367_operand): ... this.
24687         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
24688         const2367_operand.
24689         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24690         (*avx512pf_scatterpf<mode>sf): Ditto.
24691         (avx512pf_scatterpf<mode>df): Ditto.
24692         (*avx512pf_scatterpf<mode>df_mask): Ditto.
24693         (*avx512pf_scatterpf<mode>df): Ditto.
24694         * config/i386/i386.c (ix86_expand_builtin): Update
24695         incorrect hint operand error message.
24697 2014-03-04  Richard Biener  <rguenther@suse.de>
24699         * lto-section-in.c (lto_get_section_data): Fix const cast.
24701 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
24703         * tree-streamer.c (record_common_node): Assert we don't record
24704         nodes with type double.
24705         (preload_common_node): Skip type double, complex double and double
24706         pointer since it is now frontend dependent due to fshort-double option.
24708 2014-03-04  Richard Biener  <rguenther@suse.de>
24710         PR lto/60405
24711         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
24712         (lto_input_toplevel_asms): Likewise.
24713         * lto-section-in.c (lto_get_section_data): Instead do it here
24714         for every section.
24716 2014-03-04  Richard Biener  <rguenther@suse.de>
24718         PR tree-optimization/60382
24719         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
24720         dead PHIs a reduction.
24722 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
24724         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
24725         hint value.
24726         (_mm_prefetch): Move out of GCC target("sse") pragma.
24727         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
24728         GCC target("prfchw") pragma.
24729         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
24730         for locality <= 2.
24731         * config/i386/i386.c (ix86_option_override_internal): Enable
24732         -mprfchw with -mprefetchwt1.
24734 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
24736         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
24737         Mark as varying.
24739 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
24741         * opts.h (CL_PCH_IGNORE): Define.
24742         * targhooks.c (option_affects_pch_p):
24743         Return false for options that have CL_PCH_IGNORE set.
24744         * opt-functions.awk: Process PchIgnore.
24745         * doc/options.texi: Document PchIgnore.
24747         * config/arc/arc.opt (misize): Add PchIgnore property.
24749 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24751         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
24752         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
24753         constraint on constants to permit them being loaded into
24754         GENERAL_REGS or BASE_REGS.
24756 2014-03-03  Nick Clifton  <nickc@redhat.com>
24758         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
24759         anti-cacnonical alternatives.
24760         (negandhi3_real): New pattern.
24761         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
24763 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
24765         * config/avr/avr-mcus.def: Remove atxmega16x1.
24766         * config/avr/avr-tables.opt: Regenerate.
24767         * config/avr/t-multilib: Regenerate.
24768         * doc/avr-mmcu.texi: Regenerate.
24770 2014-03-03  Tobias Grosser  <tobias@grosser.es>
24771             Mircea Namolaru  <mircea.namolaru@inria.fr>
24773         PR tree-optimization/58028
24774         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
24775         scalar dimensions.
24777 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24779         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
24780         not handled by recognizers.
24782 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
24784         PR middle-end/60175
24785         * function.c (expand_function_end): Don't emit
24786         clobber_return_register sequence if clobber_after is a BARRIER.
24787         * cfgexpand.c (construct_exit_block): Append instructions before
24788         return_label to prev_bb.
24790 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24792         * config/rs6000/constraints.md: Document reserved use of "wc".
24794 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
24796         PR ipa/60150
24797         * ipa.c (function_and_variable_visibility): When dissolving comdat
24798         group, also set all symbols to local.
24800 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
24802         PR ipa/60306
24804         Revert:
24805         2013-12-14  Jan Hubicka  <jh@suse.cz>
24806         PR middle-end/58477
24807         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
24809 2014-03-02  Jon Beniston  <jon@beniston.com>
24811         PR bootstrap/48230
24812         PR bootstrap/50927
24813         PR bootstrap/52466
24814         PR target/46898
24815         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
24816           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
24817         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
24818         (simple_return, *simple_return): New patterns
24819         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
24820         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
24822 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
24824         * dwarf2out.c (gen_subprogram_die): Tidy.
24826 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
24828         PR target/60071
24829         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
24830         (*mov_t_msb_neg_negc): ... this new insn.
24832 2014-02-28  Jason Merrill  <jason@redhat.com>
24834         PR c++/58678
24835         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
24836         function.
24838 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
24840         PR c++/60314
24841         * dwarf2out.c (decltype_auto_die): New static.
24842         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
24843         (gen_type_die_with_usage): Handle 'decltype(auto)'.
24844         (is_cxx_auto): Likewise.
24846 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
24848         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
24849         we are not using general regs only.
24851 2014-02-28  Richard Biener  <rguenther@suse.de>
24853         PR target/60280
24854         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
24855         previous fix and only allow to remove trivial pre-headers
24856         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
24857         (remove_forwarder_block): Properly update the latch of a loop.
24859 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24861         PR debug/59992
24862         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
24863         (cselib_preserved_hash_table): New.
24864         (preserve_constants_and_equivs): Move preserved vals to it.
24865         (cselib_find_slot): Look it up first.
24866         (cselib_init): Initialize it.
24867         (cselib_finish): Release it.
24868         (dump_cselib_table): Dump it.
24870 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24872         PR debug/59992
24873         * cselib.c (remove_useless_values): Skip to avoid quadratic
24874         behavior if the condition moved from...
24875         (cselib_process_insn): ... here holds.
24877 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24879         PR debug/57232
24880         * var-tracking.c (vt_initialize): Apply the same condition to
24881         preserve the CFA base value.
24883 2014-02-28  Joey Ye  <joey.ye@arm.com>
24885         PR target/PR60169
24886         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
24887         if reload in progress or completed.
24889 2014-02-28  Tobias Burnus  <burnus@net-b.de>
24891         PR middle-end/60147
24892         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
24893         NAMELIST_DECL.
24895 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
24897         * doc/tm.texi.in (Condition Code Status): Update documention for
24898         relative locations of cc0-setter and cc0-user.
24900 2014-02-27  Jeff Law  <law@redhat.com>
24902         PR rtl-optimization/52714
24903         * combine.c (try_combine): When splitting an unrecognized PARALLEL
24904         into two independent simple sets, if I3 is a jump, ensure the
24905         pattern we place into I3 is a (set (pc) ...).
24907 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
24908             Jeff Law  <law@redhat.com>
24910         PR rtl-optimization/49847
24911         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
24912         are in different blocks.
24913         * doc/tm.texi (Condition Code Status): Update documention for
24914         relative locations of cc0-setter and cc0-user.
24916 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
24918         PR target/59222
24919         * lra.c (lra_emit_add): Check SUBREG too.
24921 2014-02-27  Andreas Schwab  <schwab@suse.de>
24923         * config/m68k/m68k.c (m68k_option_override): Disable
24924         -flive-range-shrinkage for classic m68k.
24925         (m68k_override_options_after_change): Likewise.
24927 2014-02-27  Marek Polacek  <polacek@redhat.com>
24929         PR middle-end/59223
24930         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
24931         -Wmaybe-uninitialized.
24933 2014-02-27  Alan Modra  <amodra@gmail.com>
24935         PR target/57936
24936         * reload1.c (emit_input_reload_insns): When reload_override_in,
24937         set old to rl->in_reg when rl->in_reg is a subreg.
24939 2014-02-26  Richard Biener  <rguenther@suse.de>
24941         PR bootstrap/60343
24942         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
24944 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
24946         * common/config/i386/predicates.md (const1256_operand): Remove.
24947         (const2356_operand): New.
24948         (const_1_to_2_operand): Remove.
24949         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24950         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24951         (*avx512pf_gatherpf<mode>sf): Ditto.
24952         (avx512pf_gatherpf<mode>df): Ditto.
24953         (*avx512pf_gatherpf<mode>df_mask): Ditto.
24954         (*avx512pf_gatherpf<mode>df): Ditto.
24955         (avx512pf_scatterpf<mode>sf): Ditto.
24956         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24957         (*avx512pf_scatterpf<mode>sf): Ditto.
24958         (avx512pf_scatterpf<mode>df): Ditto.
24959         (*avx512pf_scatterpf<mode>df_mask): Ditto.
24960         (*avx512pf_scatterpf<mode>df): Ditto.
24961         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
24963 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
24965         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
24966         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
24967         (_mm512_mask_testn_epi64_mask): Move to ...
24968         * config/i386/avx512cdintrin.h: Here.
24969         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
24970         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
24971         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
24972         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
24973         TARGET_AVX512F from TARGET_AVX512CD.
24975 2014-02-26  Richard Biener  <rguenther@suse.de>
24977         PR ipa/60327
24978         * ipa.c (walk_polymorphic_call_targets): Properly guard
24979         call to inline_update_overall_summary.
24981 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
24983         PR target/60280
24984         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
24985         and latches only if requested.  Fix latch if it is removed.
24986         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
24987         LOOPS_HAVE_PREHEADERS.
24989 2014-02-25  Andrew Pinski  <apinski@cavium.com>
24991         * builtins.c (expand_builtin_thread_pointer): Create a new target
24992         when the target is NULL.
24994 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
24996         PR rtl-optimization/60317
24997         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24998         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
24999         * lra-assigns.c: Include params.h.
25000         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
25001         other reload pseudos considerations.
25003 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25005         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
25006         to use canonical form for nor<mode>3.
25008 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25010         PR target/55426
25011         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
25012         conversions.
25014 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
25016         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
25017         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
25018         (ix86_handle_option): Handle OPT_mprefetchwt1.
25019         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
25020         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25021         PREFETCHWT1 CPUID.
25022         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25023         OPTION_MASK_ISA_PREFETCHWT1.
25024         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
25025         (PTA_PREFETCHWT1): New.
25026         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
25027         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
25028         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
25029         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
25030         (*prefetch_avx512pf_<mode>_: Change into ...
25031         (*prefetch_prefetchwt1_<mode>: This.
25032         * config/i386/i386.opt (mprefetchwt1): New.
25033         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
25034         (_mm_prefetch): Handle intent to write.
25035         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
25037 2014-02-25  Richard Biener  <rguenther@suse.de>
25039         PR middle-end/60291
25040         * emit-rtl.c (mem_attrs_htab): Remove.
25041         (mem_attrs_htab_hash): Likewise.
25042         (mem_attrs_htab_eq): Likewise.
25043         (set_mem_attrs): Always allocate new mem-attrs when something changed.
25044         (init_emit_once): Do not allocate mem_attrs_htab.
25046 2014-02-25  Richard Biener  <rguenther@suse.de>
25048         PR lto/60319
25049         * lto-opts.c (lto_write_options): Output non-explicit conservative
25050         -fwrapv, -fno-trapv and -fno-strict-overflow.
25051         * lto-wrapper.c (merge_and_complain): Handle merging those options.
25052         (run_gcc): And pass them through.
25054 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
25056         * sel-sched.c (calculate_new_fences): New parameter ptime.
25057         Calculate it as a maximum over all fence cycles.
25058         (sel_sched_region_2): Adjust the call to calculate_new_fences.
25059         Print the final schedule timing when sched_verbose.
25061 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
25063         PR rtl-optimization/60292
25064         * sel-sched.c (fill_vec_av_set): Do not reset target availability
25065         bit fot the fence instruction.
25067 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
25069         * calls.h: Fix typo in comment.
25071 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
25073         * config/pa/pa.c (pa_output_move_double): Don't valididate when
25074         adjusting offsetable addresses.
25076 2014-02-24  Guozhi Wei  <carrot@google.com>
25078         * sparseset.h (sparseset_pop): Fix the wrong index.
25080 2014-02-24  Walter Lee  <walt@tilera.com>
25082         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
25083         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
25084         triplet.
25085         * common/config/tilegx/tilegx-common.c
25086         (TARGET_DEFAULT_TARGET_FLAGS): Define.
25087         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
25088         (LINK_SPEC): Ditto.
25089         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
25090         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
25091         (tilegx_gimplify_va_arg_expr): Handle big endian.
25092         (tilegx_expand_unaligned_load): Ditto.
25093         (tilegx_expand_unaligned_store): Ditto.
25094         (TARGET_RETURN_IN_MSB): New.
25095         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
25096         (TARGET_ENDIAN_DEFAULT): New.
25097         (TARGET_BIG_ENDIAN): Handle big endian.
25098         (BYTES_BIG_ENDIAN): Ditto.
25099         (WORDS_BIG_ENDIAN): Ditto.
25100         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
25101         (ENDIAN_SPEC): New.
25102         (EXTRA_SPECS): New.
25103         * config/tilegx/tilegx.md (extv): Handle big endian.
25104         (extzv): Ditto.
25105         (insn_st<n>): Ditto.
25106         (insn_st<n>_add<bitsuffix>): Ditto.
25107         (insn_stnt<n>): Ditto.
25108         (insn_stnt<n>_add<bitsuffix>):Ditto.
25109         (vec_interleave_highv8qi): Handle big endian.
25110         (vec_interleave_highv8qi_be): New.
25111         (vec_interleave_highv8qi_le): New.
25112         (insn_v1int_h): Handle big endian.
25113         (vec_interleave_lowv8qi): Handle big endian.
25114         (vec_interleave_lowv8qi_be): New.
25115         (vec_interleave_lowv8qi_le): New.
25116         (insn_v1int_l): Handle big endian.
25117         (vec_interleave_highv4hi): Handle big endian.
25118         (vec_interleave_highv4hi_be): New.
25119         (vec_interleave_highv4hi_le): New.
25120         (insn_v2int_h): Handle big endian.
25121         (vec_interleave_lowv4hi): Handle big endian.
25122         (vec_interleave_lowv4hi_be): New.
25123         (vec_interleave_lowv4hi_le): New.
25124         (insn_v2int_l): Handle big endian.
25125         (vec_interleave_highv2si): Handle big endian.
25126         (vec_interleave_highv2si_be): New.
25127         (vec_interleave_highv2si_le): New.
25128         (insn_v4int_h): Handle big endian.
25129         (vec_interleave_lowv2si): Handle big endian.
25130         (vec_interleave_lowv2si_be): New.
25131         (vec_interleave_lowv2si_le): New.
25132         (insn_v4int_l): Handle big endian.
25133         * config/tilegx/tilegx.opt (mbig-endian): New option.
25134         (mlittle-endian): New option.
25135         * doc/install.texi: Document tilegxbe-linux.
25136         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
25138 2014-02-24  Martin Jambor  <mjambor@suse.cz>
25140         PR ipa/60266
25141         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
25142         there are no parameter descriptors.
25144 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
25146         PR rtl-optimization/60268
25147         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
25148         initialization to ...
25149         (sched_rgn_init): ... here.
25150         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
25152 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
25154         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
25155         names.
25157 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
25159         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
25160         definition.
25162 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
25164         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
25165         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
25167 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
25169         * config/microblaze/predicates.md: Add cmp_op predicate.
25170         * config/microblaze/microblaze.md: Add branch_compare instruction
25171         which uses cmp_op predicate and emits cmp insn before branch.
25172         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
25173         to microblaze_expand_conditional_branch and consolidate logic.
25174         (microblaze_expand_conditional_branch): emit branch_compare
25175         insn instead of handling cmp op separate from branch insn.
25177 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25179         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
25180         to permit subregs.
25182 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25184         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
25185         define_insn with define_expand and new define_insn
25186         *altivec_lve<VI_char>x_internal.
25187         (altivec_stve<VI_char>x): Replace define_insn with define_expand
25188         and new define_insn *altivec_stve<VI_char>x_internal.
25189         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
25190         prototype.
25191         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
25192         lve*x built-ins.
25193         (altivec_expand_stvex_be): New function.
25195 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
25197         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
25198         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
25199         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
25200         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
25202 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
25204         PR target/60298
25205         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
25206         instead of emit_move_insn.
25208 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25210         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
25211         vspltw with vsldoi.
25212         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
25213         gen_altivec_vsumsws.
25215 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25217         * config/rs6000/altivec.md (altivec_lvxl): Rename as
25218         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
25219         (altivec_lvxl_<mode>): New define_expand incorporating
25220         -maltivec=be semantics where needed.
25221         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
25222         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
25223         semantics where needed.
25224         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
25225         (altivec_stvx_<mode>): New define_expand incorporating
25226         -maltivec=be semantics where needed.
25227         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
25228         VM2 iterator instead of V4SI.
25229         (altivec_stvxl_<mode>): New define_expand incorporating
25230         -maltivec=be semantics where needed.
25231         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
25232         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
25233         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
25234         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
25235         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
25236         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
25237         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
25238         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
25239         ALTIVEC_BUILTIN_STVXL.
25240         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
25241         (altivec_expand_stvx_be): Likewise.
25242         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
25243         (altivec_expand_lvx_be): Likewise.
25244         (altivec_expand_stvx_be): Likewise.
25245         (altivec_expand_builtin): Add cases for
25246         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
25247         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
25248         (altivec_init_builtins): Add definitions for
25249         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
25250         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
25252 2014-02-21  Catherine Moore  <clm@codesourcery.com>
25254         * doc/invoke.texi (mvirt, mno-virt): Document.
25255         * config/mips/mips.opt (mvirt): New option.
25256         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
25258 2014-02-21  Richard Biener  <rguenther@suse.de>
25260         PR tree-optimization/60276
25261         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
25262         (STMT_VINFO_MIN_NEG_DIST): New macro.
25263         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
25264         STMT_VINFO_MIN_NEG_DIST.
25265         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
25266         made for negative dependence distances still hold.
25268 2014-02-21  Richard Biener  <rguenther@suse.de>
25270         PR middle-end/60291
25271         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
25272         DECL_INITIAL for globals not in the current function context.
25274 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
25276         PR tree-optimization/56490
25277         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
25278         * tree-ssa-uninit.c: Include params.h.
25279         (compute_control_dep_chain): Add num_calls argument, return false
25280         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
25281         num_calls to recursive call.
25282         (find_predicates): Change dep_chain into normal array,
25283         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
25284         variable and adjust compute_control_dep_chain caller.
25285         (find_def_preds): Likewise.
25287 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
25289         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
25290         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
25292 2014-02-21  Nick Clifton  <nickc@redhat.com>
25294         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
25295         (pushhi1): Likewise.
25296         (popqi1): Add mode to pre_dec.
25297         (pophi1): Likewise.
25299 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
25301         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
25302         mode for mask of V8SFmode permutation.
25304 2014-02-20  Richard Henderson  <rth@redhat.com>
25306         PR c++/60272
25307         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
25308         a new pseudo for OLDVAL.
25310 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
25312         PR target/57896
25313         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
25314         gen_reg_rtx if d->testing_p.
25315         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
25316         if d->testing_p and we will certainly return true.
25317         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
25318         if d->testing_p.
25320 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
25322         * emit-rtl.c (gen_reg_rtx): Assert that
25323         crtl->emit.regno_pointer_align_length is non-zero.
25325 2014-02-20  Richard Henderson  <rth@redhat.com>
25327         PR c++/60272
25328         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
25329         on failure the store back into EXPECT.
25331 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
25332             Sandra Loosemore  <sandra@codesourcery.com>
25334         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
25335         * config/nios2/nios2.c (nios2_function_profiler): Add
25336         -fPIC (flag_pic == 2) support.
25337         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
25338         (nios2_large_offset_p): New function.
25339         (nios2_unspec_reloc_p): Move up position, update to use
25340         nios2_large_offset_p.
25341         (nios2_unspec_address): Remove function.
25342         (nios2_unspec_offset): New function.
25343         (nios2_large_got_address): New function.
25344         (nios2_got_address): Add large offset support.
25345         (nios2_legitimize_tls_address): Update usage of removed and new
25346         functions.
25347         (nios2_symbol_binds_local_p): New function.
25348         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
25349         (nios2_legitimize_address): Update to use nios2_large_offset_p.
25350         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
25351         (nios2_print_operand): Merge H/L processing, add hiadj/lo
25352         processing for (const (unspec ...)).
25353         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
25355 2014-02-20  Richard Biener  <rguenther@suse.de>
25357         * tree-cfg.c (replace_uses_by): Mark altered BBs before
25358         doing the substitution.
25359         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
25361 2014-02-20  Martin Jambor  <mjambor@suse.cz>
25363         PR ipa/55260
25364         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
25365         info when checking whether lattices are bottom.
25367 2014-02-20  Richard Biener  <rguenther@suse.de>
25369         PR middle-end/60221
25370         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
25371         regions at -O0.
25373 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
25375         PR ipa/58555
25376         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
25377         parameter specifying the scaling.
25378         (inline_call): Update.
25379         (want_inline_recursively): Guard division by zero.
25380         (recursive_inlining): Update.
25381         * ipa-inline.h (clone_inlined_nodes): Update.
25383 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
25385         PR target/60204
25386         * config/i386/i386.c (classify_argument): Pass structures of size
25387         64 bytes or less in register.
25389 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
25390             Kirill Yukhin  <kirill.yukhin@intel.com>
25392         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
25393         (_mm_rcp28_round_ss): Ditto.
25394         (_mm_rsqrt28_round_sd): Ditto.
25395         (_mm_rsqrt28_round_ss): Ditto.
25396         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
25397         (_mm_rcp14_round_ss): Ditto.
25398         (_mm_rsqrt14_round_sd): Ditto.
25399         (_mm_rsqrt14_round_ss): Ditto.
25400         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
25401         the first input operand, get rid of match_dup.
25402         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
25403         attribute to sse.
25404         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25405         Ditto.
25406         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
25407         operand as the first input operand, set type attribute.
25408         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25409         Set type attribute.
25410         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
25411         operand as the first input operand, set type attribute.
25413 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25415         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
25416         bit of zero.
25418 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
25420         PR target/60207
25421         * config/i386/i386.c (construct_container): Remove TFmode check
25422         for X86_64_INTEGER_CLASS.
25424 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
25426         PR target/59794
25427         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
25428         only when -Wpsabi is enabled.
25430 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
25432          PR target/59799
25433         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
25434         passing arrays in registers are the same as for structs, so remove the
25435         special case for them.
25437 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
25439         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
25440         destination type, extract only the valid bits if the source type is not
25441         integral and has a different mode.
25443 2014-02-19  Richard Biener  <rguenther@suse.de>
25445         PR ipa/60243
25446         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
25447         for all calls.
25449 2014-02-19  Richard Biener  <rguenther@suse.de>
25451         PR ipa/60243
25452         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
25453         (ipa_modify_call_arguments): Emit an argument load explicitely and
25454         preserve virtual SSA form there and for the replacement call.
25455         Do not update SSA form nor free dominance info.
25457 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
25459         * ipa.c (function_and_variable_visibility): Also clear WEAK
25460         flag when disolving COMDAT_GROUP.
25462 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
25464         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
25465         * ipa-prop.c (ipa_set_jf_known_type): Return early when
25466         not devirtualizing.
25467         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
25468         do more sanity checks.
25469         (detect_type_change): Return true when giving up early.
25470         (compute_complex_assign_jump_func): Fix type parameter of
25471         ipa_set_ancestor_jf.
25472         (compute_complex_ancestor_jump_func): Likewise.
25473         (update_jump_functions_after_inlining): Fix updating of
25474         ancestor function.
25475         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
25477 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
25479         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
25480         inline clones when edge disappears.
25482 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
25484         PR target/60203
25485         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
25486         Split 64-bit moves into 2 patterns.  Do not allow the use of
25487         direct move for TDmode in little endian, since the decimal value
25488         has little endian bytes within a word, but the 64-bit pieces are
25489         ordered in a big endian fashion, and normal subreg's of TDmode are
25490         not allowed.
25491         (mov<mode>_64bit_dm): Likewise.
25492         (movtd_64bit_nodm): Likewise.
25494 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
25496         PR tree-optimization/60174
25497         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
25498         statement of an SSA_NAME that occurs in an abnormal PHI node.
25500 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
25502         PR sanitizer/60142
25503         * final.c (SEEN_BB): Remove.
25504         (SEEN_NOTE, SEEN_EMITTED): Renumber.
25505         (final_scan_insn): Don't force_source_line on second
25506         NOTE_INSN_BASIC_BLOCK.
25508 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
25510         PR target/60205
25511         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
25512         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
25513         (type_natural_mode): Warn ABI change when %zmm register is not
25514         available for AVX512F vector value passing.
25516 2014-02-18  Kai Tietz  <ktietz@redhat.com>
25518         PR target/60193
25519         * config/i386/i386.c (ix86_expand_prologue): Use value in
25520         rax register as displacement when restoring %r10 or %rax.
25521         Fix wrong offset when restoring both registers.
25523 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
25525         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
25526         assertion with conditional return.
25528 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
25529             Uros Bizjak  <ubizjak@gmail.com>
25531         PR driver/60233
25532         * config/i386/driver-i386.c (host_detect_local_cpu): If
25533         YMM state is not saved by the OS, also clear has_f16c.  Move
25534         CPUID 0x80000001 handling before YMM state saving checking.
25536 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
25538         PR rtl-optimization/58960
25539         * haifa-sched.c (alloc_global_sched_pressure_data): New,
25540         factored out from ...
25541         (sched_init): ... here.
25542         (free_global_sched_pressure_data): New, factored out from ...
25543         (sched_finish): ... here.
25544         * sched-int.h (free_global_sched_pressure_data): Declare.
25545         * sched-rgn.c (nr_regions_initial): New static global.
25546         (haifa_find_rgns): Initialize it.
25547         (schedule_region): Disable sched-pressure for the newly
25548         generated regions.
25550 2014-02-17  Richard Biener  <rguenther@suse.de>
25552         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
25553         release SSA defs of pattern stmts.
25555 2014-02-17  Richard Biener  <rguenther@suse.de>
25557         * tree-inline.c (expand_call_inline): Release the virtual
25558         operand defined by the call we are about to inline.
25560 2014-02-17  Richard Biener  <rguenther@suse.de>
25562         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
25564 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
25565             Ilya Tocar  <ilya.tocar@intel.com>
25567         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
25568         arguments order in builtin.
25569         (_mm512_permutexvar_epi64): Ditto.
25570         (_mm512_mask_permutexvar_epi64): Ditto
25571         (_mm512_maskz_permutexvar_epi32): Ditto
25572         (_mm512_permutexvar_epi32): Ditto
25573         (_mm512_mask_permutexvar_epi32): Ditto
25575 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25577         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
25578         (p8_vmrgow): Likewise.
25580 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25582         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
25583         endian targets.
25585 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
25587         PR target/60203
25588         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
25589         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
25590         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
25591         using direct move instructions on ISA 2.07.  Also adjust
25592         instruction length for 64-bit.
25593         (mov<mode>_64bit, TFmode/TDmode): Likewise.
25594         (mov<mode>_32bit, TFmode/TDmode): Likewise.
25596 2014-02-15  Alan Modra  <amodra@gmail.com>
25598         PR target/58675
25599         PR target/57935
25600         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
25601         find_replacement on parts of insn rtl that might be reloaded.
25603 2014-02-15  Richard Biener  <rguenther@suse.de>
25605         PR tree-optimization/60183
25606         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
25607         (tree_ssa_phiprop): Calculate and free post-dominators.
25609 2014-02-14  Jeff Law  <law@redhat.com>
25611         PR rtl-optimization/60131
25612         * ree.c (get_extended_src_reg): New function.
25613         (combine_reaching_defs): Use it rather than assuming location of REG.
25614         (find_and_remove_re): Verify first operand of extension is
25615         a REG before adding the insns to the copy list.
25617 2014-02-14  Roland McGrath  <mcgrathr@google.com>
25619         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
25620         * configure: Regenerated.
25621         * config.in: Regenerated.
25622         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
25623         instead of ASM_SHORT.
25625 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
25626             Richard Earnshaw  <rearnsha@arm.com>
25628         PR rtl-optimization/59535
25629         * lra-constraints.c (process_alt_operands): Encourage alternative
25630         when unassigned pseudo class is superset of the alternative class.
25631         (inherit_reload_reg): Don't inherit when optimizing for code size.
25632         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
25633         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
25634         modes not less than 4 for Thumb1.
25636 2014-02-14  Kyle McMartin  <kyle@redhat.com>
25638         PR pch/60010
25639         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
25641 2014-02-14  Richard Biener  <rguenther@suse.de>
25643         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
25644         (get_frame_arg): Drop the assert with langhook types_compatible_p.
25645         Do not strip INDIRECT_REFs.
25647 2014-02-14  Richard Biener  <rguenther@suse.de>
25649         PR lto/60179
25650         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
25651         DECL_FUNCTION_SPECIFIC_TARGET.
25652         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
25653         * tree-streamer-out.c (pack_ts_target_option): Remove.
25654         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
25655         (write_ts_function_decl_tree_pointers): Do not stream
25656         DECL_FUNCTION_SPECIFIC_TARGET.
25657         * tree-streamer-in.c (unpack_ts_target_option): Remove.
25658         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
25659         (lto_input_ts_function_decl_tree_pointers): Do not stream
25660         DECL_FUNCTION_SPECIFIC_TARGET.
25662 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
25664         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
25665         (get_initial_def_for_induction, vectorizable_induction): Ignore
25666         debug stmts when looking for exit_phi.
25667         (vectorizable_live_operation): Fix up condition.
25669 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25671         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
25672         nreverse() because it changes the content of original tree list.
25674 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25676         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
25677         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
25679 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25681         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
25682         GNU coding standards.
25684 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
25686         PR debug/60152
25687         * dwarf2out.c (gen_subprogram_die): Don't call
25688         add_calling_convention_attribute if subr_die is old_die.
25690 2014-02-13  Sharad Singhai  <singhai@google.com>
25692         * doc/optinfo.texi: Fix order of nodes.
25694 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
25696         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
25697         operands[2], not operands[3].
25699 2014-02-13  Richard Biener  <rguenther@suse.de>
25701         PR bootstrap/59878
25702         * doc/install.texi (ISL): Update recommended version to 0.12.2,
25703         mention the possibility of an in-tree build.
25704         (CLooG): Update recommended version to 0.18.1, mention the
25705         possibility of an in-tree build and clarify that the ISL
25706         bundled with CLooG does not work.
25708 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
25710         PR target/43546
25711         * expr.c (compress_float_constant): If x is a hard register,
25712         extend into a pseudo and then move to x.
25714 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25716         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
25717         caused by bad second argument to warning_at() with -mhotpatch and
25718         nested functions (e.g. with gfortran).
25720 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
25722         * opts.c (option_name): Remove "enabled by default" rider.
25724 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
25726         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
25728 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
25729             Uros Bizjak  <ubizjak@gmail.com>
25731         PR target/60151
25732         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
25733         * configure: Regenerated.
25735 2014-02-12  Richard Biener  <rguenther@suse.de>
25737         * vec.c (vec_prefix::calculate_allocation): Move as
25738         inline variant to vec.h.
25739         (vec_prefix::calculate_allocation_1): New out-of-line version.
25740         * vec.h (vec_prefix::calculate_allocation_1): Declare.
25741         (vec_prefix::m_has_auto_buf): Rename to ...
25742         (vec_prefix::m_using_auto_storage): ... this.
25743         (vec_prefix::calculate_allocation): Inline the easy cases
25744         and dispatch to calculate_allocation_1 which doesn't need the
25745         prefix address.
25746         (va_heap::reserve): Use gcc_checking_assert.
25747         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
25748         m_using_auto_storage.
25749         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
25750         member and adjust.
25751         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
25752         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
25753         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
25755 2014-02-12  Richard Biener  <rguenther@suse.de>
25757         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
25758         when we found a dependence.
25760 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
25762         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
25763         common code...
25764         (maybe_fold_stmt): ... into this new function.
25765         * omp-low.c (lower_omp): Update comment.
25767         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
25768         last use.
25770         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
25771         dereference.
25773 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
25775         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
25776         identifiers in comments.
25777         (cortexa53_extra_costs): Likewise.
25778         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
25779         (cortexa7_extra_costs): Likewise.
25780         (cortexa12_extra_costs): Likewise.
25781         (cortexa15_extra_costs): Likewise.
25782         (v7m_extra_costs): Likewise.
25784 2014-02-12  Richard Biener  <rguenther@suse.de>
25786         PR middle-end/60092
25787         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
25788         of posix_memalign being successful.
25789         (lower_stmt): Restrict lowering of posix_memalign to when
25790         -ftree-bit-ccp is enabled.
25792 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
25794         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
25795         arg_loc.
25796         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
25798 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
25800         PR rtl-optimization/60116
25801         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
25802         other_insn once the combination has been validated.
25804 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
25806         PR lto/59468
25807         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
25808         and wrapper.
25809         * ipa-devirt.c: Include demangle.h
25810         (odr_violation_reported): New static variable.
25811         (add_type_duplicate): Update odr_violations.
25812         (maybe_record_node): Add completep parameter; update it.
25813         (record_target_from_binfo): Add COMPLETEP parameter;
25814         update it as needed.
25815         (possible_polymorphic_call_targets_1): Likewise.
25816         (struct polymorphic_call_target_d): Add nonconstruction_targets;
25817         rename FINAL to COMPLETE.
25818         (record_targets_from_bases): Sanity check we found the binfo;
25819         fix COMPLETEP updating.
25820         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
25821         parameter, fix computing of COMPLETEP.
25822         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
25823         at LTO time do demangling.
25824         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
25825         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
25826         parameter.
25827         (gimple_get_virt_method_for_binfo): Likewise.
25828         * gimple-fold.h (gimple_get_virt_method_for_binfo,
25829         gimple_get_virt_method_for_vtable): Update prototypes.
25831 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
25833         PR target/49008
25834         * genautomata.c (add_presence_absence): Fix typo with
25835         {final_}presence_list.
25837 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
25839         PR target/60137
25840         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
25841         for VSX/Altivec vectors that land in GPR registers.
25843 2014-02-11  Richard Henderson  <rth@redhat.com>
25844             Jakub Jelinek  <jakub@redhat.com>
25846         PR debug/59776
25847         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
25848         around drhs if type conversion to lacc->type is not useless.
25850 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25852         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
25853         tuning struct.
25854         (cortex-a57.cortex-a53): Likewise.
25855         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
25857 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25859         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
25860         arm_restrict_it.
25862 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
25864         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
25865         add_options_for_arm_vfp3.
25867 2014-02-11  Jeff Law  <law@redhat.com>
25869         PR middle-end/54041
25870         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
25871         object with an undesirable mode.
25873 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25875         PR libgomp/60107
25876         * config/i386/sol2-9.h: New file.
25877         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
25878         *-*-solaris2.9*): Use it.
25880 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
25882         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
25883         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
25885 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
25887         * config/microblaze/microblaze.c: Extend mcpu version format
25889 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
25891         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
25893 2014-02-10  Richard Henderson  <rth@redhat.com>
25895         PR target/59927
25896         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
25897         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
25898         ms-abi vs -mno-accumulate-outgoing-args.
25899         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
25900         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
25901         respect to ms-abi.
25903 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25905         PR middle-end/60080
25906         * cfgexpand.c (expand_asm_operands): Attach source location to
25907         ASM_INPUT rtx objects.
25908         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
25910 2014-02-10  Nick Clifton  <nickc@redhat.com>
25912         * config/mn10300/mn10300.c (popcount): New function.
25913         (mn10300_expand_prologue): Include saved registers in stack usage
25914         count.
25916 2014-02-10  Jeff Law  <law@redhat.com>
25918         PR middle-end/52306
25919         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
25920         when changing the SET_DEST of a prior insn to avoid an input reload.
25922 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25924         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
25925         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
25926         -mcall-openbsd, or -mcall-linux.
25927         (CC1_ENDIAN_BIG_SPEC): Remove.
25928         (CC1_ENDIAN_LITTLE_SPEC): Remove.
25929         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25930         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
25931         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
25932         and %cc1_endian_default.
25933         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
25935 2014-02-10  Richard Biener  <rguenther@suse.de>
25937         PR tree-optimization/60115
25938         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
25939         MEM_REF handling.  Properly verify that the accesses are not
25940         out of the objects bound.
25942 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25944         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
25945         coretex to cortex.
25947 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
25949         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
25950         proper constants and fix formatting.
25951         (possible_polymorphic_call_targets): Fix formatting.
25953 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
25954             Ilya Tocar  <ilya.tocar@intel.com>
25956         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
25957         (_mm512_loadu_epi32): Renamed into...
25958         (_mm512_loadu_si512): This.
25959         (_mm512_storeu_epi32): Renamed into...
25960         (_mm512_storeu_si512): This.
25961         (_mm512_maskz_ceil_ps): Removed.
25962         (_mm512_maskz_ceil_pd): Ditto.
25963         (_mm512_maskz_floor_ps): Ditto.
25964         (_mm512_maskz_floor_pd): Ditto.
25965         (_mm512_floor_round_ps): Ditto.
25966         (_mm512_floor_round_pd): Ditto.
25967         (_mm512_ceil_round_ps): Ditto.
25968         (_mm512_ceil_round_pd): Ditto.
25969         (_mm512_mask_floor_round_ps): Ditto.
25970         (_mm512_mask_floor_round_pd): Ditto.
25971         (_mm512_mask_ceil_round_ps): Ditto.
25972         (_mm512_mask_ceil_round_pd): Ditto.
25973         (_mm512_maskz_floor_round_ps): Ditto.
25974         (_mm512_maskz_floor_round_pd): Ditto.
25975         (_mm512_maskz_ceil_round_ps): Ditto.
25976         (_mm512_maskz_ceil_round_pd): Ditto.
25977         (_mm512_expand_pd): Ditto.
25978         (_mm512_expand_ps): Ditto.
25979         * config/i386/i386.c (ix86_builtins): Remove
25980         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
25981         (bdesc_args): Ditto.
25982         * config/i386/predicates.md (const1256_operand): New.
25983         (const_1_to_2_operand): Ditto.
25984         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25985         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25986         (*avx512pf_gatherpf<mode>sf): Ditto.
25987         (avx512pf_gatherpf<mode>df): Ditto.
25988         (*avx512pf_gatherpf<mode>df_mask): Ditto.
25989         (*avx512pf_gatherpf<mode>df): Ditto.
25990         (avx512pf_scatterpf<mode>sf): Ditto.
25991         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25992         (*avx512pf_scatterpf<mode>sf): Ditto.
25993         (avx512pf_scatterpf<mode>df): Ditto.
25994         (*avx512pf_scatterpf<mode>df_mask): Ditto.
25995         (*avx512pf_scatterpf<mode>df): Ditto.
25996         (avx512f_expand<mode>): Removed.
25997         (<shift_insn><mode>3<mask_name>): Change predicate type.
25999 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
26001         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
26002         not at the end of datarefs vector use ordered_remove to avoid
26003         reordering datarefs vector.
26005         PR c/59984
26006         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
26007         mark local addressable non-static vars as GOVD_PRIVATE
26008         instead of GOVD_LOCAL.
26009         * omp-low.c (lower_omp_for): Move gimple_bind_vars
26010         and BLOCK_VARS of gimple_bind_block to new_stmt rather
26011         than copying them.
26013         PR middle-end/60092
26014         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
26015         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
26016         assume_aligned or alloc_align attributes.
26017         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
26018         arguments.  Handle also assume_aligned and alloc_align attributes.
26019         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
26020         calls to functions with assume_aligned or alloc_align attributes.
26021         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
26023 2014-02-08  Terry Guo  <terry.guo@arm.com>
26025         * doc/invoke.texi: Document ARM -march=armv7e-m.
26027 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
26029         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
26030         flag on __cilkrts_rethrow builtin.
26032         PR ipa/60026
26033         * ipa-cp.c (determine_versionability): Fail at -O0
26034         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
26035         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
26037         Revert:
26038         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
26040         PR ipa/60026
26041         * tree-inline.c (copy_forbidden): Fail for
26042         __attribute__((optimize (0))) functions.
26044 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
26046         * varpool.c: Include pointer-set.h.
26047         (varpool_remove_unreferenced_decls): Variables in other partitions
26048         will not be output; be however careful to not lose information
26049         about partitioning.
26051 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
26053         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
26054         lookup in the vtable constructor.
26056 2014-02-07  Jeff Law  <law@redhat.com>
26058         PR target/40977
26059         * config/m68k/m68k.md (ashldi_extsi): Turn into a
26060         define_insn_and_split.
26062         * ipa-inline.c (inline_small_functions): Fix typos.
26064 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26066         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
26067         (s390_can_use_return_insn): Declare.
26068         * config/s390/s390.h (EPILOGUE_USES): Define.
26069         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
26070         instructions.
26071         (s390_chunkify_start): Handle return JUMP_LABELs.
26072         (s390_early_mach): Emit a main_pool instruction on the entry edge.
26073         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
26074         (s390_can_use_return_insn): New functions.
26075         (s390_fix_long_loop_prediction): Handle conditional returns.
26076         (TARGET_SET_UP_BY_PROLOGUE): Define.
26077         * config/s390/s390.md (ANY_RETURN): New code iterator.
26078         (*creturn, *csimple_return, return, simple_return): New patterns.
26080 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26082         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
26083         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
26084         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
26085         REG_CFA_RESTORE list when deciding not to restore a register.
26087 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26089         * config/s390/s390.c: Include tree-pass.h and context.h.
26090         (s390_early_mach): New function, split out from...
26091         (s390_emit_prologue): ...here.
26092         (pass_data_s390_early_mach): New pass structure.
26093         (pass_s390_early_mach): New class.
26094         (s390_option_override): Create and register early_mach pass.
26095         Move to end of file.
26097 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26099         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
26100         to match for the exit block.
26102 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26104         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
26105         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
26106         Reject misaligned operands.
26108 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26110         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
26112 2014-02-07  Richard Biener  <rguenther@suse.de>
26114         PR middle-end/60092
26115         * gimple-low.c (lower_builtin_posix_memalign): New function.
26116         (lower_stmt): Call it to lower posix_memalign in a way
26117         to make alignment info accessible.
26119 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
26121         PR c++/60082
26122         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
26123         __builtin_setjmp_receiver.
26125 2014-02-07  Richard Biener  <rguenther@suse.de>
26127         PR middle-end/60092
26128         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
26129         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
26130         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26131         Handle BUILT_IN_POSIX_MEMALIGN.
26132         (find_func_clobbers): Likewise.
26133         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
26134         (call_may_clobber_ref_p_1): Likewise.
26136 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
26138         PR ipa/59918
26139         * ipa-devirt.c (record_target_from_binfo): Remove overactive
26140         sanity check.
26142 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
26144         PR ipa/59469
26145         * lto-cgraph.c (lto_output_node): Use
26146         symtab_get_symbol_partitioning_class.
26147         (lto_output_varpool_node): likewise.
26148         (symtab_get_symbol_partitioning_class): Move here from
26149         lto/lto-partition.c
26150         * cgraph.h (symbol_partitioning_class): Likewise.
26151         (symtab_get_symbol_partitioning_class): Declare.
26153 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
26155         * ggc.h (ggc_internal_cleared_alloc): New macro.
26156         * vec.h (vec_safe_copy): Handle memory stats.
26157         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
26158         * target-globals.c (save_target_globals): Likewise.
26160 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
26162         PR target/60077
26163         * expr.c (emit_move_resolve_push): Export; be bit more selective
26164         on when to clear alias set.
26165         * expr.h (emit_move_resolve_push): Declare.
26166         * function.h (struct function): Add tail_call_marked.
26167         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
26168         * config/i386/i386-protos.h (ix86_expand_push): Remove.
26169         * config/i386/i386.md (TImode move expander): De not call
26170         ix86_expand_push.
26171         (FP push expanders): Preserve memory attributes.
26172         * config/i386/sse.md (push<mode>1): Remove.
26173         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
26174         (ix86_expand_push): Remove.
26175         * config/i386/mmx.md (push<mode>1): Remove.
26177 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
26179         PR rtl-optimization/60030
26180         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
26181         lopart with paradoxical subreg before shifting it up by hprec.
26183 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26185         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
26186         Remove extra newline at end of file.
26187         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
26188         (arm_issue_rate): Handle cortexa57.
26189         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
26190         (cortex-a57.cortex-a53): Likewise.
26192 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
26194         PR target/59575
26195         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
26196         don't record in REG_FRAME_RELATED_EXPR registers not set in that
26197         bitmask.
26198         (arm_expand_prologue): Adjust all callers.
26199         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
26200         info, registers also at the lowest numbered registers side.  Use
26201         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
26202         XEXP.
26204         PR debug/59992
26205         * var-tracking.c (adjust_mems): Before adding a SET to
26206         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
26208 2014-02-06  Alan Modra  <amodra@gmail.com>
26210         PR target/60032
26211         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
26212         change SDmode to DDmode when lra_in_progress.
26214 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
26216         PR middle-end/59150
26217         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
26218         free_data_ref on the dr first, and before goto again also set dr
26219         to the next dr.  For simd_lane_access, free old datarefs[i] before
26220         overwriting it.  For get_vectype_for_scalar_type failure, don't
26221         free_data_ref if simd_lane_access.
26223         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
26225         PR target/60062
26226         * tree.h (opts_for_fn): New inline function.
26227         (opt_for_fn): Define.
26228         * config/i386/i386.c (ix86_function_regparm): Use
26229         opt_for_fn (decl, optimize) instead of optimize.
26231 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26233         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
26234         for SYMBOL_REF in large memory model.
26236 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26238         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
26239         and crypto support.
26240         (cortex-a57): Likewise.
26241         (cortex-a57.cortex-a53): Likewise.
26243 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
26244             Kugan Vivekanandarajah  <kuganv@linaro.org>
26246         * config/arm/arm.c (arm_vector_alignment_reachable): Check
26247         unaligned_access.
26248         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
26250 2014-02-06  Richard Biener  <rguenther@suse.de>
26252         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
26253         set_loop_copy and initialize_original_copy_tables.
26255 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
26257         * config/aarch64/aarch64-simd.md
26258         (aarch64_ashr_simddi): Change QI to SI.
26260 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
26261             Jakub Jelinek  <jakub@redhat.com>
26263         PR middle-end/60013
26264         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
26265         of the dataflow.
26267 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26269         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
26270         CODE_FOR_altivec_vpku[hw]um to
26271         CODE_FOR_altivec_vpku[hw]um_direct.
26272         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
26273         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
26274         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
26275         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
26277 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26279         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
26280         generation for -maltivec=be.
26281         (altivec_vsumsws): Simplify redundant test.
26283 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26285         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
26286         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
26287         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
26288         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
26289         gen_altivec_vpkuwum.
26290         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
26291         BYTES_BIG_ENDIAN.
26292         (altivec_vpks<VI_char>ss): Likewise.
26293         (altivec_vpks<VI_char>us): Likewise.
26294         (altivec_vpku<VI_char>us): Likewise.
26295         (altivec_vpku<VI_char>um): Likewise.
26296         (altivec_vpku<VI_char>um_direct): New (copy of
26297         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
26298         internal use).
26299         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
26300         target is little endian and -maltivec=be is not specified.
26301         (*altivec_vupkhs<VU_char>_direct): New (copy of
26302         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
26303         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
26304         target is little endian and -maltivec=be is not specified.
26305         (*altivec_vupkls<VU_char>_direct): New (copy of
26306         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
26307         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
26308         little endian and -maltivec=be is not specified.
26309         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
26310         little endian and -maltivec=be is not specified.
26312 2014-02-05  Richard Henderson  <rth@redhat.com>
26314         PR debug/52727
26315         * combine-stack-adj.c: Revert r206943.
26316         * sched-int.h (struct deps_desc): Add last_args_size.
26317         * sched-deps.c (init_deps): Initialize it.
26318         (sched_analyze_insn): Add OUTPUT dependencies between insns that
26319         contain REG_ARGS_SIZE notes.
26321 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
26323         * lto-cgraph.c (asm_nodes_output): Make global.
26324         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
26325         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
26326         (driver_handle_option): Handle OPT_fwpa.
26328 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
26330         PR ipa/59947
26331         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
26332         a comment typo and formatting issue.  If odr_hash hasn't been
26333         created, return vNULL and set *completep to false.
26335         PR middle-end/57499
26336         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
26337         bb with no successors.
26339 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
26341         PR target/59718
26342         * doc/invoke.texi (-march): Clarify documentation for ARM.
26343         (-mtune): Likewise.
26344         (-mcpu): Likewise.
26346 2014-02-05  Richard Biener  <rguenther@suse.de>
26348         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
26349         when not vectorizing because of too many alias checks.
26350         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
26351         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
26353 2014-02-05  Nick Clifton  <nickc@redhat.com>
26355         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
26356         accept extended registers in any mode when compiling for the MN10300.
26358 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
26360         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
26361         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
26362         sanitization attributes.
26363         (can_inline_edge_p): Likewise.
26364         (sanitize_attrs_match_for_inline_p): New function.
26366 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
26368         * ipa-prop.c (detect_type_change): Shor circuit testing of
26369         type changes on THIS pointer.
26371 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
26373         PR target/59777
26374         * config/pa/pa.c (legitimize_tls_address): Return original address
26375         if not passed a SYMBOL_REF rtx.
26376         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
26377         addresses.
26378         (pa_emit_move_sequence): Simplify TLS source operands.
26379         (pa_legitimate_constant_p): Reject all TLS constants.
26380         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
26381         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
26383 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
26385         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
26386         groups when we know they are controlled by LTO.
26387         * varasm.c (default_binds_local_p_1): If object is in other partition,
26388         it will be resolved locally.
26390 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26392         * config/host-linux.c (linux_gt_pch_use_address): Don't
26393         use SSIZE_MAX because it is not always defined.
26395 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
26397         PR bootstrap/59913
26398         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
26399         threshold for pseudo splitting.
26400         (update_ebb_live_info): Process call argument hard registers and
26401         hard registers from insn definition too.
26402         (max_small_class_regs_num): New constant.
26403         (inherit_in_ebb): Update live hard regs through EBBs.  Update
26404         reloads_num only for small register classes.  Don't split for
26405         outputs of jumps.
26407 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
26409         PR ipa/60058
26410         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
26411         is non-null.
26413 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
26415         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
26416         visibility is safe.
26418 2014-02-04  Marek Polacek  <polacek@redhat.com>
26420         * gdbinit.in (pel): Define.
26422 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26424         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
26425         behavior.
26427 2014-02-04  Richard Biener  <rguenther@suse.de>
26429         PR lto/59723
26430         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
26431         in function context local.
26432         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
26433         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
26434         similar to LTO_imported_decl_ref.
26436 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
26438         PR tree-optimization/60002
26439         * cgraphclones.c (build_function_decl_skip_args): Clear
26440         DECL_LANG_SPECIFIC.
26442         PR tree-optimization/60023
26443         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
26444         false to gsi_replace.
26445         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
26446         has been in some EH region and vec_stmt could throw, add
26447         vec_stmt into the same EH region.
26448         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
26449         has no lhs, ignore it.
26450         * internal-fn.c (expand_MASK_LOAD): Likewise.
26452         PR ipa/60026
26453         * tree-inline.c (copy_forbidden): Fail for
26454         __attribute__((optimize (0))) functions.
26456         PR other/58712
26457         * omp-low.c (simd_clone_struct_copy): If from->inbranch
26458         is set, copy one less argument.
26459         (expand_simd_clones): Don't subtract clone_info->inbranch
26460         from simd_clone_struct_alloc argument.
26462         PR rtl-optimization/57915
26463         * recog.c (simplify_while_replacing): If all unary/binary/relational
26464         operation arguments are constant, attempt to simplify those.
26466         PR middle-end/59261
26467         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
26468         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
26470 2014-02-04  Richard Biener  <rguenther@suse.de>
26472         PR tree-optimization/60012
26473         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
26474         TBAA disambiguation to all DDRs.
26476 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26478         PR target/59788
26479         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
26480         (LINK_SPEC): Use it for -shared, -shared-libgcc.
26482 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26484         PR ipa/59882
26485         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
26487 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26489         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
26490         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
26492 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26494         PR ipa/59831
26495         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
26496         to figure out targets of polymorphic calls with known decl.
26497         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26498         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
26499         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
26500         (get_polymorphic_call_info): ... here.
26501         (get_polymorphic_call_info_from_invariant): New function.
26503 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26505         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
26506         lookup via vtable pointer; check for type consistency
26507         and turn inconsitent facts into UNREACHABLE.
26508         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26509         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
26510         type inconsistent querries; return UNREACHABLE instead.
26512 2014-02-03  Richard Henderson  <rth@twiddle.net>
26514         PR tree-opt/59924
26515         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
26516         already processed this node.
26517         (normalize_one_pred_1): Pass along mark_set.
26518         (normalize_one_pred): Create and destroy a pointer_set_t.
26519         (normalize_one_pred_chain): Likewise.
26521 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
26523         PR gcov-profile/58602
26524         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
26526 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26528         PR ipa/59831
26529         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
26530         -fno-devirtualize; try to devirtualize by the knowledge of
26531         virtual table pointer given by aggregate propagation.
26532         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26533         (ipa_print_node_jump_functions): Dump also offset that
26534         is relevant for polymorphic calls.
26535         (determine_known_aggregate_parts): Add arg_type parameter; use it
26536         instead of determining the type from pointer type.
26537         (ipa_compute_jump_functions_for_edge): Update call of
26538         determine_known_aggregate_parts.
26539         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
26540         (gimple_get_virt_method_for_binfo): ... here; simplify using
26541         vtable_pointer_value_to_vtable.
26542         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
26543         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
26544         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
26545         (vtable_pointer_value_to_vtable): Break out from ...; handle also
26546         POINTER_PLUS_EXPR.
26547         (vtable_pointer_value_to_binfo): ... here.
26548         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
26550 2014-02-03  Teresa Johnson  <tejohnson@google.com>
26552         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
26553         redef of outer loop index variable.
26555 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
26557         PR c++/53017
26558         PR c++/59211
26559         * doc/extend.texi (Function Attributes): Typo.
26561 2014-02-03  Cong Hou  <congh@google.com>
26563         PR tree-optimization/60000
26564         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
26565         if the vectorized statement is a store.  A store statement can only
26566         appear at the end of pattern statements.
26568 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
26570         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
26571         (ix86_option_override_internal): Default long double to 64-bit for
26572         32-bit Bionic and to 128-bit for 64-bit Bionic.
26574         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
26575         TARGET_LONG_DOUBLE_128 is true.
26576         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
26578         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
26579         (mlong-double-64): Negate -mlong-double-128.
26580         (mlong-double-128): New option.
26582         * config/i386/i386-c.c (ix86_target_macros): Define
26583         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
26585         * doc/invoke.texi: Document -mlong-double-128.
26587 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
26589         PR rtl-optimization/60024
26590         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
26592 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
26594         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
26596 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
26598         PR rtl-optimization/57662
26599         * sel-sched.c (code_motion_path_driver): Do not mark already not
26600         existing blocks in the visiting bitmap.
26602 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
26604         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
26605         on the insn being emitted.
26607 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
26608             Will Deacon  <will.deacon@arm.com>
26610         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
26612 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26614         * config/arm/arm-tables.opt: Regenerate.
26616 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26618         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
26619         for vector types other than V16QImode.
26620         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
26621         define_expand, and call altivec_expand_vec_perm_le when producing
26622         code with little endian element order.
26623         (*altivec_vperm_<mode>_internal): New insn having previous
26624         behavior of altivec_vperm_<mode>.
26625         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
26626         altivec_expand_vec_perm_le when producing code with little endian
26627         element order.
26628         (*altivec_vperm_<mode>_uns_internal): New insn having previous
26629         behavior of altivec_vperm_<mode>_uns.
26631 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26633         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
26634         (altivec_vsumsws): Add handling for -maltivec=be with a little
26635         endian target.
26636         (altivec_vsumsws_direct): New.
26637         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
26638         gen_altivec_vsumsws.
26640 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
26642         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
26643         vtable_pointer_value_to_binfo): New functions.
26644         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
26645         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
26647 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
26649         * config/nios2/nios2.md (load_got_register): Initialize GOT
26650         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
26651         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
26653 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
26655         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
26656         preserverd by passthrough, do not propagate the type.
26658 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26660         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
26661         (mips_atomic_assign_expand_fenv): New function.
26662         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26664 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26666         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
26667         (__builtin_mips_set_fcsr): Likewise.
26668         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
26669         MIPS_USI_FTYPE_VOID.
26670         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
26671         (mips16_expand_set_fcsr): Likewise.
26672         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
26673         (mips16_set_fcsr_stub): Likewise.
26674         (mips16_get_fcsr_one_only_stub): New class.
26675         (mips16_set_fcsr_one_only_stub): Likewise.
26676         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
26677         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
26678         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
26679         (hard_float): New availability predicate.
26680         (mips_builtins): Add get_fcsr and set_fcsr.
26681         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
26682         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
26683         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
26684         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
26685         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
26686         patterns.
26688 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26690         * config/mips/mips.c (mips_one_only_stub): New class.
26691         (mips_need_mips16_rdhwr_p): Replace with...
26692         (mips16_rdhwr_stub): ...this new variable.
26693         (mips16_stub_call_address): New function.
26694         (mips16_rdhwr_one_only_stub): New class.
26695         (mips_expand_thread_pointer): Use mips16_stub_call_address.
26696         (mips_output_mips16_rdhwr): Delete.
26697         (mips_finish_stub): New function.
26698         (mips_code_end): Use it to handle rdhwr stubs.
26700 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
26702         PR target/60017
26703         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
26704         when calculating size of integer atomic types.
26706 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
26708         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
26710 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
26712         PR tree-optimization/60003
26713         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
26714         * profile.c (branch_prob): Use gimple_call_builtin_p
26715         to check for BUILT_IN_SETJMP_RECEIVER.
26716         * tree-inline.c (copy_bb): Call notice_special_calls.
26718 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
26720         PR bootstrap/59985
26721         * lra-constraints.c (process_alt_operands): Update reload_sum only
26722         on the first pass.
26724 2014-01-31  Richard Henderson  <rth@redhat.com>
26726         PR middle-end/60004
26727         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
26728         until after else_eh is processed.
26730 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
26732         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
26733         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
26734         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
26735         in smmintrin.h, remove them.
26736         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
26737         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
26738         * config/i386/i386.md (ROUND_SAE): Fix value.
26739         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
26740         (const48_operand): New.
26741         * config/i386/subst.md (round), (round_expand): Use
26742         const_4_or_8_to_11_operand.
26743         (round_saeonly), (round_saeonly_expand): Use const48_operand.
26745 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
26747         * config/i386/constraints.md (Yk): Swap meaning with k.
26748         * config/i386/i386.md (movhi_internal): Change Yk to k.
26749         (movqi_internal): Ditto.
26750         (*k<logic><mode>): Ditto.
26751         (*andhi_1): Ditto.
26752         (*andqi_1): Ditto.
26753         (kandn<mode>): Ditto.
26754         (*<code>hi_1): Ditto.
26755         (*<code>qi_1): Ditto.
26756         (kxnor<mode>): Ditto.
26757         (kortestzhi): Ditto.
26758         (kortestchi): Ditto.
26759         (kunpckhi): Ditto.
26760         (*one_cmplhi2_1): Ditto.
26761         (*one_cmplqi2_1): Ditto.
26762         * config/i386/sse.md (): Change k to Yk.
26763         (avx512f_load<mode>_mask): Ditto.
26764         (avx512f_blendm<mode>): Ditto.
26765         (avx512f_store<mode>_mask): Ditto.
26766         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
26767         (avx512f_storedqu<mode>_mask): Ditto.
26768         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
26769         Ditto.
26770         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
26771         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
26772         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
26773         (avx512f_maskcmp<mode>3): Ditto.
26774         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
26775         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
26776         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
26777         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
26778         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
26779         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
26780         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
26781         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
26782         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
26783         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
26784         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
26785         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
26786         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
26787         (vec_extract_lo_<mode>_maskm): Ditto.
26788         (vec_extract_hi_<mode>_maskm): Ditto.
26789         (avx512f_vternlog<mode>_mask): Ditto.
26790         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
26791         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
26792         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
26793         (avx512f_<code>v8div16qi2_mask): Ditto.
26794         (avx512f_<code>v8div16qi2_mask_store): Ditto.
26795         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
26796         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
26797         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
26798         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
26799         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26800         (*avx512pf_gatherpf<mode>df_mask): Ditto.
26801         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26802         (*avx512pf_scatterpf<mode>df_mask): Ditto.
26803         (avx512cd_maskb_vec_dupv8di): Ditto.
26804         (avx512cd_maskw_vec_dupv16si): Ditto.
26805         (avx512f_vpermi2var<mode>3_maskz): Ditto.
26806         (avx512f_vpermi2var<mode>3_mask): Ditto.
26807         (avx512f_vpermi2var<mode>3_mask): Ditto.
26808         (avx512f_vpermt2var<mode>3_maskz): Ditto.
26809         (*avx512f_gathersi<mode>): Ditto.
26810         (*avx512f_gathersi<mode>_2): Ditto.
26811         (*avx512f_gatherdi<mode>): Ditto.
26812         (*avx512f_gatherdi<mode>_2): Ditto.
26813         (*avx512f_scattersi<mode>): Ditto.
26814         (*avx512f_scatterdi<mode>): Ditto.
26815         (avx512f_compress<mode>_mask): Ditto.
26816         (avx512f_compressstore<mode>_mask): Ditto.
26817         (avx512f_expand<mode>_mask): Ditto.
26818         * config/i386/subst.md (mask): Change k to Yk.
26819         (mask_scalar_merge): Ditto.
26820         (sd): Ditto.
26822 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
26824         * doc/extend.texi (Vector Extensions): Document ?: in C++.
26826 2014-01-31  Richard Biener  <rguenther@suse.de>
26828         PR middle-end/59990
26829         * builtins.c (fold_builtin_memory_op): Make sure to not
26830         use a floating-point mode or a boolean or enumeral type for
26831         the copy operation.
26833 2014-01-30  DJ Delorie  <dj@redhat.com>
26835         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
26836         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
26837         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
26838         whenever main() has an epilogue.
26840 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26842         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
26843         unused variable "field".
26844         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
26845         (vsx_mergeh_<mode>): Likewise.
26846         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
26847         (altivec_vmrghh): Likewise.
26848         (altivec_vmrghw): Likewise.
26849         (altivec_vmrglb): Likewise.
26850         (altivec_vmrglh): Likewise.
26851         (altivec_vmrglw): Likewise.
26852         (altivec_vspltb): Add missing uses.
26853         (altivec_vsplth): Likewise.
26854         (altivec_vspltw): Likewise.
26855         (altivec_vspltsf): Likewise.
26857 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
26859         PR target/59923
26860         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
26861         frame related instructions.
26863 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
26865         PR rtl-optimization/59959
26866         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
26867         any reload of register whose subreg is invalid.
26869 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
26871         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
26872         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
26873         Add missing return type - void.
26875 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26877         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
26878         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
26879         remove element index adjustment for endian (now handled in vsx.md
26880         and altivec.md).
26881         (altivec_expand_vec_perm_const): Use
26882         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
26883         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
26884         (vsx_xxspltw_<mode>): Adjust element index for little endian.
26885         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
26886         define_expand and a new define_insn *altivec_vspltb_internal;
26887         adjust for -maltivec=be on a little endian target.
26888         (altivec_vspltb_direct): New.
26889         (altivec_vsplth): Divide into a define_expand and a new
26890         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
26891         little endian target.
26892         (altivec_vsplth_direct): New.
26893         (altivec_vspltw): Divide into a define_expand and a new
26894         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
26895         little endian target.
26896         (altivec_vspltw_direct): New.
26897         (altivec_vspltsf): Divide into a define_expand and a new
26898         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
26899         a little endian target.
26901 2014-01-30  Richard Biener  <rguenther@suse.de>
26903         PR tree-optimization/59993
26904         * tree-ssa-forwprop.c (associate_pointerplus): Check we
26905         can propagate form the earlier stmt and avoid the transform
26906         when the intermediate result is needed.
26908 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
26910         * README.Portability: Fix typo.
26912 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
26914         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
26915         comparison_operator with ordered_comparison_operator.
26917 2014-01-30  Nick Clifton  <nickc@redhat.com>
26919         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
26920         Rename to mn10300_store_multiple_regs.
26921         * config/mn10300/mn10300.c: Likewise.
26922         * config/mn10300/mn10300.md (store_movm): Fix typo: call
26923         store_multiple_regs.
26924         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
26925         Call mn10300_store_multiple_regs.
26927 2014-01-30  Nick Clifton  <nickc@redhat.com>
26928             DJ Delorie  <dj@redhat.com>
26930         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
26931         %fp 2 to keep registers after it properly word-aligned.
26932         (rl78_alloc_physical_registers_umul): Handle the case where both
26933         input operands are the same.
26935 2014-01-30  Richard Biener  <rguenther@suse.de>
26937         PR tree-optimization/59903
26938         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
26939         check properly.
26941 2014-01-30  Jason Merrill  <jason@redhat.com>
26943         PR c++/59633
26944         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
26946         PR c++/59645
26947         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
26949 2014-01-30  Richard Biener  <rguenther@suse.de>
26951         PR tree-optimization/59951
26952         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
26954 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
26956         PR target/59784
26957         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
26958         SFmode to DFmode case.
26960 2014-01-29  DJ Delorie  <dj@redhat.com>
26962         * config/msp430/msp430.opt (-minrt): New.
26963         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
26964         if -minrt given.
26965         (ENDFILE_SPEC): Likewise.
26967 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
26969         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
26970         (estimate_function_body_sizes): Use it.
26972 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
26974         PR c++/58561
26975         * dwarf2out.c (is_cxx_auto): New.
26976         (is_base_type): Use it.
26977         (gen_type_die_with_usage): Likewise.
26979 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26981         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
26982         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
26983         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
26984         -maltivec=be with LE targets.
26985         (vsx_mergeh_<mode>): Likewise.
26986         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
26987         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
26988         (altivec_vmrghb): Replace with define_expand and new
26989         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
26990         (altivec_vmrghb_direct): New define_insn.
26991         (altivec_vmrghh): Replace with define_expand and new
26992         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
26993         (altivec_vmrghh_direct): New define_insn.
26994         (altivec_vmrghw): Replace with define_expand and new
26995         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
26996         (altivec_vmrghw_direct): New define_insn.
26997         (*altivec_vmrghsf): Adjust for endianness.
26998         (altivec_vmrglb): Replace with define_expand and new
26999         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
27000         (altivec_vmrglb_direct): New define_insn.
27001         (altivec_vmrglh): Replace with define_expand and new
27002         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
27003         (altivec_vmrglh_direct): New define_insn.
27004         (altivec_vmrglw): Replace with define_expand and new
27005         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
27006         (altivec_vmrglw_direct): New define_insn.
27007         (*altivec_vmrglsf): Adjust for endianness.
27008         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
27009         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
27010         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
27011         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
27012         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
27013         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
27014         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
27015         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
27017 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27019         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
27020         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
27021         whitespace.
27023 2014-01-29  Richard Biener  <rguenther@suse.de>
27025         PR tree-optimization/58742
27026         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
27027         associate_pointerplus_align.
27028         (associate_pointerplus_diff): New function.
27029         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
27030         and associate_pointerplus_diff.
27032 2014-01-29  Richard Biener  <rguenther@suse.de>
27034         * lto-streamer.h (LTO_major_version): Bump to 3.
27035         (LTO_minor_version): Reset to 0.
27037 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
27039         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
27040         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
27041         (arm_file_start): Generate correct asm header for armv7ve.
27042         * config/arm/bpabi.h: Add multilib support for armv7ve.
27043         * config/arm/driver-arm.c: Change the architectures of cortex-a7
27044         and cortex-a15 to armv7ve.
27045         * config/arm/t-aprofile: Add multilib support for armv7ve.
27046         * doc/invoke.texi: Document -march=armv7ve.
27048 2014-01-29  Richard Biener  <rguenther@suse.de>
27050         PR tree-optimization/58742
27051         * tree-ssa-forwprop.c (associate_plusminus): Return true
27052         if we changed sth, defer EH cleanup to ...
27053         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
27054         (simplify_mult): New function.
27056 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
27058         PR middle-end/59917
27059         PR tree-optimization/59920
27060         * tree.c (build_common_builtin_nodes): Remove
27061         __builtin_setjmp_dispatcher initialization.
27062         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
27063         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
27064         instead of gsi_after_labels + manually skipping debug stmts.
27065         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
27066         ignore bbs with IFN_ABNORMAL_DISPATCHER.
27067         * tree-inline.c (copy_edges_for_bb): Remove
27068         can_make_abnormal_goto argument, instead add abnormal_goto_dest
27069         argument.  Ignore computed_goto_p stmts.  Don't call
27070         make_abnormal_goto_edges.  If a call might need abnormal edges
27071         for non-local gotos, see if it already has an edge to
27072         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
27073         with true argument, don't do anything then, otherwise add
27074         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
27075         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
27076         caller.
27077         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
27078         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
27079         (lower_stmt): Don't set data->calls_builtin_setjmp.
27080         (lower_builtin_setjmp): Adjust comment.
27081         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
27082         * tree-cfg.c (found_computed_goto): Remove.
27083         (factor_computed_gotos): Remove.
27084         (make_goto_expr_edges): Return bool, true for computed gotos.
27085         Don't call make_abnormal_goto_edges.
27086         (build_gimple_cfg): Don't set found_computed_goto, don't call
27087         factor_computed_gotos.
27088         (computed_goto_p): No longer static.
27089         (make_blocks): Don't set found_computed_goto.
27090         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
27091         (make_edges): If make_goto_expr_edges returns true, push bb
27092         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
27093         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
27094         vector.  Record mapping between bbs and OpenMP regions if there
27095         are any, adjust make_gimple_omp_edges caller.  Call
27096         handle_abnormal_edges.
27097         (make_abnormal_goto_edges): Remove.
27098         * tree-cfg.h (make_abnormal_goto_edges): Remove.
27099         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
27100         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
27101         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
27102         * internal-fn.def (ABNORMAL_DISPATCHER): New.
27103         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
27104         filling *region also set *region_idx to (*region)->entry->index.
27106         PR other/58712
27107         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
27108         For REGs set ORIGINAL_REGNO.
27110 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
27112         * doc/md.texi: Mention that a target shouldn't implement
27113         vec_widen_(s|u)mul_even/odd pair if it is less efficient
27114         than hi/lo pair.
27116 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
27118         PR tree-optimization/59594
27119         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
27120         a copy of the datarefs vector rather than the vector itself.
27122 2014-01-28  Jason Merrill  <jason@redhat.com>
27124         PR c++/53756
27125         * dwarf2out.c (auto_die): New static.
27126         (gen_type_die_with_usage): Handle C++1y 'auto'.
27127         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
27128         on definition.
27130 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
27132         PR target/59672
27133         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
27134         (SPEC_X32): Likewise.
27135         (SPEC_64): Likewise.
27136         * config/i386/i386.c (ix86_option_override_internal): Turn off
27137         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
27138         for TARGET_16BIT.
27139         (x86_file_start): Output .code16gcc for TARGET_16BIT.
27140         * config/i386/i386.h (TARGET_16BIT): New macro.
27141         (TARGET_16BIT_P): Likewise.
27142         * config/i386/i386.opt: Add m16.
27143         * doc/invoke.texi: Document -m16.
27145 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
27147         PR preprocessor/59935
27148         * input.c (location_get_source_line): Bail out on when line number
27149         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
27151 2014-01-28  Richard Biener  <rguenther@suse.de>
27153         PR tree-optimization/58742
27154         * tree-ssa-forwprop.c (associate_plusminus): Handle
27155         pointer subtraction of the form (T)(P + A) - (T)P.
27157 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27159         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
27160         at const_int_cost.
27162 2014-01-28  Richard Biener  <rguenther@suse.de>
27164         Revert
27165         2014-01-28  Richard Biener  <rguenther@suse.de>
27167         PR rtl-optimization/45364
27168         PR rtl-optimization/59890
27169         * var-tracking.c (local_get_addr_clear_given_value): Handle
27170         already cleared slot.
27171         (val_reset): Handle not allocated local_get_addr_cache.
27172         (vt_find_locations): Use post-order on the inverted CFG.
27174 2014-01-28  Richard Biener  <rguenther@suse.de>
27176         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
27178 2014-01-28  Richard Biener  <rguenther@suse.de>
27180         PR rtl-optimization/45364
27181         PR rtl-optimization/59890
27182         * var-tracking.c (local_get_addr_clear_given_value): Handle
27183         already cleared slot.
27184         (val_reset): Handle not allocated local_get_addr_cache.
27185         (vt_find_locations): Use post-order on the inverted CFG.
27187 2014-01-28  Alan Modra  <amodra@gmail.com>
27189         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
27190         * configure.ac <recursive call for build != host>: Define
27191         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
27192         and LD_FOR_BUILD too.
27193         * configure: Regenerate.
27195 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
27197         * config/i386/i386.c (get_builtin_code_for_version): Separate
27198         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
27199         Broadwell from Haswell.
27201 2014-01-27  Steve Ellcey  <sellcey@mips.com>
27203         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27204         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
27205         * config/mips/mips.c (mips_option_override): Change setting
27206         of TARGET_DSP.
27207         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
27208         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
27209         Change from Mask to Var.
27211 2014-01-27  Jeff Law  <law@redhat.com>
27213         * ipa-inline.c (inline_small_functions): Fix typo.
27215 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
27217         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
27218         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
27219         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
27220         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
27221         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
27222         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
27223         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
27224         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
27225         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
27226         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
27227         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
27228         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
27229         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
27230         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
27231         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
27232         (_mm512_storeu_epi64): Ditto.
27233         (_mm512_cmpge_epi32_mask): Ditto.
27234         (_mm512_cmpge_epu32_mask): Ditto.
27235         (_mm512_cmpge_epi64_mask): Ditto.
27236         (_mm512_cmpge_epu64_mask): Ditto.
27237         (_mm512_cmple_epi32_mask): Ditto.
27238         (_mm512_cmple_epu32_mask): Ditto.
27239         (_mm512_cmple_epi64_mask): Ditto.
27240         (_mm512_cmple_epu64_mask): Ditto.
27241         (_mm512_cmplt_epi32_mask): Ditto.
27242         (_mm512_cmplt_epu32_mask): Ditto.
27243         (_mm512_cmplt_epi64_mask): Ditto.
27244         (_mm512_cmplt_epu64_mask): Ditto.
27245         (_mm512_cmpneq_epi32_mask): Ditto.
27246         (_mm512_cmpneq_epu32_mask): Ditto.
27247         (_mm512_cmpneq_epi64_mask): Ditto.
27248         (_mm512_cmpneq_epu64_mask): Ditto.
27249         (_mm512_expand_pd): Ditto.
27250         (_mm512_expand_ps): Ditto.
27251         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
27252         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
27253         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
27254         * config/i386/i386.c (ix86_builtins): Add
27255         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
27256         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
27257         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
27258         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
27259         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
27260         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
27261         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
27262         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
27263         IX86_BUILTIN_PMOVUSQW512_MEM.
27264         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
27265         __builtin_ia32_pmovsqd512mem_mask,
27266         __builtin_ia32_pmovqd512mem_mask,
27267         __builtin_ia32_pmovusqw512mem_mask,
27268         __builtin_ia32_pmovsqw512mem_mask,
27269         __builtin_ia32_pmovqw512mem_mask,
27270         __builtin_ia32_pmovusdw512mem_mask,
27271         __builtin_ia32_pmovsdw512mem_mask,
27272         __builtin_ia32_pmovdw512mem_mask,
27273         __builtin_ia32_pmovqb512mem_mask,
27274         __builtin_ia32_pmovusqb512mem_mask,
27275         __builtin_ia32_pmovsqb512mem_mask,
27276         __builtin_ia32_pmovusdb512mem_mask,
27277         __builtin_ia32_pmovsdb512mem_mask,
27278         __builtin_ia32_pmovdb512mem_mask.
27279         (bdesc_args): Add __builtin_ia32_expanddf512,
27280         __builtin_ia32_expandsf512.
27281         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
27282         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
27283         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
27284         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
27285         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
27286         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
27287         (avx512f_<code>v8div16qi2_mask_store): This.
27288         (avx512f_expand<mode>): New.
27290 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
27292         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
27293         New.
27294         (_mm512_mask_prefetch_i64gather_pd): Ditto.
27295         (_mm512_prefetch_i32scatter_pd): Ditto.
27296         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
27297         (_mm512_prefetch_i64scatter_pd): Ditto.
27298         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
27299         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
27300         (_mm512_mask_prefetch_i64gather_ps): Ditto.
27301         (_mm512_prefetch_i32scatter_ps): Ditto.
27302         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
27303         (_mm512_prefetch_i64scatter_ps): Ditto.
27304         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
27305         * config/i386/i386-builtin-types.def: Define
27306         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
27307         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
27308         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
27309         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
27310         IX86_BUILTIN_SCATTERPFQPD.
27311         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
27312         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
27313         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
27314         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
27315         __builtin_ia32_scatterpfqps.
27316         (ix86_expand_builtin): Expand new built-ins.
27317         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
27318         fix memory access data type.
27319         (*avx512pf_gatherpf<mode>_mask): Ditto.
27320         (*avx512pf_gatherpf<mode>): Ditto.
27321         (avx512pf_scatterpf<mode>): Ditto.
27322         (*avx512pf_scatterpf<mode>_mask): Ditto.
27323         (*avx512pf_scatterpf<mode>): Ditto.
27324         (GATHER_SCATTER_SF_MEM_MODE): New.
27325         (avx512pf_gatherpf<mode>df): Ditto.
27326         (*avx512pf_gatherpf<mode>df_mask): Ditto.
27327         (*avx512pf_scatterpf<mode>df): Ditto.
27329 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
27331         PR bootstrap/59934
27332         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
27333         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
27334         reached.
27336 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
27338         * common/config/arm/arm-common.c
27339         (arm_rewrite_mcpu): Handle multiple names.
27340         * config/arm/arm.h
27341         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
27343 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
27345         * gimple-builder.h (create_gimple_tmp): Delete.
27347 2014-01-27  Christian Bruel  <christian.bruel@st.com>
27349         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
27350         words comparisons.
27352 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
27354         * config/pa/pa.md (call): Generate indirect long calls to non-local
27355         functions when outputing 32-bit code.
27356         (call_value): Likewise except for special call to buggy powf function.
27358         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
27359         portable runtime and PIC indirect calls.
27360         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
27361         and PIC call sequences.  Use ldo instead of blr to set return register
27362         in PIC call sequence.
27364 2014-01-25  Walter Lee  <walt@tilera.com>
27366         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
27367         avoid clobbering a live register.
27369 2014-01-25  Walter Lee  <walt@tilera.com>
27371         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
27372         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
27373         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
27374         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
27376 2014-01-25  Walter Lee  <walt@tilera.com>
27378         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
27379         arguments on even registers.
27380         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
27381         STACK_BOUNDARY.
27382         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
27383         (BIGGEST_ALIGNMENT): Ditto.
27384         (BIGGEST_FIELD_ALIGNMENT): Ditto.
27386 2014-01-25  Walter Lee  <walt@tilera.com>
27388         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
27389         insns before bundling.
27390         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
27392 2014-01-25  Walter Lee  <walt@tilera.com>
27394         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
27395         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
27396         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
27398 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
27400         * config/mips/constraints.md (kl): Delete.
27401         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
27402         define expands, using...
27403         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
27404         instructions for MIPS16.
27405         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
27406         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
27408 2014-01-25  Walter Lee  <walt@tilera.com>
27410         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
27411         (clzdi2): Ditto.
27412         (ffsdi2): Ditto.
27414 2014-01-25  Walter Lee  <walt@tilera.com>
27416         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
27417         (TARGET_EXPAND_TO_RTL_HOOK): Define.
27419 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
27421         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
27422         Handle XOR.
27424 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
27426         * print-rtl.c (in_call_function_usage): New var.
27427         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
27428         EXPR_LIST mode as mode and not as reg note name.
27430         PR middle-end/59561
27431         * cfgloopmanip.c (copy_loop_info): If
27432         loop->warned_aggressive_loop_optimizations, make sure
27433         the flag is set in target loop too.
27435 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
27437         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
27438         flag_cilkplus.
27439         * builtins.def: Likewise.
27440         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
27441         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
27442         * ira.c (ira_setup_eliminable_regset): Likewise.
27443         * omp-low.c (gate_expand_omp): Likewise.
27444         (execute_lower_omp): Likewise.
27445         (diagnose_sb_0): Likewise.
27446         (gate_diagnose_omp_blocks): Likewise.
27447         (simd_clone_clauses_extract): Likewise.
27448         (gate): Likewise.
27450 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27452         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
27453         correction for little endian...
27454         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
27455         here.
27457 2014-01-24  Jeff Law  <law@redhat.com>
27459         PR tree-optimization/59919
27460         * tree-vrp.c (find_assert_locations_1): Do not register asserts
27461         for non-returning calls.
27463 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
27465         * common/config/aarch64/aarch64-common.c
27466         (aarch64_rewrite_mcpu): Handle multiple names.
27467         * config/aarch64/aarch64.h
27468         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
27470 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
27472         * input.c (add_file_to_cache_tab): Handle the case where fopen
27473         returns NULL.
27475 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27477         PR target/59929
27478         * config/i386/i386.md (pushsf splitter): Get stack adjustment
27479         from push operand if code of push isn't PRE_DEC.
27481 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
27483         PR target/59909
27484         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
27485         -mquad-memory-atomic.  Update -mquad-memory documentation to say
27486         it is only used for non-atomic loads/stores.
27488         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
27489         -mquad-memory or -mquad-memory-atomic switches.
27491         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
27492         -mquad-memory-atomic to ISA 2.07 support.
27494         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
27495         to separate support of normal quad word memory operations (ldq, stq)
27496         from the atomic quad word memory operations.
27498         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
27499         support to separate non-atomic quad word operations from atomic
27500         quad word operations.  Disable non-atomic quad word operations in
27501         little endian mode so that we don't have to swap words after the
27502         load and before the store.
27503         (quad_load_store_p): Add comment about atomic quad word support.
27504         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
27505         options printed with -mdebug=reg.
27507         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
27508         -mquad-memory-atomic as the test for whether we have quad word
27509         atomic instructions.
27510         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
27511         or -mp8-vector are used, allow byte/half-word atomic operations.
27513         * config/rs6000/sync.md (load_lockedti): Insure that the address
27514         is a proper indexed or indirect address for the lqarx instruction.
27515         On little endian systems, swap the hi/lo registers after the lqarx
27516         instruction.
27517         (load_lockedpti): Use indexed_or_indirect_operand predicate to
27518         insure the address is valid for the lqarx instruction.
27519         (store_conditionalti): Insure that the address is a proper indexed
27520         or indirect address for the stqcrx. instruction.  On little endian
27521         systems, swap the hi/lo registers before doing the stqcrx.
27522         instruction.
27523         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
27524         insure the address is valid for the stqcrx. instruction.
27526         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
27527         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
27528         type of quad memory support is available.
27530 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
27532         PR regression/59915
27533         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
27534         there is a danger of looping.
27536 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
27538         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27539         force flag_ira_loop_pressure if set via command line.
27541 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
27543         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
27544         (ashr_simd): New builtin handling DI mode.
27545         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
27546         (aarch64_sshr_simddi): New match pattern.
27547         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
27548         (vshrd_n_s64): Likewise.
27549         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
27551 2014-01-23  Nick Clifton  <nickc@redhat.com>
27553         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
27554         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
27555         favour of mcu specific scripts.
27556         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
27557         430x multilibs.
27559 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
27560             Alex Velenko  <Alex.Velenko@arm.com>
27562         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
27563         (vaddv_s16): Likewise.
27564         (vaddv_s32): Likewise.
27565         (vaddv_u8): Likewise.
27566         (vaddv_u16): Likewise.
27567         (vaddv_u32): Likewise.
27568         (vaddvq_s8): Likewise.
27569         (vaddvq_s16): Likewise.
27570         (vaddvq_s32): Likewise.
27571         (vaddvq_s64): Likewise.
27572         (vaddvq_u8): Likewise.
27573         (vaddvq_u16): Likewise.
27574         (vaddvq_u32): Likewise.
27575         (vaddvq_u64): Likewise.
27576         (vaddv_f32): Likewise.
27577         (vaddvq_f32): Likewise.
27578         (vaddvq_f64): Likewise.
27579         (vmaxv_f32): Likewise.
27580         (vmaxv_s8): Likewise.
27581         (vmaxv_s16): Likewise.
27582         (vmaxv_s32): Likewise.
27583         (vmaxv_u8): Likewise.
27584         (vmaxv_u16): Likewise.
27585         (vmaxv_u32): Likewise.
27586         (vmaxvq_f32): Likewise.
27587         (vmaxvq_f64): Likewise.
27588         (vmaxvq_s8): Likewise.
27589         (vmaxvq_s16): Likewise.
27590         (vmaxvq_s32): Likewise.
27591         (vmaxvq_u8): Likewise.
27592         (vmaxvq_u16): Likewise.
27593         (vmaxvq_u32): Likewise.
27594         (vmaxnmv_f32): Likewise.
27595         (vmaxnmvq_f32): Likewise.
27596         (vmaxnmvq_f64): Likewise.
27597         (vminv_f32): Likewise.
27598         (vminv_s8): Likewise.
27599         (vminv_s16): Likewise.
27600         (vminv_s32): Likewise.
27601         (vminv_u8): Likewise.
27602         (vminv_u16): Likewise.
27603         (vminv_u32): Likewise.
27604         (vminvq_f32): Likewise.
27605         (vminvq_f64): Likewise.
27606         (vminvq_s8): Likewise.
27607         (vminvq_s16): Likewise.
27608         (vminvq_s32): Likewise.
27609         (vminvq_u8): Likewise.
27610         (vminvq_u16): Likewise.
27611         (vminvq_u32): Likewise.
27612         (vminnmv_f32): Likewise.
27613         (vminnmvq_f32): Likewise.
27614         (vminnmvq_f64): Likewise.
27616 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
27618         * config/aarch64/aarch64-simd.md
27619         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
27620         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
27621         (*aarch64_mul3_elt<mode>): Likewise.
27622         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
27623         (*aarch64_mul3_elt_to_64v2df): Likewise.
27624         (*aarch64_mla_elt<mode>): Likewise.
27625         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
27626         (*aarch64_mls_elt<mode>): Likewise.
27627         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
27628         (*aarch64_fma4_elt<mode>): Likewise.
27629         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
27630         (*aarch64_fma4_elt_to_64v2df): Likewise.
27631         (*aarch64_fnma4_elt<mode>): Likewise.
27632         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
27633         (*aarch64_fnma4_elt_to_64v2df): Likewise.
27634         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
27635         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
27636         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
27637         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
27638         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
27639         (aarch64_sqdmull_lane<mode>_internal): Likewise.
27640         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
27642 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
27644         * config/aarch64/aarch64-simd.md
27645         (aarch64_be_checked_get_lane<mode>): New define_expand.
27646         * config/aarch64/aarch64-simd-builtins.def
27647         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
27648         New builtin definition.
27649         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
27650         Use new safe be builtin.
27652 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
27654         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
27655         New define_insn.
27656         (aarch64_be_st1<mode>): Likewise.
27657         (aarch_ld1<VALL:mode>): Define_expand modified.
27658         (aarch_st1<VALL:mode>): Likewise.
27659         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
27660         (UNSPEC_ST1): Likewise.
27662 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
27664         * config/microblaze/microblaze.md: Add trap insn and attribute
27666 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
27668         PR preprocessor/58580
27669         * input.h (location_get_source_line): Take an additional line_size
27670         parameter.
27671         (void diagnostics_file_cache_fini): Declare new function.
27672         * input.c (struct fcache): New type.
27673         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
27674         New static constants.
27675         (diagnostic_file_cache_init, total_lines_num)
27676         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
27677         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
27678         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
27679         (get_next_line, read_next_line, goto_next_line, read_line_num):
27680         New static function definitions.
27681         (diagnostic_file_cache_fini): New function.
27682         (location_get_source_line): Take an additional output line_len
27683         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
27684         read_line_num.
27685         * diagnostic.c (diagnostic_finish): Call
27686         diagnostic_file_cache_fini.
27687         (adjust_line): Take an additional input parameter for the length
27688         of the line, rather than calculating it with strlen.
27689         (diagnostic_show_locus): Adjust the use of
27690         location_get_source_line and adjust_line with respect to their new
27691         signature.  While displaying a line now, do not stop at the first
27692         null byte.  Rather, display the zero byte as a space and keep
27693         going until we reach the size of the line.
27694         * Makefile.in: Add vec.o to OBJS-libcommon
27696 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
27697             Ilya Tocar  <ilya.tocar@intel.com>
27699         * config/i386/avx512fintrin.h (_mm512_kmov): New.
27700         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
27701         (__builtin_ia32_kmov16): Ditto.
27702         * config/i386/i386.md (UNSPEC_KMOV): New.
27703         (kmovw): Ditto.
27705 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
27707         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
27708         (_mm512_storeu_si512): Ditto.
27710 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
27712         PR target/52125
27713         * rtl.h (get_referenced_operands): Declare.
27714         * recog.c (get_referenced_operands): New function.
27715         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
27716         operands have been referenced when recording LO_SUM references.
27718 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
27720         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
27722 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
27724         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
27725         Enable for generic and recent AMD targets.
27727 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
27729         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
27730         ARG_SIZE note when adjustment was eliminated.
27732 2014-01-22  Jeff Law  <law@redhat.com>
27734         PR tree-optimization/59597
27735         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
27736         in file.  Accept new argument REGISTERING and use it to modify
27737         dump output appropriately.
27738         (register_jump_thread): Corresponding changes.
27739         (mark_threaded_blocks): Reinstate code to cancel unprofitable
27740         thread paths involving joiner blocks.  Add code to dump cancelled
27741         jump threading paths.
27743 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
27745         PR rtl-optimization/59477
27746         * lra-constraints.c (inherit_in_ebb): Process call for living hard
27747         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
27749 2014-01-22  Tom Tromey  <tromey@redhat.com>
27751         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
27752         PARAMS.
27753         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
27755 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27757         PR rtl-optimization/59896
27758         * lra-constraints.c (process_alt_operands): Check unused note for
27759         matched operands of insn with no output reloads.
27761 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
27763         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
27764         (mips_move_from_gpr_cost): Likewise.
27766 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27768         PR rtl-optimization/59858
27769         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
27770         ira_class_hard_regs_num.
27771         (process_alt_operands): Increase reject for dying matched operand.
27773 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
27775         PR target/59003
27776         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
27777         smaller than size, perform several stores or loads and stores
27778         at dst + count - size to store or copy all of size bytes, rather
27779         than just last modesize bytes.
27781 2014-01-20  DJ Delorie  <dj@redhat.com>
27783         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
27784         that CLOBBERs are REGs before propogating their values.
27786 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
27788         PR middle-end/59789
27789         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
27790         (cgraph_inline_failed_type): New function.
27791         * cgraph.h (DEFCIFCODE): Add type.
27792         (cgraph_inline_failed_type_t): New enum.
27793         (cgraph_inline_failed_type): New prototype.
27794         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
27795         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27796         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
27797         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
27798         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
27799         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
27800         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
27801         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
27802         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
27803         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
27804         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
27805         OPTIMIZATION_MISMATCH.
27806         * tree-inline.c (expand_call_inline): Emit errors during
27807         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
27809 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
27811         PR target/59685
27812         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
27813         mode attribute in insn output.
27815 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
27817         * output.h (output_constant): Delete.
27818         * varasm.c (output_constant): Make private.
27820 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
27822         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
27824 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
27826         PR middle-end/59860
27827         * tree.h (fold_builtin_strcat): New prototype.
27828         * builtins.c (fold_builtin_strcat): No longer static.  Add len
27829         argument, if non-NULL, don't call c_strlen.  Optimize
27830         directly into __builtin_memcpy instead of __builtin_strcpy.
27831         (fold_builtin_2): Adjust fold_builtin_strcat caller.
27832         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
27834 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
27836         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27837         for SImode_address_operand operands, having only a REG argument.
27839 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27841         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
27842         loader name using mbig-endian.
27843         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
27845 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
27847         * doc/invoke.texi (-march): Clarify documentation for AArch64.
27848         (-mtune): Likewise.
27849         (-mcpu): Likewise.
27851 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
27853         * config/aarch64/aarch64-protos.h
27854         (aarch64_cannot_change_mode_class_ptr): Declare.
27855         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
27856         aarch64_cannot_change_mode_class_ptr): New.
27857         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
27858         backend hook aarch64_cannot_change_mode_class.
27860 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
27862         * common/config/aarch64/aarch64-common.c
27863         (aarch64_handle_option): Don't handle any option order logic here.
27864         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
27865         selected_cpu, warn on architecture version mismatch.
27866         (aarch64_override_options): Fix parsing order for option strings.
27868 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27869             Iain Sandoe  <iain@codesourcery.com>
27871         PR bootstrap/59496
27872         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
27873         warning.  Amend comment to reflect current functionality.
27875 2014-01-20  Richard Biener  <rguenther@suse.de>
27877         PR middle-end/59860
27878         * builtins.c (fold_builtin_strcat): Remove case better handled
27879         by tree-ssa-strlen.c.
27881 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
27883         * config/aarch64/aarch64.opt
27884         (mcpu, march, mtune): Make case-insensitive.
27886 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
27888         PR target/59880
27889         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27890         if operands[1] is a REG or ZERO_EXTEND of a REG.
27892 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
27894         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
27896 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
27898         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
27899         long non-pic millicode calls.
27901 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27903         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
27905 2014-01-19  Kito Cheng  <kito@0xlab.org>
27907         * builtins.c (expand_movstr): Check movstr expand done or fail.
27909 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
27910             H.J. Lu  <hongjiu.lu@intel.com>
27912         PR target/59379
27913         * config/i386/i386.md (*lea<mode>): Zero-extend return register
27914         to DImode for zero-extended addresses.
27916 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
27918         PR rtl-optimization/57763
27919         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
27920         on the new indirect jump_insn and increment LABEL_NUSES (label).
27922 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
27924         PR bootstrap/59580
27925         PR bootstrap/59583
27926         * config.gcc (x86_archs): New variable.
27927         (x86_64_archs): Likewise.
27928         (x86_cpus): Likewise.
27929         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
27930         --with-arch/--with-cpu= options.
27931         Support --with-arch=/--with-cpu={nehalem,westmere,
27932         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
27934 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
27936         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
27937         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
27939 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
27941         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
27943 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
27945         PR target/58944
27946         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
27947         clear cpp_get_options (parse_in)->warn_unused_macros for
27948         ix86_target_macros_internal with cpp_define.
27950 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
27952         * jump.c (delete_related_insns): Keep (use (insn))s.
27953         * reorg.c (redundant_insn): Check for barriers too.
27955 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
27957         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
27959 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
27961         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
27962         call to $$dyncall when TARGET_LONG_CALLS is true.
27964 2014-01-17  Jeff Law  <law@redhat.com>
27966         * ree.c (combine_set_extension): Temporarily disable test for
27967         changing number of hard registers.
27969 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
27971         PR middle-end/58125
27972         * ipa-inline-analysis.c (inline_free_summary):
27973         Do not free summary of aliases.
27975 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
27977         PR middle-end/59706
27978         * gimplify.c (gimplify_expr): Use create_tmp_var
27979         instead of create_tmp_var_raw.  If cond doesn't have
27980         integral type, don't add the IFN_ANNOTATE builtin at all.
27982 2014-01-17  Martin Jambor  <mjambor@suse.cz>
27984         PR ipa/59736
27985         * ipa-cp.c (prev_edge_clone): New variable.
27986         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
27987         Also resize prev_edge_clone vector.
27988         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
27989         (ipcp_edge_removal_hook): New function.
27990         (ipcp_driver): Register ipcp_edge_removal_hook.
27992 2014-01-17  Andrew Pinski  <apinski@cavium.com>
27993             Steve Ellcey  <sellcey@mips.com>
27995         PR target/59462
27996         * config/mips/mips.c (mips_print_operand): Check operand mode instead
27997         of operator mode.
27999 2014-01-17  Jeff Law  <law@redhat.com>
28001         PR middle-end/57904
28002         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
28003         so that pass_ccp runs first.
28005 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
28007         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
28008         (ix86_adjust_cost): Use !TARGET_XXX.
28009         (do_reorder_for_imul): Likewise.
28010         (swap_top_of_ready_list): Likewise.
28011         (ix86_sched_reorder): Likewise.
28013 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
28015         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28016         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
28017         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
28018         (intel_memset): New.  Duplicate slm_memset.
28019         (intel_cost): New.  Duplicate slm_cost.
28020         (m_INTEL): New macro.
28021         (processor_target_table): Add "intel".
28022         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
28023         with PROCESSOR_INTEL for "intel".
28024         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
28025         PROCESSOR_SILVERMONT.
28026         (ix86_issue_rate): Likewise.
28027         (ix86_adjust_cost): Likewise.
28028         (ia32_multipass_dfa_lookahead): Likewise.
28029         (swap_top_of_ready_list): Likewise.
28030         (ix86_sched_reorder): Likewise.
28031         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
28032         instead of TARGET_OPT_AGU.
28033         * config/i386/i386.h (TARGET_INTEL): New.
28034         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
28035         (processor_type): Add PROCESSOR_INTEL.
28036         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
28037         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
28039 2014-01-17  Marek Polacek  <polacek@redhat.com>
28041         PR c/58346
28042         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
28043         size is zero.
28045 2014-01-17  Richard Biener  <rguenther@suse.de>
28047         PR tree-optimization/46590
28048         * opts.c (default_options_table): Add entries for
28049         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
28050         all enabled at -O1 but not for -Og.
28051         * common.opt (fbranch-count-reg): Remove Init(1).
28052         (fmove-loop-invariants): Likewise.
28053         (ftree-pta): Likewise.
28055 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
28057         * config/i386/i386.c (ix86_data_alignment): For compatibility with
28058         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
28059         decls to at least the GCC 4.8 used alignments.
28061         PR fortran/59440
28062         * tree-nested.c (convert_nonlocal_reference_stmt,
28063         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
28064         of GIMPLE_BIND stmts, adjust associated decls.
28066 2014-01-17  Richard Biener  <rguenther@suse.de>
28068         PR tree-optimization/46590
28069         * vec.h (vec<>::bseach): New member function implementing
28070         binary search according to C89 bsearch.
28071         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
28072         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
28073         bitmap pointer again.  Make accesses_in_loop a flat array.
28074         (mem_ref_obstack): New global.
28075         (outermost_indep_loop): Adjust for mem_ref->stored changes.
28076         (mark_ref_stored): Likewise.
28077         (ref_indep_loop_p_2): Likewise.
28078         (set_ref_stored_in_loop): New helper function.
28079         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
28080         (memref_free): Adjust.
28081         (record_mem_ref_loc): Simplify.
28082         (gather_mem_refs_stmt): Adjust.
28083         (sort_locs_in_loop_postorder_cmp): New function.
28084         (analyze_memory_references): Sort accesses_in_loop after
28085         loop postorder number.
28086         (find_ref_loc_in_loop_cmp): New function.
28087         (for_all_locs_in_loop): Find relevant cluster of locs in
28088         accesses_in_loop and iterate without recursion.
28089         (execute_sm): Avoid uninit warning.
28090         (struct ref_always_accessed): Simplify.
28091         (ref_always_accessed::operator ()): Likewise.
28092         (ref_always_accessed_p): Likewise.
28093         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
28094         loop postorder numbers here.
28095         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
28096         numbers.
28098 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
28100         PR c++/57945
28101         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
28102         on decls for which assemble_alias has been called.
28104 2014-01-17  Nick Clifton  <nickc@redhat.com>
28106         * config/msp430/msp430.opt: (mcpu): New option.
28107         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
28108         (msp430_option_override): Parse target_cpu.  If the MCU name
28109         matches a generic string, clear target_mcu.
28110         (msp430_attr): Allow numeric interrupt values up to 63.
28111         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
28112         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
28113         option.
28114         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
28115         Add mcpu matches.
28116         * config/msp430/msp430.md (popm): Use %J rather than %I.
28117         (addsi3): Use msp430_nonimmediate_operand for operand 2.
28118         (addhi_cy_i): Use immediate_operand for operand 2.
28119         * doc/invoke.texi: Document -mcpu option.
28121 2014-01-17  Richard Biener  <rguenther@suse.de>
28123         PR rtl-optimization/38518
28124         * df.h (df_analyze_loop): Declare.
28125         * df-core.c: Include cfgloop.h.
28126         (df_analyze_1): Split out main part of df_analyze.
28127         (df_analyze): Adjust.
28128         (loop_inverted_post_order_compute): New function.
28129         (loop_post_order_compute): Likewise.
28130         (df_analyze_loop): New function avoiding whole-function
28131         postorder computes.
28132         * loop-invariant.c (find_defs): Use df_analyze_loop.
28133         (find_invariants): Adjust.
28134         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
28136 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
28138         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
28139         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
28141 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
28143         * ipa-ref.c (ipa_remove_stmt_references): Fix references
28144         traversal when removing references.
28146 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
28148         PR ipa/59775
28149         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
28151 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
28153         PR middle-end/56791
28154         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
28155         pushing a reload for an autoinc when we had previously reloaded an
28156         inner part of the address.
28158 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
28160         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
28161         field.
28162         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
28163         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
28164         when not giving up or versioning for alias only because of
28165         loop->safelen.
28166         (vect_analyze_data_ref_dependences): Set to true.
28167         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
28168         is a GIMPLE_PHI.
28169         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
28170         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
28171         to the condition.
28173         PR middle-end/58344
28174         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
28176         PR target/59839
28177         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
28178         operand 0 predicate for gathers, use a new pseudo as subtarget.
28180 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
28182         PR middle-end/59609
28183         * lra-constraints.c (process_alt_operands): Add printing debug info.
28184         Check absence of input/output reloads for matched operands too.
28186 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
28188         PR rtl-optimization/59835
28189         * ira.c (ira_init_register_move_cost): Increase cost for
28190         impossible modes.
28192 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
28194         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
28196 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
28198         PR target/59780
28199         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
28200         non-register objects.  Use gen_(high/low)part more consistently.
28201         Fix assertions.
28203 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
28205         PR target/59844
28206         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
28207         endian support, remove tests for WORDS_BIG_ENDIAN.
28208         (p8_mfvsrd_3_<mode>): Likewise.
28209         (reload_gpr_from_vsx<mode>): Likewise.
28210         (reload_gpr_from_vsxsf): Likewise.
28211         (p8_mfvsrd_4_disf): Likewise.
28213 2014-01-16  Richard Biener  <rguenther@suse.de>
28215         PR rtl-optimization/46590
28216         * lcm.c (compute_antinout_edge): Use postorder iteration.
28217         (compute_laterin): Use inverted postorder iteration.
28219 2014-01-16  Nick Clifton  <nickc@redhat.com>
28221         PR middle-end/28865
28222         * varasm.c (output_constant): Return the number of bytes actually
28223         emitted.
28224         (output_constructor_array_range): Update the field size with the
28225         number of bytes emitted by output_constant.
28226         (output_constructor_regular_field): Likewise.  Also do not
28227         complain if the total number of bytes emitted is now greater
28228         than the expected fieldpos.
28229         * output.h (output_constant): Update prototype and descriptive comment.
28231 2014-01-16  Marek Polacek  <polacek@redhat.com>
28233         PR middle-end/59827
28234         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
28235         it is error_mark_node.
28237 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
28239         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
28240         VALID_AVX256_REG_OR_OI_MODE.
28242 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
28244         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
28245         current procedure should be profiled.
28247 2014-01-15  Andrew Pinski  <apinski@cavium.com>
28249         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
28250         of moving from/to the STACK_REG register class.
28252 2014-01-15  Richard Henderson  <rth@redhat.com>
28254         PR debug/54694
28255         * reginfo.c (global_regs_decl): Globalize.
28256         * rtl.h (global_regs_decl): Declare.
28257         * ira.c (do_reload): Diagnose frame_pointer_needed and it
28258         reserved via global_regs.
28260 2014-01-15  Teresa Johnson  <tejohnson@google.com>
28262         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
28264 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
28266         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
28267         and vmulosh rather than call gen_vec_widen_smult_*.
28268         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
28269         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
28270         (vec_widen_smult_even_v16qi): Likewise.
28271         (vec_widen_umult_even_v8hi): Likewise.
28272         (vec_widen_smult_even_v8hi): Likewise.
28273         (vec_widen_umult_odd_v16qi): Likewise.
28274         (vec_widen_smult_odd_v16qi): Likewise.
28275         (vec_widen_umult_odd_v8hi): Likewise.
28276         (vec_widen_smult_odd_v8hi): Likewise.
28277         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
28278         vmuloub rather than call gen_vec_widen_umult_*.
28279         (vec_widen_umult_lo_v16qi): Likewise.
28280         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
28281         vmulosb rather than call gen_vec_widen_smult_*.
28282         (vec_widen_smult_lo_v16qi): Likewise.
28283         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
28284         rather than call gen_vec_widen_umult_*.
28285         (vec_widen_umult_lo_v8hi): Likewise.
28286         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
28287         rather than call gen_vec_widen_smult_*.
28288         (vec_widen_smult_lo_v8hi): Likewise.
28290 2014-01-15  Jeff Law  <law@redhat.com>
28292         PR tree-optimization/59747
28293         * ree.c (find_and_remove_re): Properly handle case where a second
28294         eliminated extension requires widening a copy created for elimination
28295         of a prior extension.
28296         (combine_set_extension): Ensure that the number of hard regs needed
28297         for a destination register does not change when we widen it.
28299 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28301         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
28302         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
28303         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
28304         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
28305         (avr-*-rtems*): Likewise.
28306         (bfin*-rtems*): Likewise.
28307         (moxie-*-rtems*): Likewise.
28308         (h8300-*-rtems*): Likewise.
28309         (i[34567]86-*-rtems*): Likewise.
28310         (lm32-*-rtems*): Likewise.
28311         (m32r-*-rtems*): Likewise.
28312         (m68k-*-rtems*): Likewise.
28313         (microblaze*-*-rtems*): Likewise.
28314         (mips*-*-rtems*): Likewise.
28315         (powerpc-*-rtems*): Likewise.
28316         (sh-*-rtems*): Likewise.
28317         (sparc-*-rtems*): Likewise.
28318         (sparc64-*-rtems*): Likewise.
28319         (v850-*-rtems*): Likewise.
28320         (m32c-*-rtems*): Likewise.
28322 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
28324         PR rtl-optimization/59511
28325         * ira.c (ira_init_register_move_cost): Use memory costs for some
28326         cases of register move cost calculations.
28327         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
28328         instead of BB frequency.
28329         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
28330         * lra-assigns.c (find_hard_regno_for): Ditto.
28332 2014-01-15  Richard Biener  <rguenther@suse.de>
28334         PR tree-optimization/59822
28335         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
28336         (vectorizable_load): Use it to hoist defs of uses of invariant
28337         loads out of the loop.
28339 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
28340             Kugan Vivekanandarajah  <kuganv@linaro.org>
28342         PR target/59695
28343         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
28344         truncation.
28346 2014-01-15  Richard Biener  <rguenther@suse.de>
28348         PR rtl-optimization/59802
28349         * lcm.c (compute_available): Use inverted postorder to seed
28350         the initial worklist.
28352 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28354         PR target/59803
28355         * config/s390/s390.c (s390_preferred_reload_class): Don't return
28356         ADDR_REGS for invalid symrefs in non-PIC code.
28358 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
28360         PR other/58712
28361         * builtins.c (determine_block_size): Initialize *probable_max_size
28362         even if len_rtx is CONST_INT.
28364 2014-01-14  Andrew Pinski  <apinski@cavium.com>
28366         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
28367         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
28368         (cortexa53_tunings): Likewise.
28369         (aarch64_sched_issue_rate): New function.
28370         (TARGET_SCHED_ISSUE_RATE): Define.
28372 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
28374         * ira-costs.c (find_costs_and_classes): Add missed
28375         ira_init_register_move_cost_if_necessary.
28377 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
28379         PR target/59787
28380         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
28382 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
28384         PR target/59794
28385         * config/i386/i386.c (type_natural_mode): Add a bool parameter
28386         to indicate if type is used for function return value.  Warn ABI
28387         change if the vector mode isn't available for function return value.
28388         (ix86_function_arg_advance): Pass false to type_natural_mode.
28389         (ix86_function_arg): Likewise.
28390         (ix86_gimplify_va_arg): Likewise.
28391         (function_arg_32): Don't warn ABI change.
28392         (ix86_function_value): Pass true to type_natural_mode.
28393         (ix86_return_in_memory): Likewise.
28394         (ix86_struct_value_rtx): Removed.
28395         (TARGET_STRUCT_VALUE_RTX): Likewise.
28397 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28399         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
28400         converting a conditional jump into a conditional return.
28402 2014-01-14  Richard Biener  <rguenther@suse.de>
28404         PR tree-optimization/58921
28405         PR tree-optimization/59006
28406         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
28407         hoisting invariant stmts.
28408         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
28409         invariant loads on the preheader edge if possible.
28411 2014-01-14  Joey Ye  <joey.ye@arm.com>
28413         * doc/plugin.texi (Building GCC plugins): Update to C++.
28415 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
28417         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
28418         (_mm_rcp28_round_ss): Ditto.
28419         (_mm_rsqrt28_round_sd): Ditto.
28420         (_mm_rsqrt28_round_ss): Ditto.
28421         (_mm_rcp28_sd): Ditto.
28422         (_mm_rcp28_ss): Ditto.
28423         (_mm_rsqrt28_sd): Ditto.
28424         (_mm_rsqrt28_ss): Ditto.
28425         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
28426         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
28427         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
28428         (IX86_BUILTIN_RCP28SD): Ditto.
28429         (IX86_BUILTIN_RCP28SS): Ditto.
28430         (IX86_BUILTIN_RSQRT28SD): Ditto.
28431         (IX86_BUILTIN_RSQRT28SS): Ditto.
28432         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
28433         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
28434         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
28435         (ix86_expand_special_args_builtin): Expand new FTYPE.
28436         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
28437         (srcp14<mode>): Make insn unary.
28438         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
28439         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
28440         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
28441         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
28442         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
28443         Fix rounding: make it SAE only.
28444         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
28445         Ditto.
28446         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
28447         Ditto.
28448         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
28449         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
28450         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
28451         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
28452         (round_saeonly_mask_scalar_operand4): Ditto.
28453         (round_saeonly_mask_scalar_op3): Ditto.
28454         (round_saeonly_mask_scalar_op4): Ditto.
28456 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28458         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28459         Implement -maltivec=be for vec_insert and vec_extract.
28461 2014-01-10  DJ Delorie  <dj@redhat.com>
28463         * config/msp430/msp430.md (call_internal): Don't allow memory
28464         references with SP as the base register.
28465         (call_value_internal): Likewise.
28466         * config/msp430/constraints.md (Yc): New.  For memory references
28467         that don't use SP as a base register.
28469         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
28470         "an integer without a # prefix"
28471         * config/msp430/msp430.md (epilogue_helper): Use it.
28473 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
28475         PR target/59617
28476         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
28477         AVX512F gather builtins.
28478         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
28479         on gather decls with INTEGER_TYPE masktype.
28480         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
28481         directly into the builtin rather than hoisting it before loop.
28483         PR tree-optimization/59387
28484         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
28485         (scev_const_prop): If folded_casts and type has undefined overflow,
28486         use force_gimple_operand instead of force_gimple_operand_gsi and
28487         for each added stmt if it is assign with
28488         arith_code_with_undefined_signed_overflow, call
28489         rewrite_to_defined_overflow.
28490         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
28491         gimple-fold.h instead.
28492         (arith_code_with_undefined_signed_overflow,
28493         rewrite_to_defined_overflow): Moved to ...
28494         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
28495         rewrite_to_defined_overflow): ... here.  No longer static.
28496         Include gimplify-me.h.
28497         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
28498         rewrite_to_defined_overflow): New prototypes.
28500 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28502         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
28504 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
28506         * builtins.c (get_object_alignment_2): Minor tweak.
28507         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
28509 2014-01-13  Christian Bruel  <christian.bruel@st.com>
28511         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
28512         optimized non constant lengths.
28514 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
28516         PR libgomp/59194
28517         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
28518         load as __atomic_load_N if possible.
28520 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
28522         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
28523         target parameter.
28524         (rs6000_expand_builtin): Adjust call.
28526 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
28528         PR target/58115
28529         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
28530         * config/rs6000/rs6000.c: Include target-globals.h.
28531         (rs6000_set_current_function): Instead of doing target_reinit
28532         unconditionally, use save_target_globals_default_opts and
28533         restore_target_globals.
28535         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
28536         FPSCR.
28537         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
28538         (rs6000_expand_builtin): Handle mffs and mtfsf.
28539         (rs6000_init_builtins): Define mffs and mtfsf.
28540         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
28541         (rs6000_mffs): New pattern.
28542         (rs6000_mtfsf): New pattern.
28544 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
28546         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
28547         Start narrowing with START.  Apply candidate-use pair
28548         and check overall cost in narrowing.
28549         (iv_ca_prune): Pass new argument.
28551 2014-01-10  Jeff Law  <law@redhat.com>
28553         PR middle-end/59743
28554         * ree.c (combine_reaching_defs): Ensure the defining statement
28555         occurs before the extension when optimizing extensions with
28556         different source and destination hard registers.
28558 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
28560         PR ipa/58585
28561         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
28562         vtables into the type inheritance graph.
28564 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
28566         PR rtl-optimization/59754
28567         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
28568         modes in the REGNO != REGNO case.
28570 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28572         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
28574 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
28576         PR tree-optimization/59745
28577         * tree-predcom.c (tree_predictive_commoning_loop): Call
28578         free_affine_expand_cache if giving up because components is NULL.
28580         * target-globals.c (save_target_globals): Allocate < 4KB structs using
28581         GC in payload of target_globals struct instead of allocating them on
28582         the heap and the larger structs separately using GC.
28583         * target-globals.h (struct target_globals): Make regs, hard_regs,
28584         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
28585         of GTY((skip)) and change type to void *.
28586         (reset_target_globals): Cast loads from those fields to corresponding
28587         types.
28589 2014-01-10  Steve Ellcey  <sellcey@mips.com>
28591         PR plugins/59335
28592         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
28593         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
28594         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
28596 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
28598         PR target/59744
28599         * aarch64-modes.def (CC_Zmode): New flags mode.
28600         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
28601         represents an equality.
28602         (aarch64_get_condition_code): Handle CC_Zmode.
28603         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
28605 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28607         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
28608         extraction in good case.
28610 2014-01-10  Richard Biener  <rguenther@suse.de>
28612         PR tree-optimization/59374
28613         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
28614         checking after SLP discovery.  Mark stmts not participating
28615         in any SLP instance properly.
28617 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28619         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
28620         when handling a SET rtx.
28622 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28624         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
28625         (cortex-a57): Likewise.
28626         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
28628 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28630         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
28631         non-iwmmxt builtins.
28633 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
28635         PR ipa/58252
28636         PR ipa/59226
28637         * ipa-devirt.c record_target_from_binfo): Take as argument
28638         stack of binfos and lookup matching one for virtual inheritance.
28639         (possible_polymorphic_call_targets_1): Update.
28641 2014-01-10  Huacai Chen  <chenhc@lemote.com>
28643         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
28644         kernel strings for Loongson-2E/2F/3A.
28646 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
28648         PR middle-end/59670
28649         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
28650         is_gimple_call before calling gimple_call_internal_p.
28652 2014-01-09  Steve Ellcey  <sellcey@mips.com>
28654         * Makefile.in (TREE_FLOW_H): Remove.
28655         (TREE_SSA_H): Add file names from tree-flow.h.
28656         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
28657         * tree.h: Remove tree-flow.h reference.
28658         * hash-table.h: Remove tree-flow.h reference.
28659         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
28660         reference with tree-ssa-loop.h.
28662 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28664         * doc/invoke.texi: Add -maltivec={be,le} options, and document
28665         default element-order behavior for -maltivec.
28666         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
28667         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
28668         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
28669         when targeting big endian, at least for now.
28670         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
28672 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
28674         PR middle-end/47735
28675         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
28676         var satisfies use_register_for_decl, just take into account type
28677         alignment, rather than decl alignment.
28679         PR tree-optimization/59622
28680         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
28681         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
28682         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
28683         Don't devirtualize for inplace at all.  For targets.length () == 1,
28684         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
28686 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
28688         * config/i386/i386.md (cpu): Remove the unused btver1.
28690 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
28692         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
28694 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
28696         PR target/58115
28697         * tree-core.h (struct target_globals): New forward declaration.
28698         (struct tree_target_option): Add globals field.
28699         * tree.h (TREE_TARGET_GLOBALS): Define.
28700         (prepare_target_option_nodes_for_pch): New prototype.
28701         * target-globals.h (struct target_globals): Define even if
28702         !SWITCHABLE_TARGET.
28703         * tree.c (prepare_target_option_node_for_pch,
28704         prepare_target_option_nodes_for_pch): New functions.
28705         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
28706         * config/i386/i386.c: Include target-globals.h.
28707         (ix86_set_current_function): Instead of doing target_reinit
28708         unconditionally, use save_target_globals_default_opts and
28709         restore_target_globals.
28711 2014-01-09  Richard Biener  <rguenther@suse.de>
28713         PR tree-optimization/59715
28714         * tree-cfg.h (split_critical_edges): Declare.
28715         * tree-cfg.c (split_critical_edges): Export.
28716         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
28718 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
28720         * cfgexpand.c (expand_stack_vars): Optionally disable
28721         asan stack protection.
28722         (expand_used_vars): Likewise.
28723         (partition_stack_vars): Likewise.
28724         * asan.c (asan_emit_stack_protection): Optionally disable
28725         after return stack usage.
28726         (instrument_derefs): Optionally disable memory access instrumentation.
28727         (instrument_builtin_call): Likewise.
28728         (instrument_strlen_call): Likewise.
28729         (asan_protect_global): Optionally disable global variables protection.
28730         * doc/invoke.texi: Added doc for new options.
28731         * params.def: Added new options.
28732         * params.h: Likewise.
28734 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
28736         PR rtl-optimization/59724
28737         * ifcvt.c (cond_exec_process_if_block): Don't call
28738         flow_find_head_matching_sequence with 0 longest_match.
28739         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
28740         non-active insns if !stop_after.
28741         (try_head_merge_bb): Revert 2014-01-07 changes.
28743 2014-01-08  Jeff Law  <law@redhat.com>
28745         * ree.c (get_sub_rtx): New function, extracted from...
28746         (merge_def_and_ext): Here.
28747         (combine_reaching_defs): Use get_sub_rtx.
28749 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
28751         * cgraph.h (varpool_variable_node): Do not choke on null node.
28753 2014-01-08  Catherine Moore  <clm@codesourcery.com>
28755         * config/mips/mips.md (simple_return): Attempt to use JRC
28756         for microMIPS.
28757         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
28759 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
28761         PR rtl-optimization/59137
28762         * reorg.c (steal_delay_list_from_target): Call update_block for
28763         elided insns.
28764         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
28766 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28768         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
28769         two duplicate entries.
28771 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
28773         Revert:
28774         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
28776         * config/mips/mips.c (mips_truncated_op_cost): New function.
28777         (mips_rtx_costs): Adjust test for BADDU.
28778         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
28780         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
28782         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
28783         (*baddu_si): ...this new pattern.
28785 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
28787         PR ipa/59722
28788         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
28790 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28792         PR middle-end/57748
28793         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
28794         inner_reference_p.
28795         (expand_expr, expand_normal): Adjust.
28796         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
28797         inner_reference_p. Use inner_reference_p to expand inner references.
28798         (store_expr): Adjust.
28799         * cfgexpand.c (expand_call_stmt): Adjust.
28801 2014-01-08  Rong Xu  <xur@google.com>
28803         * gcov-io.c (gcov_var): Move from gcov-io.h.
28804         (gcov_position): Ditto.
28805         (gcov_is_error): Ditto.
28806         (gcov_rewrite): Ditto.
28807         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
28808         only part to libgcc/libgcov.h.
28810 2014-01-08  Marek Polacek  <polacek@redhat.com>
28812         PR middle-end/59669
28813         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
28815 2014-01-08  Marek Polacek  <polacek@redhat.com>
28817         PR sanitizer/59667
28818         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
28820 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
28822         PR rtl-optimization/59649
28823         * stor-layout.c (get_mode_bounds): For BImode return
28824         0 and STORE_FLAG_VALUE.
28826 2014-01-08  Richard Biener  <rguenther@suse.de>
28828         PR middle-end/59630
28829         * gimple.h (is_gimple_builtin_call): Remove.
28830         (gimple_builtin_call_types_compatible_p): New.
28831         (gimple_call_builtin_p): New overload.
28832         * gimple.c (is_gimple_builtin_call): Remove.
28833         (validate_call): Rename to ...
28834         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
28835         check return types.
28836         (validate_type): New static function.
28837         (gimple_call_builtin_p): New overload and adjust.
28838         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
28839         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
28840         (gimple_fold_stmt_to_constant_1): Likewise.
28841         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
28843 2014-01-08  Richard Biener  <rguenther@suse.de>
28845         PR middle-end/59471
28846         * gimplify.c (gimplify_expr): Gimplify register-register type
28847         VIEW_CONVERT_EXPRs to separate stmts.
28849 2014-01-07  Jeff Law  <law@redhat.com>
28851         PR middle-end/53623
28852         * ree.c (combine_set_extension): Handle case where source
28853         and destination registers in an extension insn are different.
28854         (combine_reaching_defs): Allow source and destination registers
28855         in extension to be different under limited circumstances.
28856         (add_removable_extension): Remove restriction that the
28857         source and destination registers in the extension are the same.
28858         (find_and_remove_re): Emit a copy from the extension's
28859         destination to its source after the defining insn if
28860         the source and destination registers are different.
28862         PR middle-end/59285
28863         * ifcvt.c (merge_if_block): If we are merging a block with more than
28864         one successor with a block with no successors, remove any BARRIER
28865         after the second block.
28867 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
28869         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
28871 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
28873         PR target/59652
28874         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
28875         for 14-bit register offsets when INT14_OK_STRICT is false.
28877 2014-01-07  Roland Stigge  <stigge@antcom.de>
28878             Michael Meissner  <meissner@linux.vnet.ibm.com>
28880         PR 57386/target
28881         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
28882         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
28884 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
28886         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
28887         -mcpu.
28889 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
28891         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
28892         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
28893         rtx is const0_rtx or not.
28895 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
28897         PR target/58115
28898         * target-globals.c (save_target_globals): Remove this_fn_optab
28899         handling.
28900         * toplev.c: Include optabs.h.
28901         (target_reinit): Temporarily restore the global options if another
28902         set of options are in force.
28904 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
28906         PR rtl-optimization/58668
28907         * cfgcleanup.c (flow_find_cross_jump): Don't count
28908         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
28909         to determine what is counted.
28910         (flow_find_head_matching_sequence): Use active_insn_p to determine
28911         what is counted.
28912         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
28913         counting change.
28914         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
28915         determine what is counted.
28917         PR tree-optimization/59643
28918         * tree-predcom.c (split_data_refs_to_components): If one dr is
28919         read and one write, determine_offset fails and the write isn't
28920         in the bad component, just put the read into the bad component.
28922 2014-01-07  Mike Stump  <mikestump@comcast.net>
28923             Jakub Jelinek  <jakub@redhat.com>
28925         PR pch/59436
28926         * tree-core.h (struct tree_optimization_option): Change optabs
28927         type from unsigned char * to void *.
28928         * optabs.c (init_tree_optimization_optabs): Adjust
28929         TREE_OPTIMIZATION_OPTABS initialization.
28931 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
28933         PR target/59644
28934         * config/i386/i386.h (struct machine_function): Add
28935         no_drap_save_restore field.
28936         * config/i386/i386.c (ix86_save_reg): Use
28937         !cfun->machine->no_drap_save_restore instead of
28938         crtl->stack_realign_needed.
28939         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
28940         this function clears frame_pointer_needed.  Set
28941         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
28942         and DRAP reg is needed.
28944 2014-01-06  Marek Polacek  <polacek@redhat.com>
28946         PR c/57773
28947         * doc/implement-c.texi: Mention that other integer types are
28948         permitted as bit-field types in strictly conforming mode.
28950 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
28952         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
28953         is newly allocated.
28955 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
28957         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
28959 2014-01-06  Martin Jambor  <mjambor@suse.cz>
28961         PR ipa/59008
28962         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
28963         to int.
28964         * ipa-prop.c (ipa_print_node_params): Fix indentation.
28966 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
28968         PR debug/59350
28969         PR debug/59510
28970         * var-tracking.c (add_stores): Preserve the value of the source even if
28971         we don't record the store.
28973 2014-01-06  Terry Guo  <terry.guo@arm.com>
28975         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
28977 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
28979         PR bootstrap/59541
28980         * config/darwin.c (darwin_function_section): Adjust return values to
28981         correspond to optimisation changes made in r206070.
28983 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
28985         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
28986         from prefetch_block tune setting.
28987         (nocona_cost): Correct size of prefetch block to 64.
28989 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28991         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
28992         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
28993         used to save the static chain register in the computation of the offset
28994         from which the FP registers need to be restored.
28996 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
28998         PR tree-optimization/59519
28999         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
29000         ICE if get_current_def (current_new_name) is already non-NULL, as long
29001         as it is a phi result of some other phi in *new_exit_bb that has
29002         the same argument.
29004         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
29005         or vmovdqu* for misaligned_operand.
29006         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
29007         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
29008         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
29009         aligned_mem for AVX512F masked aligned load and store builtins and for
29010         non-temporal moves.
29012 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
29014         PR tree-optimization/59651
29015         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
29016         Address range for negative step should be added by TYPE_SIZE_UNIT.
29018 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
29020         * config/m68k/m68k.c (handle_move_double): Handle pushes with
29021         overlapping registers also for registers other than the stack pointer.
29023 2014-01-03  Marek Polacek  <polacek@redhat.com>
29025         PR other/59661
29026         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
29027         __builtin_FILE.
29029 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
29031         PR target/59625
29032         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
29033         asm goto as jump.
29035         * config/i386/i386.md (MODE_SIZE): New mode attribute.
29036         (push splitter): Use <P:MODE_SIZE> instead of
29037         GET_MODE_SIZE (<P:MODE>mode).
29038         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
29039         (mov -1, reg peephole2): Likewise.
29040         * config/i386/sse.md (*mov<mode>_internal,
29041         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
29042         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
29043         *<code><mode>3, *andnot<mode>3<mask_name>,
29044         <mask_codefor><code><mode>3<mask_name>): Likewise.
29045         * config/i386/subst.md (mask_mode512bit_condition,
29046         sd_mask_mode512bit_condition): Likewise.
29048 2014-01-02  Xinliang David Li  <davidxl@google.com>
29050         PR tree-optimization/59303
29051         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
29052         (dump_predicates): Better output format.
29053         (pred_equal_p): New function.
29054         (is_neq_relop_p): Ditto.
29055         (is_neq_zero_form_p): Ditto.
29056         (pred_expr_equal_p): Ditto.
29057         (pred_neg_p): Ditto.
29058         (simplify_pred): Ditto.
29059         (simplify_preds_2): Ditto.
29060         (simplify_preds_3): Ditto.
29061         (simplify_preds_4): Ditto.
29062         (simplify_preds): Ditto.
29063         (push_pred): Ditto.
29064         (push_to_worklist): Ditto.
29065         (get_pred_info_from_cmp): Ditto.
29066         (is_degenerated_phi): Ditto.
29067         (normalize_one_pred_1): Ditto.
29068         (normalize_one_pred): Ditto.
29069         (normalize_one_pred_chain): Ditto.
29070         (normalize_preds): Ditto.
29071         (normalize_cond_1): Remove function.
29072         (normalize_cond): Ditto.
29073         (is_gcond_subset_of): Ditto.
29074         (is_subset_of_any): Ditto.
29075         (is_or_set_subset_of): Ditto.
29076         (is_and_set_subset_of): Ditto.
29077         (is_norm_cond_subset_of): Ditto.
29078         (pred_chain_length_cmp): Ditto.
29079         (convert_control_dep_chain_into_preds): Type change.
29080         (find_predicates): Ditto.
29081         (find_def_preds): Ditto.
29082         (destroy_predicates_vecs): Ditto.
29083         (find_matching_predicates_in_rest_chains): Ditto.
29084         (use_pred_not_overlap_with_undef_path_pred): Ditto.
29085         (is_pred_expr_subset): Ditto.
29086         (is_pred_chain_subset_of): Ditto.
29087         (is_included_in): Ditto.
29088         (is_superset_of): Ditto.
29090 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
29092         Update copyright years.
29094 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
29096         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
29097         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
29098         config/arc/arc.md, config/arc/arc.opt,
29099         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
29100         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
29101         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
29102         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
29103         config/linux-protos.h, config/linux.c, config/winnt-c.c,
29104         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
29105         vtable-verify.c, vtable-verify.h: Use the standard form for the
29106         copyright notice.
29108 2014-01-02  Tobias Burnus  <burnus@net-b.de>
29110         * gcc.c (process_command): Update copyright notice dates.
29111         * gcov-dump.c: Ditto.
29112         * gcov.c: Ditto.
29113         * doc/cpp.texi: Bump @copying's copyright year.
29114         * doc/cppinternals.texi: Ditto.
29115         * doc/gcc.texi: Ditto.
29116         * doc/gccint.texi: Ditto.
29117         * doc/gcov.texi: Ditto.
29118         * doc/install.texi: Ditto.
29119         * doc/invoke.texi: Ditto.
29121 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29123         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
29125 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
29127         * config/i386/sse.md (*mov<mode>_internal): Guard
29128         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
29130         PR rtl-optimization/59647
29131         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
29132         new_rtx into UNSIGNED_FLOAT rtxes.
29134 Copyright (C) 2014 Free Software Foundation, Inc.
29136 Copying and distribution of this file, with or without modification,
29137 are permitted in any medium without royalty provided the copyright
29138 notice and this notice are preserved.