tree-eh.c (operation_could_trap_helper_p): Handle conversions like ordinary operations.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-11-03  Richard Biener  <rguenther@suse.de>
2
3         * tree-eh.c (operation_could_trap_helper_p): Handle conversions
4         like ordinary operations.
5         * gimplify.c (gimplify_conversion): Gimplify CONVERT_EXPR
6         as NOP_EXPR.
7
8 2014-11-03  Joseph Myers  <joseph@codesourcery.com>
9
10         * configure.ac (TARGET_GLIBC_MAJOR, TARGET_GLIBC_MINOR): Define
11         macros.
12         * configure, config.h.in: Regenerate.
13         * config/rs6000/linux.h [TARGET_GLIBC_MAJOR > 2 ||
14         (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
15         (RS6000_GLIBC_ATOMIC_FENV): New macro.
16         * config/rs6000/linux64.h [TARGET_GLIBC_MAJOR > 2 ||
17         (TARGET_GLIBC_MAJOR == 2 && TARGET_GLIBC_MINOR >= 19)]
18         (RS6000_GLIBC_ATOMIC_FENV): New macro.
19         * config/rs6000/rs6000.c (atomic_hold_decl, atomic_clear_decl)
20         (atomic_update_decl): New static variables.
21         (rs6000_atomic_assign_expand_fenv) [RS6000_GLIBC_ATOMIC_FENV]:
22         Generate calls to __atomic_feholdexcept, __atomic_feclearexcept
23         and __atomic_feupdateenv for soft-float and no-FPRs.
24
25 2014-11-03  Richard Biener  <rguenther@suse.de>
26
27         * match.pd: Add two abs patterns.  Announce tree_expr_nonnegative_p.
28         Also drop bogus FLOAT_EXPR and FIX_TRUNC_EXPR.
29         * fold-const.c (fold_unary_loc): Remove them here.
30         (tree_unary_nonnegative_warnv_p): Use CASE_CONVERT.
31         * gimple-fold.c (fold_gimple_assign): Remove now obsolete
32         GIMPLE_UNARY_RHS case.
33         (gimple_fold_stmt_to_constant_1): Likewise.
34         (replace_stmt_with_simplification): Fix inverted comparison.
35
36 2014-11-03  Marc Glisse  <marc.glisse@inria.fr>
37
38         PR tree-optimization/60770
39         * tree-into-ssa.c (rewrite_update_stmt): Return whether the
40         statement should be removed.
41         (maybe_register_def): Likewise. Replace clobbers with default
42         definitions.
43         (rewrite_dom_walker::before_dom_children): Remove statement if
44         rewrite_update_stmt says so.
45         * tree-ssa-live.c: Include tree-ssa.h.
46         (set_var_live_on_entry): Do not mark undefined variables as live.
47         (verify_live_on_entry): Do not check undefined variables.
48         * tree-ssa.h (ssa_undefined_value_p): New parameter for the case
49         of partially undefined variables.
50         * tree-ssa.c (ssa_undefined_value_p): Likewise.
51         (execute_update_addresses_taken): Do not drop clobbers.
52
53 2014-11-03  Marc Glisse  <marc.glisse@inria.fr>
54
55         PR tree-optimization/63666
56         * fold-const.c: Include "optabs.h".
57         (fold_ternary_loc) <VEC_PERM_EXPR>: Avoid canonicalizing a
58         can_vec_perm_p permutation to one that is not.
59
60 2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
61
62         * ifcvt.c (noce_try_store_flag_mask): Check rtx cost.
63
64 2014-11-03  Andrew Pinski  <apinski@cavium.com>
65
66         * config/mips/mips-cpus.def (octeon3): New cpu.
67         * config/mips/mips.c (mips_rtx_cost_data): Add octeon3.
68         (mips_print_operand <case 'T', case 't'>): Fix a bug as the mode
69         of the comparison no longer matches mode of the operands.
70         (mips_issue_rate): Handle PROCESSOR_OCTEON3.
71         * config/mips/mips.h (TARGET_OCTEON):  Add Octeon3.
72         (TARGET_OCTEON2): Likewise.
73         (TUNE_OCTEON): Add Octeon3.
74         * config/mips/mips.md (processor): Add octeon3.
75         * config/mips/octeon.md (octeon_fpu): New automaton and cpu_unit.
76         (octeon_arith): Add octeon3.
77         (octeon_condmove): Remove.
78         (octeon_condmove_o1): New reservation.
79         (octeon_condmove_o2): New reservation.
80         (octeon_condmove_o3_int_on_cc): New reservation.
81         (octeon_load_o2): Add octeon3.
82         (octeon_cop_o2): Likewise.
83         (octeon_store): Likewise.
84         (octeon_brj_o2): Likewise.
85         (octeon_imul3_o2): Likewise.
86         (octeon_imul_o2): Likewise.
87         (octeon_mfhilo_o2): Likewise.
88         (octeon_imadd_o2): Likewise.
89         (octeon_idiv_o2_si): Likewise.
90         (octeon_idiv_o2_di): Likewise.
91         (octeon_fpu): Add to the automaton.
92         (octeon_fpu): New cpu unit.
93         (octeon_condmove_o2): Check for non floating point modes.
94         (octeon_load_o2): Add prefetchx.
95         (octeon_cop_o2): Don't check for octeon3.
96         (octeon3_faddsubcvt): New reservation.
97         (octeon3_fmul): Likewise.
98         (octeon3_fmadd): Likewise.
99         (octeon3_div_sf): Likewise.
100         (octeon3_div_df): Likewise.
101         (octeon3_sqrt_sf): Likewise.
102         (octeon3_sqrt_df): Likewise.
103         (octeon3_rsqrt_sf): Likewise.
104         (octeon3_rsqrt_df): Likewise.
105         (octeon3_fabsnegmov): Likewise.
106         (octeon_fcond): Likewise.
107         (octeon_fcondmov): Likewise.
108         (octeon_fpmtc1): Likewise.
109         (octeon_fpmfc1): Likewise.
110         (octeon_fpload): Likewise.
111         (octeon_fpstore): Likewise.
112         * config/mips/mips-tables.opt: Regenerate.
113         * doc/invoke.texi (-march=@var{arch}): Add octeon3.
114
115 2014-11-03  Zhenqiang Chen  <zhenqiang.chen@arm.com>
116
117         * ifcvt.c (noce_emit_cmove, noce_get_alt_condition, noce_get_condition):
118         Allow CC mode if HAVE_cbranchcc4.
119
120 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
121
122         * config/arc/arc.c (write_ext_corereg_1): Delete.
123         (arc_write_ext_corereg): Use FOR_EACH_SUBRTX.
124
125 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
126
127         * config/arc/arc.c (arc600_corereg_hazard_1): Delete.
128         (arc600_corereg_hazard): Use FOR_EACH_SUBRTX.
129
130 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
131
132         * config/arc/arc.c (arc_rewrite_small_data_p): Constify argument.
133         (small_data_pattern_1): Delete.
134         (small_data_pattern): Use FOR_EACH_SUBRTX.
135
136 2014-11-02  Richard Sandiford  <richard.sandiford@arm.com>
137
138         * config/arc/arc.c: Include rtl-iter.h.
139         (arc_rewrite_small_data_1): Delete.
140         (arc_rewrite_small_data): Use FOR_EACH_SUBRTX_PTR.
141
142 2014-11-02  Michael Collison  <michael.collison@linaro.org>
143
144         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO) : Update
145         to support vector modes.
146         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
147
148 2014-11-01  Andrew MacLeod  <amacleod@redhat,com>
149
150         * optabs.h: Flatten insn-codes.h to source files.  Move some prototypes
151         and structs to genopinit.c.  Adjust protyoptypes to match optabs.c.
152         * genopinit.c (main): Emit prototypes and structs into insn-opinit.h.
153         * optabs.c: (gen_move_insn): Move to expr.c.
154         * expr.h: Move protypes and enums to optabs.h.
155         * expr.c: (gen_move_insn): Relocate from optabs.c.
156         * genemit.c (main): Include insn-codes.h.
157         * gengtype.c (open_base_files): Include insn-codes.h.
158         * asan.c: Include insn-codes.h.
159         * bb-reorder.c: Ditto.
160         * builtins.c: Ditto.
161         * calls.c: Ditto.
162         * cfgexpand.c: Ditto.
163         * cilk-common.c: Ditto.
164         * combine.c: Ditto.
165         * dojump.c: Ditto.
166         * dse.c: Ditto.
167         * except.c: Ditto.
168         * explow.c: Ditto.
169         * expmed.c: Ditto.
170         * function.c: Ditto.
171         * ifcvt.c: Ditto.
172         * internal-fn.c: Ditto.
173         * loop-unroll.c: Ditto.
174         * lra.c: Ditto.
175         * modulo-sched.c: Ditto.
176         * omp-low.c: Ditto.
177         * postreload.c: Ditto.
178         * ree.c: Ditto.
179         * reload.c: Ditto.
180         * reload1.c: Ditto.
181         * shrink-wrap.c: Ditto.
182         * simplify-rtx.c: Ditto.
183         * stmt.c: Ditto.
184         * target-globals.c: Ditto.
185         * targhooks.c: Ditto.
186         * toplev.c: Ditto.
187         * tree-if-conv.c: Ditto.
188         * tree-ssa-forwprop.c: Ditto.
189         * tree-ssa-loop-prefetch.c: Ditto.
190         * tree-ssa-math-opts.c: Ditto.
191         * tree-ssa-phiopt.c: Ditto.
192         * tree-ssa-reassoc.c: Ditto.
193         * tree-switch-conversion.c: Ditto.
194         * tree-vect-data-refs.c: Ditto.
195         * tree-vect-generic.c: Ditto.
196         * tree-vect-loop.c: Ditto.
197         * tree-vect-patterns.c: Ditto.
198         * tree-vect-slp.c: Ditto.
199         * tree-vect-stmts.c: Ditto.
200         * tree-vrp.c: Ditto.
201         * value-prof.c: Ditto.
202         * config/aarch64/aarch64-builtins.c: Ditto.
203         * config/alpha/alpha.c: Ditto.
204         * config/arm/arm.c: Ditto.
205         * config/cris/cris.c: Ditto.
206         * config/epiphany/epiphany.c: Ditto.
207         * config/frv/frv.c: Ditto.
208         * config/h8300/h8300.c: Ditto.
209         * config/ia64/ia64.c: Ditto.
210         * config/iq2000/iq2000.c: Ditto.
211         * config/m32c/m32c.c: Ditto.
212         * config/mep/mep.c: Ditto.
213         * config/microblaze/microblaze.c: Ditto.
214         * config/mips/mips.c: Ditto.
215         * config/mn10300/mn10300.c: Ditto.
216         * config/moxie/moxie.c: Ditto.
217         * config/msp430/msp430.c: Ditto.
218         * config/nios2/nios2.c: Ditto.
219         * config/pa/pa.c: Ditto.
220         * config/rl78/rl78.c: Ditto.
221         * config/rs6000/rs6000.c: Ditto.
222         * config/rx/rx.c: Ditto.
223         * config/s390/s390.c: Ditto.
224         * config/sh/sh.c: Ditto.
225         * config/sh/sh_treg_combine.cc: Ditto.
226         * config/spu/spu.c: Ditto.
227         * config/stormy16/stormy16.c: Ditto.
228         * config/tilegx/mul-tables.c: Ditto.
229         * config/tilegx/tilegx.c: Ditto.
230         * config/tilepro/mul-tables.c: Ditto.
231         * config/tilepro/tilepro.c: Ditto.
232         * config/vax/vax.c: Ditto.
233
234 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
235
236         * doc/tm.texi.in (MOVE_BY_PIECES_P): Remove.
237         (CLEAR_BY_PIECES_P): Likewise.
238         (SET_BY_PIECES_P): Likewise.
239         (STORE_BY_PIECES_P): Likewise.
240         * doc/tm.texi: Regenerate.
241         * system.h: Poison MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P,
242         SET_BY_PIECES_P, STORE_BY_PIECES_P.
243         * expr.c (MOVE_BY_PIECES_P): Remove.
244         (CLEAR_BY_PIECES_P): Likewise.
245         (SET_BY_PIECES_P): Likewise.
246         (STORE_BY_PIECES_P): Likewise.
247         (can_move_by_pieces): Rewrite in terms of
248         targetm.use_by_pieces_infrastructure_p.
249         (emit_block_move_hints): Likewise.
250         (can_store_by_pieces): Likewise.
251         (store_by_pieces): Likewise.
252         (clear_storage_hints): Likewise.
253         (emit_push_insn): Likewise.
254         (expand_constructor): Likewise.
255
256 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
257
258         * config/aarch64/aarch64.c
259         (aarch64_use_by_pieces_infrastructre_p): New.
260         (TARGET_USE_BY_PIECES_INFRASTRUCTURE): Likewise.
261         * config/aarch64/aarch64.h (STORE_BY_PIECES_P): Delete.
262
263 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
264
265         * config/mips/mips.h (MOVE_BY_PIECES_P): Remove.
266         (STORE_BY_PIECES_P): Likewise.
267         * config/mips/mips.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
268         (mips_move_by_pieces_p): Rename to...
269         (mips_use_by_pieces_infrastructure_p): ...this, use new hook
270         parameters, use the default hook implementation as a
271         fall-back.
272
273 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
274
275         * config/sh/sh.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
276         (sh_use_by_pieces_infrastructure_p): Likewise.
277         * config/sh/sh.h (MOVE_BY_PIECES_P): Remove.
278         (STORE_BY_PIECES_P): Likewise.
279         (SET_BY_PIECES_P): Likewise.
280
281 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
282
283         * config/arc/arc.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): New.
284         (arc_use_by_pieces_infrastructure_p): Likewise.
285         * confir/arc/arc.h (MOVE_BY_PIECES_P): Delete.
286         (CAN_MOVE_BY_PIECES): Likewise.
287
288 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
289
290         * config/s390/s390.c (s390_use_by_pieces_infrastructure_p): New.
291         (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Likewise.
292         * config/s390/s390.h (MOVE_BY_PIECES_P): Remove.
293         (CLEAR_BY_PIECES): Likewise.
294         (SET_BY_PIECES): Likewise.
295         (STORE_BY_PIECES): Likewise.
296
297 2014-11-01  James Greenhalgh  <james.greenhalgh@arm.com>
298
299         * target.def (use_by_pieces_infrastructure_p): New.
300         * doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
301         is deprecated.
302         (STORE_BY_PIECES_P): Likewise.
303         (CLEAR_BY_PIECES_P): Likewise.
304         (SET_BY_PIECES_P): Likewise.
305         (TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
306         * doc/tm.texi: Regenerate.
307         * expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
308         TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
309         (STORE_BY_PIECES_P): Likewise.
310         (CLEAR_BY_PIECES_P): Likewise.
311         (SET_BY_PIECES_P): Likewise.
312         (STORE_MAX_PIECES): Move to...
313         * defaults.h (STORE_MAX_PIECES): ...here.
314         * targhooks.c (get_move_ratio): New.
315         (default_use_by_pieces_infrastructure_p): Likewise.
316         * targhooks.h (default_use_by_pieces_infrastructure_p): New.
317         * target.h (by_pieces_operation): New.
318
319 2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
320
321         PR target/63702
322         * config/i386/i386.c (ix86_expand_args_builtin): Remove extra
323         assignment to 'nargs' variable.
324
325 2014-10-31  Uros Bizjak  <ubizjak@gmail.com>
326
327         PR target/63620
328         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): Declare.
329         * config/i386/i386.c (ix86_use_pseudo_pic_reg): Export.
330         * config/i386/i386.md (*pushtf): Allow only CONST_DOUBLEs that won't
331         be reloaded through memory.
332         (*pushxf): Ditto.
333         (*pushdf): Ditto.
334
335 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
336
337         PR rtl-optimization/63659
338         * ree.c (update_reg_equal_equiv_notes): New function.
339         (combine_set_extension, transform_ifelse): Use it.
340
341 2014-10-31  Jeff Law  <law@redhat.com>
342
343         * doc/contrib.texi: Add contribution notes for Balaji Iyer (Cilk+)
344         and Jonny Grant (collect2).
345
346 2014-10-31  Richard Biener  <rguenther@suse.de>
347
348         * builtins.c (fold_builtin_atomic_always_lock_free): Use
349         CONVERT_EXPR_P, CONVERT_EXPR_CODE_P and CASE_CONVERT where
350         approprate.
351         (fold_builtin_expect): Likewise.
352         (integer_valued_real_p): Likewise.
353         * cfgexpand.c (expand_debug_expr): Likewise.
354         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Likewise.
355         (find_foldable_builtin_expect): Likewise.
356         * trans-mem.c (thread_private_new_memory): Likewise.
357         * tree-affine.c (aff_combination_expand): Likewise.
358         * tree-data-ref.c (initialize_matrix_A): Likewise.
359         * tree-inline.c (copy_bb): Likewise.
360         * tree-pretty-print.c (dump_function_name): Likewise.
361         (print_call_name): Likewise.
362         * tree-ssa-forwprop.c (constant_pointer_difference): Likewise.
363         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise.
364         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
365         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Likewise.
366         (vect_recog_widen_mult_pattern): Likewise.
367         (vect_operation_fits_smaller_type): Likewise.
368         * tree-vrp.c (find_assert_locations_1): Likewise.
369         * tree-ssa-dom.c (initialize_hash_element): Canonicalize
370         converts to NOP_EXPR.
371
372 2014-10-31  Richard Biener  <rguenther@suse.de>
373
374         * genmatch.c (expr::gen_transform): Use NOP_EXPRs instead of
375         CONVERT_EXPRs in generated code.
376         (dt_simplify::gen): Likewise.
377
378 2014-10-31  Evgeny Stupachenko  <evstupac@gmail.com>
379
380         PR target/63534
381         * config/i386/i386.c (ix86_init_pic_reg): Emit SET_GOT to
382         REAL_PIC_OFFSET_TABLE_REGNUM for mcount profiling.
383         (ix86_save_reg): Save REAL_PIC_OFFSET_TABLE_REGNUM when profiling
384         using mcount in 32bit PIC mode.
385         (ix86_elim_entry_set_got): New.
386         (ix86_expand_prologue): For the mcount profiling emit new SET_GOT
387         in PROLOGUE, delete initial if possible.
388
389 2014-10-31  Eric Botcazou  <ebotcazou@adacore.com>
390
391         * ipa-inline.c (want_inline_small_function_p): Fix typo and formatting.
392         (want_inline_function_to_all_callers_p): Fix formatting and simplify.
393
394 2014-10-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
395
396         PR tree-optimization/63259
397         * tree-ssa-math-opts.c (bswap_replace): Replace expression by a
398         rotation left if it is a 16 bit byte swap.
399         (pass_optimize_bswap::execute): Also consider bswap in LROTATE_EXPR
400         and RROTATE_EXPR statements if it is a byte rotation.
401
402 2014-10-31  Jakub Jelinek  <jakub@redhat.com>
403
404         PR sanitizer/63697
405         * tree-vrp.c (simplify_internal_call_using_ranges): For subcode ==
406         MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min
407         instead of vr0.min - vr1.min and vr0.max - vr1.max.
408
409 2014-10-31  Max Ostapenko  <m.ostapenko@partner.samsung.com>
410
411         PR ipa/63696
412         * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid
413         alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init.
414
415 2014-10-30  Felix Yang  <felix.yang@huawei.com>
416
417         * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
418         * config/xtensa/xtensa.c: Include dumpfile.h and hw-doloop.h.
419         (xtensa_reorg, xtensa_reorg_loops): New.
420         (xtensa_can_use_doloop_p, xtensa_invalid_within_doloop): New.
421         (hwloop_optimize, hwloop_fail, hwloop_pattern_reg): New.
422         (xtensa_emit_loop_end): Emit the zero-overhead loop end label.
423         (xtensa_doloop_hooks): Define.
424         * config/xtensa/xtensa.md (doloop_end, loop_end): New
425         (zero_cost_loop_start): Rewritten.
426         (zero_cost_loop_end): Likewise.
427
428 2014-10-30  Steve Ellcey  <sellcey@imgtec.com>
429
430         * config.gcc (mips*-*-linux*): Combine 32 and 64 bit cases.
431
432 2014-10-30  Richard Biener  <rguenther@suse.de>
433
434         * genmatch.c: Remove <map>, <utility> and <string> includes.
435         Include ggc.h and hash-map.h.
436         (ggc_internal_cleared_alloc): Provide stub definition.
437         (ggc_free): Likewise.
438         (struct capture_id_map_hasher): New traits for hash_map.
439         (cid_map_t): New typedef.
440         (everywhere else): Replace std::map use with cid_map_t.
441         * hash-map.h (hash_map::elements): New member function.
442         * Makefile.in (build/genmatch.o): Add $(HASH_TABLE_H),
443         hash-map.h and $(GGC_H) as dependency.
444
445 2014-10-30  Richard Biener  <rguenther@suse.de>
446
447         * genmatch.c (capture_info::walk_c_expr): Ignore capture
448         uses inside TREE_TYPE ().
449         * gimple-ssa-strength-reduction.c (stmt_cost): Use CASE_CONVERT.
450         (find_candidates_dom_walker::before_dom_children): Likewise.
451         (replace_mult_candidate): Use CONVERT_EXPR_CODE_P.
452         (replace_profitable_candidates): Likewise.
453         * tree-ssa-dom.c (initialize_hash_element): Canonicalize
454         CONVERT_EXPR_CODE_P to CONVERT_EXPR.
455         * convert.c (convert_to_integer): Use CASE_CONVERT.
456
457 2014-10-30  Richard Biener  <rguenther@suse.de>
458
459         * match.pd: Implement more patterns that simplify to a single value.
460         * fold-const.c (fold_binary_loc): Remove them here.
461         * tree-ssa-forwprop.c (simplify_bitwise_binary): Likewise.
462         (fwprop_ssa_val): Remove restriction on single uses.
463
464 2014-10-30  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
465
466         * config/avr/driver-avr.c (avr_set_current_device): Remove.
467
468 2014-10-30  Martin Liska  <mliska@suse.cz>
469
470         PR ipa/63574
471         PR ipa/63664
472         * ipa-icf-gimple.c (func_checker::parse_labels): Missing comment added.
473         (func_checker::compare_gimple_label): Simlified comparison introduced.
474         * ipa-icf-gimple.h: Missing comment added.
475
476 2014-10-30  Jeff Law  <law@redhat.com>
477
478         * config/pa/pa-protos.h (pa_output_arg_descriptor): Strengthen
479         argument from rtx to rtx_insn *.
480         (compute_movmem_length, compute_clrmem_length): Likewise.
481         (copy_fp_args, length_fp_args): Likewise.
482         * config/pa/pa.c (legitimize_pic_address): Promote local variable
483         "insn" from rtx to rtx_insn *.
484         (legitimize_tls_address, pa_emit_move_sequence): Likewise.
485         (pa_output_block_move, store_reg, store_reg_modify): Likewise.
486         (set_reg_plus_d, pa_expand_prologue, hppa_profile_hook): Likewise.
487         (branch_to_delay_slot_p, branch_needs_nop_p, use_skip_p): Likewise.
488         (pa_output_arg_descriptor): Strengthen argument to an rtx_insn *.
489         (compute_movmem_length, compute_clrmem_length): Likewise.
490         (copy_fp-args, length_fp_args): Likewise.
491
492 2014-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
493
494         * config/arm/arm.h (MACHMODE): Treat machine_mode as a
495         scalar typedef.
496         (CUMULATIVE_ARGS): Guard against target includes.
497         (machine_function): Likewise.
498
499 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
500
501         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Restore
502         recog state after aarch64_prev_real_insn call.
503
504 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
505
506         * config/aarch64/aarch64.h (MACHMODE): Add 'enum' to machine_mode.
507
508 2014-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
509
510         * config/arm/arm.h (MACHMODE): Add 'enum' to machine_mode.
511         (struct machine_function): Gate definition on
512         !defined(USED_FOR_TARGET).
513
514 2014-10-29  DJ Delorie  <dj@redhat.com>
515
516         * expmed.c (strict_volatile_bitfield_p): Fix off-by-one error.
517
518 2014-10-29  Martin Liska  <mliska@suse.cz>
519
520         PR ipa/63587
521         * cgraphunit.c (cgraph_node::expand_thunk): Only VAR_DECLs are put
522         to local declarations.
523         * function.c (add_local_decl): Implementation moved from header
524         file, assert introduced for tree type.
525         * function.h: Likewise.
526
527 2014-10-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
528
529         * godump.c (go_format_type): Represent "float _Complex" and
530         "double _Complex" as complex64 or complex128 in Go, as appropriate.
531
532 2014-10-29  Richard Biener  <rguenther@suse.de>
533
534         * match.pd: Implement a first set of conversion patterns.
535         * fold-const.c (fold_unary_loc): Remove them here.
536         * tree-ssa-forwprop.c (simplify_vce): Remove.
537         (pass_forwprop::execute): Do not call simplify_vce.
538
539 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
540
541         * addresses.h, alias.c, asan.c, auto-inc-dec.c, bt-load.c, builtins.c,
542         builtins.h, caller-save.c, calls.c, calls.h, cfgexpand.c, cfgloop.h,
543         cfgrtl.c, combine.c, compare-elim.c, config/aarch64/aarch64-builtins.c,
544         config/aarch64/aarch64-protos.h, config/aarch64/aarch64-simd.md,
545         config/aarch64/aarch64.c, config/aarch64/aarch64.h,
546         config/aarch64/aarch64.md, config/alpha/alpha-protos.h,
547         config/alpha/alpha.c, config/arc/arc-protos.h, config/arc/arc.c,
548         config/arc/arc.h, config/arc/predicates.md,
549         config/arm/aarch-common-protos.h, config/arm/aarch-common.c,
550         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
551         config/arm/arm.md, config/arm/neon.md, config/arm/thumb2.md,
552         config/avr/avr-log.c, config/avr/avr-protos.h, config/avr/avr.c,
553         config/avr/avr.md, config/bfin/bfin-protos.h, config/bfin/bfin.c,
554         config/c6x/c6x-protos.h, config/c6x/c6x.c, config/c6x/c6x.md,
555         config/cr16/cr16-protos.h, config/cr16/cr16.c,
556         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.md,
557         config/darwin-protos.h, config/darwin.c,
558         config/epiphany/epiphany-protos.h, config/epiphany/epiphany.c,
559         config/epiphany/epiphany.md, config/fr30/fr30.c,
560         config/frv/frv-protos.h, config/frv/frv.c, config/frv/predicates.md,
561         config/h8300/h8300-protos.h, config/h8300/h8300.c,
562         config/i386/i386-builtin-types.awk, config/i386/i386-protos.h,
563         config/i386/i386.c, config/i386/i386.md, config/i386/predicates.md,
564         config/i386/sse.md, config/i386/sync.md, config/ia64/ia64-protos.h,
565         config/ia64/ia64.c, config/iq2000/iq2000-protos.h,
566         config/iq2000/iq2000.c, config/iq2000/iq2000.md,
567         config/lm32/lm32-protos.h, config/lm32/lm32.c,
568         config/m32c/m32c-protos.h, config/m32c/m32c.c,
569         config/m32r/m32r-protos.h, config/m32r/m32r.c,
570         config/m68k/m68k-protos.h, config/m68k/m68k.c,
571         config/mcore/mcore-protos.h, config/mcore/mcore.c,
572         config/mcore/mcore.md, config/mep/mep-protos.h, config/mep/mep.c,
573         config/microblaze/microblaze-protos.h, config/microblaze/microblaze.c,
574         config/mips/mips-protos.h, config/mips/mips.c,
575         config/mmix/mmix-protos.h, config/mmix/mmix.c,
576         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
577         config/moxie/moxie.c, config/msp430/msp430-protos.h,
578         config/msp430/msp430.c, config/nds32/nds32-cost.c,
579         config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
580         config/nds32/nds32-protos.h, config/nds32/nds32.c,
581         config/nios2/nios2-protos.h, config/nios2/nios2.c,
582         config/pa/pa-protos.h, config/pa/pa.c, config/pdp11/pdp11-protos.h,
583         config/pdp11/pdp11.c, config/rl78/rl78-protos.h, config/rl78/rl78.c,
584         config/rs6000/altivec.md, config/rs6000/rs6000-c.c,
585         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
586         config/rs6000/rs6000.h, config/rx/rx-protos.h, config/rx/rx.c,
587         config/s390/predicates.md, config/s390/s390-protos.h,
588         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
589         config/sh/predicates.md, config/sh/sh-protos.h, config/sh/sh.c,
590         config/sh/sh.md, config/sparc/predicates.md,
591         config/sparc/sparc-protos.h, config/sparc/sparc.c,
592         config/sparc/sparc.md, config/spu/spu-protos.h, config/spu/spu.c,
593         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
594         config/tilegx/tilegx-protos.h, config/tilegx/tilegx.c,
595         config/tilegx/tilegx.md, config/tilepro/tilepro-protos.h,
596         config/tilepro/tilepro.c, config/v850/v850-protos.h,
597         config/v850/v850.c, config/v850/v850.md, config/vax/vax-protos.h,
598         config/vax/vax.c, config/vms/vms-c.c, config/xtensa/xtensa-protos.h,
599         config/xtensa/xtensa.c, coverage.c, cprop.c, cse.c, cselib.c, cselib.h,
600         dbxout.c, ddg.c, df-problems.c, dfp.c, dfp.h, doc/md.texi,
601         doc/rtl.texi, doc/tm.texi, doc/tm.texi.in, dojump.c, dse.c,
602         dwarf2cfi.c, dwarf2out.c, dwarf2out.h, emit-rtl.c, emit-rtl.h,
603         except.c, explow.c, expmed.c, expmed.h, expr.c, expr.h, final.c,
604         fixed-value.c, fixed-value.h, fold-const.c, function.c, function.h,
605         fwprop.c, gcse.c, gengenrtl.c, genmodes.c, genopinit.c, genoutput.c,
606         genpreds.c, genrecog.c, gensupport.c, gimple-ssa-strength-reduction.c,
607         graphite-clast-to-gimple.c, haifa-sched.c, hooks.c, hooks.h, ifcvt.c,
608         internal-fn.c, ira-build.c, ira-color.c, ira-conflicts.c, ira-costs.c,
609         ira-emit.c, ira-int.h, ira-lives.c, ira.c, ira.h, jump.c, langhooks.h,
610         libfuncs.h, lists.c, loop-doloop.c, loop-invariant.c, loop-iv.c,
611         loop-unroll.c, lower-subreg.c, lower-subreg.h, lra-assigns.c,
612         lra-constraints.c, lra-eliminations.c, lra-int.h, lra-lives.c,
613         lra-spills.c, lra.c, lra.h, machmode.h, omp-low.c, optabs.c, optabs.h,
614         output.h, postreload.c, print-tree.c, read-rtl.c, real.c, real.h,
615         recog.c, recog.h, ree.c, reg-stack.c, regcprop.c, reginfo.c,
616         regrename.c, regs.h, reload.c, reload.h, reload1.c, rtl.c, rtl.h,
617         rtlanal.c, rtlhash.c, rtlhooks-def.h, rtlhooks.c, sched-deps.c,
618         sel-sched-dump.c, sel-sched-ir.c, sel-sched-ir.h, sel-sched.c,
619         simplify-rtx.c, stmt.c, stor-layout.c, stor-layout.h, target.def,
620         targhooks.c, targhooks.h, tree-affine.c, tree-call-cdce.c,
621         tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-if-conv.c,
622         tree-inline.c, tree-outof-ssa.c, tree-scalar-evolution.c,
623         tree-ssa-address.c, tree-ssa-ccp.c, tree-ssa-loop-ivopts.c,
624         tree-ssa-loop-ivopts.h, tree-ssa-loop-manip.c,
625         tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c, tree-ssa-reassoc.c,
626         tree-ssa-sccvn.c, tree-streamer-in.c, tree-switch-conversion.c,
627         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop.c,
628         tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
629         tree-vrp.c, tree.c, tree.h, tsan.c, ubsan.c, valtrack.c,
630         var-tracking.c, varasm.c: Remove redundant enum from
631         machine_mode.
632         * gengtype.c (main): Treat machine_mode as a scalar typedef.
633         * genmodes.c (emit_insn_modes_h): Hide inline functions if
634         USED_FOR_TARGET.
635
636 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
637
638         PR rtl-optimization/63340 (part 2)
639         * rtl.h (invalid_mode_change_p): Delete.
640         (valid_mode_changes_for_regno): New function.
641         * reginfo.c (invalid_mode_change_p): Delete.
642         (valid_mode_changes_for_regno): New function.
643         * ira-costs.c (setup_regno_cost_classes_by_aclass): Restrict the
644         classes to registers that are allowed by valid_mode_changes_for_regno.
645         (setup_regno_cost_classes_by_mode): Likewise.
646         (print_allocno_costs): Remove invalid_mode_change_p test.
647         (print_pseudo_costs, find_costs_and_classes): Likewise.
648
649 2014-10-29  Richard Sandiford  <richard.sandiford@arm.com>
650
651         PR rtl-optimization/63340 (part 1)
652         * ira-costs.c (all_cost_classes): New variable.
653         (complete_cost_classes): New function, split out from...
654         (setup_cost_classes): ...here.
655         (initiate_regno_cost_classes): Set up all_cost_classes.
656         (restrict_cost_classes): New function.
657         (setup_regno_cost_classes_by_aclass): Restrict the cost classes to
658         registers that are valid for the register's mode.
659         (setup_regno_cost_classes_by_mode): Model the mode cache as a
660         restriction of all_cost_classes to a particular mode.
661         (print_allocno_costs): Remove contains_reg_of_mode check.
662         (print_pseudo_costs, find_costs_and_classes): Likewise.
663
664 2014-10-29  Richard Biener  <rguenther@suse.de>
665
666         PR tree-optimization/63666
667         * tree-vect-slp.c (vect_get_mask_element): Properly handle
668         accessing out-of-bound elements.
669
670 2014-10-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
671             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
672             Anna Tikhonova  <anna.tikhonova@intel.com>
673             Ilya Tocar  <ilya.tocar@intel.com>
674             Andrey Turetskiy  <andrey.turetskiy@intel.com>
675             Ilya Verbin  <ilya.verbin@intel.com>
676             Kirill Yukhin  <kirill.yukhin@intel.com>
677             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
678
679         * config/i386/i386.md
680         (movhi_internal): Always detect maskmov.
681         (movqi_internal): Fix target check.
682
683 2014-10-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
684             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
685             Anna Tikhonova  <anna.tikhonova@intel.com>
686             Ilya Tocar  <ilya.tocar@intel.com>
687             Andrey Turetskiy  <andrey.turetskiy@intel.com>
688             Ilya Verbin  <ilya.verbin@intel.com>
689             Kirill Yukhin  <kirill.yukhin@intel.com>
690             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
691
692         * config/i386/avx512bwintrin.h: Add new intrinsics.
693         * config/i386/avx512vlbwintrin.h: Ditto.
694         * config/i386/avx512vlintrin.h: Ditto.
695
696 2014-10-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
697
698         * godump.c (precision_to_units): New helper function.
699         (go_append_artificial_name): Ditto.
700         (go_append_decl_name): Ditto.
701         (go_append_bitfield): Ditto.
702         (go_get_uinttype_for_precision): Ditto.
703         (go_append_padding): Ditto.
704         (go_force_record_alignment): Ditto.
705         (go_format_type): Represent unions with an array of uints of the size
706         of the alignment in go.  This fixes the 'random' size of the union's
707         representation using just the first field.
708         (go_format_type): Add argument that indicates whether a record is
709         nested (used for generation of artificial go names).
710         (go_output_fndecl): Adapt to new go_format_type signature.
711         (go_output_typedef): Ditto.
712         (go_output_var): Ditto.
713         (go_output_var): Prefer to output type as alias (typedef).
714         (go_format_type): Bitfields in records are simulated as arrays of bytes
715         in go.
716
717         * godump.c (go_format_type): Fix handling of arrays with zero elements.
718
719 2014-10-28  Andrew MacLeod  <amacleod@redhat.com>
720
721         * cgraph.h: Flatten.  Remove all include files.
722         (symbol_table::initialize): Move to cgraph.c.
723         * cgraph.c: Adjust include files.
724         (symbol_table::initialize): Relocate from cgraph.h.
725         * gengtype.c (open_base_files): Adjust include files.
726         * gccplugin.h: Add hash-map.h, is-a.h, plugin-api.h, and ipa-ref.h to
727         included files.
728         * ipa-inline.h: Remove all include files.
729         * ipa-prop.h: Ditto.
730         * ipa-reference.h: Ditto.
731         * ipa-utils.h: Ditto:
732         * lto-streamer.h: Remove cgraph.h from include list.
733         * asan.c: Adjust include files.
734         * auto-profile.c: Ditto.
735         * bb-reorder.c: Ditto.
736         * calls.c: Ditto.
737         * cfgexpand.c: Ditto.
738         * cgraphbuild.c: Ditto.
739         * cgraphclones.c: Ditto.
740         * cgraphunit.c: Ditto.
741         * combine.c: Ditto.
742         * coverage.c: Ditto.
743         * data-streamer.c: Ditto.
744         * data-streamer-in.c: Ditto.
745         * data-streamer-out.c: Ditto.
746         * dbxout.c: Ditto.
747         * dwarf2out.c: Ditto.
748         * except.c: Ditto.
749         * expr.c: Ditto.
750         * final.c: Ditto.
751         * fold-const.c: Ditto.
752         * ggc-page.c: Ditto.
753         * gimple-fold.c: Ditto.
754         * gimple-iterator.c: Ditto.
755         * gimple-pretty-print.c: Ditto.
756         * gimple-streamer-in.c: Ditto.
757         * gimple-streamer-out.c: Ditto.
758         * gimplify.c: Ditto.
759         * ipa.c: Ditto.
760         * ipa-comdats.c: Ditto.
761         * ipa-cp.c: Ditto.
762         * ipa-devirt.c: Ditto.
763         * ipa-icf.c: Ditto.
764         * ipa-icf-gimple.c: Ditto.
765         * ipa-inline-analysis.c: Ditto.
766         * ipa-inline.c: Ditto.
767         * ipa-inline-transform.c: Ditto.
768         * ipa-polymorphic-call.c: Ditto.
769         * ipa-profile.c: Ditto.
770         * ipa-prop.c: Ditto.
771         * ipa-pure-const.c: Ditto.
772         * ipa-ref.c: Ditto.
773         * ipa-reference.c: Ditto.
774         * ipa-split.c: Ditto.
775         * ipa-utils.c: Ditto.
776         * ipa-visibility.c: Ditto.
777         * langhooks.c: Ditto.
778         * lto-cgraph.c: Ditto.
779         * lto-compress.c: Ditto.
780         * lto-opts.c: Ditto.
781         * lto-section-in.c: Ditto.
782         * lto-section-out.c: Ditto.
783         * lto-streamer.c: Ditto.
784         * lto-streamer-in.c: Ditto.
785         * lto-streamer-out.c: Ditto.
786         * omp-low.c: Ditto.
787         * opts-global.c: Ditto.
788         * passes.c: Ditto.
789         * predict.c: Ditto.
790         * print-tree.c: Ditto.
791         * profile.c: Ditto.
792         * ree.c: Ditto.
793         * stor-layout.c: Ditto.
794         * symtab.c: Ditto.
795         * toplev.c: Ditto.
796         * trans-mem.c: Ditto.
797         * tree.c: Ditto.
798         * tree-cfg.c: Ditto.
799         * tree-eh.c: Ditto.
800         * tree-emutls.c: Ditto.
801         * tree-inline.c: Ditto.
802         * tree-nested.c: Ditto.
803         * tree-pretty-print.c: Ditto.
804         * tree-profile.c: Ditto.
805         * tree-sra.c: Ditto.
806         * tree-ssa-alias.c: Ditto.
807         * tree-ssa-loop-ivcanon.c: Ditto.
808         * tree-ssa-loop-ivopts.c: Ditto.
809         * tree-ssa-pre.c: Ditto.
810         * tree-ssa-structalias.c: Ditto.
811         * tree-streamer.c: Ditto.
812         * tree-streamer-in.c: Ditto.
813         * tree-streamer-out.c: Ditto.
814         * tree-switch-conversion.c: Ditto.
815         * tree-tailcall.c: Ditto.
816         * tree-vect-data-refs.c: Ditto.
817         * tree-vectorizer.c: Ditto.
818         * tree-vect-stmts.c: Ditto.
819         * tsan.c: Ditto.
820         * ubsan.c: Ditto.
821         * value-prof.c: Ditto.
822         * varasm.c: Ditto.
823         * varpool.c: Ditto.
824         * config/arm/arm.c: Ditto.
825         * config/bfin/bfin.c: Ditto.
826         * config/c6x/c6x.c: Ditto.
827         * config/cris/cris.c: Ditto.
828         * config/darwin.c: Ditto.
829         * config/darwin-c.c: Ditto.
830         * config/i386/i386.c: Ditto.
831         * config/i386/winnt.c: Ditto.
832         * config/microblaze/microblaze.c: Ditto.
833         * config/mips/mips.c: Ditto.
834         * config/rs6000/rs6000.c: Ditto.
835         * config/rx/rx.c: Ditto.
836
837 2014-10-28  Richard Biener  <rguenther@suse.de>
838
839         * gimple-fold.h (follow_single_use_edges): Declare.
840         * gimple-fold.c (follow_single_use_edges): New function.
841         (gimple_fold_stmt_to_constant_1): Dispatch to gimple_simplify.
842         * tree-ssa-propagate.c
843         (substitute_and_fold_dom_walker::before_dom_children): Allow
844         following single-use edges when folding stmts we propagated into.
845
846 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
847             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
848             Anna Tikhonova  <anna.tikhonova@intel.com>
849             Ilya Tocar  <ilya.tocar@intel.com>
850             Andrey Turetskiy  <andrey.turetskiy@intel.com>
851             Ilya Verbin  <ilya.verbin@intel.com>
852             Kirill Yukhin  <kirill.yukhin@intel.com>
853             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
854
855         * config/i386/avx512bwintrin.h: New.
856         * config/i386/avx512dqintrin.h: Ditto.
857         * config/i386/avx512vlbwintrin.h: Ditto.
858         * config/i386/avx512vldqintrin.h: Ditto.
859         * config/i386/avx512vlintrin.h: Ditto.
860         * config/i386/immintrin.h: Include avx512vlintrin.h, avx512bwintrin.h,
861         avx512dqintrin.h, avx512vlbwintrin.h, avx512vldqintrin.h.
862
863 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
864             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
865             Anna Tikhonova  <anna.tikhonova@intel.com>
866             Ilya Tocar  <ilya.tocar@intel.com>
867             Andrey Turetskiy  <andrey.turetskiy@intel.com>
868             Ilya Verbin  <ilya.verbin@intel.com>
869             Kirill Yukhin  <kirill.yukhin@intel.com>
870             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
871
872         * config/i386/i386.c
873         (ix86_expand_args_builtin): Handle avx_vpermilv4df_mask,
874         avx_shufpd256_mask, avx_vpermilv2df_mask.
875
876 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
877             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
878             Anna Tikhonova  <anna.tikhonova@intel.com>
879             Ilya Tocar  <ilya.tocar@intel.com>
880             Andrey Turetskiy  <andrey.turetskiy@intel.com>
881             Ilya Verbin  <ilya.verbin@intel.com>
882             Kirill Yukhin  <kirill.yukhin@intel.com>
883             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
884
885         * config/i386/i386.c
886         (ix86_init_mmx_sse_builtins):
887         Define __builtin_ia32_gather3siv2df, __builtin_ia32_gather3siv4df,
888         __builtin_ia32_gather3div2df, __builtin_ia32_gather3div4df,
889         __builtin_ia32_gather3siv4sf, __builtin_ia32_gather3siv8sf,
890         __builtin_ia32_gather3div4sf, __builtin_ia32_gather3div8sf,
891         __builtin_ia32_gather3siv2di, __builtin_ia32_gather3siv4di,
892         __builtin_ia32_gather3div2di, __builtin_ia32_gather3div4di,
893         __builtin_ia32_gather3siv4si, __builtin_ia32_gather3siv8si,
894         __builtin_ia32_gather3div4si, __builtin_ia32_gather3div8si,
895         __builtin_ia32_gather3altsiv4df, __builtin_ia32_gather3altdiv8sf,
896         __builtin_ia32_gather3altsiv4di, __builtin_ia32_gather3altdiv8si,
897         __builtin_ia32_scattersiv8sf, __builtin_ia32_scattersiv4sf,
898         __builtin_ia32_scattersiv4df, __builtin_ia32_scattersiv2df,
899         __builtin_ia32_scatterdiv8sf, __builtin_ia32_scatterdiv4sf,
900         __builtin_ia32_scatterdiv4df, __builtin_ia32_scatterdiv2df,
901         __builtin_ia32_scattersiv8si, __builtin_ia32_scattersiv4si,
902         __builtin_ia32_scattersiv4di, __builtin_ia32_scattersiv2di,
903         __builtin_ia32_scatterdiv8si, __builtin_ia32_scatterdiv4si,
904         __builtin_ia32_scatterdiv4di, __builtin_ia32_scatterdiv2di.
905
906 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
907             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
908             Anna Tikhonova  <anna.tikhonova@intel.com>
909             Ilya Tocar  <ilya.tocar@intel.com>
910             Andrey Turetskiy  <andrey.turetskiy@intel.com>
911             Ilya Verbin  <ilya.verbin@intel.com>
912             Kirill Yukhin  <kirill.yukhin@intel.com>
913             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
914
915         * config/i386/i386.c
916         (ix86_builtins): Add IX86_BUILTIN_GATHER3ALTSIV4DF,
917         IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTSIV4DI,
918         IX86_BUILTIN_GATHER3ALTDIV8SI.
919         (ix86_expand_builtin):
920         Handle IX86_BUILTIN_GATHER3ALTDIV8SF, IX86_BUILTIN_GATHER3ALTDIV8SI,
921         IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV4DI,
922         IX86_BUILTIN_SCATTERDIV2DF, IX86_BUILTIN_SCATTERDIV4DF,
923         IX86_BUILTIN_GATHER3ALTSIV4DI, IX86_BUILTIN_GATHER3ALTSIV4DF,
924         IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
925         IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3DIV8SI,
926         IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV4DI,
927         IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3SIV8SF,
928         IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
929         IX86_BUILTIN_GATHER3DIV2DI, IX86_BUILTIN_GATHER3DIV4DI,
930         IX86_BUILTIN_SCATTERDIV4SF, IX86_BUILTIN_SCATTERSIV2DI,
931         IX86_BUILTIN_GATHER3SIV2DI, IX86_BUILTIN_GATHER3SIV4SI,
932         IX86_BUILTIN_GATHER3SIV4SF, IX86_BUILTIN_GATHER3SIV2DF,
933         IX86_BUILTIN_SCATTERSIV2DF, IX86_BUILTIN_SCATTERDIV4SI,
934         IX86_BUILTIN_SCATTERSIV4SF, IX86_BUILTIN_SCATTERSIV4SI,
935         IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
936         IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV8SF,
937         IX86_BUILTIN_GATHER3DIV4SF, IX86_BUILTIN_SCATTERDIV8SF.
938         (ix86_vectorize_builtin_gather): Update V2DFmode, V4DFmode, V2DImode,
939         V4DImode, V4SFmode, V8SFmode, V4SImode, V8SImode.
940
941 2014-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
942             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
943             Anna Tikhonova  <anna.tikhonova@intel.com>
944             Ilya Tocar  <ilya.tocar@intel.com>
945             Andrey Turetskiy  <andrey.turetskiy@intel.com>
946             Ilya Verbin  <ilya.verbin@intel.com>
947             Kirill Yukhin  <kirill.yukhin@intel.com>
948             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
949
950         * config/i386/i386-builtin-types.def
951         (SHORT): New.
952         (V32HI): Ditto.
953         (V12QI): Ditto.
954         (V14QI): Ditto.
955         (V32SI): Ditto.
956         (V8UDI): Ditto.
957         (V16USI): Ditto.
958         (V32UHI): Ditto.
959         (PSHORT): Ditto.
960         (PV32QI): Ditto.
961         (PV32HI): Ditto.
962         (PV64QI): Ditto.
963         (PCV8HI): Ditto.
964         (PCV16QI): Ditto.
965         (PCV16HI): Ditto.
966         (PCV32QI): Ditto.
967         (PCV32HI): Ditto.
968         (PCV64QI): Ditto.
969         (V4SF_FTYPE_V2DF_V4SF_QI): Ditto.
970         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
971         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
972         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
973         (V16SF_FTYPE_V16HI): Ditto.
974         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
975         (V16SF_FTYPE_V16SI): Ditto.
976         (V4DI_FTYPE_V4DI): Ditto.
977         (V16SI_FTYPE_V16SF): Ditto.
978         (V8DI_FTYPE_PV2DI): Ditto.
979         (V8DF_FTYPE_PV2DF): Ditto.
980         (V4DI_FTYPE_PV2DI): Ditto.
981         (V4DF_FTYPE_PV2DF): Ditto.
982         (V16SI_FTYPE_PV2SI): Ditto.
983         (V16SF_FTYPE_PV2SF): Ditto.
984         (V8SF_FTYPE_FLOAT): Ditto.
985         (V4SF_FTYPE_FLOAT): Ditto.
986         (V4DF_FTYPE_DOUBLE): Ditto.
987         (V8SF_FTYPE_PV4SF): Ditto.
988         (V8SI_FTYPE_PV4SI): Ditto.
989         (V4SI_FTYPE_PV2SI): Ditto.
990         (V8SF_FTYPE_PV2SF): Ditto.
991         (V8SI_FTYPE_PV2SI): Ditto.
992         (V16SF_FTYPE_PV8SF): Ditto.
993         (V16SI_FTYPE_PV8SI): Ditto.
994         (V8DI_FTYPE_V8SF): Ditto.
995         (V4DI_FTYPE_V4SF): Ditto.
996         (V2DI_FTYPE_V4SF): Ditto.
997         (V64QI_FTYPE_QI): Ditto.
998         (V32HI_FTYPE_HI): Ditto.
999         (V16UHI_FTYPE_V16UHI): Ditto.
1000         (V32UHI_FTYPE_V32UHI): Ditto.
1001         (V2UDI_FTYPE_V2UDI): Ditto.
1002         (V4UDI_FTYPE_V4UDI): Ditto.
1003         (V8UDI_FTYPE_V8UDI): Ditto.
1004         (V4USI_FTYPE_V4USI): Ditto.
1005         (V16USI_FTYPE_V16USI): Ditto.
1006         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
1007         (V2DF_FTYPE_V8DF_INT): Ditto.
1008         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
1009         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
1010         (V8DF_FTYPE_V8DF_INT): Ditto.
1011         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
1012         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
1013         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
1014         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
1015         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
1016         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
1017         (V8DI_FTYPE_V8DI_INT): Ditto.
1018         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
1019         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
1020         (V8SF_FTYPE_V16SF_INT): Ditto.
1021         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
1022         (V64QI_FTYPE_V32HI_V32HI): Ditto.
1023         (V32HI_FTYPE_V16SI_V16SI): Ditto.
1024         (V8DF_FTYPE_V8DF_V2DF_INT): Ditto.
1025         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
1026         (V8DF_FTYPE_V8DF_V8DF_INT): Ditto.
1027         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT): Ditto.
1028         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT): Ditto.
1029         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
1030         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
1031         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
1032         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT): Ditto.
1033         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
1034         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
1035         (V32HI_FTYPE_V64QI_V64QI): Ditto.
1036         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
1037         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
1038         (V32HI_FTYPE_V32HI_V32HI): Ditto.
1039         (V32HI_FTYPE_V32HI_INT): Ditto.
1040         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
1041         (V16SI_FTYPE_V32HI_V32HI): Ditto.
1042         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
1043         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
1044         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
1045         (V8SI_FTYPE_V16SI_INT): Ditto.
1046         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
1047         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
1048         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
1049         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
1050         (V8DI_FTYPE_V8DI_V4DI_INT): Ditto.
1051         (V8DI_FTYPE_V8DI_V2DI_INT): Ditto.
1052         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
1053         (V8DI_FTYPE_V16SI_V16SI): Ditto.
1054         (V8DI_FTYPE_V64QI_V64QI): Ditto.
1055         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
1056         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
1057         (V2DI_FTYPE_V8DI_INT): Ditto.
1058         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
1059         (QI_FTYPE_QI): Ditto.
1060         (SI_FTYPE_SI): Ditto.
1061         (DI_FTYPE_DI): Ditto.
1062         (HI_FTYPE_V16QI): Ditto.
1063         (SI_FTYPE_V32QI): Ditto.
1064         (DI_FTYPE_V64QI): Ditto.
1065         (QI_FTYPE_V8HI): Ditto.
1066         (HI_FTYPE_V16HI): Ditto.
1067         (SI_FTYPE_V32HI): Ditto.
1068         (QI_FTYPE_V4SI): Ditto.
1069         (QI_FTYPE_V8SI): Ditto.
1070         (HI_FTYPE_V16SI): Ditto.
1071         (QI_FTYPE_V2DI): Ditto.
1072         (QI_FTYPE_V4DI): Ditto.
1073         (QI_FTYPE_V8DI): Ditto.
1074         (V16QI_FTYPE_HI): Ditto.
1075         (V32QI_FTYPE_SI): Ditto.
1076         (V64QI_FTYPE_DI): Ditto.
1077         (V8HI_FTYPE_QI): Ditto.
1078         (V16HI_FTYPE_HI): Ditto.
1079         (V32HI_FTYPE_SI): Ditto.
1080         (V4SI_FTYPE_QI): Ditto.
1081         (V4SI_FTYPE_HI): Ditto.
1082         (V8SI_FTYPE_QI): Ditto.
1083         (V8SI_FTYPE_HI): Ditto.
1084         (V2DI_FTYPE_QI): Ditto.
1085         (V4DI_FTYPE_QI): Ditto.
1086         (QI_FTYPE_QI_QI): Ditto.
1087         (SI_FTYPE_SI_SI): Ditto.
1088         (DI_FTYPE_DI_DI): Ditto.
1089         (QI_FTYPE_QI_INT): Ditto.
1090         (SI_FTYPE_SI_INT): Ditto.
1091         (DI_FTYPE_DI_INT): Ditto.
1092         (HI_FTYPE_V16QI_V16QI): Ditto.
1093         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
1094         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
1095         (SI_FTYPE_V32QI_V32QI): Ditto.
1096         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
1097         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
1098         (DI_FTYPE_V64QI_V64QI): Ditto.
1099         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
1100         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
1101         (QI_FTYPE_V8HI_V8HI): Ditto.
1102         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
1103         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
1104         (HI_FTYPE_V16HI_V16HI): Ditto.
1105         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
1106         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
1107         (SI_FTYPE_V32HI_V32HI): Ditto.
1108         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
1109         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
1110         (QI_FTYPE_V4SI_V4SI): Ditto.
1111         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
1112         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
1113         (QI_FTYPE_V8SI_V8SI): Ditto.
1114         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
1115         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
1116         (QI_FTYPE_V2DI_V2DI): Ditto.
1117         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
1118         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
1119         (QI_FTYPE_V4DI_V4DI): Ditto.
1120         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
1121         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
1122         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
1123         (V4DF_FTYPE_V4DF_V4DI_INT): Ditto.
1124         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
1125         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
1126         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
1127         (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
1128         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
1129         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
1130         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
1131         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
1132         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
1133         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
1134         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
1135         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
1136         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
1137         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
1138         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
1139         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
1140         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
1141         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
1142         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
1143         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
1144         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
1145         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
1146         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
1147         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
1148         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
1149         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
1150         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
1151         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
1152         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
1153         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
1154         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
1155         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
1156         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
1157         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
1158         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
1159         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
1160         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
1161         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
1162         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
1163         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
1164         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
1165         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
1166         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
1167         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
1168         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
1169         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
1170         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
1171         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
1172         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
1173         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
1174         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
1175         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
1176         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
1177         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
1178         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
1179         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
1180         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
1181         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
1182         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
1183         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
1184         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
1185         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
1186         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
1187         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
1188         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
1189         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
1190         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
1191         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
1192         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
1193         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
1194         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
1195         (V32HI_FTYPE_V64QI_V64QI_INT): Ditto.
1196         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
1197         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
1198         (V16HI_FTYPE_V32QI_V32QI_INT): Ditto.
1199         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
1200         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
1201         (V8HI_FTYPE_V16QI_V16QI_INT): Ditto.
1202         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
1203         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
1204         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
1205         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
1206         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
1207         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
1208         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
1209         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
1210         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
1211         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
1212         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
1213         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
1214         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
1215         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
1216         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
1217         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
1218         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
1219         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
1220         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
1221         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
1222         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
1223         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
1224         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
1225         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
1226         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
1227         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
1228         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
1229         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
1230         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
1231         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
1232         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
1233         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
1234         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
1235         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
1236         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
1237         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
1238         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
1239         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
1240         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
1241         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
1242         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
1243         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
1244         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
1245         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
1246         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
1247         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
1248         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
1249         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
1250         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
1251         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
1252         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
1253         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
1254         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
1255         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
1256         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
1257         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
1258         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
1259         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
1260         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
1261         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
1262         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
1263         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
1264         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
1265         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
1266         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
1267         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
1268         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
1269         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
1270         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
1271         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
1272         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
1273         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
1274         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
1275         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
1276         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
1277         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
1278         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
1279         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
1280         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
1281         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
1282         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
1283         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
1284         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
1285         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
1286         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
1287         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
1288         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
1289         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
1290         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
1291         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
1292         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
1293         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
1294         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
1295         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
1296         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
1297         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
1298         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
1299         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
1300         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
1301         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
1302         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
1303         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
1304         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
1305         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
1306         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
1307         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
1308         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
1309         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
1310         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
1311         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
1312         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
1313         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
1314         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
1315         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
1316         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
1317         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
1318         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
1319         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
1320         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
1321         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
1322         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
1323         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
1324         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
1325         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
1326         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
1327         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
1328         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
1329         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
1330         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
1331         (QI_FTYPE_V8DF_INT): Ditto.
1332         (QI_FTYPE_V4DF_INT): Ditto.
1333         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
1334         (QI_FTYPE_V2DF_INT): Ditto.
1335         (HI_FTYPE_V16SF_INT): Ditto.
1336         (QI_FTYPE_V8SF_INT): Ditto.
1337         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
1338         (QI_FTYPE_V4SF_INT): Ditto.
1339         (QI_FTYPE_V8DF_INT_QI): Ditto.
1340         (QI_FTYPE_V4DF_INT_QI): Ditto.
1341         (QI_FTYPE_V2DF_INT_QI): Ditto.
1342         (HI_FTYPE_V16SF_INT_HI): Ditto.
1343         (QI_FTYPE_V8SF_INT_QI): Ditto.
1344         (QI_FTYPE_V4SF_INT_QI): Ditto.
1345         (V8DI_FTYPE_V8DF_V8DI_QI_INT): Ditto.
1346         (V8DI_FTYPE_V8SF_V8DI_QI_INT): Ditto.
1347         (V8DF_FTYPE_V8DI_V8DF_QI_INT): Ditto.
1348         (V8SF_FTYPE_V8DI_V8SF_QI_INT): Ditto.
1349         (V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_QI_INT): Ditto.
1350         (V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_QI_INT): Ditto.
1351         (V4DF_FTYPE_V4DF_PCDOUBLE_V8SI_QI_INT): Ditto.
1352         (V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_QI_INT): Ditto.
1353         (V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_QI_INT): Ditto.
1354         (V4SF_FTYPE_V4SF_PCFLOAT_V4SI_QI_INT): Ditto.
1355         (V8SF_FTYPE_V8SF_PCFLOAT_V8SI_QI_INT): Ditto.
1356         (V4SF_FTYPE_V4SF_PCFLOAT_V2DI_QI_INT): Ditto.
1357         (V4SF_FTYPE_V4SF_PCFLOAT_V4DI_QI_INT): Ditto.
1358         (V8SF_FTYPE_V8SF_PCFLOAT_V4DI_QI_INT): Ditto.
1359         (V2DI_FTYPE_V2DI_PCINT64_V4SI_QI_INT): Ditto.
1360         (V4DI_FTYPE_V4DI_PCINT64_V4SI_QI_INT): Ditto.
1361         (V4DI_FTYPE_V4DI_PCINT64_V8SI_QI_INT): Ditto.
1362         (V2DI_FTYPE_V2DI_PCINT64_V2DI_QI_INT): Ditto.
1363         (V4DI_FTYPE_V4DI_PCINT64_V4DI_QI_INT): Ditto.
1364         (V4SI_FTYPE_V4SI_PCINT_V4SI_QI_INT): Ditto.
1365         (V8SI_FTYPE_V8SI_PCINT_V8SI_QI_INT): Ditto.
1366         (V4SI_FTYPE_V4SI_PCINT_V2DI_QI_INT): Ditto.
1367         (V4SI_FTYPE_V4SI_PCINT_V4DI_QI_INT): Ditto.
1368         (V8SI_FTYPE_V8SI_PCINT_V4DI_QI_INT): Ditto.
1369         (VOID_FTYPE_PFLOAT_QI_V8SI_V8SF_INT): Ditto.
1370         (VOID_FTYPE_PFLOAT_QI_V4SI_V4SF_INT): Ditto.
1371         (VOID_FTYPE_PDOUBLE_QI_V4SI_V4DF_INT): Ditto.
1372         (VOID_FTYPE_PDOUBLE_QI_V4SI_V2DF_INT): Ditto.
1373         (VOID_FTYPE_PFLOAT_QI_V4DI_V4SF_INT): Ditto.
1374         (VOID_FTYPE_PFLOAT_QI_V2DI_V4SF_INT): Ditto.
1375         (VOID_FTYPE_PDOUBLE_QI_V4DI_V4DF_INT): Ditto.
1376         (VOID_FTYPE_PDOUBLE_QI_V2DI_V2DF_INT): Ditto.
1377         (VOID_FTYPE_PINT_QI_V8SI_V8SI_INT): Ditto.
1378         (VOID_FTYPE_PINT_QI_V4SI_V4SI_INT): Ditto.
1379         (VOID_FTYPE_PLONGLONG_QI_V4SI_V4DI_INT): Ditto.
1380         (VOID_FTYPE_PLONGLONG_QI_V4SI_V2DI_INT): Ditto.
1381         (VOID_FTYPE_PINT_QI_V4DI_V4SI_INT): Ditto.
1382         (VOID_FTYPE_PINT_QI_V2DI_V4SI_INT): Ditto.
1383         (VOID_FTYPE_PLONGLONG_QI_V4DI_V4DI_INT): Ditto.
1384         (VOID_FTYPE_PLONGLONG_QI_V2DI_V2DI_INT): Ditto.
1385         (V8DI_FTYPE_V8DI_INT): Ditto.
1386         (V8DI_FTYPE_V8DI_V8DI_INT): Ditto.
1387         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
1388         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
1389         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
1390         (V2DF_FTYPE_ V2DF_ V2DF_ V2DI_ INT_ QI): Remove.
1391         (V4SF_FTYPE_ V4SF_ V2DF_ V4SF_ QI): Ditto.
1392         (V4SF_FTYPE_ V4SF_ V4SF_ V4SF_ QI): Ditto.
1393         (V2DF_FTYPE_ PCDOUBLE_ V2DF_ QI): Ditto.
1394         (V4SF_FTYPE_ PCFLOAT_ V4SF_ QI): Ditto.
1395         (V16QI_FTYPE_ V16SI_ V16QI_ HI): Ditto.
1396         (V16QI_FTYPE_ V8DI_ V16QI_ QI): Ditto.
1397         (V4SF_FTYPE_ V4SF_ V4SF_ INT_ V4SF_ QI): Ditto.
1398         (V2DF_FTYPE_ V2DF_ V2DF_ INT_ V2DF_ QI): Ditto.
1399         (V8DI_FTYPE_ V16SI_ V16SI_ V8DI_ QI): Ditto.
1400         * config/i386/i386.c (ix86_builtins):
1401         Add IX86_BUILTIN_PMOVUSQD256_MEM, IX86_BUILTIN_PMOVUSQD128_MEM,
1402         IX86_BUILTIN_PMOVSQD256_MEM, IX86_BUILTIN_PMOVSQD128_MEM,
1403         IX86_BUILTIN_PMOVQD256_MEM, IX86_BUILTIN_PMOVQD128_MEM,
1404         IX86_BUILTIN_PMOVUSQW256_MEM, IX86_BUILTIN_PMOVUSQW128_MEM,
1405         IX86_BUILTIN_PMOVSQW256_MEM, IX86_BUILTIN_PMOVSQW128_MEM,
1406         IX86_BUILTIN_PMOVQW256_MEM, IX86_BUILTIN_PMOVQW128_MEM,
1407         IX86_BUILTIN_PMOVUSQB256_MEM, IX86_BUILTIN_PMOVUSQB128_MEM,
1408         IX86_BUILTIN_PMOVSQB256_MEM, IX86_BUILTIN_PMOVSQB128_MEM,
1409         IX86_BUILTIN_PMOVQB256_MEM, IX86_BUILTIN_PMOVQB128_MEM,
1410         IX86_BUILTIN_PMOVUSDW256_MEM, IX86_BUILTIN_PMOVUSDW128_MEM,
1411         IX86_BUILTIN_PMOVSDW256_MEM, IX86_BUILTIN_PMOVSDW128_MEM,
1412         IX86_BUILTIN_PMOVDW256_MEM, IX86_BUILTIN_PMOVDW128_MEM,
1413         IX86_BUILTIN_PMOVUSDB256_MEM, IX86_BUILTIN_PMOVUSDB128_MEM,
1414         IX86_BUILTIN_PMOVSDB256_MEM, IX86_BUILTIN_PMOVSDB128_MEM,
1415         IX86_BUILTIN_PMOVDB256_MEM, IX86_BUILTIN_PMOVDB128_MEM,
1416         IX86_BUILTIN_MOVDQA64LOAD256_MASK, IX86_BUILTIN_MOVDQA64LOAD128_MASK,
1417         IX86_BUILTIN_MOVDQA32LOAD256_MASK, IX86_BUILTIN_MOVDQA32LOAD128_MASK,
1418         IX86_BUILTIN_MOVDQA64STORE256_MASK, IX86_BUILTIN_MOVDQA64STORE128_MASK,
1419         IX86_BUILTIN_MOVDQA32STORE256_MASK, IX86_BUILTIN_MOVDQA32STORE128_MASK,
1420         IX86_BUILTIN_LOADAPD256_MASK, IX86_BUILTIN_LOADAPD128_MASK,
1421         IX86_BUILTIN_LOADAPS256_MASK, IX86_BUILTIN_LOADAPS128_MASK,
1422         IX86_BUILTIN_STOREAPD256_MASK, IX86_BUILTIN_STOREAPD128_MASK,
1423         IX86_BUILTIN_STOREAPS256_MASK, IX86_BUILTIN_STOREAPS128_MASK,
1424         IX86_BUILTIN_LOADUPD256_MASK, IX86_BUILTIN_LOADUPD128_MASK,
1425         IX86_BUILTIN_LOADUPS256_MASK, IX86_BUILTIN_LOADUPS128_MASK,
1426         IX86_BUILTIN_STOREUPD256_MASK, IX86_BUILTIN_STOREUPD128_MASK,
1427         IX86_BUILTIN_STOREUPS256_MASK, IX86_BUILTIN_STOREUPS128_MASK,
1428         IX86_BUILTIN_LOADDQUDI256_MASK, IX86_BUILTIN_LOADDQUDI128_MASK,
1429         IX86_BUILTIN_LOADDQUSI256_MASK, IX86_BUILTIN_LOADDQUSI128_MASK,
1430         IX86_BUILTIN_LOADDQUHI256_MASK, IX86_BUILTIN_LOADDQUHI128_MASK,
1431         IX86_BUILTIN_LOADDQUQI256_MASK, IX86_BUILTIN_LOADDQUQI128_MASK,
1432         IX86_BUILTIN_STOREDQUDI256_MASK, IX86_BUILTIN_STOREDQUDI128_MASK,
1433         IX86_BUILTIN_STOREDQUSI256_MASK, IX86_BUILTIN_STOREDQUSI128_MASK,
1434         IX86_BUILTIN_STOREDQUHI256_MASK, IX86_BUILTIN_STOREDQUHI128_MASK,
1435         IX86_BUILTIN_STOREDQUQI256_MASK, IX86_BUILTIN_STOREDQUQI128_MASK,
1436         IX86_BUILTIN_COMPRESSPDSTORE256, IX86_BUILTIN_COMPRESSPDSTORE128,
1437         IX86_BUILTIN_COMPRESSPSSTORE256, IX86_BUILTIN_COMPRESSPSSTORE128,
1438         IX86_BUILTIN_PCOMPRESSQSTORE256, IX86_BUILTIN_PCOMPRESSQSTORE128,
1439         IX86_BUILTIN_PCOMPRESSDSTORE256, IX86_BUILTIN_PCOMPRESSDSTORE128,
1440         IX86_BUILTIN_EXPANDPDLOAD256, IX86_BUILTIN_EXPANDPDLOAD128,
1441         IX86_BUILTIN_EXPANDPSLOAD256, IX86_BUILTIN_EXPANDPSLOAD128,
1442         IX86_BUILTIN_PEXPANDQLOAD256, IX86_BUILTIN_PEXPANDQLOAD128,
1443         IX86_BUILTIN_PEXPANDDLOAD256, IX86_BUILTIN_PEXPANDDLOAD128,
1444         IX86_BUILTIN_EXPANDPDLOAD256Z, IX86_BUILTIN_EXPANDPDLOAD128Z,
1445         IX86_BUILTIN_EXPANDPSLOAD256Z, IX86_BUILTIN_EXPANDPSLOAD128Z,
1446         IX86_BUILTIN_PEXPANDQLOAD256Z, IX86_BUILTIN_PEXPANDQLOAD128Z,
1447         IX86_BUILTIN_PEXPANDDLOAD256Z, IX86_BUILTIN_PEXPANDDLOAD128Z,
1448         IX86_BUILTIN_PALIGNR256_MASK, IX86_BUILTIN_PALIGNR128_MASK,
1449         IX86_BUILTIN_MOVDQA64_256_MASK, IX86_BUILTIN_MOVDQA64_128_MASK,
1450         IX86_BUILTIN_MOVDQA32_256_MASK, IX86_BUILTIN_MOVDQA32_128_MASK,
1451         IX86_BUILTIN_MOVAPD256_MASK, IX86_BUILTIN_MOVAPD128_MASK,
1452         IX86_BUILTIN_MOVAPS256_MASK, IX86_BUILTIN_MOVAPS128_MASK,
1453         IX86_BUILTIN_MOVDQUHI256_MASK, IX86_BUILTIN_MOVDQUHI128_MASK,
1454         IX86_BUILTIN_MOVDQUQI256_MASK, IX86_BUILTIN_MOVDQUQI128_MASK,
1455         IX86_BUILTIN_MINPS128_MASK, IX86_BUILTIN_MAXPS128_MASK,
1456         IX86_BUILTIN_MINPD128_MASK, IX86_BUILTIN_MAXPD128_MASK,
1457         IX86_BUILTIN_MAXPD256_MASK, IX86_BUILTIN_MAXPS256_MASK,
1458         IX86_BUILTIN_MINPD256_MASK, IX86_BUILTIN_MINPS256_MASK,
1459         IX86_BUILTIN_MULPS128_MASK, IX86_BUILTIN_DIVPS128_MASK,
1460         IX86_BUILTIN_MULPD128_MASK, IX86_BUILTIN_DIVPD128_MASK,
1461         IX86_BUILTIN_DIVPD256_MASK, IX86_BUILTIN_DIVPS256_MASK,
1462         IX86_BUILTIN_MULPD256_MASK, IX86_BUILTIN_MULPS256_MASK,
1463         IX86_BUILTIN_ADDPD128_MASK, IX86_BUILTIN_ADDPD256_MASK,
1464         IX86_BUILTIN_ADDPS128_MASK, IX86_BUILTIN_ADDPS256_MASK,
1465         IX86_BUILTIN_SUBPD128_MASK, IX86_BUILTIN_SUBPD256_MASK,
1466         IX86_BUILTIN_SUBPS128_MASK, IX86_BUILTIN_SUBPS256_MASK,
1467         IX86_BUILTIN_XORPD256_MASK, IX86_BUILTIN_XORPD128_MASK,
1468         IX86_BUILTIN_XORPS256_MASK, IX86_BUILTIN_XORPS128_MASK,
1469         IX86_BUILTIN_ORPD256_MASK, IX86_BUILTIN_ORPD128_MASK,
1470         IX86_BUILTIN_ORPS256_MASK, IX86_BUILTIN_ORPS128_MASK,
1471         IX86_BUILTIN_BROADCASTF32x2_256, IX86_BUILTIN_BROADCASTI32x2_256,
1472         IX86_BUILTIN_BROADCASTI32x2_128, IX86_BUILTIN_BROADCASTF64X2_256,
1473         IX86_BUILTIN_BROADCASTI64X2_256, IX86_BUILTIN_BROADCASTF32X4_256,
1474         IX86_BUILTIN_BROADCASTI32X4_256, IX86_BUILTIN_EXTRACTF32X4_256,
1475         IX86_BUILTIN_EXTRACTI32X4_256, IX86_BUILTIN_DBPSADBW256,
1476         IX86_BUILTIN_DBPSADBW128, IX86_BUILTIN_CVTTPD2QQ256,
1477         IX86_BUILTIN_CVTTPD2QQ128, IX86_BUILTIN_CVTTPD2UQQ256,
1478         IX86_BUILTIN_CVTTPD2UQQ128, IX86_BUILTIN_CVTPD2QQ256,
1479         IX86_BUILTIN_CVTPD2QQ128, IX86_BUILTIN_CVTPD2UQQ256,
1480         IX86_BUILTIN_CVTPD2UQQ128, IX86_BUILTIN_CVTPD2UDQ256_MASK,
1481         IX86_BUILTIN_CVTPD2UDQ128_MASK, IX86_BUILTIN_CVTTPS2QQ256,
1482         IX86_BUILTIN_CVTTPS2QQ128, IX86_BUILTIN_CVTTPS2UQQ256,
1483         IX86_BUILTIN_CVTTPS2UQQ128, IX86_BUILTIN_CVTTPS2DQ256_MASK,
1484         IX86_BUILTIN_CVTTPS2DQ128_MASK, IX86_BUILTIN_CVTTPS2UDQ256,
1485         IX86_BUILTIN_CVTTPS2UDQ128, IX86_BUILTIN_CVTTPD2DQ256_MASK,
1486         IX86_BUILTIN_CVTTPD2DQ128_MASK, IX86_BUILTIN_CVTTPD2UDQ256_MASK,
1487         IX86_BUILTIN_CVTTPD2UDQ128_MASK, IX86_BUILTIN_CVTPD2DQ256_MASK,
1488         IX86_BUILTIN_CVTPD2DQ128_MASK, IX86_BUILTIN_CVTDQ2PD256_MASK,
1489         IX86_BUILTIN_CVTDQ2PD128_MASK, IX86_BUILTIN_CVTUDQ2PD256_MASK,
1490         IX86_BUILTIN_CVTUDQ2PD128_MASK, IX86_BUILTIN_CVTDQ2PS256_MASK,
1491         IX86_BUILTIN_CVTDQ2PS128_MASK, IX86_BUILTIN_CVTUDQ2PS256_MASK,
1492         IX86_BUILTIN_CVTUDQ2PS128_MASK, IX86_BUILTIN_CVTPS2PD256_MASK,
1493         IX86_BUILTIN_CVTPS2PD128_MASK, IX86_BUILTIN_PBROADCASTB256_MASK,
1494         IX86_BUILTIN_PBROADCASTB256_GPR_MASK, IX86_BUILTIN_PBROADCASTB128_MASK,
1495         IX86_BUILTIN_PBROADCASTB128_GPR_MASK, IX86_BUILTIN_PBROADCASTW256_MASK,
1496         IX86_BUILTIN_PBROADCASTW256_GPR_MASK, IX86_BUILTIN_PBROADCASTW128_MASK,
1497         IX86_BUILTIN_PBROADCASTW128_GPR_MASK, IX86_BUILTIN_PBROADCASTD256_MASK,
1498         IX86_BUILTIN_PBROADCASTD256_GPR_MASK, IX86_BUILTIN_PBROADCASTD128_MASK,
1499         IX86_BUILTIN_PBROADCASTD128_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MASK,
1500         IX86_BUILTIN_PBROADCASTQ256_GPR_MASK, IX86_BUILTIN_PBROADCASTQ256_MEM_MASK,
1501         IX86_BUILTIN_PBROADCASTQ128_MASK, IX86_BUILTIN_PBROADCASTQ128_GPR_MASK,
1502         IX86_BUILTIN_PBROADCASTQ128_MEM_MASK, IX86_BUILTIN_BROADCASTSS256,
1503         IX86_BUILTIN_BROADCASTSS128, IX86_BUILTIN_BROADCASTSD256,
1504         IX86_BUILTIN_EXTRACTF64X2_256, IX86_BUILTIN_EXTRACTI64X2_256,
1505         IX86_BUILTIN_INSERTF32X4_256, IX86_BUILTIN_INSERTI32X4_256,
1506         IX86_BUILTIN_PMOVSXBW256_MASK, IX86_BUILTIN_PMOVSXBW128_MASK,
1507         IX86_BUILTIN_PMOVSXBD256_MASK, IX86_BUILTIN_PMOVSXBD128_MASK,
1508         IX86_BUILTIN_PMOVSXBQ256_MASK, IX86_BUILTIN_PMOVSXBQ128_MASK,
1509         IX86_BUILTIN_PMOVSXWD256_MASK, IX86_BUILTIN_PMOVSXWD128_MASK,
1510         IX86_BUILTIN_PMOVSXWQ256_MASK, IX86_BUILTIN_PMOVSXWQ128_MASK,
1511         IX86_BUILTIN_PMOVSXDQ256_MASK, IX86_BUILTIN_PMOVSXDQ128_MASK,
1512         IX86_BUILTIN_PMOVZXBW256_MASK, IX86_BUILTIN_PMOVZXBW128_MASK,
1513         IX86_BUILTIN_PMOVZXBD256_MASK, IX86_BUILTIN_PMOVZXBD128_MASK,
1514         IX86_BUILTIN_PMOVZXBQ256_MASK, IX86_BUILTIN_PMOVZXBQ128_MASK,
1515         IX86_BUILTIN_PMOVZXWD256_MASK, IX86_BUILTIN_PMOVZXWD128_MASK,
1516         IX86_BUILTIN_PMOVZXWQ256_MASK, IX86_BUILTIN_PMOVZXWQ128_MASK,
1517         IX86_BUILTIN_PMOVZXDQ256_MASK, IX86_BUILTIN_PMOVZXDQ128_MASK,
1518         IX86_BUILTIN_REDUCEPD256_MASK, IX86_BUILTIN_REDUCEPD128_MASK,
1519         IX86_BUILTIN_REDUCEPS256_MASK, IX86_BUILTIN_REDUCEPS128_MASK,
1520         IX86_BUILTIN_REDUCESD_MASK, IX86_BUILTIN_REDUCESS_MASK,
1521         IX86_BUILTIN_VPERMVARHI256_MASK, IX86_BUILTIN_VPERMVARHI128_MASK,
1522         IX86_BUILTIN_VPERMT2VARHI256, IX86_BUILTIN_VPERMT2VARHI256_MASKZ,
1523         IX86_BUILTIN_VPERMT2VARHI128, IX86_BUILTIN_VPERMT2VARHI128_MASKZ,
1524         IX86_BUILTIN_VPERMI2VARHI256, IX86_BUILTIN_VPERMI2VARHI128,
1525         IX86_BUILTIN_RCP14PD256, IX86_BUILTIN_RCP14PD128,
1526         IX86_BUILTIN_RCP14PS256, IX86_BUILTIN_RCP14PS128,
1527         IX86_BUILTIN_RSQRT14PD256_MASK, IX86_BUILTIN_RSQRT14PD128_MASK,
1528         IX86_BUILTIN_RSQRT14PS256_MASK, IX86_BUILTIN_RSQRT14PS128_MASK,
1529         IX86_BUILTIN_SQRTPD256_MASK, IX86_BUILTIN_SQRTPD128_MASK,
1530         IX86_BUILTIN_SQRTPS256_MASK, IX86_BUILTIN_SQRTPS128_MASK,
1531         IX86_BUILTIN_PADDB128_MASK, IX86_BUILTIN_PADDW128_MASK,
1532         IX86_BUILTIN_PADDD128_MASK, IX86_BUILTIN_PADDQ128_MASK,
1533         IX86_BUILTIN_PSUBB128_MASK, IX86_BUILTIN_PSUBW128_MASK,
1534         IX86_BUILTIN_PSUBD128_MASK, IX86_BUILTIN_PSUBQ128_MASK,
1535         IX86_BUILTIN_PADDSB128_MASK, IX86_BUILTIN_PADDSW128_MASK,
1536         IX86_BUILTIN_PSUBSB128_MASK, IX86_BUILTIN_PSUBSW128_MASK,
1537         IX86_BUILTIN_PADDUSB128_MASK, IX86_BUILTIN_PADDUSW128_MASK,
1538         IX86_BUILTIN_PSUBUSB128_MASK, IX86_BUILTIN_PSUBUSW128_MASK,
1539         IX86_BUILTIN_PADDB256_MASK, IX86_BUILTIN_PADDW256_MASK,
1540         IX86_BUILTIN_PADDD256_MASK, IX86_BUILTIN_PADDQ256_MASK,
1541         IX86_BUILTIN_PADDSB256_MASK, IX86_BUILTIN_PADDSW256_MASK,
1542         IX86_BUILTIN_PADDUSB256_MASK, IX86_BUILTIN_PADDUSW256_MASK,
1543         IX86_BUILTIN_PSUBB256_MASK, IX86_BUILTIN_PSUBW256_MASK,
1544         IX86_BUILTIN_PSUBD256_MASK, IX86_BUILTIN_PSUBQ256_MASK,
1545         IX86_BUILTIN_PSUBSB256_MASK, IX86_BUILTIN_PSUBSW256_MASK,
1546         IX86_BUILTIN_PSUBUSB256_MASK, IX86_BUILTIN_PSUBUSW256_MASK,
1547         IX86_BUILTIN_SHUF_F64x2_256, IX86_BUILTIN_SHUF_I64x2_256,
1548         IX86_BUILTIN_SHUF_I32x4_256, IX86_BUILTIN_SHUF_F32x4_256,
1549         IX86_BUILTIN_PMOVWB128, IX86_BUILTIN_PMOVWB256,
1550         IX86_BUILTIN_PMOVSWB128, IX86_BUILTIN_PMOVSWB256,
1551         IX86_BUILTIN_PMOVUSWB128, IX86_BUILTIN_PMOVUSWB256,
1552         IX86_BUILTIN_PMOVDB128, IX86_BUILTIN_PMOVDB256,
1553         IX86_BUILTIN_PMOVSDB128, IX86_BUILTIN_PMOVSDB256,
1554         IX86_BUILTIN_PMOVUSDB128, IX86_BUILTIN_PMOVUSDB256,
1555         IX86_BUILTIN_PMOVDW128, IX86_BUILTIN_PMOVDW256,
1556         IX86_BUILTIN_PMOVSDW128, IX86_BUILTIN_PMOVSDW256,
1557         IX86_BUILTIN_PMOVUSDW128, IX86_BUILTIN_PMOVUSDW256,
1558         IX86_BUILTIN_PMOVQB128, IX86_BUILTIN_PMOVQB256,
1559         IX86_BUILTIN_PMOVSQB128, IX86_BUILTIN_PMOVSQB256,
1560         IX86_BUILTIN_PMOVUSQB128, IX86_BUILTIN_PMOVUSQB256,
1561         IX86_BUILTIN_PMOVQW128, IX86_BUILTIN_PMOVQW256,
1562         IX86_BUILTIN_PMOVSQW128, IX86_BUILTIN_PMOVSQW256,
1563         IX86_BUILTIN_PMOVUSQW128, IX86_BUILTIN_PMOVUSQW256,
1564         IX86_BUILTIN_PMOVQD128, IX86_BUILTIN_PMOVQD256,
1565         IX86_BUILTIN_PMOVSQD128, IX86_BUILTIN_PMOVSQD256,
1566         IX86_BUILTIN_PMOVUSQD128, IX86_BUILTIN_PMOVUSQD256,
1567         IX86_BUILTIN_RANGEPD256, IX86_BUILTIN_RANGEPD128,
1568         IX86_BUILTIN_RANGEPS256, IX86_BUILTIN_RANGEPS128,
1569         IX86_BUILTIN_GETEXPPS256, IX86_BUILTIN_GETEXPPD256,
1570         IX86_BUILTIN_GETEXPPS128, IX86_BUILTIN_GETEXPPD128,
1571         IX86_BUILTIN_FIXUPIMMPD256_MASK, IX86_BUILTIN_FIXUPIMMPD256_MASKZ,
1572         IX86_BUILTIN_FIXUPIMMPS256_MASK, IX86_BUILTIN_FIXUPIMMPS256_MASKZ,
1573         IX86_BUILTIN_FIXUPIMMPD128_MASK, IX86_BUILTIN_FIXUPIMMPD128_MASKZ,
1574         IX86_BUILTIN_FIXUPIMMPS128_MASK, IX86_BUILTIN_FIXUPIMMPS128_MASKZ,
1575         IX86_BUILTIN_PABSQ256, IX86_BUILTIN_PABSQ128,
1576         IX86_BUILTIN_PABSD256_MASK, IX86_BUILTIN_PABSD128_MASK,
1577         IX86_BUILTIN_PMULHRSW256_MASK, IX86_BUILTIN_PMULHRSW128_MASK,
1578         IX86_BUILTIN_PMULHUW128_MASK, IX86_BUILTIN_PMULHUW256_MASK,
1579         IX86_BUILTIN_PMULHW256_MASK, IX86_BUILTIN_PMULHW128_MASK,
1580         IX86_BUILTIN_PMULLW256_MASK, IX86_BUILTIN_PMULLW128_MASK,
1581         IX86_BUILTIN_PMULLQ256, IX86_BUILTIN_PMULLQ128,
1582         IX86_BUILTIN_ANDPD256_MASK, IX86_BUILTIN_ANDPD128_MASK,
1583         IX86_BUILTIN_ANDPS256_MASK, IX86_BUILTIN_ANDPS128_MASK,
1584         IX86_BUILTIN_ANDNPD256_MASK, IX86_BUILTIN_ANDNPD128_MASK,
1585         IX86_BUILTIN_ANDNPS256_MASK, IX86_BUILTIN_ANDNPS128_MASK,
1586         IX86_BUILTIN_PSLLWI128_MASK, IX86_BUILTIN_PSLLDI128_MASK,
1587         IX86_BUILTIN_PSLLQI128_MASK, IX86_BUILTIN_PSLLW128_MASK,
1588         IX86_BUILTIN_PSLLD128_MASK, IX86_BUILTIN_PSLLQ128_MASK,
1589         IX86_BUILTIN_PSLLWI256_MASK , IX86_BUILTIN_PSLLW256_MASK,
1590         IX86_BUILTIN_PSLLDI256_MASK, IX86_BUILTIN_PSLLD256_MASK,
1591         IX86_BUILTIN_PSLLQI256_MASK, IX86_BUILTIN_PSLLQ256_MASK,
1592         IX86_BUILTIN_PSRADI128_MASK, IX86_BUILTIN_PSRAD128_MASK,
1593         IX86_BUILTIN_PSRADI256_MASK, IX86_BUILTIN_PSRAD256_MASK,
1594         IX86_BUILTIN_PSRAQI128_MASK, IX86_BUILTIN_PSRAQ128_MASK,
1595         IX86_BUILTIN_PSRAQI256_MASK, IX86_BUILTIN_PSRAQ256_MASK,
1596         IX86_BUILTIN_PANDD256, IX86_BUILTIN_PANDD128,
1597         IX86_BUILTIN_PSRLDI128_MASK, IX86_BUILTIN_PSRLD128_MASK,
1598         IX86_BUILTIN_PSRLDI256_MASK, IX86_BUILTIN_PSRLD256_MASK,
1599         IX86_BUILTIN_PSRLQI128_MASK, IX86_BUILTIN_PSRLQ128_MASK,
1600         IX86_BUILTIN_PSRLQI256_MASK, IX86_BUILTIN_PSRLQ256_MASK,
1601         IX86_BUILTIN_PANDQ256, IX86_BUILTIN_PANDQ128,
1602         IX86_BUILTIN_PANDND256, IX86_BUILTIN_PANDND128,
1603         IX86_BUILTIN_PANDNQ256, IX86_BUILTIN_PANDNQ128,
1604         IX86_BUILTIN_PORD256, IX86_BUILTIN_PORD128,
1605         IX86_BUILTIN_PORQ256, IX86_BUILTIN_PORQ128,
1606         IX86_BUILTIN_PXORD256, IX86_BUILTIN_PXORD128,
1607         IX86_BUILTIN_PXORQ256, IX86_BUILTIN_PXORQ128,
1608         IX86_BUILTIN_PACKSSWB256_MASK, IX86_BUILTIN_PACKSSWB128_MASK,
1609         IX86_BUILTIN_PACKUSWB256_MASK, IX86_BUILTIN_PACKUSWB128_MASK,
1610         IX86_BUILTIN_RNDSCALEPS256, IX86_BUILTIN_RNDSCALEPD256,
1611         IX86_BUILTIN_RNDSCALEPS128, IX86_BUILTIN_RNDSCALEPD128,
1612         IX86_BUILTIN_VTERNLOGQ256_MASK, IX86_BUILTIN_VTERNLOGQ256_MASKZ,
1613         IX86_BUILTIN_VTERNLOGD256_MASK, IX86_BUILTIN_VTERNLOGD256_MASKZ,
1614         IX86_BUILTIN_VTERNLOGQ128_MASK, IX86_BUILTIN_VTERNLOGQ128_MASKZ,
1615         IX86_BUILTIN_VTERNLOGD128_MASK, IX86_BUILTIN_VTERNLOGD128_MASKZ,
1616         IX86_BUILTIN_SCALEFPD256, IX86_BUILTIN_SCALEFPS256,
1617         IX86_BUILTIN_SCALEFPD128, IX86_BUILTIN_SCALEFPS128,
1618         IX86_BUILTIN_VFMADDPD256_MASK, IX86_BUILTIN_VFMADDPD256_MASK3,
1619         IX86_BUILTIN_VFMADDPD256_MASKZ, IX86_BUILTIN_VFMADDPD128_MASK,
1620         IX86_BUILTIN_VFMADDPD128_MASK3, IX86_BUILTIN_VFMADDPD128_MASKZ,
1621         IX86_BUILTIN_VFMADDPS256_MASK, IX86_BUILTIN_VFMADDPS256_MASK3,
1622         IX86_BUILTIN_VFMADDPS256_MASKZ, IX86_BUILTIN_VFMADDPS128_MASK,
1623         IX86_BUILTIN_VFMADDPS128_MASK3, IX86_BUILTIN_VFMADDPS128_MASKZ,
1624         IX86_BUILTIN_VFMSUBPD256_MASK3, IX86_BUILTIN_VFMSUBPD128_MASK3,
1625         IX86_BUILTIN_VFMSUBPS256_MASK3, IX86_BUILTIN_VFMSUBPS128_MASK3,
1626         IX86_BUILTIN_VFNMADDPD256_MASK, IX86_BUILTIN_VFNMADDPD128_MASK,
1627         IX86_BUILTIN_VFNMADDPS256_MASK, IX86_BUILTIN_VFNMADDPS128_MASK,
1628         IX86_BUILTIN_VFNMSUBPD256_MASK, IX86_BUILTIN_VFNMSUBPD256_MASK3,
1629         IX86_BUILTIN_VFNMSUBPD128_MASK, IX86_BUILTIN_VFNMSUBPD128_MASK3,
1630         IX86_BUILTIN_VFNMSUBPS256_MASK, IX86_BUILTIN_VFNMSUBPS256_MASK3,
1631         IX86_BUILTIN_VFNMSUBPS128_MASK, IX86_BUILTIN_VFNMSUBPS128_MASK3,
1632         IX86_BUILTIN_VFMADDSUBPD256_MASK, IX86_BUILTIN_VFMADDSUBPD256_MASK3,
1633         IX86_BUILTIN_VFMADDSUBPD256_MASKZ, IX86_BUILTIN_VFMADDSUBPD128_MASK,
1634         IX86_BUILTIN_VFMADDSUBPD128_MASK3, IX86_BUILTIN_VFMADDSUBPD128_MASKZ,
1635         IX86_BUILTIN_VFMADDSUBPS256_MASK, IX86_BUILTIN_VFMADDSUBPS256_MASK3,
1636         IX86_BUILTIN_VFMADDSUBPS256_MASKZ, IX86_BUILTIN_VFMADDSUBPS128_MASK,
1637         IX86_BUILTIN_VFMADDSUBPS128_MASK3, IX86_BUILTIN_VFMADDSUBPS128_MASKZ,
1638         IX86_BUILTIN_VFMSUBADDPD256_MASK3, IX86_BUILTIN_VFMSUBADDPD128_MASK3,
1639         IX86_BUILTIN_VFMSUBADDPS256_MASK3, IX86_BUILTIN_VFMSUBADDPS128_MASK3,
1640         IX86_BUILTIN_INSERTF64X2_256, IX86_BUILTIN_INSERTI64X2_256,
1641         IX86_BUILTIN_PSRAVV16HI, IX86_BUILTIN_PSRAVV8HI,
1642         IX86_BUILTIN_PMADDUBSW256_MASK, IX86_BUILTIN_PMADDUBSW128_MASK,
1643         IX86_BUILTIN_PMADDWD256_MASK, IX86_BUILTIN_PMADDWD128_MASK,
1644         IX86_BUILTIN_PSRLVV16HI, IX86_BUILTIN_PSRLVV8HI,
1645         IX86_BUILTIN_CVTPS2DQ256_MASK, IX86_BUILTIN_CVTPS2DQ128_MASK,
1646         IX86_BUILTIN_CVTPS2UDQ256, IX86_BUILTIN_CVTPS2UDQ128,
1647         IX86_BUILTIN_CVTPS2QQ256, IX86_BUILTIN_CVTPS2QQ128,
1648         IX86_BUILTIN_CVTPS2UQQ256, IX86_BUILTIN_CVTPS2UQQ128,
1649         IX86_BUILTIN_GETMANTPS256, IX86_BUILTIN_GETMANTPS128,
1650         IX86_BUILTIN_GETMANTPD256, IX86_BUILTIN_GETMANTPD128,
1651         IX86_BUILTIN_MOVDDUP256_MASK, IX86_BUILTIN_MOVDDUP128_MASK,
1652         IX86_BUILTIN_MOVSHDUP256_MASK, IX86_BUILTIN_MOVSHDUP128_MASK,
1653         IX86_BUILTIN_MOVSLDUP256_MASK, IX86_BUILTIN_MOVSLDUP128_MASK,
1654         IX86_BUILTIN_CVTQQ2PS256, IX86_BUILTIN_CVTQQ2PS128,
1655         IX86_BUILTIN_CVTUQQ2PS256, IX86_BUILTIN_CVTUQQ2PS128,
1656         IX86_BUILTIN_CVTQQ2PD256, IX86_BUILTIN_CVTQQ2PD128,
1657         IX86_BUILTIN_CVTUQQ2PD256, IX86_BUILTIN_CVTUQQ2PD128,
1658         IX86_BUILTIN_VPERMT2VARQ256, IX86_BUILTIN_VPERMT2VARQ256_MASKZ,
1659         IX86_BUILTIN_VPERMT2VARD256, IX86_BUILTIN_VPERMT2VARD256_MASKZ,
1660         IX86_BUILTIN_VPERMI2VARQ256, IX86_BUILTIN_VPERMI2VARD256,
1661         IX86_BUILTIN_VPERMT2VARPD256, IX86_BUILTIN_VPERMT2VARPD256_MASKZ,
1662         IX86_BUILTIN_VPERMT2VARPS256, IX86_BUILTIN_VPERMT2VARPS256_MASKZ,
1663         IX86_BUILTIN_VPERMI2VARPD256, IX86_BUILTIN_VPERMI2VARPS256,
1664         IX86_BUILTIN_VPERMT2VARQ128, IX86_BUILTIN_VPERMT2VARQ128_MASKZ,
1665         IX86_BUILTIN_VPERMT2VARD128, IX86_BUILTIN_VPERMT2VARD128_MASKZ,
1666         IX86_BUILTIN_VPERMI2VARQ128, IX86_BUILTIN_VPERMI2VARD128,
1667         IX86_BUILTIN_VPERMT2VARPD128, IX86_BUILTIN_VPERMT2VARPD128_MASKZ,
1668         IX86_BUILTIN_VPERMT2VARPS128, IX86_BUILTIN_VPERMT2VARPS128_MASKZ,
1669         IX86_BUILTIN_VPERMI2VARPD128, IX86_BUILTIN_VPERMI2VARPS128,
1670         IX86_BUILTIN_PSHUFB256_MASK, IX86_BUILTIN_PSHUFB128_MASK,
1671         IX86_BUILTIN_PSHUFHW256_MASK, IX86_BUILTIN_PSHUFHW128_MASK,
1672         IX86_BUILTIN_PSHUFLW256_MASK, IX86_BUILTIN_PSHUFLW128_MASK,
1673         IX86_BUILTIN_PSHUFD256_MASK, IX86_BUILTIN_PSHUFD128_MASK,
1674         IX86_BUILTIN_SHUFPD256_MASK, IX86_BUILTIN_SHUFPD128_MASK,
1675         IX86_BUILTIN_SHUFPS256_MASK, IX86_BUILTIN_SHUFPS128_MASK,
1676         IX86_BUILTIN_PROLVQ256, IX86_BUILTIN_PROLVQ128,
1677         IX86_BUILTIN_PROLQ256, IX86_BUILTIN_PROLQ128,
1678         IX86_BUILTIN_PRORVQ256, IX86_BUILTIN_PRORVQ128,
1679         IX86_BUILTIN_PRORQ256, IX86_BUILTIN_PRORQ128,
1680         IX86_BUILTIN_PSRAVQ128, IX86_BUILTIN_PSRAVQ256,
1681         IX86_BUILTIN_PSLLVV4DI_MASK, IX86_BUILTIN_PSLLVV2DI_MASK,
1682         IX86_BUILTIN_PSLLVV8SI_MASK, IX86_BUILTIN_PSLLVV4SI_MASK,
1683         IX86_BUILTIN_PSRAVV8SI_MASK, IX86_BUILTIN_PSRAVV4SI_MASK,
1684         IX86_BUILTIN_PSRLVV4DI_MASK, IX86_BUILTIN_PSRLVV2DI_MASK,
1685         IX86_BUILTIN_PSRLVV8SI_MASK, IX86_BUILTIN_PSRLVV4SI_MASK,
1686         IX86_BUILTIN_PSRAWI256_MASK, IX86_BUILTIN_PSRAW256_MASK,
1687         IX86_BUILTIN_PSRAWI128_MASK, IX86_BUILTIN_PSRAW128_MASK,
1688         IX86_BUILTIN_PSRLWI256_MASK, IX86_BUILTIN_PSRLW256_MASK,
1689         IX86_BUILTIN_PSRLWI128_MASK, IX86_BUILTIN_PSRLW128_MASK,
1690         IX86_BUILTIN_PRORVD256, IX86_BUILTIN_PROLVD256,
1691         IX86_BUILTIN_PRORD256, IX86_BUILTIN_PROLD256,
1692         IX86_BUILTIN_PRORVD128, IX86_BUILTIN_PROLVD128,
1693         IX86_BUILTIN_PRORD128, IX86_BUILTIN_PROLD128,
1694         IX86_BUILTIN_FPCLASSPD256, IX86_BUILTIN_FPCLASSPD128,
1695         IX86_BUILTIN_FPCLASSSD, IX86_BUILTIN_FPCLASSPS256,
1696         IX86_BUILTIN_FPCLASSPS128, IX86_BUILTIN_FPCLASSSS,
1697         IX86_BUILTIN_CVTB2MASK128, IX86_BUILTIN_CVTB2MASK256,
1698         IX86_BUILTIN_CVTW2MASK128, IX86_BUILTIN_CVTW2MASK256,
1699         IX86_BUILTIN_CVTD2MASK128, IX86_BUILTIN_CVTD2MASK256,
1700         IX86_BUILTIN_CVTQ2MASK128, IX86_BUILTIN_CVTQ2MASK256,
1701         IX86_BUILTIN_CVTMASK2B128, IX86_BUILTIN_CVTMASK2B256,
1702         IX86_BUILTIN_CVTMASK2W128, IX86_BUILTIN_CVTMASK2W256,
1703         IX86_BUILTIN_CVTMASK2D128, IX86_BUILTIN_CVTMASK2D256,
1704         IX86_BUILTIN_CVTMASK2Q128, IX86_BUILTIN_CVTMASK2Q256,
1705         IX86_BUILTIN_PCMPEQB128_MASK, IX86_BUILTIN_PCMPEQB256_MASK,
1706         IX86_BUILTIN_PCMPEQW128_MASK, IX86_BUILTIN_PCMPEQW256_MASK,
1707         IX86_BUILTIN_PCMPEQD128_MASK, IX86_BUILTIN_PCMPEQD256_MASK,
1708         IX86_BUILTIN_PCMPEQQ128_MASK, IX86_BUILTIN_PCMPEQQ256_MASK,
1709         IX86_BUILTIN_PCMPGTB128_MASK, IX86_BUILTIN_PCMPGTB256_MASK,
1710         IX86_BUILTIN_PCMPGTW128_MASK, IX86_BUILTIN_PCMPGTW256_MASK,
1711         IX86_BUILTIN_PCMPGTD128_MASK, IX86_BUILTIN_PCMPGTD256_MASK,
1712         IX86_BUILTIN_PCMPGTQ128_MASK, IX86_BUILTIN_PCMPGTQ256_MASK,
1713         IX86_BUILTIN_PTESTMB128, IX86_BUILTIN_PTESTMB256,
1714         IX86_BUILTIN_PTESTMW128, IX86_BUILTIN_PTESTMW256,
1715         IX86_BUILTIN_PTESTMD128, IX86_BUILTIN_PTESTMD256,
1716         IX86_BUILTIN_PTESTMQ128, IX86_BUILTIN_PTESTMQ256,
1717         IX86_BUILTIN_PTESTNMB128, IX86_BUILTIN_PTESTNMB256,
1718         IX86_BUILTIN_PTESTNMW128, IX86_BUILTIN_PTESTNMW256,
1719         IX86_BUILTIN_PTESTNMD128, IX86_BUILTIN_PTESTNMD256,
1720         IX86_BUILTIN_PTESTNMQ128, IX86_BUILTIN_PTESTNMQ256,
1721         IX86_BUILTIN_PBROADCASTMB128, IX86_BUILTIN_PBROADCASTMB256,
1722         IX86_BUILTIN_PBROADCASTMW128, IX86_BUILTIN_PBROADCASTMW256,
1723         IX86_BUILTIN_COMPRESSPD256, IX86_BUILTIN_COMPRESSPD128,
1724         IX86_BUILTIN_COMPRESSPS256, IX86_BUILTIN_COMPRESSPS128,
1725         IX86_BUILTIN_PCOMPRESSQ256, IX86_BUILTIN_PCOMPRESSQ128,
1726         IX86_BUILTIN_PCOMPRESSD256, IX86_BUILTIN_PCOMPRESSD128,
1727         IX86_BUILTIN_EXPANDPD256, IX86_BUILTIN_EXPANDPD128,
1728         IX86_BUILTIN_EXPANDPS256, IX86_BUILTIN_EXPANDPS128,
1729         IX86_BUILTIN_PEXPANDQ256, IX86_BUILTIN_PEXPANDQ128,
1730         IX86_BUILTIN_PEXPANDD256, IX86_BUILTIN_PEXPANDD128,
1731         IX86_BUILTIN_EXPANDPD256Z, IX86_BUILTIN_EXPANDPD128Z,
1732         IX86_BUILTIN_EXPANDPS256Z, IX86_BUILTIN_EXPANDPS128Z,
1733         IX86_BUILTIN_PEXPANDQ256Z, IX86_BUILTIN_PEXPANDQ128Z,
1734         IX86_BUILTIN_PEXPANDD256Z, IX86_BUILTIN_PEXPANDD128Z,
1735         IX86_BUILTIN_PMAXSD256_MASK, IX86_BUILTIN_PMINSD256_MASK,
1736         IX86_BUILTIN_PMAXUD256_MASK, IX86_BUILTIN_PMINUD256_MASK,
1737         IX86_BUILTIN_PMAXSD128_MASK, IX86_BUILTIN_PMINSD128_MASK,
1738         IX86_BUILTIN_PMAXUD128_MASK, IX86_BUILTIN_PMINUD128_MASK,
1739         IX86_BUILTIN_PMAXSQ256_MASK, IX86_BUILTIN_PMINSQ256_MASK,
1740         IX86_BUILTIN_PMAXUQ256_MASK, IX86_BUILTIN_PMINUQ256_MASK,
1741         IX86_BUILTIN_PMAXSQ128_MASK, IX86_BUILTIN_PMINSQ128_MASK,
1742         IX86_BUILTIN_PMAXUQ128_MASK, IX86_BUILTIN_PMINUQ128_MASK,
1743         IX86_BUILTIN_PMINSB256_MASK, IX86_BUILTIN_PMINUB256_MASK,
1744         IX86_BUILTIN_PMAXSB256_MASK, IX86_BUILTIN_PMAXUB256_MASK,
1745         IX86_BUILTIN_PMINSB128_MASK, IX86_BUILTIN_PMINUB128_MASK,
1746         IX86_BUILTIN_PMAXSB128_MASK, IX86_BUILTIN_PMAXUB128_MASK,
1747         IX86_BUILTIN_PMINSW256_MASK, IX86_BUILTIN_PMINUW256_MASK,
1748         IX86_BUILTIN_PMAXSW256_MASK, IX86_BUILTIN_PMAXUW256_MASK,
1749         IX86_BUILTIN_PMINSW128_MASK, IX86_BUILTIN_PMINUW128_MASK,
1750         IX86_BUILTIN_PMAXSW128_MASK, IX86_BUILTIN_PMAXUW128_MASK,
1751         IX86_BUILTIN_VPCONFLICTQ256, IX86_BUILTIN_VPCONFLICTD256,
1752         IX86_BUILTIN_VPCLZCNTQ256, IX86_BUILTIN_VPCLZCNTD256,
1753         IX86_BUILTIN_UNPCKHPD256_MASK, IX86_BUILTIN_UNPCKHPD128_MASK,
1754         IX86_BUILTIN_UNPCKHPS256_MASK, IX86_BUILTIN_UNPCKHPS128_MASK,
1755         IX86_BUILTIN_UNPCKLPD256_MASK, IX86_BUILTIN_UNPCKLPD128_MASK,
1756         IX86_BUILTIN_UNPCKLPS256_MASK, IX86_BUILTIN_VPCONFLICTQ128,
1757         IX86_BUILTIN_VPCONFLICTD128, IX86_BUILTIN_VPCLZCNTQ128,
1758         IX86_BUILTIN_VPCLZCNTD128, IX86_BUILTIN_UNPCKLPS128_MASK,
1759         IX86_BUILTIN_ALIGND256, IX86_BUILTIN_ALIGNQ256,
1760         IX86_BUILTIN_ALIGND128, IX86_BUILTIN_ALIGNQ128,
1761         IX86_BUILTIN_CVTPS2PH256_MASK, IX86_BUILTIN_CVTPS2PH_MASK,
1762         IX86_BUILTIN_CVTPH2PS_MASK, IX86_BUILTIN_CVTPH2PS256_MASK,
1763         IX86_BUILTIN_PUNPCKHDQ128_MASK, IX86_BUILTIN_PUNPCKHDQ256_MASK,
1764         IX86_BUILTIN_PUNPCKHQDQ128_MASK, IX86_BUILTIN_PUNPCKHQDQ256_MASK,
1765         IX86_BUILTIN_PUNPCKLDQ128_MASK, IX86_BUILTIN_PUNPCKLDQ256_MASK,
1766         IX86_BUILTIN_PUNPCKLQDQ128_MASK, IX86_BUILTIN_PUNPCKLQDQ256_MASK,
1767         IX86_BUILTIN_PUNPCKHBW128_MASK, IX86_BUILTIN_PUNPCKHBW256_MASK,
1768         IX86_BUILTIN_PUNPCKHWD128_MASK, IX86_BUILTIN_PUNPCKHWD256_MASK,
1769         IX86_BUILTIN_PUNPCKLBW128_MASK, IX86_BUILTIN_PUNPCKLBW256_MASK,
1770         IX86_BUILTIN_PUNPCKLWD128_MASK, IX86_BUILTIN_PUNPCKLWD256_MASK,
1771         IX86_BUILTIN_PSLLVV16HI, IX86_BUILTIN_PSLLVV8HI,
1772         IX86_BUILTIN_PACKSSDW256_MASK, IX86_BUILTIN_PACKSSDW128_MASK,
1773         IX86_BUILTIN_PACKUSDW256_MASK, IX86_BUILTIN_PACKUSDW128_MASK,
1774         IX86_BUILTIN_PAVGB256_MASK, IX86_BUILTIN_PAVGW256_MASK,
1775         IX86_BUILTIN_PAVGB128_MASK, IX86_BUILTIN_PAVGW128_MASK,
1776         IX86_BUILTIN_VPERMVARSF256_MASK, IX86_BUILTIN_VPERMVARDF256_MASK,
1777         IX86_BUILTIN_VPERMDF256_MASK, IX86_BUILTIN_PABSB256_MASK,
1778         IX86_BUILTIN_PABSB128_MASK, IX86_BUILTIN_PABSW256_MASK,
1779         IX86_BUILTIN_PABSW128_MASK, IX86_BUILTIN_VPERMILVARPD_MASK,
1780         IX86_BUILTIN_VPERMILVARPS_MASK, IX86_BUILTIN_VPERMILVARPD256_MASK,
1781         IX86_BUILTIN_VPERMILVARPS256_MASK, IX86_BUILTIN_VPERMILPD_MASK,
1782         IX86_BUILTIN_VPERMILPS_MASK, IX86_BUILTIN_VPERMILPD256_MASK,
1783         IX86_BUILTIN_VPERMILPS256_MASK, IX86_BUILTIN_BLENDMQ256,
1784         IX86_BUILTIN_BLENDMD256, IX86_BUILTIN_BLENDMPD256,
1785         IX86_BUILTIN_BLENDMPS256, IX86_BUILTIN_BLENDMQ128,
1786         IX86_BUILTIN_BLENDMD128, IX86_BUILTIN_BLENDMPD128,
1787         IX86_BUILTIN_BLENDMPS128, IX86_BUILTIN_BLENDMW256,
1788         IX86_BUILTIN_BLENDMB256, IX86_BUILTIN_BLENDMW128,
1789         IX86_BUILTIN_BLENDMB128, IX86_BUILTIN_PMULLD256_MASK,
1790         IX86_BUILTIN_PMULLD128_MASK, IX86_BUILTIN_PMULUDQ256_MASK,
1791         IX86_BUILTIN_PMULDQ256_MASK, IX86_BUILTIN_PMULDQ128_MASK,
1792         IX86_BUILTIN_PMULUDQ128_MASK, IX86_BUILTIN_CVTPD2PS256_MASK,
1793         IX86_BUILTIN_CVTPD2PS_MASK, IX86_BUILTIN_VPERMVARSI256_MASK,
1794         IX86_BUILTIN_VPERMVARDI256_MASK, IX86_BUILTIN_VPERMDI256_MASK,
1795         IX86_BUILTIN_CMPQ256, IX86_BUILTIN_CMPD256,
1796         IX86_BUILTIN_UCMPQ256, IX86_BUILTIN_UCMPD256,
1797         IX86_BUILTIN_CMPB256, IX86_BUILTIN_CMPW256,
1798         IX86_BUILTIN_UCMPB256, IX86_BUILTIN_UCMPW256,
1799         IX86_BUILTIN_CMPPD256_MASK, IX86_BUILTIN_CMPPS256_MASK,
1800         IX86_BUILTIN_CMPQ128, IX86_BUILTIN_CMPD128,
1801         IX86_BUILTIN_UCMPQ128, IX86_BUILTIN_UCMPD128,
1802         IX86_BUILTIN_CMPB128, IX86_BUILTIN_CMPW128,
1803         IX86_BUILTIN_UCMPB128, IX86_BUILTIN_UCMPW128,
1804         IX86_BUILTIN_CMPPD128_MASK, IX86_BUILTIN_CMPPS128_MASK,
1805         IX86_BUILTIN_GATHER3SIV8SF, IX86_BUILTIN_GATHER3SIV4SF,
1806         IX86_BUILTIN_GATHER3SIV4DF, IX86_BUILTIN_GATHER3SIV2DF,
1807         IX86_BUILTIN_GATHER3DIV8SF, IX86_BUILTIN_GATHER3DIV4SF,
1808         IX86_BUILTIN_GATHER3DIV4DF, IX86_BUILTIN_GATHER3DIV2DF,
1809         IX86_BUILTIN_GATHER3SIV8SI, IX86_BUILTIN_GATHER3SIV4SI,
1810         IX86_BUILTIN_GATHER3SIV4DI, IX86_BUILTIN_GATHER3SIV2DI,
1811         IX86_BUILTIN_GATHER3DIV8SI, IX86_BUILTIN_GATHER3DIV4SI,
1812         IX86_BUILTIN_GATHER3DIV4DI, IX86_BUILTIN_GATHER3DIV2DI,
1813         IX86_BUILTIN_SCATTERSIV8SF, IX86_BUILTIN_SCATTERSIV4SF,
1814         IX86_BUILTIN_SCATTERSIV4DF, IX86_BUILTIN_SCATTERSIV2DF,
1815         IX86_BUILTIN_SCATTERDIV8SF, IX86_BUILTIN_SCATTERDIV4SF,
1816         IX86_BUILTIN_SCATTERDIV4DF, IX86_BUILTIN_SCATTERDIV2DF,
1817         IX86_BUILTIN_SCATTERSIV8SI, IX86_BUILTIN_SCATTERSIV4SI,
1818         IX86_BUILTIN_SCATTERSIV4DI, IX86_BUILTIN_SCATTERSIV2DI,
1819         IX86_BUILTIN_SCATTERDIV8SI, IX86_BUILTIN_SCATTERDIV4SI,
1820         IX86_BUILTIN_SCATTERDIV4DI, IX86_BUILTIN_SCATTERDIV2DI,
1821         IX86_BUILTIN_RANGESD128, IX86_BUILTIN_RANGESS128,
1822         IX86_BUILTIN_KUNPCKWD, IX86_BUILTIN_KUNPCKDQ,
1823         IX86_BUILTIN_BROADCASTF32x2_512, IX86_BUILTIN_BROADCASTI32x2_512,
1824         IX86_BUILTIN_BROADCASTF64X2_512, IX86_BUILTIN_BROADCASTI64X2_512,
1825         IX86_BUILTIN_BROADCASTF32X8_512, IX86_BUILTIN_BROADCASTI32X8_512,
1826         IX86_BUILTIN_EXTRACTF64X2_512, IX86_BUILTIN_EXTRACTF32X8,
1827         IX86_BUILTIN_EXTRACTI64X2_512, IX86_BUILTIN_EXTRACTI32X8,
1828         IX86_BUILTIN_REDUCEPD512_MASK, IX86_BUILTIN_REDUCEPS512_MASK,
1829         IX86_BUILTIN_PMULLQ512, IX86_BUILTIN_XORPD512,
1830         IX86_BUILTIN_XORPS512, IX86_BUILTIN_ORPD512,
1831         IX86_BUILTIN_ORPS512, IX86_BUILTIN_ANDPD512,
1832         IX86_BUILTIN_ANDPS512, IX86_BUILTIN_ANDNPD512,
1833         IX86_BUILTIN_ANDNPS512, IX86_BUILTIN_INSERTF32X8,
1834         IX86_BUILTIN_INSERTI32X8, IX86_BUILTIN_INSERTF64X2_512,
1835         IX86_BUILTIN_INSERTI64X2_512, IX86_BUILTIN_FPCLASSPD512,
1836         IX86_BUILTIN_FPCLASSPS512, IX86_BUILTIN_CVTD2MASK512,
1837         IX86_BUILTIN_CVTQ2MASK512, IX86_BUILTIN_CVTMASK2D512,
1838         IX86_BUILTIN_CVTMASK2Q512, IX86_BUILTIN_CVTPD2QQ512,
1839         IX86_BUILTIN_CVTPS2QQ512, IX86_BUILTIN_CVTPD2UQQ512,
1840         IX86_BUILTIN_CVTPS2UQQ512, IX86_BUILTIN_CVTQQ2PS512,
1841         IX86_BUILTIN_CVTUQQ2PS512, IX86_BUILTIN_CVTQQ2PD512,
1842         IX86_BUILTIN_CVTUQQ2PD512, IX86_BUILTIN_CVTTPS2QQ512,
1843         IX86_BUILTIN_CVTTPS2UQQ512, IX86_BUILTIN_CVTTPD2QQ512,
1844         IX86_BUILTIN_CVTTPD2UQQ512, IX86_BUILTIN_RANGEPS512,
1845         IX86_BUILTIN_RANGEPD512, IX86_BUILTIN_PACKUSDW512,
1846         IX86_BUILTIN_PACKSSDW512, IX86_BUILTIN_LOADDQUHI512_MASK,
1847         IX86_BUILTIN_LOADDQUQI512_MASK, IX86_BUILTIN_PSLLDQ512,
1848         IX86_BUILTIN_PSRLDQ512, IX86_BUILTIN_STOREDQUHI512_MASK,
1849         IX86_BUILTIN_STOREDQUQI512_MASK, IX86_BUILTIN_PALIGNR512,
1850         IX86_BUILTIN_PALIGNR512_MASK, IX86_BUILTIN_MOVDQUHI512_MASK,
1851         IX86_BUILTIN_MOVDQUQI512_MASK, IX86_BUILTIN_PSADBW512,
1852         IX86_BUILTIN_DBPSADBW512, IX86_BUILTIN_PBROADCASTB512,
1853         IX86_BUILTIN_PBROADCASTB512_GPR, IX86_BUILTIN_PBROADCASTW512,
1854         IX86_BUILTIN_PBROADCASTW512_GPR, IX86_BUILTIN_PMOVSXBW512_MASK,
1855         IX86_BUILTIN_PMOVZXBW512_MASK, IX86_BUILTIN_VPERMVARHI512_MASK,
1856         IX86_BUILTIN_VPERMT2VARHI512, IX86_BUILTIN_VPERMT2VARHI512_MASKZ,
1857         IX86_BUILTIN_VPERMI2VARHI512, IX86_BUILTIN_PAVGB512,
1858         IX86_BUILTIN_PAVGW512, IX86_BUILTIN_PADDB512,
1859         IX86_BUILTIN_PSUBB512, IX86_BUILTIN_PSUBSB512,
1860         IX86_BUILTIN_PADDSB512, IX86_BUILTIN_PSUBUSB512,
1861         IX86_BUILTIN_PADDUSB512, IX86_BUILTIN_PSUBW512,
1862         IX86_BUILTIN_PADDW512, IX86_BUILTIN_PSUBSW512,
1863         IX86_BUILTIN_PADDSW512, IX86_BUILTIN_PSUBUSW512,
1864         IX86_BUILTIN_PADDUSW512, IX86_BUILTIN_PMAXUW512,
1865         IX86_BUILTIN_PMAXSW512, IX86_BUILTIN_PMINUW512,
1866         IX86_BUILTIN_PMINSW512, IX86_BUILTIN_PMAXUB512,
1867         IX86_BUILTIN_PMAXSB512, IX86_BUILTIN_PMINUB512,
1868         IX86_BUILTIN_PMINSB512, IX86_BUILTIN_PMOVWB512,
1869         IX86_BUILTIN_PMOVSWB512, IX86_BUILTIN_PMOVUSWB512,
1870         IX86_BUILTIN_PMULHRSW512_MASK, IX86_BUILTIN_PMULHUW512_MASK,
1871         IX86_BUILTIN_PMULHW512_MASK, IX86_BUILTIN_PMULLW512_MASK,
1872         IX86_BUILTIN_PSLLWI512_MASK, IX86_BUILTIN_PSLLW512_MASK,
1873         IX86_BUILTIN_PACKSSWB512, IX86_BUILTIN_PACKUSWB512,
1874         IX86_BUILTIN_PSRAVV32HI, IX86_BUILTIN_PMADDUBSW512_MASK,
1875         IX86_BUILTIN_PMADDWD512_MASK, IX86_BUILTIN_PSRLVV32HI,
1876         IX86_BUILTIN_PUNPCKHBW512, IX86_BUILTIN_PUNPCKHWD512,
1877         IX86_BUILTIN_PUNPCKLBW512, IX86_BUILTIN_PUNPCKLWD512,
1878         IX86_BUILTIN_PSHUFB512, IX86_BUILTIN_PSHUFHW512,
1879         IX86_BUILTIN_PSHUFLW512, IX86_BUILTIN_PSRAWI512,
1880         IX86_BUILTIN_PSRAW512, IX86_BUILTIN_PSRLWI512,
1881         IX86_BUILTIN_PSRLW512, IX86_BUILTIN_CVTB2MASK512,
1882         IX86_BUILTIN_CVTW2MASK512, IX86_BUILTIN_CVTMASK2B512,
1883         IX86_BUILTIN_CVTMASK2W512, IX86_BUILTIN_PCMPEQB512_MASK,
1884         IX86_BUILTIN_PCMPEQW512_MASK, IX86_BUILTIN_PCMPGTB512_MASK,
1885         IX86_BUILTIN_PCMPGTW512_MASK, IX86_BUILTIN_PTESTMB512,
1886         IX86_BUILTIN_PTESTMW512, IX86_BUILTIN_PTESTNMB512,
1887         IX86_BUILTIN_PTESTNMW512, IX86_BUILTIN_PSLLVV32HI,
1888         IX86_BUILTIN_PABSB512, IX86_BUILTIN_PABSW512,
1889         IX86_BUILTIN_BLENDMW512, IX86_BUILTIN_BLENDMB512,
1890         IX86_BUILTIN_CMPB512, IX86_BUILTIN_CMPW512,
1891         IX86_BUILTIN_UCMPB512, IX86_BUILTIN_UCMPW512.
1892         (bdesc_special_args):
1893         Add __builtin_ia32_loaddquhi512_mask, __builtin_ia32_loaddquqi512_mask,
1894         __builtin_ia32_storedquhi512_mask, __builtin_ia32_storedquqi512_mask,
1895         __builtin_ia32_loaddquhi256_mask, __builtin_ia32_loaddquhi128_mask,
1896         __builtin_ia32_loaddquqi256_mask, __builtin_ia32_loaddquqi128_mask,
1897         __builtin_ia32_movdqa64load256_mask, __builtin_ia32_movdqa64load128_mask,
1898         __builtin_ia32_movdqa32load256_mask, __builtin_ia32_movdqa32load128_mask,
1899         __builtin_ia32_movdqa64store256_mask, __builtin_ia32_movdqa64store128_mask,
1900         __builtin_ia32_movdqa32store256_mask, __builtin_ia32_movdqa32store128_mask,
1901         __builtin_ia32_loadapd256_mask, __builtin_ia32_loadapd128_mask,
1902         __builtin_ia32_loadaps256_mask, __builtin_ia32_loadaps128_mask,
1903         __builtin_ia32_storeapd256_mask, __builtin_ia32_storeapd128_mask,
1904         __builtin_ia32_storeaps256_mask, __builtin_ia32_storeaps128_mask,
1905         __builtin_ia32_loadupd256_mask, __builtin_ia32_loadupd128_mask,
1906         __builtin_ia32_loadups256_mask, __builtin_ia32_loadups128_mask,
1907         __builtin_ia32_storeupd256_mask, __builtin_ia32_storeupd128_mask,
1908         __builtin_ia32_storeups256_mask, __builtin_ia32_storeups128_mask,
1909         __builtin_ia32_loaddqudi256_mask, __builtin_ia32_loaddqudi128_mask,
1910         __builtin_ia32_loaddqusi256_mask, __builtin_ia32_loaddqusi128_mask,
1911         __builtin_ia32_storedqudi256_mask, __builtin_ia32_storedqudi128_mask,
1912         __builtin_ia32_storedqusi256_mask, __builtin_ia32_storedqusi128_mask,
1913         __builtin_ia32_storedquhi256_mask, __builtin_ia32_storedquhi128_mask,
1914         __builtin_ia32_storedquqi256_mask, __builtin_ia32_storedquqi128_mask,
1915         __builtin_ia32_compressstoredf256_mask, __builtin_ia32_compressstoredf128_mask,
1916         __builtin_ia32_compressstoresf256_mask, __builtin_ia32_compressstoresf128_mask,
1917         __builtin_ia32_compressstoredi256_mask, __builtin_ia32_compressstoredi128_mask,
1918         __builtin_ia32_compressstoresi256_mask, __builtin_ia32_compressstoresi128_mask,
1919         __builtin_ia32_expandloaddf256_mask, __builtin_ia32_expandloaddf128_mask,
1920         __builtin_ia32_expandloadsf256_mask, __builtin_ia32_expandloadsf128_mask,
1921         __builtin_ia32_expandloaddi256_mask, __builtin_ia32_expandloaddi128_mask,
1922         __builtin_ia32_expandloadsi256_mask, __builtin_ia32_expandloadsi128_mask,
1923         __builtin_ia32_expandloaddf256_maskz, __builtin_ia32_expandloaddf128_maskz,
1924         __builtin_ia32_expandloadsf256_maskz, __builtin_ia32_expandloadsf128_maskz,
1925         __builtin_ia32_expandloaddi256_maskz, __builtin_ia32_expandloaddi128_maskz,
1926         __builtin_ia32_expandloadsi256_maskz, __builtin_ia32_expandloadsi128_maskz,
1927         __builtin_ia32_pmovqd256mem_mask, __builtin_ia32_pmovqd128mem_mask,
1928         __builtin_ia32_pmovsqd256mem_mask, __builtin_ia32_pmovsqd128mem_mask,
1929         __builtin_ia32_pmovusqd256mem_mask, __builtin_ia32_pmovusqd128mem_mask,
1930         __builtin_ia32_pmovqw256mem_mask, __builtin_ia32_pmovqw128mem_mask,
1931         __builtin_ia32_pmovsqw256mem_mask, __builtin_ia32_pmovsqw128mem_mask,
1932         __builtin_ia32_pmovusqw256mem_mask, __builtin_ia32_pmovusqw128mem_mask,
1933         __builtin_ia32_pmovqb256mem_mask, __builtin_ia32_pmovqb128mem_mask,
1934         __builtin_ia32_pmovsqb256mem_mask, __builtin_ia32_pmovsqb128mem_mask,
1935         __builtin_ia32_pmovusqb256mem_mask, __builtin_ia32_pmovusqb128mem_mask,
1936         __builtin_ia32_pmovdb256mem_mask, __builtin_ia32_pmovdb128mem_mask,
1937         __builtin_ia32_pmovsdb256mem_mask, __builtin_ia32_pmovsdb128mem_mask,
1938         __builtin_ia32_pmovusdb256mem_mask, __builtin_ia32_pmovusdb128mem_mask,
1939         __builtin_ia32_pmovdw256mem_mask, __builtin_ia32_pmovdw128mem_mask,
1940         __builtin_ia32_pmovsdw256mem_mask, __builtin_ia32_pmovsdw128mem_mask,
1941         __builtin_ia32_pmovusdw256mem_mask, __builtin_ia32_pmovusdw128mem_mask,
1942         __builtin_ia32_palignr256_mask, __builtin_ia32_palignr128_mask,
1943         __builtin_ia32_movdqa64_256_mask, __builtin_ia32_movdqa64_128_mask,
1944         __builtin_ia32_movdqa32_256_mask, __builtin_ia32_movdqa32_128_mask,
1945         __builtin_ia32_movapd256_mask, __builtin_ia32_movapd128_mask,
1946         __builtin_ia32_movaps256_mask, __builtin_ia32_movaps128_mask,
1947         __builtin_ia32_movdquhi256_mask, __builtin_ia32_movdquhi128_mask,
1948         __builtin_ia32_movdquqi256_mask, __builtin_ia32_movdquqi128_mask,
1949         __builtin_ia32_minps_mask, __builtin_ia32_maxps_mask,
1950         __builtin_ia32_minpd_mask, __builtin_ia32_maxpd_mask,
1951         __builtin_ia32_maxpd256_mask, __builtin_ia32_maxps256_mask,
1952         __builtin_ia32_minpd256_mask, __builtin_ia32_minps256_mask,
1953         __builtin_ia32_mulps_mask, __builtin_ia32_divps_mask,
1954         __builtin_ia32_mulpd_mask, __builtin_ia32_divpd_mask,
1955         __builtin_ia32_divpd256_mask, __builtin_ia32_divps256_mask,
1956         __builtin_ia32_mulpd256_mask, __builtin_ia32_mulps256_mask,
1957         __builtin_ia32_addpd128_mask, __builtin_ia32_addpd256_mask,
1958         __builtin_ia32_addps128_mask, __builtin_ia32_addps256_mask,
1959         __builtin_ia32_subpd128_mask, __builtin_ia32_subpd256_mask,
1960         __builtin_ia32_subps128_mask, __builtin_ia32_subps256_mask,
1961         __builtin_ia32_xorpd256_mask, __builtin_ia32_xorpd128_mask,
1962         __builtin_ia32_xorps256_mask, __builtin_ia32_xorps128_mask,
1963         __builtin_ia32_orpd256_mask, __builtin_ia32_orpd128_mask,
1964         __builtin_ia32_orps256_mask, __builtin_ia32_orps128_mask,
1965         __builtin_ia32_broadcastf32x2_256_mask, __builtin_ia32_broadcasti32x2_256_mask,
1966         __builtin_ia32_broadcasti32x2_128_mask, __builtin_ia32_broadcastf64x2_256_mask,
1967         __builtin_ia32_broadcasti64x2_256_mask, __builtin_ia32_broadcastf32x4_256_mask,
1968         __builtin_ia32_broadcasti32x4_256_mask, __builtin_ia32_extractf32x4_256_mask,
1969         __builtin_ia32_extracti32x4_256_mask, __builtin_ia32_dbpsadbw256_mask,
1970         __builtin_ia32_dbpsadbw128_mask, __builtin_ia32_cvttpd2qq256_mask,
1971         __builtin_ia32_cvttpd2qq128_mask, __builtin_ia32_cvttpd2uqq256_mask,
1972         __builtin_ia32_cvttpd2uqq128_mask, __builtin_ia32_cvtpd2qq256_mask,
1973         __builtin_ia32_cvtpd2qq128_mask, __builtin_ia32_cvtpd2uqq256_mask,
1974         __builtin_ia32_cvtpd2uqq128_mask, __builtin_ia32_cvtpd2udq256_mask,
1975         __builtin_ia32_cvtpd2udq128_mask, __builtin_ia32_cvttps2qq256_mask,
1976         __builtin_ia32_cvttps2qq128_mask, __builtin_ia32_cvttps2uqq256_mask,
1977         __builtin_ia32_cvttps2uqq128_mask, __builtin_ia32_cvttps2dq256_mask,
1978         __builtin_ia32_cvttps2dq128_mask, __builtin_ia32_cvttps2udq256_mask,
1979         __builtin_ia32_cvttps2udq128_mask, __builtin_ia32_cvttpd2dq256_mask,
1980         __builtin_ia32_cvttpd2dq128_mask, __builtin_ia32_cvttpd2udq256_mask,
1981         __builtin_ia32_cvttpd2udq128_mask, __builtin_ia32_cvtpd2dq256_mask,
1982         __builtin_ia32_cvtpd2dq128_mask, __builtin_ia32_cvtdq2pd256_mask,
1983         __builtin_ia32_cvtdq2pd128_mask, __builtin_ia32_cvtudq2pd256_mask,
1984         __builtin_ia32_cvtudq2pd128_mask, __builtin_ia32_cvtdq2ps256_mask,
1985         __builtin_ia32_cvtdq2ps128_mask, __builtin_ia32_cvtudq2ps256_mask,
1986         __builtin_ia32_cvtudq2ps128_mask, __builtin_ia32_cvtps2pd256_mask,
1987         __builtin_ia32_cvtps2pd128_mask, __builtin_ia32_pbroadcastb256_mask,
1988         __builtin_ia32_pbroadcastb256_gpr_mask, __builtin_ia32_pbroadcastb128_mask,
1989         __builtin_ia32_pbroadcastb128_gpr_mask, __builtin_ia32_pbroadcastw256_mask,
1990         __builtin_ia32_pbroadcastw256_gpr_mask, __builtin_ia32_pbroadcastw128_mask,
1991         __builtin_ia32_pbroadcastw128_gpr_mask, __builtin_ia32_pbroadcastd256_mask,
1992         __builtin_ia32_pbroadcastd256_gpr_mask, __builtin_ia32_pbroadcastd128_mask,
1993         __builtin_ia32_pbroadcastd128_gpr_mask, __builtin_ia32_pbroadcastq256_mask,
1994         __builtin_ia32_pbroadcastq256_gpr_mask, __builtin_ia32_pbroadcastq256_mem_mask,
1995         __builtin_ia32_pbroadcastq128_mask, __builtin_ia32_pbroadcastq128_gpr_mask,
1996         __builtin_ia32_pbroadcastq128_mem_mask, __builtin_ia32_broadcastss256_mask,
1997         __builtin_ia32_broadcastss128_mask, __builtin_ia32_broadcastsd256_mask,
1998         __builtin_ia32_extractf64x2_256_mask, __builtin_ia32_extracti64x2_256_mask,
1999         __builtin_ia32_insertf32x4_256_mask, __builtin_ia32_inserti32x4_256_mask,
2000         __builtin_ia32_pmovsxbw256_mask, __builtin_ia32_pmovsxbw128_mask,
2001         __builtin_ia32_pmovsxbd256_mask, __builtin_ia32_pmovsxbd128_mask,
2002         __builtin_ia32_pmovsxbq256_mask, __builtin_ia32_pmovsxbq128_mask,
2003         __builtin_ia32_pmovsxwd256_mask, __builtin_ia32_pmovsxwd128_mask,
2004         __builtin_ia32_pmovsxwq256_mask, __builtin_ia32_pmovsxwq128_mask,
2005         __builtin_ia32_pmovsxdq256_mask, __builtin_ia32_pmovsxdq128_mask,
2006         __builtin_ia32_pmovzxbw256_mask, __builtin_ia32_pmovzxbw128_mask,
2007         __builtin_ia32_pmovzxbd256_mask, __builtin_ia32_pmovzxbd128_mask,
2008         __builtin_ia32_pmovzxbq256_mask, __builtin_ia32_pmovzxbq128_mask,
2009         __builtin_ia32_pmovzxwd256_mask, __builtin_ia32_pmovzxwd128_mask,
2010         __builtin_ia32_pmovzxwq256_mask, __builtin_ia32_pmovzxwq128_mask,
2011         __builtin_ia32_pmovzxdq256_mask, __builtin_ia32_pmovzxdq128_mask,
2012         __builtin_ia32_reducepd256_mask, __builtin_ia32_reducepd128_mask,
2013         __builtin_ia32_reduceps256_mask, __builtin_ia32_reduceps128_mask,
2014         __builtin_ia32_reducesd, __builtin_ia32_reducess,
2015         __builtin_ia32_permvarhi256_mask, __builtin_ia32_permvarhi128_mask,
2016         __builtin_ia32_vpermt2varhi256_mask, __builtin_ia32_vpermt2varhi256_maskz,
2017         __builtin_ia32_vpermt2varhi128_mask, __builtin_ia32_vpermt2varhi128_maskz,
2018         __builtin_ia32_vpermi2varhi256_mask, __builtin_ia32_vpermi2varhi128_mask,
2019         __builtin_ia32_rcp14pd256_mask, __builtin_ia32_rcp14pd128_mask,
2020         __builtin_ia32_rcp14ps256_mask, __builtin_ia32_rcp14ps128_mask,
2021         __builtin_ia32_rsqrt14pd256_mask, __builtin_ia32_rsqrt14pd128_mask,
2022         __builtin_ia32_rsqrt14ps256_mask, __builtin_ia32_rsqrt14ps128_mask,
2023         __builtin_ia32_sqrtpd256_mask, __builtin_ia32_sqrtpd128_mask,
2024         __builtin_ia32_sqrtps256_mask, __builtin_ia32_sqrtps128_mask,
2025         __builtin_ia32_paddb128_mask, __builtin_ia32_paddw128_mask,
2026         __builtin_ia32_paddd128_mask, __builtin_ia32_paddq128_mask,
2027         __builtin_ia32_psubb128_mask, __builtin_ia32_psubw128_mask,
2028         __builtin_ia32_psubd128_mask, __builtin_ia32_psubq128_mask,
2029         __builtin_ia32_paddsb128_mask, __builtin_ia32_paddsw128_mask,
2030         __builtin_ia32_psubsb128_mask, __builtin_ia32_psubsw128_mask,
2031         __builtin_ia32_paddusb128_mask, __builtin_ia32_paddusw128_mask,
2032         __builtin_ia32_psubusb128_mask, __builtin_ia32_psubusw128_mask,
2033         __builtin_ia32_paddb256_mask, __builtin_ia32_paddw256_mask,
2034         __builtin_ia32_paddd256_mask, __builtin_ia32_paddq256_mask,
2035         __builtin_ia32_paddsb256_mask, __builtin_ia32_paddsw256_mask,
2036         __builtin_ia32_paddusb256_mask, __builtin_ia32_paddusw256_mask,
2037         __builtin_ia32_psubb256_mask, __builtin_ia32_psubw256_mask,
2038         __builtin_ia32_psubd256_mask, __builtin_ia32_psubq256_mask,
2039         __builtin_ia32_psubsb256_mask, __builtin_ia32_psubsw256_mask,
2040         __builtin_ia32_psubusb256_mask, __builtin_ia32_psubusw256_mask,
2041         __builtin_ia32_shuf_f64x2_256_mask, __builtin_ia32_shuf_i64x2_256_mask,
2042         __builtin_ia32_shuf_i32x4_256_mask, __builtin_ia32_shuf_f32x4_256_mask,
2043         __builtin_ia32_pmovwb128_mask, __builtin_ia32_pmovwb256_mask,
2044         __builtin_ia32_pmovswb128_mask, __builtin_ia32_pmovswb256_mask,
2045         __builtin_ia32_pmovuswb128_mask, __builtin_ia32_pmovuswb256_mask,
2046         __builtin_ia32_pmovdb128_mask, __builtin_ia32_pmovdb256_mask,
2047         __builtin_ia32_pmovsdb128_mask, __builtin_ia32_pmovsdb256_mask,
2048         __builtin_ia32_pmovusdb128_mask, __builtin_ia32_pmovusdb256_mask,
2049         __builtin_ia32_pmovdw128_mask, __builtin_ia32_pmovdw256_mask,
2050         __builtin_ia32_pmovsdw128_mask, __builtin_ia32_pmovsdw256_mask,
2051         __builtin_ia32_pmovusdw128_mask, __builtin_ia32_pmovusdw256_mask,
2052         __builtin_ia32_pmovqb128_mask, __builtin_ia32_pmovqb256_mask,
2053         __builtin_ia32_pmovsqb128_mask, __builtin_ia32_pmovsqb256_mask,
2054         __builtin_ia32_pmovusqb128_mask, __builtin_ia32_pmovusqb256_mask,
2055         __builtin_ia32_pmovqw128_mask, __builtin_ia32_pmovqw256_mask,
2056         __builtin_ia32_pmovsqw128_mask, __builtin_ia32_pmovsqw256_mask,
2057         __builtin_ia32_pmovusqw128_mask, __builtin_ia32_pmovusqw256_mask,
2058         __builtin_ia32_pmovqd128_mask, __builtin_ia32_pmovqd256_mask,
2059         __builtin_ia32_pmovsqd128_mask, __builtin_ia32_pmovsqd256_mask,
2060         __builtin_ia32_pmovusqd128_mask, __builtin_ia32_pmovusqd256_mask,
2061         __builtin_ia32_rangepd256_mask, __builtin_ia32_rangepd128_mask,
2062         __builtin_ia32_rangeps256_mask, __builtin_ia32_rangeps128_mask,
2063         __builtin_ia32_getexpps256_mask, __builtin_ia32_getexppd256_mask,
2064         __builtin_ia32_getexpps128_mask, __builtin_ia32_getexppd128_mask,
2065         __builtin_ia32_fixupimmpd256, __builtin_ia32_fixupimmpd256_mask,
2066         __builtin_ia32_fixupimmpd256_maskz, __builtin_ia32_fixupimmps256,
2067         __builtin_ia32_fixupimmps256_mask, __builtin_ia32_fixupimmps256_maskz,
2068         __builtin_ia32_fixupimmpd128, __builtin_ia32_fixupimmpd128_mask,
2069         __builtin_ia32_fixupimmpd128_maskz, __builtin_ia32_fixupimmps128,
2070         __builtin_ia32_fixupimmps128_mask, __builtin_ia32_fixupimmps128_maskz,
2071         __builtin_ia32_pabsq256_mask, __builtin_ia32_pabsq128_mask,
2072         __builtin_ia32_pabsd256_mask, __builtin_ia32_pabsd128_mask,
2073         __builtin_ia32_pmulhrsw256_mask, __builtin_ia32_pmulhrsw128_mask,
2074         __builtin_ia32_pmulhuw128_mask, __builtin_ia32_pmulhuw256_mask,
2075         __builtin_ia32_pmulhw256_mask, __builtin_ia32_pmulhw128_mask,
2076         __builtin_ia32_pmullw256_mask, __builtin_ia32_pmullw128_mask,
2077         __builtin_ia32_pmullq256_mask, __builtin_ia32_pmullq128_mask,
2078         __builtin_ia32_andpd256_mask, __builtin_ia32_andpd128_mask,
2079         __builtin_ia32_andps256_mask, __builtin_ia32_andps128_mask,
2080         __builtin_ia32_andnpd256_mask, __builtin_ia32_andnpd128_mask,
2081         __builtin_ia32_andnps256_mask, __builtin_ia32_andnps128_mask,
2082         __builtin_ia32_psllwi128_mask, __builtin_ia32_pslldi128_mask,
2083         __builtin_ia32_psllqi128_mask, __builtin_ia32_psllw128_mask,
2084         __builtin_ia32_pslld128_mask, __builtin_ia32_psllq128_mask,
2085         __builtin_ia32_psllwi256_mask, __builtin_ia32_psllw256_mask,
2086         __builtin_ia32_pslldi256_mask, __builtin_ia32_pslld256_mask,
2087         __builtin_ia32_psllqi256_mask, __builtin_ia32_psllq256_mask,
2088         __builtin_ia32_psradi128_mask, __builtin_ia32_psrad128_mask,
2089         __builtin_ia32_psradi256_mask, __builtin_ia32_psrad256_mask,
2090         __builtin_ia32_psraqi128_mask, __builtin_ia32_psraq128_mask,
2091         __builtin_ia32_psraqi256_mask, __builtin_ia32_psraq256_mask,
2092         __builtin_ia32_pandd256_mask, __builtin_ia32_pandd128_mask,
2093         __builtin_ia32_psrldi128_mask, __builtin_ia32_psrld128_mask,
2094         __builtin_ia32_psrldi256_mask, __builtin_ia32_psrld256_mask,
2095         __builtin_ia32_psrlqi128_mask, __builtin_ia32_psrlq128_mask,
2096         __builtin_ia32_psrlqi256_mask, __builtin_ia32_psrlq256_mask,
2097         __builtin_ia32_pandq256_mask, __builtin_ia32_pandq128_mask,
2098         __builtin_ia32_pandnd256_mask, __builtin_ia32_pandnd128_mask,
2099         __builtin_ia32_pandnq256_mask, __builtin_ia32_pandnq128_mask,
2100         __builtin_ia32_pord256_mask, __builtin_ia32_pord128_mask,
2101         __builtin_ia32_porq256_mask, __builtin_ia32_porq128_mask,
2102         __builtin_ia32_pxord256_mask, __builtin_ia32_pxord128_mask,
2103         __builtin_ia32_pxorq256_mask, __builtin_ia32_pxorq128_mask,
2104         __builtin_ia32_packsswb256_mask, __builtin_ia32_packsswb128_mask,
2105         __builtin_ia32_packuswb256_mask, __builtin_ia32_packuswb128_mask,
2106         __builtin_ia32_rndscaleps_256_mask, __builtin_ia32_rndscalepd_256_mask,
2107         __builtin_ia32_rndscaleps_128_mask, __builtin_ia32_rndscalepd_128_mask,
2108         __builtin_ia32_pternlogq256_mask, __builtin_ia32_pternlogq256_maskz,
2109         __builtin_ia32_pternlogd256_mask, __builtin_ia32_pternlogd256_maskz,
2110         __builtin_ia32_pternlogq128_mask, __builtin_ia32_pternlogq128_maskz,
2111         __builtin_ia32_pternlogd128_mask, __builtin_ia32_pternlogd128_maskz,
2112         __builtin_ia32_scalefpd256_mask, __builtin_ia32_scalefps256_mask,
2113         __builtin_ia32_scalefpd128_mask, __builtin_ia32_scalefps128_mask,
2114         __builtin_ia32_vfmaddpd256_mask, __builtin_ia32_vfmaddpd256_mask3,
2115         __builtin_ia32_vfmaddpd256_maskz, __builtin_ia32_vfmaddpd128_mask,
2116         __builtin_ia32_vfmaddpd128_mask3, __builtin_ia32_vfmaddpd128_maskz,
2117         __builtin_ia32_vfmaddps256_mask, __builtin_ia32_vfmaddps256_mask3,
2118         __builtin_ia32_vfmaddps256_maskz, __builtin_ia32_vfmaddps128_mask,
2119         __builtin_ia32_vfmaddps128_mask3, __builtin_ia32_vfmaddps128_maskz,
2120         __builtin_ia32_vfmsubpd256_mask3, __builtin_ia32_vfmsubpd128_mask3,
2121         __builtin_ia32_vfmsubps256_mask3, __builtin_ia32_vfmsubps128_mask3,
2122         __builtin_ia32_vfnmaddpd256_mask, __builtin_ia32_vfnmaddpd128_mask,
2123         __builtin_ia32_vfnmaddps256_mask, __builtin_ia32_vfnmaddps128_mask,
2124         __builtin_ia32_vfnmsubpd256_mask, __builtin_ia32_vfnmsubpd256_mask3,
2125         __builtin_ia32_vfnmsubpd128_mask, __builtin_ia32_vfnmsubpd128_mask3,
2126         __builtin_ia32_vfnmsubps256_mask, __builtin_ia32_vfnmsubps256_mask3,
2127         __builtin_ia32_vfnmsubps128_mask, __builtin_ia32_vfnmsubps128_mask3,
2128         __builtin_ia32_vfmaddsubpd256_mask, __builtin_ia32_vfmaddsubpd256_mask3,
2129         __builtin_ia32_vfmaddsubpd256_maskz, __builtin_ia32_vfmaddsubpd128_mask,
2130         __builtin_ia32_vfmaddsubpd128_mask3, __builtin_ia32_vfmaddsubpd128_maskz,
2131         __builtin_ia32_vfmaddsubps256_mask, __builtin_ia32_vfmaddsubps256_mask3,
2132         __builtin_ia32_vfmaddsubps256_maskz, __builtin_ia32_vfmaddsubps128_mask,
2133         __builtin_ia32_vfmaddsubps128_mask3, __builtin_ia32_vfmaddsubps128_maskz,
2134         __builtin_ia32_vfmsubaddpd256_mask3, __builtin_ia32_vfmsubaddpd128_mask3,
2135         __builtin_ia32_vfmsubaddps256_mask3, __builtin_ia32_vfmsubaddps128_mask3,
2136         __builtin_ia32_insertf64x2_256_mask, __builtin_ia32_inserti64x2_256_mask,
2137         __builtin_ia32_psrav16hi_mask, __builtin_ia32_psrav8hi_mask,
2138         __builtin_ia32_pmaddubsw256_mask, __builtin_ia32_pmaddubsw128_mask,
2139         __builtin_ia32_pmaddwd256_mask, __builtin_ia32_pmaddwd128_mask,
2140         __builtin_ia32_psrlv16hi_mask, __builtin_ia32_psrlv8hi_mask,
2141         __builtin_ia32_cvtps2dq256_mask, __builtin_ia32_cvtps2dq128_mask,
2142         __builtin_ia32_cvtps2udq256_mask, __builtin_ia32_cvtps2udq128_mask,
2143         __builtin_ia32_cvtps2qq256_mask, __builtin_ia32_cvtps2qq128_mask,
2144         __builtin_ia32_cvtps2uqq256_mask, __builtin_ia32_cvtps2uqq128_mask,
2145         __builtin_ia32_getmantps256_mask, __builtin_ia32_getmantps128_mask,
2146         __builtin_ia32_getmantpd256_mask, __builtin_ia32_getmantpd128_mask,
2147         __builtin_ia32_movddup256_mask, __builtin_ia32_movddup128_mask,
2148         __builtin_ia32_movshdup256_mask, __builtin_ia32_movshdup128_mask,
2149         __builtin_ia32_movsldup256_mask, __builtin_ia32_movsldup128_mask,
2150         __builtin_ia32_cvtqq2ps256_mask, __builtin_ia32_cvtqq2ps128_mask,
2151         __builtin_ia32_cvtuqq2ps256_mask, __builtin_ia32_cvtuqq2ps128_mask,
2152         __builtin_ia32_cvtqq2pd256_mask, __builtin_ia32_cvtqq2pd128_mask,
2153         __builtin_ia32_cvtuqq2pd256_mask, __builtin_ia32_cvtuqq2pd128_mask,
2154         __builtin_ia32_vpermt2varq256_mask, __builtin_ia32_vpermt2varq256_maskz,
2155         __builtin_ia32_vpermt2vard256_mask, __builtin_ia32_vpermt2vard256_maskz,
2156         __builtin_ia32_vpermi2varq256_mask, __builtin_ia32_vpermi2vard256_mask,
2157         __builtin_ia32_vpermt2varpd256_mask, __builtin_ia32_vpermt2varpd256_maskz,
2158         __builtin_ia32_vpermt2varps256_mask, __builtin_ia32_vpermt2varps256_maskz,
2159         __builtin_ia32_vpermi2varpd256_mask, __builtin_ia32_vpermi2varps256_mask,
2160         __builtin_ia32_vpermt2varq128_mask, __builtin_ia32_vpermt2varq128_maskz,
2161         __builtin_ia32_vpermt2vard128_mask, __builtin_ia32_vpermt2vard128_maskz,
2162         __builtin_ia32_vpermi2varq128_mask, __builtin_ia32_vpermi2vard128_mask,
2163         __builtin_ia32_vpermt2varpd128_mask, __builtin_ia32_vpermt2varpd128_maskz,
2164         __builtin_ia32_vpermt2varps128_mask, __builtin_ia32_vpermt2varps128_maskz,
2165         __builtin_ia32_vpermi2varpd128_mask, __builtin_ia32_vpermi2varps128_mask,
2166         __builtin_ia32_pshufb256_mask, __builtin_ia32_pshufb128_mask,
2167         __builtin_ia32_pshufhw256_mask, __builtin_ia32_pshufhw128_mask,
2168         __builtin_ia32_pshuflw256_mask, __builtin_ia32_pshuflw128_mask,
2169         __builtin_ia32_pshufd256_mask, __builtin_ia32_pshufd128_mask,
2170         __builtin_ia32_shufpd256_mask, __builtin_ia32_shufpd128_mask,
2171         __builtin_ia32_shufps256_mask, __builtin_ia32_shufps128_mask,
2172         __builtin_ia32_prolvq256_mask, __builtin_ia32_prolvq128_mask,
2173         __builtin_ia32_prolq256_mask, __builtin_ia32_prolq128_mask,
2174         __builtin_ia32_prorvq256_mask, __builtin_ia32_prorvq128_mask,
2175         __builtin_ia32_prorq256_mask, __builtin_ia32_prorq128_mask,
2176         __builtin_ia32_psravq128_mask, __builtin_ia32_psravq256_mask,
2177         __builtin_ia32_psllv4di_mask, __builtin_ia32_psllv2di_mask,
2178         __builtin_ia32_psllv8si_mask, __builtin_ia32_psllv4si_mask,
2179         __builtin_ia32_psrav8si_mask, __builtin_ia32_psrav4si_mask,
2180         __builtin_ia32_psrlv4di_mask, __builtin_ia32_psrlv2di_mask,
2181         __builtin_ia32_psrlv8si_mask, __builtin_ia32_psrlv4si_mask,
2182         __builtin_ia32_psrawi256_mask, __builtin_ia32_psraw256_mask,
2183         __builtin_ia32_psrawi128_mask, __builtin_ia32_psraw128_mask,
2184         __builtin_ia32_psrlwi256_mask, __builtin_ia32_psrlw256_mask,
2185         __builtin_ia32_psrlwi128_mask, __builtin_ia32_psrlw128_mask,
2186         __builtin_ia32_prorvd256_mask, __builtin_ia32_prolvd256_mask,
2187         __builtin_ia32_prord256_mask, __builtin_ia32_prold256_mask,
2188         __builtin_ia32_prorvd128_mask, __builtin_ia32_prolvd128_mask,
2189         __builtin_ia32_prord128_mask, __builtin_ia32_prold128_mask,
2190         __builtin_ia32_fpclasspd256_mask, __builtin_ia32_fpclasspd128_mask,
2191         __builtin_ia32_fpclasssd, __builtin_ia32_fpclassps256_mask,
2192         __builtin_ia32_fpclassps128_mask, __builtin_ia32_fpclassss,
2193         __builtin_ia32_cvtb2mask128, __builtin_ia32_cvtb2mask256,
2194         __builtin_ia32_cvtw2mask128, __builtin_ia32_cvtw2mask256,
2195         __builtin_ia32_cvtd2mask128, __builtin_ia32_cvtd2mask256,
2196         __builtin_ia32_cvtq2mask128, __builtin_ia32_cvtq2mask256,
2197         __builtin_ia32_cvtmask2b128, __builtin_ia32_cvtmask2b256,
2198         __builtin_ia32_cvtmask2w128, __builtin_ia32_cvtmask2w256,
2199         __builtin_ia32_cvtmask2d128, __builtin_ia32_cvtmask2d256,
2200         __builtin_ia32_cvtmask2q128, __builtin_ia32_cvtmask2q256,
2201         __builtin_ia32_pcmpeqb128_mask, __builtin_ia32_pcmpeqb256_mask,
2202         __builtin_ia32_pcmpeqw128_mask, __builtin_ia32_pcmpeqw256_mask,
2203         __builtin_ia32_pcmpeqd128_mask, __builtin_ia32_pcmpeqd256_mask,
2204         __builtin_ia32_pcmpeqq128_mask, __builtin_ia32_pcmpeqq256_mask,
2205         __builtin_ia32_pcmpgtb128_mask, __builtin_ia32_pcmpgtb256_mask,
2206         __builtin_ia32_pcmpgtw128_mask, __builtin_ia32_pcmpgtw256_mask,
2207         __builtin_ia32_pcmpgtd128_mask, __builtin_ia32_pcmpgtd256_mask,
2208         __builtin_ia32_pcmpgtq128_mask, __builtin_ia32_pcmpgtq256_mask,
2209         __builtin_ia32_ptestmb128, __builtin_ia32_ptestmb256,
2210         __builtin_ia32_ptestmw128, __builtin_ia32_ptestmw256,
2211         __builtin_ia32_ptestmd128, __builtin_ia32_ptestmd256,
2212         __builtin_ia32_ptestmq128, __builtin_ia32_ptestmq256,
2213         __builtin_ia32_ptestnmb128, __builtin_ia32_ptestnmb256,
2214         __builtin_ia32_ptestnmw128, __builtin_ia32_ptestnmw256,
2215         __builtin_ia32_ptestnmd128, __builtin_ia32_ptestnmd256,
2216         __builtin_ia32_ptestnmq128, __builtin_ia32_ptestnmq256,
2217         __builtin_ia32_broadcastmb128, __builtin_ia32_broadcastmb256,
2218         __builtin_ia32_broadcastmw128, __builtin_ia32_broadcastmw256,
2219         __builtin_ia32_compressdf256_mask, __builtin_ia32_compressdf128_mask,
2220         __builtin_ia32_compresssf256_mask, __builtin_ia32_compresssf128_mask,
2221         __builtin_ia32_compressdi256_mask, __builtin_ia32_compressdi128_mask,
2222         __builtin_ia32_compresssi256_mask, __builtin_ia32_compresssi128_mask,
2223         __builtin_ia32_expanddf256_mask, __builtin_ia32_expanddf128_mask,
2224         __builtin_ia32_expandsf256_mask, __builtin_ia32_expandsf128_mask,
2225         __builtin_ia32_expanddi256_mask, __builtin_ia32_expanddi128_mask,
2226         __builtin_ia32_expandsi256_mask, __builtin_ia32_expandsi128_mask,
2227         __builtin_ia32_expanddf256_maskz, __builtin_ia32_expanddf128_maskz,
2228         __builtin_ia32_expandsf256_maskz, __builtin_ia32_expandsf128_maskz,
2229         __builtin_ia32_expanddi256_maskz, __builtin_ia32_expanddi128_maskz,
2230         __builtin_ia32_expandsi256_maskz, __builtin_ia32_expandsi128_maskz,
2231         __builtin_ia32_pmaxsd256_mask, __builtin_ia32_pminsd256_mask,
2232         __builtin_ia32_pmaxud256_mask, __builtin_ia32_pminud256_mask,
2233         __builtin_ia32_pmaxsd128_mask, __builtin_ia32_pminsd128_mask,
2234         __builtin_ia32_pmaxud128_mask, __builtin_ia32_pminud128_mask,
2235         __builtin_ia32_pmaxsq256_mask, __builtin_ia32_pminsq256_mask,
2236         __builtin_ia32_pmaxuq256_mask, __builtin_ia32_pminuq256_mask,
2237         __builtin_ia32_pmaxsq128_mask, __builtin_ia32_pminsq128_mask,
2238         __builtin_ia32_pmaxuq128_mask, __builtin_ia32_pminuq128_mask,
2239         __builtin_ia32_pminsb256_mask, __builtin_ia32_pminub256_mask,
2240         __builtin_ia32_pmaxsb256_mask, __builtin_ia32_pmaxub256_mask,
2241         __builtin_ia32_pminsb128_mask, __builtin_ia32_pminub128_mask,
2242         __builtin_ia32_pmaxsb128_mask, __builtin_ia32_pmaxub128_mask,
2243         __builtin_ia32_pminsw256_mask, __builtin_ia32_pminuw256_mask,
2244         __builtin_ia32_pmaxsw256_mask, __builtin_ia32_pmaxuw256_mask,
2245         __builtin_ia32_pminsw128_mask, __builtin_ia32_pminuw128_mask,
2246         __builtin_ia32_pmaxsw128_mask, __builtin_ia32_pmaxuw128_mask,
2247         __builtin_ia32_vpconflictdi_256_mask, __builtin_ia32_vpconflictsi_256_mask,
2248         __builtin_ia32_vplzcntq_256_mask, __builtin_ia32_vplzcntd_256_mask,
2249         __builtin_ia32_unpckhpd256_mask, __builtin_ia32_unpckhpd128_mask,
2250         __builtin_ia32_unpckhps256_mask, __builtin_ia32_unpckhps128_mask,
2251         __builtin_ia32_unpcklpd256_mask, __builtin_ia32_unpcklpd128_mask,
2252         __builtin_ia32_unpcklps256_mask, __builtin_ia32_vpconflictdi_128_mask,
2253         __builtin_ia32_vpconflictsi_128_mask, __builtin_ia32_vplzcntq_128_mask,
2254         __builtin_ia32_vplzcntd_128_mask, __builtin_ia32_unpcklps128_mask,
2255         __builtin_ia32_alignd256_mask, __builtin_ia32_alignq256_mask,
2256         __builtin_ia32_alignd128_mask, __builtin_ia32_alignq128_mask,
2257         __builtin_ia32_vcvtps2ph256_mask, __builtin_ia32_vcvtps2ph_mask,
2258         __builtin_ia32_vcvtph2ps_mask, __builtin_ia32_vcvtph2ps256_mask,
2259         __builtin_ia32_punpckhdq128_mask, __builtin_ia32_punpckhdq256_mask,
2260         __builtin_ia32_punpckhqdq128_mask, __builtin_ia32_punpckhqdq256_mask,
2261         __builtin_ia32_punpckldq128_mask, __builtin_ia32_punpckldq256_mask,
2262         __builtin_ia32_punpcklqdq128_mask, __builtin_ia32_punpcklqdq256_mask,
2263         __builtin_ia32_punpckhbw128_mask, __builtin_ia32_punpckhbw256_mask,
2264         __builtin_ia32_punpckhwd128_mask, __builtin_ia32_punpckhwd256_mask,
2265         __builtin_ia32_punpcklbw128_mask, __builtin_ia32_punpcklbw256_mask,
2266         __builtin_ia32_punpcklwd128_mask, __builtin_ia32_punpcklwd256_mask,
2267         __builtin_ia32_psllv16hi_mask, __builtin_ia32_psllv8hi_mask,
2268         __builtin_ia32_packssdw256_mask, __builtin_ia32_packssdw128_mask,
2269         __builtin_ia32_packusdw256_mask, __builtin_ia32_packusdw128_mask,
2270         __builtin_ia32_pavgb256_mask, __builtin_ia32_pavgw256_mask,
2271         __builtin_ia32_pavgb128_mask, __builtin_ia32_pavgw128_mask,
2272         __builtin_ia32_permvarsf256_mask, __builtin_ia32_permvardf256_mask,
2273         __builtin_ia32_permdf256_mask, __builtin_ia32_pabsb256_mask,
2274         __builtin_ia32_pabsb128_mask, __builtin_ia32_pabsw256_mask,
2275         __builtin_ia32_pabsw128_mask, __builtin_ia32_vpermilvarpd_mask,
2276         __builtin_ia32_vpermilvarps_mask, __builtin_ia32_vpermilvarpd256_mask,
2277         __builtin_ia32_vpermilvarps256_mask, __builtin_ia32_vpermilpd_mask,
2278         __builtin_ia32_vpermilps_mask, __builtin_ia32_vpermilpd256_mask,
2279         __builtin_ia32_vpermilps256_mask, __builtin_ia32_blendmq_256_mask,
2280         __builtin_ia32_blendmd_256_mask, __builtin_ia32_blendmpd_256_mask,
2281         __builtin_ia32_blendmps_256_mask, __builtin_ia32_blendmq_128_mask,
2282         __builtin_ia32_blendmd_128_mask, __builtin_ia32_blendmpd_128_mask,
2283         __builtin_ia32_blendmps_128_mask, __builtin_ia32_blendmw_256_mask,
2284         __builtin_ia32_blendmb_256_mask, __builtin_ia32_blendmw_128_mask,
2285         __builtin_ia32_blendmb_128_mask, __builtin_ia32_pmulld256_mask,
2286         __builtin_ia32_pmulld128_mask, __builtin_ia32_pmuludq256_mask,
2287         __builtin_ia32_pmuldq256_mask, __builtin_ia32_pmuldq128_mask,
2288         __builtin_ia32_pmuludq128_mask, __builtin_ia32_cvtpd2ps256_mask,
2289         __builtin_ia32_cvtpd2ps_mask, __builtin_ia32_permvarsi256_mask,
2290         __builtin_ia32_permvardi256_mask, __builtin_ia32_permdi256_mask,
2291         __builtin_ia32_cmpq256_mask, __builtin_ia32_cmpd256_mask,
2292         __builtin_ia32_ucmpq256_mask, __builtin_ia32_ucmpd256_mask,
2293         __builtin_ia32_cmpb256_mask, __builtin_ia32_cmpw256_mask,
2294         __builtin_ia32_ucmpb256_mask, __builtin_ia32_ucmpw256_mask,
2295         __builtin_ia32_cmppd256_mask, __builtin_ia32_cmpps256_mask,
2296         __builtin_ia32_cmpq128_mask, __builtin_ia32_cmpd128_mask,
2297         __builtin_ia32_ucmpq128_mask, __builtin_ia32_ucmpd128_mask,
2298         __builtin_ia32_cmpb128_mask, __builtin_ia32_cmpw128_mask,
2299         __builtin_ia32_ucmpb128_mask, __builtin_ia32_ucmpw128_mask,
2300         __builtin_ia32_cmppd128_mask, __builtin_ia32_cmpps128_mask,
2301         __builtin_ia32_broadcastf32x2_512_mask, __builtin_ia32_broadcasti32x2_512_mask,
2302         __builtin_ia32_broadcastf64x2_512_mask, __builtin_ia32_broadcasti64x2_512_mask,
2303         __builtin_ia32_broadcastf32x8_512_mask, __builtin_ia32_broadcasti32x8_512_mask,
2304         __builtin_ia32_extractf64x2_512_mask, __builtin_ia32_extractf32x8_mask,
2305         __builtin_ia32_extracti64x2_512_mask, __builtin_ia32_extracti32x8_mask,
2306         __builtin_ia32_reducepd512_mask, __builtin_ia32_reduceps512_mask,
2307         __builtin_ia32_pmullq512_mask, __builtin_ia32_xorpd512_mask,
2308         __builtin_ia32_xorps512_mask, __builtin_ia32_orpd512_mask,
2309         __builtin_ia32_orps512_mask, __builtin_ia32_andpd512_mask,
2310         __builtin_ia32_andps512_mask, __builtin_ia32_andnpd512_mask,
2311         __builtin_ia32_andnps512_mask, __builtin_ia32_insertf32x8_mask,
2312         __builtin_ia32_inserti32x8_mask, __builtin_ia32_insertf64x2_512_mask,
2313         __builtin_ia32_inserti64x2_512_mask, __builtin_ia32_fpclasspd512_mask,
2314         __builtin_ia32_fpclassps512_mask, __builtin_ia32_cvtd2mask512,
2315         __builtin_ia32_cvtq2mask512, __builtin_ia32_cvtmask2d512,
2316         __builtin_ia32_cvtmask2q512, __builtin_ia32_kunpcksi,
2317         __builtin_ia32_kunpckdi, __builtin_ia32_packusdw512_mask,
2318         __builtin_ia32_pslldq512, __builtin_ia32_psrldq512,
2319         __builtin_ia32_packssdw512_mask, __builtin_ia32_palignr512,
2320         __builtin_ia32_palignr512_mask, __builtin_ia32_movdquhi512_mask,
2321         __builtin_ia32_movdquqi512_mask, __builtin_ia32_psadbw512,
2322         __builtin_ia32_dbpsadbw512_mask, __builtin_ia32_pbroadcastb512_mask,
2323         __builtin_ia32_pbroadcastb512_gpr_mask, __builtin_ia32_pbroadcastw512_mask,
2324         __builtin_ia32_pbroadcastw512_gpr_mask, __builtin_ia32_pmovsxbw512_mask,
2325         __builtin_ia32_pmovzxbw512_mask, __builtin_ia32_permvarhi512_mask,
2326         __builtin_ia32_vpermt2varhi512_mask, __builtin_ia32_vpermt2varhi512_maskz,
2327         __builtin_ia32_vpermi2varhi512_mask, __builtin_ia32_pavgb512_mask,
2328         __builtin_ia32_pavgw512_mask, __builtin_ia32_paddb512_mask,
2329         __builtin_ia32_psubb512_mask, __builtin_ia32_psubsb512_mask,
2330         __builtin_ia32_paddsb512_mask, __builtin_ia32_psubusb512_mask,
2331         __builtin_ia32_paddusb512_mask, __builtin_ia32_psubw512_mask,
2332         __builtin_ia32_paddw512_mask, __builtin_ia32_psubsw512_mask,
2333         __builtin_ia32_paddsw512_mask, __builtin_ia32_psubusw512_mask,
2334         __builtin_ia32_paddusw512_mask, __builtin_ia32_pmaxuw512_mask,
2335         __builtin_ia32_pmaxsw512_mask, __builtin_ia32_pminuw512_mask,
2336         __builtin_ia32_pminsw512_mask, __builtin_ia32_pmaxub512_mask,
2337         __builtin_ia32_pmaxsb512_mask, __builtin_ia32_pminub512_mask,
2338         __builtin_ia32_pminsb512_mask, __builtin_ia32_pmovwb512_mask,
2339         __builtin_ia32_pmovswb512_mask, __builtin_ia32_pmovuswb512_mask,
2340         __builtin_ia32_pmulhrsw512_mask, __builtin_ia32_pmulhuw512_mask,
2341         __builtin_ia32_pmulhw512_mask, __builtin_ia32_pmullw512_mask,
2342         __builtin_ia32_psllwi512_mask, __builtin_ia32_psllw512_mask,
2343         __builtin_ia32_packsswb512_mask, __builtin_ia32_packuswb512_mask,
2344         __builtin_ia32_psrav32hi_mask, __builtin_ia32_pmaddubsw512_mask,
2345         __builtin_ia32_pmaddwd512_mask, __builtin_ia32_psrlv32hi_mask,
2346         __builtin_ia32_punpckhbw512_mask, __builtin_ia32_punpckhwd512_mask,
2347         __builtin_ia32_punpcklbw512_mask, __builtin_ia32_punpcklwd512_mask,
2348         __builtin_ia32_pshufb512_mask, __builtin_ia32_pshufhw512_mask,
2349         __builtin_ia32_pshuflw512_mask, __builtin_ia32_psrawi512_mask,
2350         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
2351         __builtin_ia32_psrlw512_mask, __builtin_ia32_cvtb2mask512,
2352         __builtin_ia32_cvtw2mask512, __builtin_ia32_cvtmask2b512,
2353         __builtin_ia32_cvtmask2w512, __builtin_ia32_pcmpeqb512_mask,
2354         __builtin_ia32_pcmpeqw512_mask, __builtin_ia32_pcmpgtb512_mask,
2355         __builtin_ia32_pcmpgtw512_mask, __builtin_ia32_ptestmb512,
2356         __builtin_ia32_ptestmw512, __builtin_ia32_ptestnmb512,
2357         __builtin_ia32_ptestnmw512, __builtin_ia32_psllv32hi_mask,
2358         __builtin_ia32_pabsb512_mask, __builtin_ia32_pabsw512_mask,
2359         __builtin_ia32_blendmw_512_mask, __builtin_ia32_blendmb_512_mask,
2360         __builtin_ia32_cmpb512_mask, __builtin_ia32_cmpw512_mask,
2361         __builtin_ia32_ucmpb512_mask, __builtin_ia32_ucmpw512_mask,
2362         __builtin_ia32_rangesd128_round, __builtin_ia32_rangess128_round,
2363         __builtin_ia32_cvtpd2qq512_mask, __builtin_ia32_cvtps2qq512_mask,
2364         __builtin_ia32_cvtpd2uqq512_mask, __builtin_ia32_cvtps2uqq512_mask,
2365         __builtin_ia32_cvtqq2ps512_mask, __builtin_ia32_cvtuqq2ps512_mask,
2366         __builtin_ia32_cvtqq2pd512_mask, __builtin_ia32_cvtuqq2pd512_mask,
2367         __builtin_ia32_cvttps2qq512_mask, __builtin_ia32_cvttps2uqq512_mask,
2368         __builtin_ia32_cvttpd2qq512_mask, __builtin_ia32_cvttpd2uqq512_mask,
2369         __builtin_ia32_rangeps512_mask, __builtin_ia32_rangepd512_mask.
2370         (ix86_expand_args_builtin): Handle HI_FTYPE_V16QI, SI_FTYPE_V32QI,
2371         DI_FTYPE_V64QI, V16QI_FTYPE_HI, V32QI_FTYPE_SI, V64QI_FTYPE_DI,
2372         V8HI_FTYPE_QI, V16HI_FTYPE_HI, V32HI_FTYPE_SI, V4SI_FTYPE_QI,
2373         V8SI_FTYPE_QI, V4SI_FTYPE_HI, V8SI_FTYPE_HI, QI_FTYPE_V8HI,
2374         HI_FTYPE_V16HI, SI_FTYPE_V32HI, QI_FTYPE_V4SI, QI_FTYPE_V8SI,
2375         HI_FTYPE_V16SI, QI_FTYPE_V2DI, QI_FTYPE_V4DI, QI_FTYPE_V8DI,
2376         V2DI_FTYPE_QI, V4DI_FTYPE_QI, V8DI_FTYPE_V64QI_V64QI,
2377         SI_FTYPE_SI_SI,DI_FTYPE_DI_DI, V8DI_FTYPE_V8DI_INT_CONVERT,
2378         QI_FTYPE_V4SF_INT, QI_FTYPE_V2DF_INT,
2379         V8SF_FTYPE_V4SF_V8SF_QI, V4DF_FTYPE_V2DF_V4DF_QI,
2380         V8SI_FTYPE_V4SI_V8SI_QI, V8SI_FTYPE_SI_V8SI_QI,
2381         V4SI_FTYPE_V4SI_V4SI_QI, V4SI_FTYPE_SI_V4SI_QI,
2382         V4DI_FTYPE_V2DI_V4DI_QI, V4DI_FTYPE_DI_V4DI_QI,
2383         V2DI_FTYPE_V2DI_V2DI_QI, V2DI_FTYPE_DI_V2DI_QI,
2384         V64QI_FTYPE_V64QI_V64QI_DI, V64QI_FTYPE_V16QI_V64QI_DI,
2385         V64QI_FTYPE_QI_V64QI_DI, V32QI_FTYPE_V32QI_V32QI_SI,
2386         V32QI_FTYPE_V16QI_V32QI_SI, V32QI_FTYPE_QI_V32QI_SI,
2387         V16QI_FTYPE_V16QI_V16QI_HI, V16QI_FTYPE_QI_V16QI_HI,
2388         V32HI_FTYPE_V8HI_V32HI_SI, V32HI_FTYPE_HI_V32HI_SI,
2389         V16HI_FTYPE_V8HI_V16HI_HI, V16HI_FTYPE_HI_V16HI_HI,
2390         V8HI_FTYPE_V8HI_V8HI_QI, V8HI_FTYPE_HI_V8HI_QI,
2391         V8SF_FTYPE_V8HI_V8SF_QI, V4SF_FTYPE_V8HI_V4SF_QI,
2392         V8SI_FTYPE_V8SF_V8SI_QI, V4SI_FTYPE_V4SF_V4SI_QI,
2393         V8DI_FTYPE_V8SF_V8DI_QI, V4DI_FTYPE_V4SF_V4DI_QI,
2394         V2DI_FTYPE_V4SF_V2DI_QI, V8SF_FTYPE_V8DI_V8SF_QI,
2395         V4SF_FTYPE_V4DI_V4SF_QI, V4SF_FTYPE_V2DI_V4SF_QI,
2396         V8DF_FTYPE_V8DI_V8DF_QI, V4DF_FTYPE_V4DI_V4DF_QI,
2397         V2DF_FTYPE_V2DI_V2DF_QI, V16QI_FTYPE_V8HI_V16QI_QI,
2398         V16QI_FTYPE_V16HI_V16QI_HI, V16QI_FTYPE_V4SI_V16QI_QI,
2399         V16QI_FTYPE_V8SI_V16QI_QI, V8HI_FTYPE_V4SI_V8HI_QI,
2400         V8HI_FTYPE_V8SI_V8HI_QI, V16QI_FTYPE_V2DI_V16QI_QI,
2401         V16QI_FTYPE_V4DI_V16QI_QI, V8HI_FTYPE_V2DI_V8HI_QI,
2402         V8HI_FTYPE_V4DI_V8HI_QI, V4SI_FTYPE_V2DI_V4SI_QI,
2403         V4SI_FTYPE_V4DI_V4SI_QI, V32QI_FTYPE_V32HI_V32QI_SI,
2404         HI_FTYPE_V16QI_V16QI_HI, SI_FTYPE_V32QI_V32QI_SI,
2405         DI_FTYPE_V64QI_V64QI_DI, QI_FTYPE_V8HI_V8HI_QI,
2406         HI_FTYPE_V16HI_V16HI_HI, SI_FTYPE_V32HI_V32HI_SI,
2407         QI_FTYPE_V4SI_V4SI_QI, QI_FTYPE_V8SI_V8SI_QI,
2408         QI_FTYPE_V2DI_V2DI_QI, QI_FTYPE_V4DI_V4DI_QI,
2409         V4SF_FTYPE_V2DF_V4SF_QI, V4SF_FTYPE_V4DF_V4SF_QI,
2410         V2DI_FTYPE_V4SI_V2DI_QI, V2DI_FTYPE_V8HI_V2DI_QI,
2411         V2DI_FTYPE_V16QI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_QI,
2412         V4DI_FTYPE_V4SI_V4DI_QI, V4DI_FTYPE_V8HI_V4DI_QI,
2413         V4DI_FTYPE_V16QI_V4DI_QI, V8DI_FTYPE_V8DF_V8DI_QI,
2414         V4DI_FTYPE_V4DF_V4DI_QI, V2DI_FTYPE_V2DF_V2DI_QI,
2415         V4SI_FTYPE_V4DF_V4SI_QI, V4SI_FTYPE_V2DF_V4SI_QI,
2416         V4SI_FTYPE_V8HI_V4SI_QI, V4SI_FTYPE_V16QI_V4SI_QI,
2417         V8SI_FTYPE_V8SI_V8SI_V8SI, V8SF_FTYPE_V8SF_V8SF_QI,
2418         V8SF_FTYPE_V8SI_V8SF_QI, V4DF_FTYPE_V4DF_V4DF_QI,
2419         V4SF_FTYPE_V4SF_V4SF_QI, V2DF_FTYPE_V2DF_V2DF_QI,
2420         V2DF_FTYPE_V4SF_V2DF_QI, V2DF_FTYPE_V4SI_V2DF_QI,
2421         V4SF_FTYPE_V4SI_V4SF_QI, V4DF_FTYPE_V4SF_V4DF_QI,
2422         V4DF_FTYPE_V4SI_V4DF_QI, V8SI_FTYPE_V8SI_V8SI_QI,
2423         V8SI_FTYPE_V8HI_V8SI_QI, V8SI_FTYPE_V16QI_V8SI_QI,
2424         V16SF_FTYPE_V8SF_V16SF_HI, V16SI_FTYPE_V8SI_V16SI_HI,
2425         V16HI_FTYPE_V16HI_V16HI_HI, V8HI_FTYPE_V16QI_V8HI_QI,
2426         V16HI_FTYPE_V16QI_V16HI_HI, V32HI_FTYPE_V32HI_V32HI_SI,
2427         V32HI_FTYPE_V32QI_V32HI_SI, V8DI_FTYPE_V8DI_V8DI_INT_CONVERT,
2428         V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI_CONVERT, QI_FTYPE_V8DF_INT_QI,
2429         QI_FTYPE_V4DF_INT_QI, QI_FTYPE_V2DF_INT_QI,
2430         HI_FTYPE_V16SF_INT_HI, QI_FTYPE_V8SF_INT_QI,
2431         QI_FTYPE_V4SF_INT_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI_CONVERT,
2432         V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI_CONVERT, V32QI_FTYPE_V32QI_V32QI_V32QI_SI,
2433         V32HI_FTYPE_V32HI_V32HI_V32HI_SI, V32HI_FTYPE_V64QI_V64QI_V32HI_SI,
2434         V16SI_FTYPE_V32HI_V32HI_V16SI_HI, V64QI_FTYPE_V64QI_V64QI_V64QI_DI,
2435         V32HI_FTYPE_V32HI_V8HI_V32HI_SI, V16HI_FTYPE_V16HI_V8HI_V16HI_HI,
2436         V8SI_FTYPE_V8SI_V4SI_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_V4DI_QI,
2437         V64QI_FTYPE_V32HI_V32HI_V64QI_DI, V32QI_FTYPE_V16HI_V16HI_V32QI_SI,
2438         V16QI_FTYPE_V8HI_V8HI_V16QI_HI, V32HI_FTYPE_V16SI_V16SI_V32HI_SI,
2439         V16HI_FTYPE_V8SI_V8SI_V16HI_HI, V8HI_FTYPE_V4SI_V4SI_V8HI_QI,
2440         V4DF_FTYPE_V4DF_V4DI_V4DF_QI, V8SF_FTYPE_V8SF_V8SI_V8SF_QI,
2441         V4SF_FTYPE_V4SF_V4SI_V4SF_QI, V2DF_FTYPE_V2DF_V2DI_V2DF_QI,
2442         V2DI_FTYPE_V4SI_V4SI_V2DI_QI, V4DI_FTYPE_V8SI_V8SI_V4DI_QI,
2443         V4DF_FTYPE_V4DI_V4DF_V4DF_QI, V8SF_FTYPE_V8SI_V8SF_V8SF_QI,
2444         V2DF_FTYPE_V2DI_V2DF_V2DF_QI, V4SF_FTYPE_V4SI_V4SF_V4SF_QI,
2445         V8HI_FTYPE_V8HI_V8HI_V8HI_QI, V8SI_FTYPE_V8SI_V8SI_V8SI_QI,
2446         V4SI_FTYPE_V4SI_V4SI_V4SI_QI, V8SF_FTYPE_V8SF_V8SF_V8SF_QI,
2447         V16QI_FTYPE_V16QI_V16QI_V16QI_HI, V16HI_FTYPE_V16HI_V16HI_V16HI_HI,
2448         V2DI_FTYPE_V2DI_V2DI_V2DI_QI, V4DI_FTYPE_V4DI_V4DI_V4DI_QI,
2449         V4DF_FTYPE_V4DF_V4DF_V4DF_QI, V8HI_FTYPE_V16QI_V16QI_V8HI_QI,
2450         V16HI_FTYPE_V32QI_V32QI_V16HI_HI, V8SI_FTYPE_V16HI_V16HI_V8SI_QI,
2451         V4SI_FTYPE_V8HI_V8HI_V4SI_QI, QI_FTYPE_V4DI_V4DI_INT_QI,
2452         QI_FTYPE_V8SI_V8SI_INT_QI, QI_FTYPE_V4DF_V4DF_INT_QI,
2453         QI_FTYPE_V8SF_V8SF_INT_QI, QI_FTYPE_V2DI_V2DI_INT_QI,
2454         QI_FTYPE_V4SI_V4SI_INT_QI, DI_FTYPE_V64QI_V64QI_INT_DI,
2455         SI_FTYPE_V32QI_V32QI_INT_SI, HI_FTYPE_V16QI_V16QI_INT_HI,
2456         SI_FTYPE_V32HI_V32HI_INT_SI, HI_FTYPE_V16HI_V16HI_INT_HI,
2457         QI_FTYPE_V8HI_V8HI_INT_QI, V8SF_FTYPE_V8SF_INT_V8SF_QI,
2458         V4SF_FTYPE_V4SF_INT_V4SF_QI, V2DF_FTYPE_V4DF_INT_V2DF_QI,
2459         V2DI_FTYPE_V4DI_INT_V2DI_QI, V8SF_FTYPE_V16SF_INT_V8SF_QI,
2460         V8SI_FTYPE_V16SI_INT_V8SI_QI, V2DF_FTYPE_V8DF_INT_V2DF_QI,
2461         V2DI_FTYPE_V8DI_INT_V2DI_QI, V4SF_FTYPE_V8SF_INT_V4SF_QI,
2462         V4SI_FTYPE_V8SI_INT_V4SI_QI, V8HI_FTYPE_V8SF_INT_V8HI_QI,
2463         V8HI_FTYPE_V4SF_INT_V8HI_QI, V32HI_FTYPE_V32HI_INT_V32HI_SI,
2464         V16HI_FTYPE_V16HI_INT_V16HI_HI, V8HI_FTYPE_V8HI_INT_V8HI_QI,
2465         V4DI_FTYPE_V4DI_INT_V4DI_QI, V2DI_FTYPE_V2DI_INT_V2DI_QI,
2466         V8SI_FTYPE_V8SI_INT_V8SI_QI, V4SI_FTYPE_V4SI_INT_V4SI_QI,
2467         V4DF_FTYPE_V4DF_INT_V4DF_QI, V2DF_FTYPE_V2DF_INT_V2DF_QI,
2468         V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI,
2469         V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI, V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI,
2470         V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI,
2471         V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI, V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI,
2472         V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI, V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI,
2473         V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI, V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI,
2474         V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI, V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI,
2475         V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI, V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI,
2476         V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI, V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI,
2477         V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI, V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI,
2478         V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI, V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI,
2479         V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI, V8DI_FTYPE_V8DF_V8DI_QI_INT,
2480         V8SF_FTYPE_V8DI_V8SF_QI_INT, V8DF_FTYPE_V8DI_V8DF_QI_INT,
2481         V8DI_FTYPE_V8SF_V8DI_QI_INT, V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI_INT,
2482         V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI_INT, VOID_FTYPE_PV4DI_V4DI_QI,
2483         VOID_FTYPE_PV2DI_V2DI_QI, VOID_FTYPE_PV8SI_V8SI_QI,
2484         VOID_FTYPE_PV4SI_V4SI_QI, VOID_FTYPE_PV4SI_V4DI_QI,
2485         VOID_FTYPE_PV4SI_V2DI_QI, VOID_FTYPE_PV8HI_V4DI_QI,
2486         VOID_FTYPE_PV8HI_V2DI_QI, VOID_FTYPE_PV8HI_V8SI_QI,
2487         VOID_FTYPE_PV8HI_V4SI_QI, VOID_FTYPE_PV16QI_V4DI_QI,
2488         VOID_FTYPE_PV16QI_V2DI_QI, VOID_FTYPE_PV16QI_V8SI_QI,
2489         VOID_FTYPE_PV16QI_V4SI_QI, VOID_FTYPE_PV8HI_V8HI_QI,
2490         VOID_FTYPE_PV16HI_V16HI_HI, VOID_FTYPE_PV32HI_V32HI_SI,
2491         VOID_FTYPE_PV16QI_V16QI_HI, VOID_FTYPE_PV32QI_V32QI_SI,
2492         VOID_FTYPE_PV64QI_V64QI_DI, VOID_FTYPE_PV4DF_V4DF_QI,
2493         VOID_FTYPE_PV2DF_V2DF_QI, VOID_FTYPE_PV8SF_V8SF_QI,
2494         VOID_FTYPE_PV4SF_V4SF_QI, V4SF_FTYPE_PCV4SF_V4SF_QI,
2495         V8SF_FTYPE_PCV8SF_V8SF_QI, V4SI_FTYPE_PCV4SI_V4SI_QI,
2496         V8SI_FTYPE_PCV8SI_V8SI_QI, V2DF_FTYPE_PCV2DF_V2DF_QI,
2497         V4DF_FTYPE_PCV4DF_V4DF_QI, V2DI_FTYPE_PCV2DI_V2DI_QI,
2498         V4DI_FTYPE_PCV4DI_V4DI_QI, V8HI_FTYPE_PCV8HI_V8HI_QI,
2499         V16HI_FTYPE_PCV16HI_V16HI_HI, V32HI_FTYPE_PCV32HI_V32HI_SI,
2500         V16QI_FTYPE_PCV16QI_V16QI_HI, V32QI_FTYPE_PCV32QI_V32QI_SI,
2501         V64QI_FTYPE_PCV64QI_V64QI_DI, do not handle V8USI_FTYPE_V8USI.
2502
2503 2014-10-28  Jakub Jelinek  <jakub@redhat.com>
2504
2505         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Use uint64_t
2506         type for the left shift in CASE_CONVERT case.
2507
2508 2014-10-28  Max Ostapenko  <m.ostapenko@partner.samsung.com>
2509
2510         * asan.h (asan_intercepted_p): New function.
2511         * asan.c (asan_mem_ref_hasher::hash): Remove MEM_REF access size from
2512         hash value construction.  Call iterative_hash_expr instead of explicit
2513         hash building.
2514         (asan_mem_ref_hasher::equal): Change condition.
2515         (has_mem_ref_been_instrumented): Likewise.
2516         (update_mem_ref_hash_table): Likewise.
2517         (maybe_update_mem_ref_hash_table): New function.
2518         (instrument_strlen_call): Removed.
2519         (get_mem_refs_of_builtin_call): Handle new parameter.
2520         (instrument_builtin_call): Call maybe_update_mem_ref_hash_table instead
2521         of instrument_mem_region_access if intercepted_p is true.
2522         (instrument_mem_region_access): Instrument only base with len instead of
2523         base and end with 1.
2524         (build_check_stmt): Remove start_instrumented and end_instrumented
2525         parameters.
2526         (enum asan_check_flags): Remove ASAN_CHECK_START_INSTRUMENTED and
2527         ASAN_CHECK_END_INSTRUMENTED.  Change ASAN_CHECK_LAST.
2528         (asan_expand_check_ifn): Remove start_instrumented and end_instrumented.
2529         * builtins.c (expand_builtin): Include asan.h.  Don't expand string/memory
2530         builtin functions that have interceptors if ASan is enabled.
2531
2532 2014-10-28  Richard Biener  <rguenther@suse.de>
2533
2534         PR middle-end/63665
2535         * fold-const.c (fold_comparison): Properly guard simplifying
2536         against INT_MAX/INT_MIN with !TYPE_OVERFLOW_WRAPS.
2537
2538 2014-10-28  Alan Lawrence  <alan.lawrence@arm.com>
2539
2540         * expr.c (expand_expr_real_2): Remove code handling VEC_LSHIFT_EXPR.
2541         * fold-const.c (const_binop): Likewise.
2542         * cfgexpand.c (expand_debug_expr): Likewise.
2543         * tree-inline.c (estimate_operator_cost): Likewise.
2544         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
2545         * optabs.c (optab_for_tree_code): Likewise.
2546         (expand_vec_shift_expr): Likewise, update comment.
2547         * tree.def: Delete VEC_LSHIFT_EXPR, remove comment.
2548         * optabs.h (expand_vec_shift_expr): Remove comment re. VEC_LSHIFT_EXPR.
2549         * optabs.def: Remove vec_shl_optab.
2550         * doc/md.texi: Remove references to vec_shr_m.
2551
2552 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
2553
2554         * asan.c (report_error_func): Add noabort path.
2555         (check_func): Ditto.  Formatting.
2556         (asan_expand_check_ifn): Handle noabort path.
2557         * common.opt (flag_sanitize_recover): Add SANITIZE_KERNEL_ADDRESS
2558         to default value.
2559         * doc/invoke.texi (-fsanitize-recover=): Mention KASan.
2560         * opts.c (finish_options): Reword comment.
2561         * sanitizer.def: Add noabort ASan builtins.
2562
2563 2014-10-28  Yury Gribov  <y.gribov@samsung.com>
2564
2565         * asan.c (set_asan_shadow_offset): New function.
2566         (asan_shadow_offset): Likewise.
2567         (asan_emit_stack_protection): Call asan_shadow_offset.
2568         (build_shadow_mem_access): Likewise.
2569         * asan.h (set_asan_shadow_offset): Declare.
2570         * common.opt (fasan-shadow-offset): New option.
2571         (frandom-seed): Fixed parameter name.
2572         * doc/invoke.texi (fasan-shadow-offset): Describe new option.
2573         (frandom-seed): Fixed parameter name.
2574         * opts-global.c (handle_common_deferred_options): Handle
2575         -fasan-shadow-offset.
2576         * opts.c (common_handle_option): Likewise.
2577
2578 2014-10-27  Jiong Wang <jiong.wang@arm.com>
2579
2580         PR target/63442
2581         * optabs.c (prepare_cmp_insn): Use "ret_mode" instead of "word_mode".
2582
2583 2014-10-27  DJ Delorie  <dj@redhat.com>
2584
2585         * tree.c (build_common_tree_nodes): Don't even store the
2586         __int128 types if they're not supported.
2587
2588 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2589
2590         * config/i386/i386.c (ix86_loop_memcount): Delete.
2591         (ix86_loop_unroll_adjust): Use FOR_EACH_SUBRTX.
2592
2593 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2594
2595         * config/i386/i386.c (find_constant_1): Delete.
2596         (find_constant): Use FOR_EACH_SUBRTX.
2597
2598 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2599
2600         * config/i386/i386.c (extended_reg_mentioned_1): Delete.
2601         (x86_extended_reg_mentioned_p): Use FOR_EACH_SUBRTX.
2602
2603 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2604
2605         * config/i386/i386.c: Include rtl-iter.h
2606         (ix86_check_avx256_register): Take a const_rtx and return a bool.
2607         (ix86_check_avx256_stores): Update call accordingly.
2608         (ix86_avx_u128_mode_entry, ix86_avx_u128_mode_exit): Likewise.
2609         (ix86_avx_u128_mode_needed): Likewise.  Use FOR_EACH_SUBRTX.
2610
2611 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2612
2613         * config/alpha/alpha-protos.h (some_small_symbolic_operand_int):
2614         Take an rtx and return a bool.
2615         * config/alpha/alpha.c (some_small_symbolic_operand_int): Likewise.
2616         Use FOR_EACH_SUBRTX_VAR.
2617         * config/alpha/predicates.md (some_small_symbolic_operand): Update
2618         accordingly.
2619
2620 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2621
2622         * config/alpha/alpha-protos.h (alpha_find_lo_sum_using_gp): Return
2623         a bool.
2624         * config/alpha/alpha.c (find_lo_sum_using_gp): Delete.
2625         (alpha_find_lo_sum_using_gp): Use FOR_EACH_SUBRTX.  Return a bool.
2626
2627 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2628
2629         * config/alpha/alpha.c (alpha_set_memflags_1): Delete.
2630         (alpha_set_memflags): Use FOR_EACH_SUBRTX_VAR.
2631
2632 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2633
2634         * config/alpha/alpha.c: Include rtl-iter.h.
2635         (split_small_symbolic_operand_1): Delete.
2636         (split_small_symbolic_operand): Use FOR_EACH_SUBRTX_PTR.
2637
2638 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2639
2640         * config/s390/s390.c: Include rtl-iter.h.
2641         (check_dpu): Delete.
2642         (s390_loop_unroll_adjust): Only iterate over patterns.
2643         Use FOR_EACH_SUBRTX.
2644
2645 2014-10-27  Richard Sandiford  <richard.sandiford@arm.com>
2646
2647         * config/spu/spu.c: Include rtl-iter.h
2648         (ea_symbol_ref): Replace with...
2649         (ea_symbol_ref_p): ...this new function.
2650         (spu_legitimate_address_p): Update call accordingly.
2651         (spu_legitimate_constant_p): Likewise.  Use FOR_EACH_SUBRTX.
2652
2653 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
2654             Tom Tromey  <tromey@redhat.com>
2655
2656         * aclocal.m4, configure: Rebuild.
2657         * Makefile.in (aclocal_deps): Add gcc-plugin.m4.
2658         * configure.ac: Use GCC_ENABLE_PLUGINS.
2659         * stor-layout.c (finish_bitfield_layout): Now public.  Change
2660         argument type to 'tree'.
2661         (finish_record_layout): Update.
2662         * stor-layout.h (finish_bitfield_layout): Declare.
2663
2664 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2665
2666         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define again.
2667         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
2668         Restore, enable for bigendian, update to use __builtin..._scal...
2669
2670 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2671
2672         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_, reduc_smin_,
2673         reduc_umax_, reduc_umin_, reduc_smax_nan_, reduc_smin_nan_): Remove.
2674         (reduc_smax_scal_, reduc_smin_scal_, reduc_umax_scal_,
2675         reduc_umin_scal_, reduc_smax_nan_scal_, reduc_smin_nan_scal_): New.
2676
2677         * config/aarch64/aarch64-simd.md
2678         (reduc_<maxmin_uns>_<mode>): Rename VDQV_S variant to...
2679         (reduc_<maxmin_uns>_internal<mode>): ...this.
2680         (reduc_<maxmin_uns>_<mode>): New (VDQ_BHSI).
2681         (reduc_<maxmin_uns>_scal_<mode>): New (*2).
2682
2683         (reduc_<maxmin_uns>_v2si): Combine with below, renaming...
2684         (reduc_<maxmin_uns>_<mode>): Combine V2F with above, renaming...
2685         (reduc_<maxmin_uns>_internal_<mode>): ...to this (VDQF).
2686
2687         * config/aarch64/arm_neon.h (vmaxv_f32, vmaxv_s8, vmaxv_s16,
2688         vmaxv_s32, vmaxv_u8, vmaxv_u16, vmaxv_u32, vmaxvq_f32, vmaxvq_f64,
2689         vmaxvq_s8, vmaxvq_s16, vmaxvq_s32, vmaxvq_u8, vmaxvq_u16, vmaxvq_u32,
2690         vmaxnmv_f32, vmaxnmvq_f32, vmaxnmvq_f64, vminv_f32, vminv_s8,
2691         vminv_s16, vminv_s32, vminv_u8, vminv_u16, vminv_u32, vminvq_f32,
2692         vminvq_f64, vminvq_s8, vminvq_s16, vminvq_s32, vminvq_u8, vminvq_u16,
2693         vminvq_u32, vminnmv_f32, vminnmvq_f32, vminnmvq_f64): Update to use
2694         __builtin_aarch64_reduc_..._scal; remove vget_lane wrapper.
2695
2696 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2697
2698         * config/aarch64/aarch64-simd-builtins.def
2699         (reduc_splus_<mode>/VDQF, reduc_uplus_<mode>/VDQF, reduc_splus_v4sf):
2700         Remove.
2701         (reduc_plus_scal_<mode>, reduc_plus_scal_v4sf): New.
2702
2703         * config/aarch64/aarch64-simd.md (reduc_<sur>plus_mode): Remove.
2704         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_plus_scal_<mode>): New.
2705
2706         (reduc_<sur>plus_mode): Change SUADDV -> UNSPEC_ADDV, rename to...
2707         (aarch64_reduc_plus_internal<mode>): ...this.
2708
2709         (reduc_<sur>plus_v2si): Change SUADDV -> UNSPEC_ADDV, rename to...
2710         (aarch64_reduc_plus_internalv2si): ...this.
2711
2712         (reduc_splus_<mode>/V2F): Rename to...
2713         (aarch64_reduc_plus_internal<mode>): ...this.
2714
2715         * config/aarch64/iterators.md
2716         (UNSPEC_SADDV, UNSPEC_UADDV, SUADDV): Remove.
2717         (UNSPEC_ADDV): New.
2718         (sur): Remove elements for UNSPEC_SADDV and UNSPEC_UADDV.
2719
2720         * config/aarch64/arm_neon.h (vaddv_s8, vaddv_s16, vaddv_s32, vaddv_u8,
2721         vaddv_u16, vaddv_u32, vaddvq_s8, vaddvq_s16, vaddvq_s32, vaddvq_s64,
2722         vaddvq_u8, vaddvq_u16, vaddvq_u32, vaddvq_u64, vaddv_f32, vaddvq_f32,
2723         vaddvq_f64): Change __builtin_aarch64_reduc_[us]plus_... to
2724         __builtin_aarch64_reduc_plus_scal, remove vget_lane wrapper.
2725
2726 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2727
2728         PR tree-optimization/61114
2729         * doc/md.texi (Standard Names): Add reduc_(plus,[us](min|max))|scal
2730         optabs, and note in reduc_[us](plus|min|max) to prefer the former.
2731
2732         * expr.c (expand_expr_real_2): Use reduc_..._scal if available, fall
2733         back to old reduc_... + BIT_FIELD_REF only if not.
2734
2735         * optabs.c (optab_for_tree_code): for REDUC_(MAX,MIN,PLUS)_EXPR,
2736         return the reduce-to-scalar (reduc_..._scal) optab.
2737         (scalar_reduc_to_vector): New.
2738
2739         * optabs.def (reduc_smax_scal_optab, reduc_smin_scal_optab,
2740         reduc_plus_scal_optab, reduc_umax_scal_optab, reduc_umin_scal_optab):
2741         New.
2742
2743         * optabs.h (scalar_reduc_to_vector): Declare.
2744
2745         * tree-vect-loop.c (vectorizable_reduction): Look for optabs reducing
2746         to either scalar or vector.
2747
2748 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
2749
2750         PR tree-optimization/61114
2751         * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
2752         extract_bit_field around optab result.
2753
2754         * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
2755         scalar not vector.
2756
2757         * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
2758         for REDUC_{MIN,MAX,PLUS}_EXPR.
2759
2760         * tree-vect-loop.c (vect_analyze_loop): Update comment.
2761         (vect_create_epilog_for_reduction): For direct vector reduction, use
2762         result of tree code directly without extract_bit_field.
2763
2764         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
2765         comment.
2766
2767 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
2768
2769         * basic-block.h: Remove all includes.
2770         (enum profile_status_d, struct control_flow_graph): Move to cfg.h
2771         * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
2772         * Makefile.in (GTFILES): Add cfg.h to list.
2773         * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
2774         * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
2775         * genconditions.c (write_header): Add predict.h and basic-block.h to
2776         lits of includes.
2777         * genemit.c (main): Ditto.
2778         * genpreds.c (write_insn_preds_c): Ditto.
2779         * genrecog.c (write_header): Ditto.
2780         * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
2781         to list of includes.
2782         * alias.c: Adjust include files.
2783         * asan.c: Ditto.
2784         * auto-inc-dec.c: Ditto.
2785         * auto-profile.c: Ditto.
2786         * bb-reorder.c: Ditto.
2787         * bt-load.c: Ditto.
2788         * builtins.c: Ditto.
2789         * caller-save.c: Ditto.
2790         * calls.c: Ditto.
2791         * cfg.c: Ditto.
2792         * cfganal.c: Ditto.
2793         * cfgbuild.c: Ditto.
2794         * cfgcleanup.c: Ditto.
2795         * cfgexpand.c: Ditto.
2796         * cfghooks.c: Ditto.
2797         * cfgloop.c: Ditto.
2798         * cfgloopanal.c: Ditto.
2799         * cfgloopmanip.c: Ditto.
2800         * cfgrtl.c: Ditto.
2801         * cgraphbuild.c: Ditto.
2802         * cgraphclones.c: Ditto.
2803         * cgraphunit.c: Ditto.
2804         * combine-stack-adj.c: Ditto.
2805         * combine.c: Ditto.
2806         * compare-elim.c: Ditto.
2807         * coverage.c: Ditto.
2808         * cprop.c: Ditto.
2809         * cse.c: Ditto.
2810         * cselib.c: Ditto.
2811         * data-streamer-in.c: Ditto.
2812         * data-streamer-out.c: Ditto.
2813         * data-streamer.c: Ditto.
2814         * dce.c: Ditto.
2815         * ddg.c: Ditto.
2816         * ddg.h: Ditto.
2817         * df-core.c: Ditto.
2818         * df-problems.c: Ditto.
2819         * df-scan.c: Ditto.
2820         * df.h: Ditto.
2821         * dojump.c: Ditto.
2822         * dominance.c: Ditto.
2823         * domwalk.c: Ditto.
2824         * dse.c: Ditto.
2825         * dwarf2cfi.c: Ditto.
2826         * emit-rtl.c: Ditto.
2827         * et-forest.c: Ditto.
2828         * except.c: Ditto.
2829         * expmed.c: Ditto.
2830         * expr.c: Ditto.
2831         * final.c: Ditto.
2832         * fold-const.c: Ditto.
2833         * function.c: Ditto.
2834         * fwprop.c: Ditto.
2835         * gcc-plugin.h: Ditto.
2836         * gcse.c: Ditto.
2837         * generic-match-head.c: Ditto.
2838         * ggc-page.c: Ditto.
2839         * gimple-builder.c: Ditto.
2840         * gimple-expr.c: Ditto.
2841         * gimple-fold.c: Ditto.
2842         * gimple-iterator.c: Ditto.
2843         * gimple-low.c: Ditto.
2844         * gimple-match-head.c: Ditto.
2845         * gimple-pretty-print.c: Ditto.
2846         * gimple-ssa-isolate-paths.c: Ditto.
2847         * gimple-ssa-strength-reduction.c: Ditto.
2848         * gimple-streamer-in.c: Ditto.
2849         * gimple-streamer-out.c: Ditto.
2850         * gimple-streamer.h: Ditto.
2851         * gimple-walk.c: Ditto.
2852         * gimple.c: Ditto.
2853         * gimplify-me.c: Ditto.
2854         * gimplify.c: Ditto.
2855         * graph.c: Ditto.
2856         * graphite-blocking.c: Ditto.
2857         * graphite-clast-to-gimple.c: Ditto.
2858         * graphite-dependences.c: Ditto.
2859         * graphite-interchange.c: Ditto.
2860         * graphite-isl-ast-to-gimple.c: Ditto.
2861         * graphite-optimize-isl.c: Ditto.
2862         * graphite-poly.c: Ditto.
2863         * graphite-scop-detection.c: Ditto.
2864         * graphite-sese-to-poly.c: Ditto.
2865         * graphite.c: Ditto.
2866         * haifa-sched.c: Ditto.
2867         * hw-doloop.c: Ditto.
2868         * ifcvt.c: Ditto.
2869         * init-regs.c: Ditto.
2870         * internal-fn.c: Ditto.
2871         * ipa-cp.c: Ditto.
2872         * ipa-devirt.c: Ditto.
2873         * ipa-icf-gimple.c: Ditto.
2874         * ipa-icf.c: Ditto.
2875         * ipa-inline-analysis.c: Ditto.
2876         * ipa-inline.c: Ditto.
2877         * ipa-polymorphic-call.c: Ditto.
2878         * ipa-profile.c: Ditto.
2879         * ipa-prop.c: Ditto.
2880         * ipa-pure-const.c: Ditto.
2881         * ipa-reference.c: Ditto.
2882         * ipa-split.c: Ditto.
2883         * ipa-utils.c: Ditto.
2884         * ipa.c: Ditto.
2885         * ira-build.c: Ditto.
2886         * ira-color.c: Ditto.
2887         * ira-conflicts.c: Ditto.
2888         * ira-costs.c: Ditto.
2889         * ira-emit.c: Ditto.
2890         * ira-lives.c: Ditto.
2891         * ira.c: Ditto.
2892         * jump.c: Ditto.
2893         * lcm.c: Ditto.
2894         * loop-doloop.c: Ditto.
2895         * loop-init.c: Ditto.
2896         * loop-invariant.c: Ditto.
2897         * loop-iv.c: Ditto.
2898         * loop-unroll.c: Ditto.
2899         * lower-subreg.c: Ditto.
2900         * lra-assigns.c: Ditto.
2901         * lra-coalesce.c: Ditto.
2902         * lra-constraints.c: Ditto.
2903         * lra-eliminations.c: Ditto.
2904         * lra-lives.c: Ditto.
2905         * lra-spills.c: Ditto.
2906         * lra.c: Ditto.
2907         * lto-cgraph.c: Ditto.
2908         * lto-compress.c: Ditto.
2909         * lto-opts.c: Ditto.
2910         * lto-section-in.c: Ditto.
2911         * lto-section-out.c: Ditto.
2912         * lto-streamer-in.c: Ditto.
2913         * lto-streamer-out.c: Ditto.
2914         * lto-streamer.c: Ditto.
2915         * mcf.c: Ditto.
2916         * mode-switching.c: Ditto.
2917         * modulo-sched.c: Ditto.
2918         * omp-low.c: Ditto.
2919         * optabs.c: Ditto.
2920         * opts-global.c: Ditto.
2921         * passes.c: Ditto.
2922         * postreload-gcse.c: Ditto.
2923         * postreload.c: Ditto.
2924         * predict.c: Ditto.
2925         * print-rtl.c: Ditto.
2926         * profile.c: Ditto.
2927         * recog.c: Ditto.
2928         * ree.c: Ditto.
2929         * reg-stack.c: Ditto.
2930         * regcprop.c: Ditto.
2931         * regcprop.h: Ditto.
2932         * reginfo.c: Ditto.
2933         * regrename.c: Ditto.
2934         * regstat.c: Ditto.
2935         * reload.c: Ditto.
2936         * reload1.c: Ditto.
2937         * reorg.c: Ditto.
2938         * resource.c: Ditto.
2939         * rtlanal.c: Ditto.
2940         * sched-deps.c: Ditto.
2941         * sched-ebb.c: Ditto.
2942         * sched-int.h: Ditto.
2943         * sched-rgn.c: Ditto.
2944         * sched-vis.c: Ditto.
2945         * sel-sched-dump.c: Ditto.
2946         * sel-sched-ir.c: Ditto.
2947         * sel-sched-ir.h: Ditto.
2948         * sel-sched.c: Ditto.
2949         * sese.c: Ditto.
2950         * shrink-wrap.c: Ditto.
2951         * stack-ptr-mod.c: Ditto.
2952         * stmt.c: Ditto.
2953         * store-motion.c: Ditto.
2954         * symtab.c: Ditto.
2955         * toplev.c: Ditto.
2956         * tracer.c: Ditto.
2957         * trans-mem.c: Ditto.
2958         * tree-affine.c: Ditto.
2959         * tree-call-cdce.c: Ditto.
2960         * tree-cfg.c: Ditto.
2961         * tree-cfgcleanup.c: Ditto.
2962         * tree-chrec.c: Ditto.
2963         * tree-complex.c: Ditto.
2964         * tree-data-ref.c: Ditto.
2965         * tree-dfa.c: Ditto.
2966         * tree-eh.c: Ditto.
2967         * tree-emutls.c: Ditto.
2968         * tree-if-conv.c: Ditto.
2969         * tree-inline.c: Ditto.
2970         * tree-into-ssa.c: Ditto.
2971         * tree-loop-distribution.c: Ditto.
2972         * tree-nested.c: Ditto.
2973         * tree-nrv.c: Ditto.
2974         * tree-object-size.c: Ditto.
2975         * tree-outof-ssa.c: Ditto.
2976         * tree-parloops.c: Ditto.
2977         * tree-phinodes.c: Ditto.
2978         * tree-predcom.c: Ditto.
2979         * tree-pretty-print.c: Ditto.
2980         * tree-profile.c: Ditto.
2981         * tree-scalar-evolution.c: Ditto.
2982         * tree-sra.c: Ditto.
2983         * tree-ssa-address.c: Ditto.
2984         * tree-ssa-alias.c: Ditto.
2985         * tree-ssa-ccp.c: Ditto.
2986         * tree-ssa-coalesce.c: Ditto.
2987         * tree-ssa-copy.c: Ditto.
2988         * tree-ssa-copyrename.c: Ditto.
2989         * tree-ssa-dce.c: Ditto.
2990         * tree-ssa-dom.c: Ditto.
2991         * tree-ssa-dse.c: Ditto.
2992         * tree-ssa-forwprop.c: Ditto.
2993         * tree-ssa-ifcombine.c: Ditto.
2994         * tree-ssa-live.c: Ditto.
2995         * tree-ssa-loop-ch.c: Ditto.
2996         * tree-ssa-loop-im.c: Ditto.
2997         * tree-ssa-loop-ivcanon.c: Ditto.
2998         * tree-ssa-loop-ivopts.c: Ditto.
2999         * tree-ssa-loop-manip.c: Ditto.
3000         * tree-ssa-loop-niter.c: Ditto.
3001         * tree-ssa-loop-prefetch.c: Ditto.
3002         * tree-ssa-loop-unswitch.c: Ditto.
3003         * tree-ssa-loop.c: Ditto.
3004         * tree-ssa-math-opts.c: Ditto.
3005         * tree-ssa-operands.c: Ditto.
3006         * tree-ssa-phiopt.c: Ditto.
3007         * tree-ssa-phiprop.c: Ditto.
3008         * tree-ssa-pre.c: Ditto.
3009         * tree-ssa-propagate.c: Ditto.
3010         * tree-ssa-reassoc.c: Ditto.
3011         * tree-ssa-sccvn.c: Ditto.
3012         * tree-ssa-sink.c: Ditto.
3013         * tree-ssa-strlen.c: Ditto.
3014         * tree-ssa-structalias.c: Ditto.
3015         * tree-ssa-tail-merge.c: Ditto.
3016         * tree-ssa-ter.c: Ditto.
3017         * tree-ssa-threadedge.c: Ditto.
3018         * tree-ssa-threadupdate.c: Ditto.
3019         * tree-ssa-uncprop.c: Ditto.
3020         * tree-ssa-uninit.c: Ditto.
3021         * tree-ssa.c: Ditto.
3022         * tree-ssanames.c: Ditto.
3023         * tree-stdarg.c: Ditto.
3024         * tree-streamer-in.c: Ditto.
3025         * tree-streamer-out.c: Ditto.
3026         * tree-streamer.c: Ditto.
3027         * tree-switch-conversion.c: Ditto.
3028         * tree-tailcall.c: Ditto.
3029         * tree-vect-data-refs.c: Ditto.
3030         * tree-vect-generic.c: Ditto.
3031         * tree-vect-loop-manip.c: Ditto.
3032         * tree-vect-loop.c: Ditto.
3033         * tree-vect-patterns.c: Ditto.
3034         * tree-vect-slp.c: Ditto.
3035         * tree-vect-stmts.c: Ditto.
3036         * tree-vectorizer.c: Ditto.
3037         * tree-vrp.c: Ditto.
3038         * tree.c: Ditto.
3039         * tsan.c: Ditto.
3040         * ubsan.c: Ditto.
3041         * valtrack.c: Ditto.
3042         * valtrack.h: Ditto.
3043         * value-prof.c: Ditto.
3044         * var-tracking.c: Ditto.
3045         * varasm.c: Ditto.
3046         * varpool.c: Ditto.
3047         * vtable-verify.c: Ditto.
3048         * web.c: Ditto.
3049         * config/aarch64/aarch64-builtins.c: Ditto.
3050         * config/aarch64/aarch64.c: Ditto.
3051         * config/alpha/alpha.c: Ditto.
3052         * config/arc/arc.c: Ditto.
3053         * config/arm/arm.c: Ditto.
3054         * config/avr/avr.c: Ditto.
3055         * config/bfin/bfin.c: Ditto.
3056         * config/c6x/c6x.c: Ditto.
3057         * config/cr16/cr16.c: Ditto.
3058         * config/cris/cris.c: Ditto.
3059         * config/darwin-c.c: Ditto.
3060         * config/darwin.c: Ditto.
3061         * config/epiphany/epiphany.c: Ditto.
3062         * config/epiphany/mode-switch-use.c: Ditto.
3063         * config/epiphany/resolve-sw-modes.c: Ditto.
3064         * config/fr30/fr30.c: Ditto.
3065         * config/frv/frv.c: Ditto.
3066         * config/h8300/h8300.c: Ditto.
3067         * config/i386/i386.c: Ditto.
3068         * config/i386/winnt.c: Ditto.
3069         * config/ia64/ia64.c: Ditto.
3070         * config/iq2000/iq2000.c: Ditto.
3071         * config/lm32/lm32.c: Ditto.
3072         * config/m32c/m32c.c: Ditto.
3073         * config/m32r/m32r.c: Ditto.
3074         * config/m68k/m68k.c: Ditto.
3075         * config/mcore/mcore.c: Ditto.
3076         * config/mep/mep.c: Ditto.
3077         * config/microblaze/microblaze.c: Ditto.
3078         * config/mips/mips.c: Ditto.
3079         * config/mmix/mmix.c: Ditto.
3080         * config/mn10300/mn10300.c: Ditto.
3081         * config/moxie/moxie.c: Ditto.
3082         * config/msp430/msp430.c: Ditto.
3083         * config/nds32/nds32-cost.c: Ditto.
3084         * config/nds32/nds32-fp-as-gp.c: Ditto.
3085         * config/nds32/nds32-intrinsic.c: Ditto.
3086         * config/nds32/nds32-isr.c: Ditto.
3087         * config/nds32/nds32-md-auxiliary.c: Ditto.
3088         * config/nds32/nds32-memory-manipulation.c: Ditto.
3089         * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
3090         * config/nds32/nds32-predicates.c: Ditto.
3091         * config/nds32/nds32.c: Ditto.
3092         * config/nios2/nios2.c: Ditto.
3093         * config/pa/pa.c: Ditto.
3094         * config/pdp11/pdp11.c: Ditto.
3095         * config/rl78/rl78.c: Ditto.
3096         * config/rs6000/rs6000.c: Ditto.
3097         * config/rx/rx.c: Ditto.
3098         * config/s390/s390.c: Ditto.
3099         * config/sh/sh-mem.cc: Ditto.
3100         * config/sh/sh.c: Ditto.
3101         * config/sh/sh_optimize_sett_clrt.cc: Ditto.
3102         * config/sh/sh_treg_combine.cc: Ditto.
3103         * config/sparc/sparc.c: Ditto.
3104         * config/spu/spu.c: Ditto.
3105         * config/stormy16/stormy16.c: Ditto.
3106         * config/tilegx/tilegx.c: Ditto.
3107         * config/tilepro/tilepro.c: Ditto.
3108         * config/v850/v850.c: Ditto.
3109         * config/vax/vax.c: Ditto.
3110         * config/xtensa/xtensa.c: Ditto.
3111
3112 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
3113
3114         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
3115         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
3116         Remove using preprocessor directives.
3117
3118 2014-10-27  Richard Biener  <rguenther@suse.de>
3119
3120         * match.pd (0 % X): Properly use the iterator iterating over
3121         all modulo operators.
3122         (X % 1): Likewise.
3123
3124 2014-10-27  Richard Biener  <rguenther@suse.de>
3125
3126         * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
3127         (lattice): New global.
3128         (fwprop_ssa_val): New function.
3129         (fold_all_stmts): Likewise.
3130         (pass_forwprop::execute): Finally fold all stmts.
3131
3132 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3133
3134         PR c++/53061
3135         * doc/invoke.texi (fmessage-length): Update text to match reality.
3136
3137 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3138
3139         * config/microblaze/microblaze.c: Include rtl-iter.h.
3140         (microblaze_tls_referenced_p_1): Delete.
3141         (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
3142
3143 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3144
3145         * config/mips/mips.c (mips_at_reg_p): Delete.
3146         (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
3147
3148 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3149
3150         * config/mips/mips.c (mips_record_lo_sum): Replace with...
3151         (mips_record_lo_sums): ...this new function.
3152         (mips_reorg_process_insns): Update accordingly.
3153
3154 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3155
3156         * config/mips/mips.c (mips_sim_insn): Update comment.
3157         (mips_sim_wait_regs_2): Delete.
3158         (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
3159
3160 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3161
3162         * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
3163         and return a bool.  Iterate over all subrtxes here.
3164         (r10k_needs_protection_p): Update accordingly.
3165
3166 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3167
3168         * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
3169         rather than an rtx pointer.  Change type of insn from "void *"
3170         to its real type.  Return bool rather than int.  Iterate over
3171         all subrtxes here.
3172         (r10k_needs_protection_p_store): Update accordingly.
3173         (r10k_needs_protection_p): Likewise.
3174
3175 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3176
3177         * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
3178         (mips16_rewrite_pool_refs): Take the insn and constant pool as
3179         parameters.  Iterate over the instruction's pattern and return void.
3180         (mips16_lay_out_constants): Update accordingly.
3181
3182 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3183
3184         * config/mips/mips.c (mips_kernel_reg_p): Replace with...
3185         (mips_refers_to_kernel_reg_p): ...this new function.
3186         (mips_expand_prologue): Update accordingly.
3187
3188 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3189
3190         * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
3191         as a parameter instead of the containing MEM.  Iterate over all
3192         subrtxes.  Don't return a value.
3193         (mips_rewrite_small_data): Update call accordingly.
3194
3195 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3196
3197         * config/mips/mips.c: Include rtl-iter.h.
3198         (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
3199         Take the context as a parameter instead of the containing MEM.
3200         Iterate over all subrtxes.
3201         (mips_small_data_pattern_p): Update call accordingly.
3202
3203 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3204
3205         * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
3206         (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
3207
3208 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3209
3210         * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
3211         return a bool.  Replace "void *" with specific type.  Iterate
3212         over all subrtxes.
3213         (mep_store_data_bypass_1): Update calls accordingly.
3214
3215 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3216
3217         * config/mep/mep.c: Include rtl-iter.h.
3218         (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
3219         (xtensa_tls_referenced_p): Return a bool.  Use FOR_EACH_SUBRTX.
3220
3221 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3222
3223         * config/xtensa/xtensa.c: Include rtl-iter.h.
3224         (xtensa_tls_referenced_p_1): Delete.
3225         (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
3226
3227 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3228
3229         * config/sh/sh.c (sh_contains_memref_p_1): Delete.
3230         (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
3231
3232 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3233
3234         * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
3235         rtx as argument and return the number of changes.
3236         * config/sh/sh.c: Include rtl-iter.h.
3237         (shmedia_cleanup_truncate): Take an rtx as argument and iterate
3238         over all subrtxes.  Return the number of changes made.
3239         * config/sh/sh.md: Update caller accordingly.
3240
3241 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3242
3243         * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
3244         (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
3245
3246 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
3247
3248         * config/m68k/m68k.c: Include rtl-iter.h.
3249         (m68k_final_prescan_insn_1): Delete.
3250         (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
3251
3252 2014-10-25  Jakub Jelinek  <jakub@redhat.com>
3253
3254         PR tree-optimization/63641
3255         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
3256         to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
3257
3258 2014-10-25  Alan Modra  <amodra@gmail.com>
3259
3260         PR rtl-optimization/63615
3261         * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
3262         decomposing PLUS or MINUS if operands are not placed adjacent
3263         in the "ops" array.
3264
3265 2014-10-25  Joseph Myers  <joseph@codesourcery.com>
3266
3267         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
3268         not allow e500 double in registers not satisyfing
3269         SPE_SIMD_REGNO_P.
3270
3271 2014-10-24  Aldy Hernandez  <aldyh@redhat.com>
3272
3273         * dwarf2out.c (declare_in_namespace): Only emit external
3274         declarations in the local scope once.
3275
3276 2014-10-24  Jonathan Wakely  <jwakely@redhat.com>
3277
3278         * ginclude/stdbool.h: Do not define bool, true or false in C++11.
3279
3280 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
3281
3282         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
3283         update uses to use new macro arguments.
3284         (__LD3_LANE_FUNC): Likewise.
3285         (__LD4_LANE_FUNC): Likewise.
3286
3287 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
3288
3289         * config/aarch64/aarch64-builtins.c
3290         (aarch64_types_loadstruct_lane_qualifiers): Define.
3291         * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
3292         ld4_lane): New builtins.
3293         * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
3294         New pattern.
3295         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
3296         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
3297         (aarch64_ld2_lane<mode>): New expand.
3298         (aarch64_ld3_lane<mode>): Likewise.
3299         (aarch64_ld4_lane<mode>): Likewise.
3300         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
3301         UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
3302
3303 2014-10-24  Georg-Johann Lay  <avr@gjlay.de>
3304
3305         * avr-protos.h (avr_out_sign_extend): New.
3306         * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
3307         (avr_out_sign_extend): New function.
3308         * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
3309         (extendhisi2, extendpsisi2): Use it.
3310         (adjust_len) [sext]: New.
3311
3312 2014-10-24  Martin Liska  <mliska@suse.cz>
3313
3314         * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
3315         added.
3316
3317 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3318
3319         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
3320         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
3321         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
3322         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
3323
3324 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3325
3326         * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
3327         do while (0).
3328         * config/aarch64/aarch64.c (is_mem_p): Delete.
3329         (is_memory_op): Rename to...
3330         (has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
3331         (dep_between_memop_and_curr): Assert that the input is a SET.
3332         (aarch64_madd_needs_nop): Add comment.  Do not call
3333         dep_between_memop_and_curr on NULL body.
3334         (aarch64_final_prescan_insn): Add comment.
3335         Include rtl-iter.h.
3336
3337 2014-10-24  Richard Biener  <rguenther@suse.de>
3338
3339         * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
3340         to genmatch BUILD_LIBS instead.
3341
3342 2014-10-24  Richard Biener  <rguenther@suse.de>
3343
3344         * genmatch.c (expr::gen_transform): Use fold_buildN_loc
3345         and build_call_expr_loc.
3346         (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
3347         non_lvalue_loc to build it for GENERIC.
3348         (decision_tree::gen_generic): Add location argument to
3349         generic_simplify prototype.
3350         (capture_info): New class.
3351         (capture_info::capture_info): New constructor.
3352         (capture_info::walk_match): New method.
3353         (capture_info::walk_result): New method.
3354         (capture_info::walk_c_expr): New method.
3355         (dt_simplify::gen): Handle preserving side-effects for
3356         GENERIC code generation.
3357         (decision_tree::gen_generic): Do not reject operands
3358         with TREE_SIDE_EFFECTS.
3359         * generic-match.h: New file.
3360         * generic-match-head.c: Include generic-match.h, not gimple-match.h.
3361         * match.pd: Add some constant folding patterns from fold-const.c.
3362         * fold-const.c: Include generic-match.h.
3363         (fold_unary_loc): Dispatch to generic_simplify.
3364         (fold_ternary_loc): Likewise.
3365         (fold_binary_loc): Likewise.  Remove patterns now implemented
3366         by generic_simplify.
3367         * gimple-fold.c (replace_stmt_with_simplification): New function.
3368         (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
3369         (no_follow_ssa_edges): New function.
3370         (fold_stmt): New overload with valueization hook.  Use
3371         no_follow_ssa_edges for the overload without hook.
3372         (fold_stmt_inplace): Likewise.
3373         * gimple-fold.h (no_follow_ssa_edges): Declare.
3374
3375 2014-10-24  Felix Yang  <felix.yang@huawei.com>
3376         Jiji Jiang  <jiangjiji@huawei.com>
3377
3378         PR target/63173
3379         * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
3380         (__LD3R_FUNC): Ditto.
3381         (__LD4R_FUNC): Ditto.
3382         (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
3383          vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
3384          vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
3385          vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
3386          vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
3387          vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
3388         (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
3389          vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
3390          vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
3391          vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
3392          vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
3393          vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
3394         (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
3395          vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
3396          vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
3397          vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
3398          vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
3399          vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
3400         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
3401         UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
3402         * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
3403         builtins.
3404         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
3405         (aarch64_simd_ld3r<mode>): Likewise.
3406         (aarch64_simd_ld4r<mode>): Likewise.
3407         (aarch64_ld2r<mode>): New expand.
3408         (aarch64_ld3r<mode>): Likewise.
3409         (aarch64_ld4r<mode>): Likewise.
3410
3411 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
3412
3413         * rtlanal.c (get_base_term): Handle SCRATCH.
3414
3415 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
3416
3417         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
3418         register pressure.
3419
3420 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
3421
3422         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
3423         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
3424         (max_issue, choose_ready, sched_init): Update.
3425
3426 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
3427
3428         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
3429         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
3430         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
3431         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
3432         (print_rank_for_schedule_stats): Print out elements of ready list that
3433         ended up on their respective places due to each of the sorting
3434         heuristics.
3435         (ready_sort): Update.
3436         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
3437         (schedule_block): Update.
3438
3439 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
3440
3441         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
3442         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
3443         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
3444         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
3445         (model_start_schedule): Update.
3446         (sched_pressure_start_bb): New static function.  Calculate
3447         sched_class_regs_num.
3448         (schedule_block): Use it.
3449         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
3450
3451 2014-10-24  Richard Biener  <rguenther@suse.de>
3452
3453         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
3454         host library and make sure to pull in the required libintl
3455         and libiconv dependencies.
3456
3457 2014-10-24  Richard Biener  <rguenther@suse.de>
3458
3459         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
3460
3461 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
3462
3463         PR bootstrap/63632
3464         * collect2.c (main): Filter out -fno-lto.
3465
3466 2014-10-24  Martin Liska  <mliska@suse.cz>
3467
3468         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
3469         division by zero in dumps.
3470         (sem_item_optimizer::merge_classes): Ditto.
3471
3472 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
3473
3474         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
3475
3476 2014-10-23  Ian Lance Taylor  <iant@google.com>
3477
3478         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
3479
3480 2014-10-23  Ian Lance Taylor  <iant@google.com>
3481
3482         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
3483
3484 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
3485
3486         PR debug/63623
3487         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
3488         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
3489         instead of only handling autoinc in dest if it is a MEM.
3490         (vt_stack_adjustments): Fix up formatting.
3491
3492 2014-10-23  DJ Delorie  <dj@redhat.com>
3493
3494         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
3495         independend of -mlarge.
3496         * config/msp430/constraints.md (Ys): Update comment.
3497
3498 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
3499
3500         PR target/63534
3501         PR target/63618
3502         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
3503         while it is pseudo.
3504         * dse.c (deletable_insn_p): Likewise.
3505
3506 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
3507
3508         * config/avr/avr.c: Fix GNU coding rules and typos.
3509         * config/avr/avr.h: Dito.
3510         * config/avr/avr-c.c: Dito.
3511         * config/avr/avr.md: Dito.
3512
3513 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3514
3515         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
3516         New.
3517         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
3518         iterator.
3519         (define_expand "abs<mode>2"): Ditto.
3520
3521 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
3522
3523         * tree-core.h (tree_var_decl): Extend `function_code' field
3524         by one bit, move `regdecl_flag' field to ...
3525         (tree_decl_with_vis): Here.
3526         * tree.h (DECL_STATIC_CHAIN): Update struct name.
3527
3528 2014-10-23  Richard Biener  <rguenther@suse.de>
3529
3530         * Makefile.in (BUILD_CPPLIB): Add.
3531         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
3532         Drop LIBIBERTY.
3533
3534 2014-10-23  Richard Biener  <rguenther@suse.de>
3535
3536         * fold-const.c (fold_binary_loc): Preserve side-effects of
3537         X - X when simplifying to 0.
3538         * stor-layout.c (finish_bitfield_representative): Strip
3539         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
3540
3541 2014-10-22  Richard Biener  <rguenther@suse.de>
3542             Tobias Burnus <burnus@net-b.de>
3543
3544         PR lto/63603
3545         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
3546
3547 2014-10-22  Dehao Chen  <dehao@google.com>
3548
3549         * auto-profile.c: Change order of header files.
3550
3551 2014-10-22  Guozhi Wei  <carrot@google.com>
3552
3553         PR tree-optimization/63530
3554         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
3555         pointer alignment according to DR_MISALIGNMENT.
3556
3557 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
3558
3559         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
3560
3561 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
3562
3563         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
3564         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
3565         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
3566         * dominance.h: New.  Add prototypes for dominance.c.
3567         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
3568         * cfghooks.h: (struct profile_record) Relocate here.
3569         Relocate 2 prototypes from basic-block.h.
3570         * basic-block.h: Move prototypes and struct to new header files.
3571         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
3572         * rtl.h: Move a few prototypes to new header files.
3573         * cfgcleanup.c (merge_memattrs): Make static.
3574         * genopinit.c (main): Add predict.h to list of includes.
3575         * predict.h: Update prototype list to match predict.c.
3576         * predict.c (maybe_hot_count_p): Export.
3577         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
3578         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
3579         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
3580         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
3581         * profile.h: Adjust prototypes.
3582         * ifcvt.h: New.  Relocate struct ce_if_block here.
3583         * ifcvt.c: Include ifcvt.h.
3584         * config/frv/frv.c: Include ifcvt.h.
3585         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
3586
3587 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
3588
3589         * lra.c (lra): Remove call to recog_init.
3590         * config/i386/i386.md (preferred_for_speed): New attribute
3591         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
3592         "enabled".  Remove check for sched1.
3593
3594 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
3595
3596         * recog.h (recog_data_d): Remove enabled_alternatives.
3597         * recog.c (extract_insn): Don't set it.
3598         * reload.c (find_reloads): Call get_enabled_alternatives.
3599
3600 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
3601
3602         * recog.h (constrain_operands): Add an alternative_mask parameter.
3603         (constrain_operands_cached): Likewise.
3604         (get_preferred_alternatives): Declare new form.
3605         * recog.c (get_preferred_alternatives): New bb-taking instance.
3606         (constrain_operands): Take the set of available alternatives as
3607         a parameter.
3608         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
3609         (extract_constrain_insn_cached): Update calls to constrain_operands.
3610         * caller-save.c (reg_save_code): Likewise.
3611         * ira.c (setup_prohibited_mode_move_regs): Likewise.
3612         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3613         * ree.c (combine_reaching_defs): Likewise.
3614         * reload.c (can_reload_into): Likewise.
3615         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
3616         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
3617         (emit_insn_if_valid_for_reload): Likewise.
3618         * reorg.c (fill_slots_from_thread): Likewise.
3619         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
3620         * config/pa/pa.c (pa_can_combine_p): Likewise.
3621         * config/rl78/rl78.c (insn_ok_now): Likewise.
3622         * config/sh/sh.md (define_peephole2): Likewise.
3623         * final.c (final_scan_insn): Update call to constrain_operands_cached.
3624
3625 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
3626
3627         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
3628         attributes.
3629         * genattr.c (main): Handle "preferred_for_size" and
3630         "preferred_for_speed" in the same way as "enabled".
3631         * recog.h (bool_attr): New enum.
3632         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
3633         (get_preferred_alternatives, check_bool_attrs): Declare.
3634         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
3635         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
3636         New functions.
3637         (get_enabled_alternatives): Use get_bool_attr_mask.
3638         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
3639         instead of recog_data.enabled_alternatives.
3640         * ira.c (ira_setup_alts): Likewise.
3641         * postreload.c (reload_cse_simplify_operands): Likewise.
3642         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3643         * ira-lives.c (preferred_alternatives): New variable.
3644         (process_bb_node_lives): Set it.
3645         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
3646         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
3647         of recog_data.enabled_alternatives.
3648         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
3649         to preferred_alternatives.
3650         * lra-constraints.c (process_alt_operands): Update accordingly.
3651         * lra.c (lra_set_insn_recog_data): Likewise.
3652         (lra_update_insn_recog_data): Assert check_bool_attrs.
3653
3654 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
3655
3656         * recog.h (extract_constrain_insn): Declare.
3657         * recog.c (extract_constrain_insn): New function.
3658         * lra.c (check_rtl): Use it.
3659         * postreload.c (reload_cse_simplify_operands): Likewise.
3660         * reg-stack.c (check_asm_stack_operands): Likewise.
3661         (subst_asm_stack_regs): Likewise.
3662         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
3663         * regrename.c (build_def_use): Likewise.
3664         * sel-sched.c (get_reg_class): Likewise.
3665         * config/arm/arm.c (note_invalid_constants): Likewise.
3666         * config/s390/predicates.md (execute_operation): Likewise.
3667
3668 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
3669             Yury Gribov  <y.gribov@samsung.com>
3670
3671         * common.opt (flag_sanitize_recover): New variable.
3672         (fsanitize-recover): Remove Var/Init, deprecate.
3673         (fsanitize-recover=): New option.
3674         * doc/invoke.texi (fsanitize-recover): Update docs.
3675         * opts.c (finish_options): Use opts->x_flag_sanitize
3676         instead of flag_sanitize.  Prohibit -fsanitize-recover
3677         for anything besides UBSan.  Formatting.
3678         (common_handle_option): Handle OPT_fsanitize_recover_
3679         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
3680         instead of flag_sanitize.
3681         * asan.c (pass_sanopt::execute): Fix up formatting.
3682         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
3683         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
3684         instrument_bool_enum_load, ubsan_instrument_float_cast,
3685         instrument_nonnull_arg, instrument_nonnull_return): Check
3686         bits in flag_sanitize_recover bitmask instead of
3687         flag_sanitize_recover as bool flag.
3688
3689 2014-10-22  Jiong Wang <jiong.wang@arm.com>
3690
3691         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
3692
3693 2014-10-22  Renlin Li <renlin.li@arm.com>
3694
3695         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
3696         __ARM_FEATURE_IDIV__.
3697
3698 2014-10-22  Richard Biener  <rguenther@suse.de>
3699
3700         * Makefile.in (s-match): Adjust dependencies to only catch
3701         match.pd.
3702
3703 2014-10-22  Richard Biener  <rguenther@suse.de>
3704         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
3705
3706         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
3707         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
3708         (gimple-match.c): Generate by triggering s-match.
3709         (generic-match.c): Likewise.
3710         (s-match): Rule to build gimple-match.c and generic-match.c
3711         by running the genmatch generator program.
3712         (build/hash-table.o): Dependencies to build hash-table.c for the host.
3713         (build/genmatch.o): Dependencies to build genmatch.
3714         (genprog): Add match.
3715         (build/genmatch): Likewise.
3716         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
3717         * generic-match-head.c: New file.
3718         * gimple-match-head.c: Likewise.
3719         * gimple-match.h: Likewise.
3720         * genmatch.c: Likewise.
3721         * match.pd: Likewise.
3722         * builtins.h (fold_builtin_n): Export.
3723         * builtins.c (fold_builtin_n): Likewise.
3724         * gimple-fold.h (gimple_build): Declare various overloads.
3725         (gimple_simplify): Likewise.
3726         (gimple_convert): Re-implement in terms of gimple_build.
3727         * gimple-fold.c (gimple_convert): Remove.
3728         (gimple_build): New functions.
3729         * doc/match-and-simplify.texi: New file.
3730         * doc/gccint.texi: Add menu item Match and Simplify and include
3731         match-and-simplify.texi.
3732
3733 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
3734
3735         PR target/63594
3736         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
3737         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
3738         even for just TARGET_AVX2, not only for
3739         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
3740         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
3741         otherwise build it using concatenation of 256-bit
3742         broadcast.
3743         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
3744         avx512 broadcast patterns.
3745         (vec_dup<mode>): Likewise.  For avx2 use
3746         v<sseintprefix>broadcast<bcstscalarsuff> instead of
3747         vbroadcast<ssescalarmodesuffix>.
3748         (AVX2_VEC_DUP_MODE): New mode iterator.
3749         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
3750         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
3751
3752         PR target/63542
3753         * config/i386/i386.c (ix86_pic_register_p): Also return
3754         true if x is a hard register with ORIGINAL_REGNO equal to
3755         pic_offset_table_rtx pseudo REGNO.
3756         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
3757         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
3758
3759 2014-10-22  Alan Modra  <amodra@gmail.com>
3760
3761         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
3762         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
3763         (gcc_obstack_init): Use obstack_specify_allocation in place of
3764         _obstack_begin.
3765         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
3766         (regexp_representation): Likewise.
3767         * godump.c (go_output_type): Likewise.
3768
3769 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
3770
3771         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
3772         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
3773         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
3774
3775 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
3776
3777         * doc/invoke.texi (pedantic-errors): Explain better.
3778
3779 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
3780             Vidya Praveen <vidya.praveen@atmel.com>
3781             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
3782             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
3783             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
3784
3785         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
3786         __MEMX for avrtiny.
3787         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
3788         (avr_nonconst_pointer_addrspace): Likewise.
3789         * config/avr/avr.h (AVR_HAVE_LPM): Define.
3790
3791         Added AVRTINY architecture to avr target.
3792         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
3793         (base_arch_s): member added for AVRTINY architecture.
3794         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
3795         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
3796         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
3797         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
3798         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
3799         in callee saved register list.
3800         (avr_option_override): CCP address updated for AVRTINY.
3801         (avr_init_expanders): tmp and zero rtx initialized as per arch.
3802         Reset avr_have_dimode if AVRTINY.
3803         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
3804         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
3805         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
3806         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
3807         (expand_epilogue): Likewise.
3808         (avr_print_operand): Print CCP address in case of AVRTINY also.
3809         <TBD>bad address
3810         (function_arg_regno_p): Check different register list for arguments
3811         if AVRTINY.
3812         (init_cumulative_args): Check for AVRTINY to update number of argument
3813         registers.
3814         (tiny_valid_direct_memory_access_range): New function. Return false if
3815         direct memory access range is not in accepted range for AVRTINY.
3816         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
3817         indirect load (with displacement) for AVRTINY.
3818         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
3819         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
3820         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
3821         indirect load (no displacement) for AVRTINY.
3822         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
3823         indirect load (with displacement) for AVRTINY.
3824         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
3825         indirect load for pre-decrement address.
3826         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
3827         functions. Update instruction length for AVRTINY.
3828         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
3829         SImode.
3830         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
3831         (out_movsi_r_mr): Likewise, for SImode.
3832         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
3833         indirect store (no displacement) for AVRTINY.
3834         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
3835         indirect store (with displacement) for AVRTINY.
3836         (out_movsi_mr_r): Emit out insn for IO address store. Update store
3837         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
3838         store functions.
3839         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
3840         indirect load (no displacement) for PSImode in AVRTINY.
3841         (avr_out_load_psi_reg_disp_tiny): New function to handle register
3842         indirect load (with displacement) for PSImode in AVRTINY.
3843         (avr_out_load_psi): Call PSImode register indirect load functions for
3844         AVRTINY. Update instruction length for AVRTINY.
3845         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
3846         indirect store (no displacement) for PSImode in AVRTINY.
3847         (avr_out_store_psi_reg_disp_tiny): New function to handle register
3848         indirect store (with displacement) for PSImode in AVRTINY.
3849         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
3850         register indirect store functions for AVRTINY.
3851         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
3852         register indirect store (with displacement) for AVRTINY.
3853         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
3854         register indirect store function for QImode in AVRTINY.
3855         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
3856         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
3857         indirect store (no displacement) for HImode in AVRTINY.
3858         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
3859         indirect store (with displacement) for HImode in AVRTINY.
3860         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
3861         indirect store for post-increment address in HImode.
3862         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
3863         register indirect store function for HImode in AVRTINY.
3864         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
3865         in case of AVRTINY.
3866         (order_regs_for_local_alloc): Updated register allocation order for
3867         AVRTINY.
3868         (avr_conditional_register_usage): New function. It is a target hook
3869         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
3870         used registers list and register allocation order for AVRTINY.
3871         (avr_return_in_memory): Update return value size for AVRTINY.
3872         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
3873         for AVRTINY arch and tiny program memory base address.
3874         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
3875         (avr_texinfo): Added description for AVRTINY arch.
3876         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
3877         STATIC_CHAIN_REGNUM for AVRTINY.
3878         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
3879         * config/avr/avr.md: Added constants for tmp/ zero registers in
3880         AVRTINY. Attributes for AVRTINY added.
3881         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
3882         memory access range.
3883         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
3884         in AVRTINY memory access range.
3885         (*mov<mode>): Likewise for HImode and SImode.
3886         (*movsf): Likewise for SFmode.
3887         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
3888         not have sbiw.
3889         * config/avr/avr-protos.h: Added function prototype for
3890         tiny_valid_direct_memory_access_range.
3891         * config/avr/avr-tables.opt: Regenerate.
3892         * gcc/config/avr/t-multilib: Regenerate.
3893         * doc/avr-mmcu.texi: Regenerate.
3894
3895 2014-10-21  Andrew Pinski  <apinski@cavium.com>
3896
3897         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
3898         available option also.
3899         * config/aarch64/aarch64-cost-tables.h: New file.
3900         * config/aarch64/aarch64-cores.def (thunderx): New core.
3901         * config/aarch64/aarch64-tune.md: Regenerate.
3902         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
3903         of config/arm/aarch-cost-tables.h.
3904         (thunderx_regmove_cost): New variable.
3905         (thunderx_tunings): New variable.
3906
3907 2014-10-21  Dehao Chen  <dehao@google.com>
3908
3909         * auto-profile.c: New file.
3910         * auto-profile.h: New file.
3911         * basic-block.h (maybe_hot_count_p): New export func.
3912         (add_working_set): New export func.
3913         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
3914         (GCOV_TAG_AFDO_FUNCTION): Likewise.
3915         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
3916         * opts.c (enable_fdo_optimizations): New func.
3917         (common_handle_option): Handle -fauto-profile flag.
3918         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
3919         (class pass_early_inline): Export early_inliner.
3920         (early_inliner): Likewise.
3921         (pass_early_inline::execute): Likewise.
3922         * ipa-inline.h (early_inliner): Likewise.
3923         * predict.c (maybe_hot_count_p): New export func.
3924         (counts_to_freqs): AutoFDO logic.
3925         (rebuild_frequencies): Likewise.
3926         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
3927         * profile.c (add_working_set): New func.
3928         * Makefile.in (auto-profile.o): New object file.
3929         * passes.def (pass_ipa_auto_profile): New pass.
3930         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
3931         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
3932         * toplev.c (compile_file): AutoFDO logic.
3933         * doc/invoke.texi (-fauto-profile): New doc.
3934         * coverage.c (coverage_init): AutoFDO logic.
3935         * common.opt (-fauto-profile): New flag.
3936         * timevar.def (TV_IPA_AUTOFDO): New tag.
3937         * value-prof.c (gimple_alloc_histogram_value): New export func.
3938         (check_ic_target): Likewise.
3939         * value-prof.h (gimple_alloc_histogram_value): Likewise.
3940         (check_ic_target): Likewise.
3941
3942 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
3943
3944         * cgraph.c (cgraph_c_finalize): New function.
3945         * cgraph.h (cgraph_c_finalize): New prototype.
3946         (cgraphunit_c_finalize): New prototype.
3947         * cgraphunit.c (first_analyzed): Move from analyze_functions
3948         to file-scope.
3949         (first_analyzed_var): Likewise.
3950         (analyze_functions): Move static variables into file-scope.
3951         (cgraphunit_c_finalize): New function.
3952         * diagnostic.c (diagnostic_finish): Free the memory for
3953         context->classify_diagnostic and context->printer, running the
3954         destructor for the latter.
3955         (bt_stop): Use toplev::main.
3956         * dwarf2out.c (dwarf2out_finalize): New function.
3957         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
3958         * gcse.c (gcse_c_finalize): New function.
3959         * gcse.h (gcse_c_finalize): New prototype.
3960         * ggc-page.c (init_ggc): Make idempotent.
3961         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
3962         * ipa-cp.c (ipa_cp_c_finalize): New function.
3963         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
3964         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
3965         a field of class pass_ipa_pure_const.
3966         (node_duplication_hook_holder): Likewise.
3967         (node_removal_hook_holder): Likewise.
3968         (register_hooks): Convert to method...
3969         (pass_ipa_pure_const::register_hooks): ...here, converting
3970         static variable init_p into...
3971         (pass_ipa_pure_const::init_p): ...new field.
3972         (pure_const_generate_summary): Update invocation of
3973         register_hooks to invoke as a method of current_pass.
3974         (pure_const_read_summary): Likewise.
3975         (propagate): Convert to...
3976         (pass_ipa_pure_const::execute): ...method.
3977         * ipa-reference.c (ipa_init): Move static bool init_p from here
3978         to...
3979         (ipa_init_p): New file-scope variable, so that it can be reset
3980         when repeatedly invoking the compiler within one process by...
3981         (ipa_reference_c_finalize): New function.
3982         * ipa-reference.h (ipa_reference_c_finalize): New.
3983         * main.c (main): Replace invocation of toplev_main with
3984         construction of a toplev instance, and call its "main" method.
3985         * params.c (global_init_params): Add an assert that
3986         params_finished is false.
3987         (params_c_finalize): New.
3988         * params.h (params_c_finalize): New.
3989         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
3990         invoking generate_summary, for the benefit of pass_ipa_pure_const.
3991         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
3992         before calling write_summary hook.
3993         (ipa_write_optimization_summaries_1): Likewise when calling
3994         write_optimization_summary hook.
3995         (ipa_read_summaries_1): Likewise for read_summary hook.
3996         (ipa_read_optimization_summaries_1): Likewise for
3997         read_optimization_summary hook.
3998         (execute_ipa_stmt_fixups): Likewise.
3999         * stringpool.c (init_stringpool): Clean up if we're called more
4000         than once.
4001         * timevar.c (timevar_init): Ignore repeated calls.
4002         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
4003         "ipa-prop.h".
4004         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
4005         (initialize_rtl): Move static local "initialized_once"
4006         into file scope, and rename to...
4007         (rtl_initialized): New variable.
4008         (do_compile): Move timevar initialization from here to
4009         toplev::start_timevars.
4010         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
4011         toplev::finalize): New functions.
4012         (toplev_main): Rename to...
4013         (toplev::main): ...this.
4014         * toplev.h (class toplev): New class.
4015
4016 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
4017
4018         * loop-doloop.c: Include loop-unroll.h.
4019
4020 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
4021
4022         * cfg.h: New.  Header file for cfg.c.
4023         * cfganal.h: New.  Header file for cfganal.c.
4024         * lcm.h: New.  Header file for lcm.c.
4025         * loop-unroll.h: New.  Header file for loop-unroll.h.
4026         * cfgloop.h: (unroll_loops): Remove prototype.
4027         * basic-block.h: Move prototypes and structs to new header files.
4028         Include cfg.h, cfganal.h, and lcm.h.
4029         * loop-init.c: Include loop-unroll.h.
4030         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
4031         * modulo-sched.c: Include loop-unroll.h.
4032
4033 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4034
4035         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
4036         MARKER_BYTE_UNKNOWN markers when handling casts.
4037
4038 2014-10-21  Richard Biener  <rguenther@suse.de>
4039
4040         * tree-ssa-phiopt.c (value_replacement): Properly verify we
4041         are the non-singleton PHI.
4042
4043 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
4044
4045         PR tree-optimization/63563
4046         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
4047         if either dra or drb stmts are not normal loads/stores.
4048
4049 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
4050
4051         * config/i386/i386.c (expand_vec_perm_1): Fix
4052         expand_vec_perm_palignr case.
4053         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
4054         VI1_AVX512.
4055
4056 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4057
4058         * cfgloopanal.c (seq_cost): Delete.
4059         * rtl.h (seq_cost): New prototype.
4060         * rtlanal.c (seq_cost): New function.
4061         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
4062
4063 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
4064
4065         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
4066         * basic-block.h: Remove prototypes for cfgrtl.c.
4067         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
4068         prototypes to cfgrtl.h.
4069         * profile.h (profile_info): Add extern export declaration.
4070         * rtl.h: Remove prototypes for cfgrtl.h.
4071         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
4072         * ipa-inline.c: Include profile.h.
4073         * loop-unroll.c: Ditto.
4074         * modulo-sched.c: Ditto.
4075         * postreload-gcse.c: Ditto.
4076         * predict.c: Ditto.
4077         * sched-ebb.c: Ditto.
4078         * sched-rgn.c: Ditto.
4079         * tracer.c: Ditto.
4080         * tree-ssa-loop-ivcanon.c: Ditto.
4081
4082 2014-10-20  Richard Biener  <rguenther@suse.de>
4083
4084         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
4085         operands to get a def operand kind match.  Signal mismatches
4086         to the parent so we can try swapping its operands.
4087         (vect_build_slp_tree): Try swapping operands if they have
4088         a mismatched operand kind.
4089
4090 2014-10-20  Alan Modra  <amodra@gmail.com>
4091
4092         PR debug/60655
4093         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
4094         Increase "ops" array size.  Correct array size tests.  Init
4095         n_constants in loop.  Break out of innermost loop when finding
4096         a trivial CONST expression.
4097
4098 2014-10-20  Martin Liska  <mliska@suse.cz>
4099
4100         PR ipa/63583
4101         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
4102         Gimple tempate string is compared.
4103
4104 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
4105
4106         * varasm.c (const_alias_set): Remove.
4107         (init_varasm_once): Remove initialization of const_alias_set.
4108         (build_constant_desc): Do not set alias set to const_alias_set.
4109
4110 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
4111
4112         * configure: Regenerate.
4113         * configure.ac: Move the test for section attribute specifier "e" in GAS
4114         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
4115         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
4116         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
4117         ifdef HAVE_GAS_SECTION_EXCLUDE.
4118
4119 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
4120
4121         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
4122         match_operand expression.
4123
4124 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4125             David Edelsohn  <dje.gcc@gmail.com>
4126
4127         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
4128         function.
4129         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
4130
4131 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4132
4133         * doc/invoke.texi (Options to Request or Suppress Warnings):
4134         Explain options precedence.
4135         (Wtrampolines): Do not indent paragraph.
4136
4137 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
4138
4139         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
4140         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
4141         (pa_jump_in_call_delay): Likewise.
4142         * config/pa/pa.c (pa_option_override): Remove jump in call delay
4143         override.
4144         (pa_output_millicode_call): Remove support for jump in call delay.
4145         (pa_output_call): Likewise.
4146         (pa_jump_in_call_delay): Delete.
4147         (pa_following_call): Likewise.
4148         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
4149         (uncond_branch): Remove following call check from attribute length.
4150
4151 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
4152
4153         PR target/53513
4154         * config/sh/sh-modes.def (PSI): Remove.
4155         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
4156         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
4157         (sh_reorg): Remove commented out FPSCR code.
4158         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
4159         insn instead of move insn.
4160         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
4161         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
4162         handling.
4163         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
4164         (sh1_builtin_p): Uncomment.
4165         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
4166         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
4167         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
4168         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
4169         (general_movsrc_operand, general_movdst_operand): Disallow
4170         fpscr_operand.
4171         * config/sh/sh.md (FPSCR_FR): New constant.
4172         (push_fpscr): Emit sts_fpscr insn.
4173         (pop_fpscr): Emit lds_fpscr_insn.
4174         (movsi_ie): Disallow FPSCR operands.
4175         (fpu_switch, unnamed related split, extend_psi_si,
4176         truncate_si_psi): Remove insns.
4177         (lds_fpscr, sts_fpscr): New insns.
4178         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
4179
4180 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
4181
4182         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
4183         (clone_inlined_nodes): Do not overwrite the clone if above predicate
4184         returns true.
4185
4186 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
4187
4188         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
4189         (expand_vec_perm_d): Ditto.
4190         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
4191         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
4192         V4DFmode.
4193         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
4194         (ix86_expand_sse_unpack): Handle V64QImode.
4195         (expand_vec_perm_blend): Update conditions for TARGET, handle
4196         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
4197         (expand_vec_perm_pshufb): Handle V64QImode.
4198         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
4199         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
4200         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
4201         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
4202         (ix86_expand_vecop_qihi): Handle V64QImode.
4203         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
4204         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
4205         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
4206         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
4207         (mul<mode>3): Use VI1_AVX512.
4208         (<sse2_avx2>_packsswb): Ditto.
4209         (<sse2_avx2>_packuswb): Ditto.
4210         (<ssse3_avx2>_pshufb<mode>3): Ditto.
4211         (<shift_insn><mode>3): Ditto.
4212
4213 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
4214
4215         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
4216         conditions to fix bootstrap.
4217
4218 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
4219
4220         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
4221
4222 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4223             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4224             Anna Tikhonova  <anna.tikhonova@intel.com>
4225             Ilya Tocar  <ilya.tocar@intel.com>
4226             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4227             Ilya Verbin  <ilya.verbin@intel.com>
4228             Kirill Yukhin  <kirill.yukhin@intel.com>
4229             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4230
4231         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
4232         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
4233         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
4234         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
4235         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
4236         (define_expand "vec_init<mode>"): Use VF48_I1248.
4237
4238 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4239             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4240             Anna Tikhonova  <anna.tikhonova@intel.com>
4241             Ilya Tocar  <ilya.tocar@intel.com>
4242             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4243             Ilya Verbin  <ilya.verbin@intel.com>
4244             Kirill Yukhin  <kirill.yukhin@intel.com>
4245             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4246
4247         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
4248         expand_sse2_mulvxdi3.
4249
4250 2014-10-17  Richard Biener  <rguenther@suse.de>
4251
4252         * fold-const.c (fold_comparison): Remove redundant constant
4253         folding and operand swapping.
4254         (fold_binary_loc): Do comparison operand swapping here.
4255         (fold_ternary_loc): Canonicalize operand order for
4256         commutative ternary operations.
4257         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
4258         and FMA_EXPR.
4259
4260 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
4261
4262         PR tree-optimization/63464
4263         * gimple.h (gimple_seq_discard): New prototype.
4264         * gimple.c: Include stringpool.h and tree-ssanames.h.
4265         (gimple_seq_discard): New function.
4266         * optabs.h (lshift_cheap_p): New prototype.
4267         * optabs.c (lshift_cheap_p): New function, moved from...
4268         * tree-switch-conversion.c (lshift_cheap_p): ... here.
4269         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
4270         (reassoc_branch_fixups): New variable.
4271         (update_range_test): Add otherrangep and seq arguments.
4272         Unshare exp.  If otherrange is NULL, use for other ranges
4273         array of pointers pointed by otherrangep instead.
4274         Emit seq before gimplified statements for tem.
4275         (optimize_range_tests_diff): Adjust update_range_test
4276         caller.
4277         (optimize_range_tests_xor): Likewise.  Fix up comment.
4278         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
4279         functions.
4280         (optimize_range_tests): Adjust update_range_test caller.
4281         Call optimize_range_tests_to_bit_test.
4282         (branch_fixup): New function.
4283         (execute_reassoc): Call branch_fixup.
4284
4285         PR tree-optimization/63302
4286         * tree-ssa-reassoc.c (optimize_range_tests_xor,
4287         optimize_range_tests_diff): Use !integer_pow2p () instead of
4288         tree_log2 () < 0.
4289
4290 2014-10-17  Martin Liska  <mliska@suse.cz>
4291
4292         * ipa-icf.c (sem_function::merge): Local flags are set to false
4293         to enforce equal calling convention to be used.
4294         * opts.c (common_handle_option): Indentation fix.
4295
4296 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
4297
4298         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
4299
4300 2014-10-17  Tom de Vries  <tom@codesourcery.com>
4301
4302         PR rtl-optimization/61605
4303         * regcprop.c (copyprop_hardreg_forward_1): Use
4304         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
4305
4306 2014-10-17  Tom de Vries  <tom@codesourcery.com>
4307
4308         PR rtl-optimization/61605
4309         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
4310         notice stores for noops.  Don't regard noops as copies.
4311
4312 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
4313
4314         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
4315         register in a special way.
4316         (__cpuid_count): Ditto.
4317         * config/i386/driver-i386.h: Protect with
4318         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
4319         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
4320         is required to compile the function.
4321
4322 2014-10-16  DJ Delorie  <dj@redhat.com>
4323
4324         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
4325         integers.
4326
4327         * config/rs6000/rs6000-c.c (rid_int128): New.
4328         (rs6000_macro_to_expand): Use instead of RID_INT128.
4329
4330 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
4331
4332         * function.h: Flatten file.  Remove includes, adjust prototypes to
4333         reflect only what is in function.h.
4334         (enum direction, struct args_size, struct locate_and_pad_arg_data,
4335         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
4336         from expr.h.
4337         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
4338         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
4339         prototypes to predict.h.
4340         (init_varasm_status): Move prototype to varasm.h.
4341         * expr.h: Adjust include files.
4342         (enum direction, struct args_size, struct locate_and_pad_arg_data,
4343         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
4344         to function.h.
4345         (locate_and_pad_parm): Move prototype to function.h.
4346         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
4347         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
4348         assign_temp, reposition_prologue_and_epilogue_notes,
4349         prologue_epilogue_contains, sibcall_epilogue_contains,
4350         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
4351         set_return_jump_label): Move prototypes to function.h.
4352         * predict.h (optimize_function_for_size_p,
4353         optimize_function_for_speed_p): Relocate prototypes from function.h.
4354         * shrink-wrap.h (emit_return_into_block, active_insn_between,
4355         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
4356         function.h.
4357         * varasm.h (init_varasm_status): Relocate prototype from function.h.
4358         * genattrtab.c (write_header): Add predict.h to include list.
4359         * genconditions.c (write_header): Add predict.h to include list.
4360         * genemit.c (main): Adjust header file includes.
4361         * gengtype.c (ifiles): Add flattened function.h header files.
4362         * genoutput.c (output_prologue): Add predict.h to include list.
4363         * genpreds.c (write_insn_preds_c): Adjust header file includes.
4364         * genrecog.c (write_header): Add flattened function.h header files.
4365         * alias.c: Adjust include files.
4366         * auto-inc-dec.c: Likewise.
4367         * basic-block.h: Likewise.
4368         * bb-reorder.c: Likewise.
4369         * bt-load.c: Likewise.
4370         * builtins.c: Likewise.
4371         * caller-save.c: Likewise.
4372         * calls.c: Likewise.
4373         * cfgbuild.c: Likewise.
4374         * cfgcleanup.c: Likewise.
4375         * cfgexpand.c: Likewise.
4376         * cfgloop.c: Likewise.
4377         * cfgloop.h: Likewise.
4378         * cfgrtl.c: Likewise.
4379         * cgraph.h: Likewise.
4380         * cgraphclones.c: Likewise.
4381         * cgraphunit.c: Likewise.
4382         * combine-stack-adj.c: Likewise.
4383         * combine.c: Likewise.
4384         * coverage.c: Likewise.
4385         * cprop.c: Likewise.
4386         * cse.c: Likewise.
4387         * cselib.c: Likewise.
4388         * dbxout.c: Likewise.
4389         * ddg.c: Likewise.
4390         * df-core.c: Likewise.
4391         * df-problems.c: Likewise.
4392         * df-scan.c: Likewise.
4393         * dojump.c: Likewise.
4394         * dwarf2cfi.c: Likewise.
4395         * dwarf2out.c: Likewise.
4396         * emit-rtl.c: Likewise.
4397         * except.c: Likewise.
4398         * explow.c: Likewise.
4399         * expr.c: Likewise.
4400         * final.c: Likewise.
4401         * function.c: Likewise.
4402         * gcse.c: Likewise.
4403         * gimple-fold.c: Likewise.
4404         * gimple-low.c: Likewise.
4405         * gimple-streamer.h: Likewise.
4406         * haifa-sched.c: Likewise.
4407         * ifcvt.c: Likewise.
4408         * ira.c: Likewise.
4409         * jump.c: Likewise.
4410         * lcm.c: Likewise.
4411         * loop-invariant.c: Likewise.
4412         * lra-assigns.c: Likewise.
4413         * lra-coalesce.c: Likewise.
4414         * lra-constraints.c: Likewise.
4415         * lra-eliminations.c: Likewise.
4416         * lra-lives.c: Likewise.
4417         * lra-spills.c: Likewise.
4418         * lra.c: Likewise.
4419         * lto-cgraph.c: Likewise.
4420         * lto-section-in.c: Likewise.
4421         * lto-section-out.c: Likewise.
4422         * lto-streamer-in.c: Likewise.
4423         * lto-streamer-out.c: Likewise.
4424         * mode-switching.c: Likewise.
4425         * modulo-sched.c: Likewise.
4426         * omp-low.c: Likewise.
4427         * optabs.c: Likewise.
4428         * passes.c: Likewise.
4429         * postreload-gcse.c: Likewise.
4430         * postreload.c: Likewise.
4431         * predict.c: Likewise.
4432         * profile.c: Likewise.
4433         * recog.c: Likewise.
4434         * ree.c: Likewise.
4435         * reg-stack.c: Likewise.
4436         * regcprop.c: Likewise.
4437         * reginfo.c: Likewise.
4438         * regrename.c: Likewise.
4439         * reload.c: Likewise.
4440         * reload1.c: Likewise.
4441         * reorg.c: Likewise.
4442         * resource.c: Likewise.
4443         * rtlanal.c: Likewise.
4444         * sched-deps.c: Likewise.
4445         * sched-ebb.c: Likewise.
4446         * sched-rgn.c: Likewise.
4447         * sel-sched-dump.c: Likewise.
4448         * sel-sched-ir.c: Likewise.
4449         * sel-sched.c: Likewise.
4450         * shrink-wrap.c: Likewise.
4451         * simplify-rtx.c: Likewise.
4452         * statistics.c: Likewise.
4453         * stmt.c: Likewise.
4454         * stor-layout.c: Likewise.
4455         * store-motion.c: Likewise.
4456         * symtab.c: Likewise.
4457         * targhooks.c: Likewise.
4458         * toplev.c: Likewise.
4459         * trans-mem.c: Likewise.
4460         * tree-cfg.c: Likewise.
4461         * tree-cfgcleanup.c: Likewise.
4462         * tree-dfa.c: Likewise.
4463         * tree-eh.c: Likewise.
4464         * tree-inline.c: Likewise.
4465         * tree-into-ssa.c: Likewise.
4466         * tree-nested.c: Likewise.
4467         * tree-nrv.c: Likewise.
4468         * tree-profile.c: Likewise.
4469         * tree-ssa-alias.c: Likewise.
4470         * tree-ssa-ccp.c: Likewise.
4471         * tree-ssa-copy.c: Likewise.
4472         * tree-ssa-copyrename.c: Likewise.
4473         * tree-ssa-dom.c: Likewise.
4474         * tree-ssa-operands.c: Likewise.
4475         * tree-ssa-propagate.c: Likewise.
4476         * tree-ssa-structalias.c: Likewise.
4477         * tree-ssa-tail-merge.c: Likewise.
4478         * tree-ssa-threadedge.c: Likewise.
4479         * tree-ssa-threadupdate.c: Likewise.
4480         * tree-ssa-uncprop.c: Likewise.
4481         * tree-ssa-uninit.c: Likewise.
4482         * tree-ssa.c: Likewise.
4483         * tree-stdarg.c: Likewise.
4484         * tree-tailcall.c: Likewise.
4485         * tree.c: Likewise.
4486         * tsan.c: Likewise.
4487         * valtrack.c: Likewise.
4488         * varasm.c: Likewise.
4489         * vmsdbgout.c: Likewise.
4490         * web.c: Likewise.
4491         * config/aarch64/aarch64.c: Add flattened includes from function.h.
4492         * config/alpha/alpha.c: Likewise.
4493         * config/arc/arc.c: Likewise.
4494         * config/arm/arm.c: Likewise.
4495         * config/avr/avr-log.c: Likewise.
4496         * config/avr/avr.c: Likewise.
4497         * config/bfin/bfin.c: Likewise.
4498         * config/c6x/c6x.c: Likewise.
4499         * config/cr16/cr16.c: Likewise.
4500         * config/cris/cris.c: Likewise.
4501         * config/darwin.c: Likewise.
4502         * config/epiphany/epiphany.c: Likewise.
4503         * config/epiphany/mode-switch-use.c: Likewise.
4504         * config/epiphany/resolve-sw-modes.c: Likewise.
4505         * config/fr30/fr30.c: Likewise.
4506         * config/frv/frv.c: Likewise.
4507         * config/h8300/h8300.c: Likewise.
4508         * config/i386/i386.c: Likewise.
4509         * config/ia64/ia64.c: Likewise.
4510         * config/iq2000/iq2000.c: Likewise.
4511         * config/lm32/lm32.c: Likewise.
4512         * config/m32c/m32c.c: Likewise.
4513         * config/m32r/m32r.c: Likewise.
4514         * config/m68k/m68k.c: Likewise.
4515         * config/mcore/mcore.c: Likewise.
4516         * config/mep/mep-pragma.c: Likewise.
4517         * config/mep/mep.c: Likewise.
4518         * config/microblaze/microblaze.c: Likewise.
4519         * config/mips/mips.c: Likewise.
4520         * config/mmix/mmix.c: Likewise.
4521         * config/mn10300/mn10300.c: Likewise.
4522         * config/moxie/moxie.c: Likewise.
4523         * config/msp430/msp430.c: Likewise.
4524         * config/nds32/nds32-cost.c: Likewise.
4525         * config/nds32/nds32-fp-as-gp.c: Likewise.
4526         * config/nds32/nds32-intrinsic.c: Likewise.
4527         * config/nds32/nds32-isr.c: Likewise.
4528         * config/nds32/nds32-md-auxiliary.c: Likewise.
4529         * config/nds32/nds32-memory-manipulation.c: Likewise.
4530         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4531         * config/nds32/nds32-predicates.c: Likewise.
4532         * config/nds32/nds32.c: Likewise.
4533         * config/nios2/nios2.c: Likewise.
4534         * config/pa/pa.c: Likewise.
4535         * config/pdp11/pdp11.c: Likewise.
4536         * config/rl78/rl78.c: Likewise.
4537         * config/rs6000/rs6000.c: Likewise.
4538         * config/rx/rx.c: Likewise.
4539         * config/s390/s390.c: Likewise.
4540         * config/score/score.c: Likewise.
4541         * config/sh/sh.c: Likewise.
4542         * config/sparc/sparc.c: Likewise.
4543         * config/spu/spu.c: Likewise.
4544         * config/stormy16/stormy16.c: Likewise.
4545         * config/tilegx/tilegx.c: Likewise.
4546         * config/tilepro/tilepro.c: Likewise.
4547         * config/v850/v850.c: Likewise.
4548         * config/vax/vax.c: Likewise.
4549         * config/xtensa/xtensa.c: Likewise.
4550
4551 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
4552
4553         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
4554         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
4555
4556 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
4557
4558         * config/sh/sh-protos.h (fldi_ok): Remove.
4559         * config/sh/sh.c (fldi_ok): Likewise.
4560         (sh_secondary_reload): Don't use fldi_ok.
4561         * config/sh/constraints.md (G constraint, H constraint): Don't use
4562         fldi_ok.
4563
4564 2014-10-16  Martin Liska  <mliska@suse.cz>
4565
4566         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
4567         Cast to unsigned long.
4568         (sem_item_optimizer::dump_cong_classes): Likewise.
4569
4570 2014-10-16  Tom de Vries  <tom@codesourcery.com>
4571
4572         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
4573         with SSA_NAME_IN_FREELIST.
4574
4575 2014-10-16  Richard Biener  <rguenther@suse.de>
4576
4577         PR middle-end/63554
4578         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
4579         (fold_builtin_strncat_chk): Move ...
4580         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
4581         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
4582
4583 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
4584
4585         PR target/59401
4586         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
4587         GBR to 0.
4588
4589 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4590             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4591             Anna Tikhonova  <anna.tikhonova@intel.com>
4592             Ilya Tocar  <ilya.tocar@intel.com>
4593             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4594             Ilya Verbin  <ilya.verbin@intel.com>
4595             Kirill Yukhin  <kirill.yukhin@intel.com>
4596             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4597
4598         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
4599         V64QI modes.
4600
4601 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4602             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4603             Anna Tikhonova  <anna.tikhonova@intel.com>
4604             Ilya Tocar  <ilya.tocar@intel.com>
4605             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4606             Ilya Verbin  <ilya.verbin@intel.com>
4607             Kirill Yukhin  <kirill.yukhin@intel.com>
4608             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4609
4610         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
4611         V16SI, V32HI, V64QI modes.
4612
4613 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
4614
4615         PR target/53513
4616         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
4617         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
4618
4619         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
4620         to match fp insn patterns.
4621         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
4622         list.
4623         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
4624         expand_df_unop, expand_df_binop): Remove.
4625         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
4626         FPSCR_STAT_REG as not call clobbered.
4627         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
4628         invoking fpscr_set_from_mem.
4629
4630         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
4631         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
4632         FPSCR_STAT_REG.
4633         (REGISTER_NAMES): Adjust.
4634         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
4635         (FIRST_PSEUDO_REGISTER): Increase to 156.
4636         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
4637         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
4638         FPSCR_STAT_REG.
4639         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
4640         FPSCR_MODES_REG and FPSCR_STAT_REG.
4641         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
4642
4643         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
4644         FPSCR_SZ): Add new constants.
4645         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
4646
4647         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
4648         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
4649         Use TARGET_FPU_ANY condition.
4650         (fpu_switch peephole2): Remove.
4651         (fpu_switch split): Use simple_mem_operand to capture the mem and
4652         adjust split implementation.
4653         (extend_psi_si, truncate_si_psi): New insns.
4654         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
4655         set of FPSCR_MODES_REG.
4656
4657         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
4658         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
4659         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
4660         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
4661         call_value_compact, call_value_compact_rettramp, call,
4662         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
4663         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
4664         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
4665         sibcall_value_compact, sibcall_value, call_value_pop_compact,
4666         call_value_pop_compact_rettramp, various unnamed splits):
4667         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
4668         function uses.
4669
4670         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
4671         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
4672         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
4673         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
4674         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
4675
4676         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
4677         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
4678         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
4679         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
4680         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
4681         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
4682         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
4683
4684 2014-10-16  Martin Liska  <mliska@suse.cz>
4685             Jan Hubicka  <hubicka@ucw.cz>
4686
4687         * Makefile.in: New object files included.
4688         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
4689         is printed.
4690         (verify_edge_corresponds_to_fndecl): More sensitive verification
4691         of nodes that are merged by IPA ICF.
4692         * cgraph.h (cgraph_node::num_references): New function.
4693         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
4694         * common.opt: New options ipa-icf, ipa-icf-functions and
4695         ipa-icf-variables introduced.
4696         * doc/invoke.texi: Documentation of new options introduced.
4697         * ipa-icf-gimple.c: New file.
4698         * ipa-icf-gimple.h: New file.
4699         * ipa-icf.c: New file.
4700         * ipa-icf.h: New file.
4701         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
4702         (input_overwrite_node): Likewise.
4703         * lto-section-in.c: New icf section added.
4704         * lto-streamer.h (enum lto_section_type): Likewise.
4705         * opts.c (common_handle_option): New option added.
4706         * passes.def: New pass included.
4707         * timevar.def: Time variable for IPA ICF added.
4708         * tree-pass.h: New IPA ICF pass entry point added.
4709
4710 2014-10-16  Richard Biener  <rguenther@suse.de>
4711
4712         PR tree-optimization/63168
4713         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
4714         latches if after merging they are no longer simple.
4715         * cfghooks.c (merge_blocks): Handle merging a latch block
4716         into another block.
4717
4718 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4719             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4720             Anna Tikhonova  <anna.tikhonova@intel.com>
4721             Ilya Tocar  <ilya.tocar@intel.com>
4722             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4723             Ilya Verbin  <ilya.verbin@intel.com>
4724             Kirill Yukhin  <kirill.yukhin@intel.com>
4725             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4726
4727         * config/i386/sse.md
4728         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
4729         support AVX-512VL instructions.
4730
4731 2014-10-16  DJ Delorie  <dj@redhat.com>
4732
4733         * tree-core.h: Fix comment to not assume pointers are multiples of
4734         bytes.
4735
4736 2014-10-15  Tom Tromey  <tromey@redhat.com>
4737
4738         * timevar.h (class auto_timevar): New class.
4739
4740 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
4741
4742         PR go/59432
4743         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
4744         Remove the second alternative.
4745         (regprefix): Remove mode attribute.
4746         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
4747         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
4748
4749         Revert:
4750         2013-11-05  Ian Lance Taylor  <iant@google.com>
4751
4752         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
4753         If possible, add .cfi directives to record change to bx.
4754         * config/i386/i386.c (ix86_emit_cfi): New function.
4755         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
4756
4757 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
4758
4759         PR lto/62026
4760         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
4761         to duplicate.
4762         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
4763         at WPA time.
4764
4765 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
4766
4767         PR rtl-optimization/63448
4768         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
4769         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
4770         (LRA_MAX_INHERITANCE_PASSES): Use it.
4771         (lra_constraint_iter_after_spill): Remove.
4772         (lra_assignment_iter): New.
4773         (lra_assignment_iter_after_spill): New.
4774         * lra-assigns.c (lra_assignment_iter): New.
4775         (lra_assignment_iter_after_spill): New.
4776         (former_reload_pseudo_spill_p): New.
4777         (spill_for): Set up former_reload_pseudo_spill_p.
4778         (setup_live_pseudos_and_spill_after_risky): Ditto.
4779         (assign_by_spills): Ditto.
4780         (lra_assign): Increment lra_assignment_iter.  Print the iteration
4781         number.  Reset former_reload_pseudo_spill_p.  Check
4782         lra_assignment_iter_after_spill.
4783         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
4784         lra_assignment_iter and lra_assignment_iter_after_spill.
4785         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
4786         (lra_constraints): Remove code with
4787         lra_assignment_iter_after_spill.
4788
4789 2014-10-15  Teresa Johnson  <tejohnson@google.com>
4790
4791         PR bootstrap/63432
4792         * tree-ssa-threadupdate.c (recompute_probabilities): Better
4793         overflow checking.
4794
4795 2014-10-15  Renlin Li <renlin.li@arm.com>
4796
4797         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4798         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
4799         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
4800         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
4801
4802 2014-10-15  Richard Biener  <rguenther@suse.de>
4803
4804         * gimple-fold.c (gimple_fold_call): Properly keep virtual
4805         SSA form up-to-date when devirtualizing a call to
4806         __builtin_unreachable and avoid fixing up EH info here.
4807
4808 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4809             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4810             Anna Tikhonova  <anna.tikhonova@intel.com>
4811             Ilya Tocar  <ilya.tocar@intel.com>
4812             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4813             Ilya Verbin  <ilya.verbin@intel.com>
4814             Kirill Yukhin  <kirill.yukhin@intel.com>
4815             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4816
4817         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
4818         to support AVX-512BW.
4819         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
4820         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
4821         (define_insn "*<plusminus_insn><mode>3"): Ditto.
4822         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
4823         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
4824         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
4825         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
4826         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
4827         (define_insn "*andnot<mode>3"): Ditto.
4828         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
4829         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
4830         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
4831         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
4832         (define_insn "*abs<mode>2"): Remove masking support.
4833         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
4834         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
4835         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
4836
4837 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4838             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4839             Anna Tikhonova  <anna.tikhonova@intel.com>
4840             Ilya Tocar  <ilya.tocar@intel.com>
4841             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4842             Ilya Verbin  <ilya.verbin@intel.com>
4843             Kirill Yukhin  <kirill.yukhin@intel.com>
4844             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4845
4846         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
4847         * config/i386/sse.md
4848         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
4849         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
4850         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
4851         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
4852         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
4853         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
4854         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
4855
4856 2014-10-15  Renlin Li <renlin.li@arm.com>
4857
4858         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
4859
4860 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
4861
4862         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
4863         MINUS_EXPR in unsigned type to avoid undefined behavior.
4864
4865 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
4866
4867         * stor-layout.c (self_referential_size): Do not promote arguments.
4868
4869 2014-10-15  Marek Polacek  <polacek@redhat.com>
4870
4871         * doc/invoke.texi: Update to reflect that GNU11 is the default
4872         mode for C.
4873         * c-common.h (c_language_kind): Update comment.
4874
4875 2014-10-15  Richard Biener  <rguenther@suse.de>
4876
4877         * hash-table.c: Include bconfig.h if building for the host.
4878         * hash-table.h: Do not include ggc.h on the host but just declare
4879         a few ggc allocation templates.
4880
4881 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
4882             Jeff Law  <law@redhat.com>
4883
4884         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
4885         multiple hard registers, use smaller mode derived from MODE.
4886
4887 2014-10-15  Andreas Schwab  <schwab@suse.de>
4888
4889         * explow.c (convert_memory_address_addr_space_1): Mark in_const
4890         as ATTRIBUTE_UNUSED.
4891
4892 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
4893
4894         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
4895         (decide_unrolling): ... this one.
4896         (peel_loops_completely): Remove.
4897         (decide_peel_simple): Remove.
4898         (decide_peel_once_rolling): Remove.
4899         (decide_peel_completely): Remove.
4900         (peel_loop_simple): Remove.
4901         (peel_loop_completely): Remove.
4902         (unroll_and_peel_loops): Rename to ...
4903         (unroll_loops): ... this one; handle only unrolling.
4904         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
4905         LPT_PEEL_SIMPLE.
4906         (UAP_PEEL): Remove.
4907         (unroll_and_peel_loops): Remove.
4908         (unroll_loops): New.
4909         * passes.def: Replace
4910         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
4911         * loop-init.c (gate_rtl_unroll_and_peel_loops,
4912         rtl_unroll_and_peel_loops): Rename to ...
4913         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
4914         (pass_rtl_unroll_and_peel_loops): Rename to ...
4915         (pass_rtl_unroll_loops): ... this one.
4916         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
4917         (make_pass_rtl_unroll_loops): New.
4918         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
4919         (canonicalize_loop_induction_variables): Update.
4920
4921 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
4922
4923         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
4924         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
4925         !TARGET_HARD_FLOAT_POSTINC.
4926         (*lsip, *ssip): new instructions.
4927
4928 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
4929
4930         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
4931         remove.
4932
4933 2014-10-14  Andrew Pinski  <apinski@cavium.com>
4934
4935         * explow.c (convert_memory_address_addr_space): Rename to ...
4936         (convert_memory_address_addr_space_1): This.  Add in_const argument.
4937         Inside a CONST RTL, permute the conversion and addition of constant
4938         for zero and sign extended pointers.
4939         (convert_memory_address_addr_space): New function.
4940
4941 2014-10-14  Andrew Pinski  <apinski@cavium.com>
4942
4943         Revert:
4944         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4945
4946         PR middle-end/49721
4947         * explow.c (convert_memory_address_addr_space): Also permute the
4948         conversion and addition of constant for zero-extend.
4949
4950 2014-10-14  DJ Delorie  <dj@redhat.com>
4951
4952         * config/msp430/msp430-modes.def (PSI): Add.
4953
4954         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
4955         (msp430_hard_regno_nregs_with_padding): New.
4956         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
4957         (msp430_hard_regno_nregs_has_padding): New.
4958         (msp430_hard_regno_nregs_with_padding): New.
4959         (msp430_unwind_word_mode): Use PSImode instead of SImode.
4960         (msp430_addr_space_legitimate_address_p): New.
4961         (msp430_asm_integer): New.
4962         (msp430_init_dwarf_reg_sizes_extra): New.
4963         (msp430_print_operand): Use X suffix for PSImode even in small model.
4964         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
4965         (PTR_SIZE): ...but 4 bytes for EH.
4966         (SIZE_TYPE): Use __int20.
4967         (PTRDIFF_TYPE): Likewise.
4968         (INCOMING_FRAME_SP_OFFSET): Adjust.
4969         * config/msp430/msp430.md (movqi_topbyte): New.
4970         (movpsi): Use fixed suffixes.
4971         (movsipsi2): Enable for 430X, not large model.
4972         (extendhipsi2): Likewise.
4973         (zero_extendhisi2): Likewise.
4974         (zero_extendhisipsi2): Likewise.
4975         (extend_and_shift1_hipsi2): Likewise.
4976         (extendpsisi2): Likewise.
4977         (*bitbranch<mode>4_z): Fix suffix logic.
4978
4979 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
4980
4981         PR ada/62019
4982         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
4983         do not choke on null node.
4984         <VAR_DECL>: Likewise.
4985
4986 2014-10-14  DJ Delorie  <dj@redhat.com>
4987
4988         * machmode.h (int_n_data_t): New.
4989         (int_n_enabled_p): New.
4990         (int_n_data): New.
4991         * tree.c (int_n_enabled_p): New.
4992         (int_n_trees): New.
4993         (make_or_reuse_type): Check for all __intN types, not just
4994         __int128.
4995         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
4996         entries.
4997         * tree.h (int128_integer_type_node): Remove.
4998         (int128_unsigned_type_node): Remove.
4999         (int_n_trees_t): New.
5000         (int_n_enabled_p): New.
5001         (int_n_trees): New.
5002         * toplev.c (standard_type_bitsize): New.
5003         (do_compile): Check which __intN types are enabled for the current
5004         run.
5005         * builtin-types.def (BT_INT128): Remove.
5006         (BT_UINT128): Remove.
5007         * machmode.def: Add macro to create __int128 for all targets.
5008         * stor-layout.c (mode_for_size): Support __intN types.
5009         (smallest_mode_for_size): Likewise.
5010         (initialize_sizetypes): Support __intN types.
5011         * genmodes.c (struct mode_data): Add int_n field.
5012         (blank_mode): Likewise.
5013         (INT_N): New.
5014         (make_int_n): New.
5015         (emit_insn_modes_h): Count __intN entries and define
5016         NUM_INT_N_ENTS.
5017         (emit_mode_int_n): New.
5018         (emit_insn_modes_c): Call it.
5019         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
5020         types, not just __int128.
5021         * tree-core.h (integer_type_kind): Remove __int128-specific
5022         entries, reserve spots for __intN entries.
5023
5024         * config/msp430/msp430-modes.def (PSI): Add.
5025
5026 2014-10-14  Kito Cheng  <kito@0xlab.org>
5027
5028         * ira.c: Fix typo in comment.
5029         * ira.h: Ditto.
5030         * ira-build.c: Ditto.
5031         * ira-color.c: Ditto.
5032         * ira-emit.c: Ditto.
5033         * ira-int.h: Ditto.
5034         * ira-lives.c: Ditto.
5035
5036 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
5037
5038         PR rtl-optimization/63475
5039         * alias.c (true_dependence_1): Always use get_addr to extract
5040         true address operands from x_addr and mem_addr.  Use extracted
5041         address operands to check for references with alignment ANDs.
5042         Use extracted address operands with find_base_term and
5043         base_alias_check. For noncanonicalized operands call canon_rtx with
5044         extracted address operand.
5045         (write_dependence_1): Ditto.
5046         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
5047
5048 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
5049
5050         PR target/63534
5051         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
5052         __morestack local.
5053
5054 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5055             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5056             Anna Tikhonova  <anna.tikhonova@intel.com>
5057             Ilya Tocar  <ilya.tocar@intel.com>
5058             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5059             Ilya Verbin  <ilya.verbin@intel.com>
5060             Kirill Yukhin  <kirill.yukhin@intel.com>
5061             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5062
5063         * config/i386/i386.c
5064         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
5065         (ix86_expand_int_vcond): Ditto.
5066
5067 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5068             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5069             Anna Tikhonova  <anna.tikhonova@intel.com>
5070             Ilya Tocar  <ilya.tocar@intel.com>
5071             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5072             Ilya Verbin  <ilya.verbin@intel.com>
5073             Kirill Yukhin  <kirill.yukhin@intel.com>
5074             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5075
5076         * config/i386/i386.c
5077         (emit_reduc_half): Handle V64QI and V32HI mode.
5078         * config/i386/sse.md
5079         (define_mode_iterator VI_AVX512BW): New.
5080         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
5081
5082 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5083             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5084             Anna Tikhonova  <anna.tikhonova@intel.com>
5085             Ilya Tocar  <ilya.tocar@intel.com>
5086             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5087             Ilya Verbin  <ilya.verbin@intel.com>
5088             Kirill Yukhin  <kirill.yukhin@intel.com>
5089             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5090
5091         * config/i386/sse.md
5092         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
5093
5094 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5095             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5096             Anna Tikhonova  <anna.tikhonova@intel.com>
5097             Ilya Tocar  <ilya.tocar@intel.com>
5098             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5099             Ilya Verbin  <ilya.verbin@intel.com>
5100             Kirill Yukhin  <kirill.yukhin@intel.com>
5101             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5102
5103         * config/i386/i386.c
5104         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
5105         * config/i386/sse.md
5106         (define_mode_iterator VI): Add V64QI and V32HI modes.
5107
5108 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5109             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5110             Anna Tikhonova  <anna.tikhonova@intel.com>
5111             Ilya Tocar  <ilya.tocar@intel.com>
5112             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5113             Ilya Verbin  <ilya.verbin@intel.com>
5114             Kirill Yukhin  <kirill.yukhin@intel.com>
5115             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5116
5117         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
5118
5119 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5120             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5121             Anna Tikhonova  <anna.tikhonova@intel.com>
5122             Ilya Tocar  <ilya.tocar@intel.com>
5123             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5124             Ilya Verbin  <ilya.verbin@intel.com>
5125             Kirill Yukhin  <kirill.yukhin@intel.com>
5126             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5127
5128         * config/i386/sse.md
5129         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
5130         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
5131
5132 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5133             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5134             Anna Tikhonova  <anna.tikhonova@intel.com>
5135             Ilya Tocar  <ilya.tocar@intel.com>
5136             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5137             Ilya Verbin  <ilya.verbin@intel.com>
5138             Kirill Yukhin  <kirill.yukhin@intel.com>
5139             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5140
5141         * config/i386/sse.md
5142         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
5143         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
5144
5145 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5146             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5147             Anna Tikhonova  <anna.tikhonova@intel.com>
5148             Ilya Tocar  <ilya.tocar@intel.com>
5149             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5150             Ilya Verbin  <ilya.verbin@intel.com>
5151             Kirill Yukhin  <kirill.yukhin@intel.com>
5152             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5153
5154         * config/i386/sse.md
5155         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
5156         (define_mode_iterator VI2_AVX2): Add V32HI mode.
5157         (define_expand "mul<mode>3<mask_name>"): Add masking.
5158         (define_insn "*mul<mode>3<mask_name>"): Ditto.
5159         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
5160         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
5161         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
5162         (define_mode_attr SDOT_PMADD_SUF): Ditto.
5163         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
5164         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
5165         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
5166         (define_insn "avx2_packusdw"): Delete.
5167         (define_insn "sse4_1_packusdw"): Ditto.
5168         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
5169
5170 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5171             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5172             Anna Tikhonova  <anna.tikhonova@intel.com>
5173             Ilya Tocar  <ilya.tocar@intel.com>
5174             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5175             Ilya Verbin  <ilya.verbin@intel.com>
5176             Kirill Yukhin  <kirill.yukhin@intel.com>
5177             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5178
5179         * config/i386/sse.md
5180         (define_insn "vec_dup<mode>"): Update constraints.
5181
5182 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5183             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5184             Anna Tikhonova  <anna.tikhonova@intel.com>
5185             Ilya Tocar  <ilya.tocar@intel.com>
5186             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5187             Ilya Verbin  <ilya.verbin@intel.com>
5188             Kirill Yukhin  <kirill.yukhin@intel.com>
5189             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5190
5191         * config/i386/sse.md
5192         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
5193         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
5194         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
5195
5196 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5197             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5198             Anna Tikhonova  <anna.tikhonova@intel.com>
5199             Ilya Tocar  <ilya.tocar@intel.com>
5200             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5201             Ilya Verbin  <ilya.verbin@intel.com>
5202             Kirill Yukhin  <kirill.yukhin@intel.com>
5203             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5204
5205         * config/i386/sse.md
5206         (define_expand "mul<mode>3<mask_name>"): Add masking.
5207
5208 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5209             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5210             Anna Tikhonova  <anna.tikhonova@intel.com>
5211             Ilya Tocar  <ilya.tocar@intel.com>
5212             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5213             Ilya Verbin  <ilya.verbin@intel.com>
5214             Kirill Yukhin  <kirill.yukhin@intel.com>
5215             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5216
5217         * config/i386/sse.md
5218         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
5219         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
5220
5221 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5222             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5223             Anna Tikhonova  <anna.tikhonova@intel.com>
5224             Ilya Tocar  <ilya.tocar@intel.com>
5225             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5226             Ilya Verbin  <ilya.verbin@intel.com>
5227             Kirill Yukhin  <kirill.yukhin@intel.com>
5228             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5229
5230         * config/i386/sse.md
5231         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
5232         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
5233         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
5234         Ditto.
5235
5236 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5237             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5238             Anna Tikhonova  <anna.tikhonova@intel.com>
5239             Ilya Tocar  <ilya.tocar@intel.com>
5240             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5241             Ilya Verbin  <ilya.verbin@intel.com>
5242             Kirill Yukhin  <kirill.yukhin@intel.com>
5243             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5244
5245         * config/i386/sse.md
5246         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
5247         use VF_128_256 mode iterator and update assembler emit code.
5248         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
5249         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
5250         Add masking, use VF_128_256 mode iterator.
5251         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
5252         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
5253         Add masking, use VF_128_256 mode iterator and update assembler emit
5254         code.
5255         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
5256         (define_mode_attr avx512flogicsuff): Delete.
5257         (define_insn "avx512f_<logic><mode>"): Ditto.
5258         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
5259         MODE_TI.
5260         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
5261
5262 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5263             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5264             Anna Tikhonova  <anna.tikhonova@intel.com>
5265             Ilya Tocar  <ilya.tocar@intel.com>
5266             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5267             Ilya Verbin  <ilya.verbin@intel.com>
5268             Kirill Yukhin  <kirill.yukhin@intel.com>
5269             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5270
5271         * config/i386/sse.md
5272         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
5273         (define_expand "vashr<mode>3<mask_name>"): Add masking,
5274         use VI12_128 mode iterator.
5275         (define_expand "ashrv2di3<mask_name>"): New.
5276
5277 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5278             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5279             Anna Tikhonova  <anna.tikhonova@intel.com>
5280             Ilya Tocar  <ilya.tocar@intel.com>
5281             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5282             Ilya Verbin  <ilya.verbin@intel.com>
5283             Kirill Yukhin  <kirill.yukhin@intel.com>
5284             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5285
5286         * config/i386/i386.c
5287         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
5288         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
5289         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
5290         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
5291         CODE_FOR_avx512vl_ucmpv4si3_mask.
5292         * config/i386/sse.md
5293         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
5294         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
5295         (define_insn
5296         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
5297         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
5298         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
5299         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
5300         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
5301         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
5302
5303 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5304             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5305             Anna Tikhonova  <anna.tikhonova@intel.com>
5306             Ilya Tocar  <ilya.tocar@intel.com>
5307             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5308             Ilya Verbin  <ilya.verbin@intel.com>
5309             Kirill Yukhin  <kirill.yukhin@intel.com>
5310             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5311
5312         * config/i386/sse.md
5313         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
5314         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
5315         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
5316         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
5317         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
5318         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
5319         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
5320         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
5321         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
5322
5323 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5324             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5325             Anna Tikhonova  <anna.tikhonova@intel.com>
5326             Ilya Tocar  <ilya.tocar@intel.com>
5327             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5328             Ilya Verbin  <ilya.verbin@intel.com>
5329             Kirill Yukhin  <kirill.yukhin@intel.com>
5330             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5331
5332         * config/i386/sse.md
5333         (define_insn "avx512f_blendm<mode>"): Delete.
5334         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
5335         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
5336         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
5337         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
5338         (define_insn
5339         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
5340         Remove.
5341         (define_insn
5342         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
5343         New.
5344         (define_insn
5345         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
5346         Ditto.
5347         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
5348         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
5349         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
5350         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
5351         Delete.
5352         (define_insn
5353         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
5354         New.
5355         (define_insn
5356         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
5357         Ditto.
5358         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
5359         Delete.
5360         (define_insn
5361         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
5362         New.
5363         (define_insn
5364         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
5365         Ditto.
5366
5367 2014-10-14  Richard Biener  <rguenther@suse.de>
5368
5369         PR tree-optimization/63512
5370         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
5371         modified.
5372
5373 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
5374
5375         PR target/63260
5376         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
5377         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
5378         of FPSCR.
5379         (negsf2_i): Rename to *negsf2_i.
5380         (abssf2_i): Rename to *abssf2_i.
5381         (negdf2_i): Rename to *negdf2_i.
5382         (absdf2_i): Rename to *absdf2_i.
5383
5384 2014-10-14  Felix Yang  <felix.yang@huawei.com>
5385             Jeff Law  <law@redhat.com>
5386
5387         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
5388         "replace" into boolean bitfields; turn member "loop_depth" into a short
5389         integer; add new member "no_equiv" and "reserved".
5390         (no_equiv): Set no_equiv of struct equivalence if register is marked
5391         as having no known equivalence.
5392         (update_equiv_regs): Check all definitions for a multiple-set
5393         register to make sure that the RHS have the same value.
5394
5395 2014-10-13  Richard Henderson  <rth@redhat.com>
5396
5397         * combine-stack-adj.c (no_unhandled_cfa): New.
5398         (maybe_merge_cfa_adjust): New.
5399         (combine_stack_adjustments_for_block): Use them.
5400
5401 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
5402
5403         * Makefile.in (TAGS): Tag ../include files.
5404
5405 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5406
5407         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
5408         to rs6000_dbx_register_number.
5409         (DWARF_FRAME_REGNUM): Redefine as identity map.
5410         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
5411         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
5412         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
5413         argument to handle .debug_frame and .eh_frame directly.  Always
5414         translate SPE high register numbers.  Add special treatment for CR,
5415         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
5416
5417         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
5418         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
5419         (RS6000_USE_DWARF_NUMBERING): Define.
5420         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
5421         (RS6000_USE_DWARF_NUMBERING): Define.
5422         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
5423         (RS6000_USE_DWARF_NUMBERING): Define.
5424         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
5425         (RS6000_USE_DWARF_NUMBERING): Define.
5426         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
5427         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
5428
5429 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
5430
5431         * config/i386/i386.c (ix86_address_cost): Lower cost for
5432         when address contains GOT register.
5433
5434 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
5435             Vladimir Makarov  <vmakarov@redhat.com>
5436
5437         PR target/8340
5438         PR middle-end/47602
5439         PR rtl-optimization/55458
5440         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
5441         (ix86_init_pic_reg): New.
5442         (ix86_select_alt_pic_regnum): Add check on pseudo register.
5443         (ix86_save_reg): Likewise.
5444         (ix86_expand_prologue): Remove PIC register initialization
5445         now performed in ix86_init_pic_reg.
5446         (ix86_output_function_epilogue): Add check on pseudo register.
5447         (set_pic_reg_ever_alive): New.
5448         (legitimize_pic_address): Replace df_set_regs_ever_live with new
5449         set_pic_reg_ever_alive.
5450         (legitimize_tls_address): Likewise.
5451         (ix86_pic_register_p): New check.
5452         (ix86_delegitimize_address): Add check on pseudo register.
5453         (ix86_expand_call): Insert move from pseudo PIC register to ABI
5454         defined REAL_PIC_OFFSET_TABLE_REGNUM.
5455         (TARGET_INIT_PIC_REG): New.
5456         (TARGET_USE_PSEUDO_PIC_REG): New.
5457         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
5458         if pic_offset_table_rtx exists.
5459         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
5460         Document.
5461         * doc/tm.texi: Regenerate.
5462         * function.c (assign_parms): Generate pseudo register for PIC.
5463         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
5464         register.
5465         * ira-color.c (color_pass): Add check on pseudo register.
5466         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
5467         register.
5468         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
5469         register.
5470         (ira): Add target specific PIC register initialization.
5471         (do_reload): Keep PIC pseudo register.
5472         * lra-assigns.c (spill_for): Add checks on pseudo register.
5473         * lra-constraints.c (contains_symbol_ref_p): New.
5474         (lra_constraints): Enable lra risky transformations when PIC is pseudo
5475         register.
5476         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
5477         * target.def (use_pseudo_pic_reg): New.
5478         (init_pic_reg): New.
5479
5480 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
5481
5482         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
5483         Remove m_SILVERMONT and m_INTEL from the tune.
5484
5485 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5486
5487         PR libfortran/63471
5488         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
5489         when _HPUX_SOURCE is defined.
5490
5491 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
5492
5493         PR tree-optimization/62127
5494         * tree.c (remap_type_1): When remapping array, remap
5495         also its type.
5496
5497 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
5498
5499         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
5500         longer impact parallelization.
5501
5502 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
5503
5504         PR bootstrap/63496
5505         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
5506
5507 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
5508
5509         * asan.c (instrument_derefs): BIT_FIELD_REF added.
5510
5511 2014-10-13  Richard Biener  <rguenther@suse.de>
5512
5513         PR tree-optimization/63419
5514         * gimple-fold.h (gimple_convert): New function.
5515         * gimple-fold.c (gimple_convert): Likewise.
5516         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
5517         to split out required conversions early.
5518
5519 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
5520
5521         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
5522         Add the parts of an insn in reverse order, with the pattern at
5523         the top of the queue.  Detect when we're iterating over a SEQUENCE
5524         pattern and in that case just consider patterns of subinstructions.
5525
5526 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
5527
5528         PR target/59401
5529         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
5530         of rtx.
5531         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
5532         insn walking.
5533         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
5534         address.  Use def chains to handle GBR clobbering call insns.
5535
5536 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
5537
5538         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
5539         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
5540         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
5541         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
5542         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
5543         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
5544         * doc/gty.texi (for_user): Document new option.
5545         * gengtype.c (create_user_defined_type): Don't try to get a struct for
5546         char.
5547         (walk_type): Don't error out on for_user option.
5548         (write_func_for_structure): Emit user marking routines if requested by
5549         for_user option.
5550         (write_local_func_for_structure): Likewise.
5551         (main): Mark types with for_user option as used.
5552         * ggc.h (gt_pch_nx): Add overload for unsigned int.
5553         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
5554         * hash-table.h (ggc_hasher): New struct.
5555         (hash_table::create_ggc): New function.
5556         (gt_pch_nx): New overload for hash_table.
5557
5558 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
5559
5560         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
5561         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
5562         * config/sh/sh.c: Likewise.
5563         * config/sh/sh-mem.cc: Likewise.
5564         * config/sh/sh.md: Likewise.
5565         * config/sh/predicates.md: Likewise.
5566         * config/sh/sync.md: Likewise.
5567
5568 2014-10-11  Martin Liska  <mliska@suse.cz>
5569
5570         PR middle-end/63376
5571         * cgraphunit.c (symbol_table::process_new_functions): Missing call
5572         for call_cgraph_insertion_hooks added.
5573
5574 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
5575
5576         PR c/63495
5577         * stor-layout.c (min_align_of_type): Don't decrease alignment
5578         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
5579         TYPE_USER_ALIGN is set.
5580
5581 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
5582
5583         PR rtl-optimization/63483
5584         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
5585         references when alignment ANDs are involved.
5586         (write_dependence_p): Ditto.
5587         (may_alias_p): Ditto.
5588
5589 2014-10-10  Marek Polacek  <polacek@redhat.com>
5590
5591         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
5592         * doc/invoke.texi: Document -fsanitize=object-size.
5593         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
5594         or it into SANITIZE_UNDEFINED.
5595         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
5596         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
5597         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
5598         * opts.c (common_handle_option): Handle -fsanitize=object-size.
5599         * ubsan.c: Include tree-object-size.h.
5600         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
5601         (ubsan_expand_bounds_ifn): Use false instead of 0.
5602         (ubsan_expand_objsize_ifn): New function.
5603         (instrument_object_size): New function.
5604         (pass_ubsan::execute): Add object size instrumentation.
5605         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
5606
5607 2014-10-10  Richard Henderson  <rth@redhat.com>
5608
5609         PR target/63404
5610         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
5611         Restrict the set of expressions we're willing to move.
5612
5613 2014-10-10  Jeff Law  <law@redhat.com>
5614
5615         * ira.c (struct equivalence): Promote INIT_INSNs field to
5616         an rtx_insn_list.  Add comments.
5617         (no_equiv): Promote LIST to an rtx_insn_list.  Update
5618         testing for and creating the special marker.  Use methods
5619         to extract the insn and next pointers.  Promote INSN to an
5620         rtx_insn.
5621         (update_equiv_regs): Update test for special marker in the
5622         INIT_INSNs list.
5623
5624 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5625
5626         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
5627         * configure: Regenerate.
5628         * config/aarch64/aarch64.c (aarch64_override_options): Handle
5629         TARGET_FIX_ERR_A53_835769_DEFAULT.
5630         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
5631         value to 2.
5632         * doc/install.texi (aarch64*-*-*): Document
5633         new --enable-fix-cortex-a53-835769 option.
5634
5635 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5636             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5637
5638         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
5639         (ADJUST_INSN_LENGTH): Define.
5640         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
5641         * config/aarch64/aarch64.c (is_mem_p): New function.
5642         (is_memory_op): Likewise.
5643         (aarch64_prev_real_insn): Likewise.
5644         (is_madd_op): Likewise.
5645         (dep_between_memop_and_curr): Likewise.
5646         (aarch64_madd_needs_nop): Likewise.
5647         (aarch64_final_prescan_insn): Likewise.
5648         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
5649         and -mno-fix-cortex-a53-835769 options.
5650
5651 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
5652
5653         PR tree-optimization/63464
5654         * tree-switch-conversion.c (struct case_bit_test): Remove
5655         hi and lo fields, add wide_int mask field.
5656         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
5657         hi/lo fields into wide_int mask operations, optimize by pretending
5658         minval to be 0 if maxval is small enough.
5659         (process_switch): Adjust caller.
5660
5661 2014-10-10  Richard Biener  <rguenther@suse.de>
5662
5663         PR tree-optimization/63379
5664         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
5665         a neutral operand for min/max when it is not a reduction chain.
5666
5667 2014-10-10  Richard Biener  <rguenther@suse.de>
5668
5669         PR tree-optimization/63476
5670         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
5671         (BB_LIVE_VOP_ON_EXIT): New define.
5672         (create_expression_by_pieces): Assign VUSEs to stmts.
5673         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
5674         (pass_pre::execute): Assert virtual SSA form is up-to-date
5675         after insertion.
5676
5677 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
5678
5679         * lra-assigns.c (assign_by_spills): Error out on spill failure.
5680
5681 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
5682
5683         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
5684         assertion.
5685
5686 2014-10-09  Richard Biener  <rguenther@suse.de>
5687
5688         PR tree-optimization/63380
5689         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
5690         may trap.
5691
5692 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5693
5694         * config/avr/avr.opt (mmcu=): Change to have a string value.
5695         (mn-flash=, mskip-bug, march=, mrmw): New options.
5696         (HeaderInclude): New.
5697         (mmcu=): Remove Var / Init clauses.
5698         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
5699         -specs option.
5700         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
5701         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
5702         (SYMBOL_FLAG_IO_LOW): Define.
5703         (avr_device_to_as, avr_device_to_ld): Don't declare.
5704         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
5705         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
5706         (EXTRA_SPEC_FUNCTIONS): Don't define.
5707         (ASM_SPEC): Translate -arch= option to -mmcu= option.
5708         (LINK_SPEC): Translate -arch= option to -m= option.
5709         Don't use device_to_ld / device_to_data_start.
5710         (STARTFILE_SPEC): Now empty.
5711         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
5712         * config/avr/gen-avr-mmcu-specs.c: New file.
5713         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
5714         (s-device-specs): Likewise.
5715         (GCC_PASSES): Add s-device-specs.
5716         (install-driver): Depend on install-device-specs.
5717         (install-device-specs): New rule.
5718         * config/avr/avr.c (avr_option_override): Look up mcu arch by
5719         avr_arch_index and provide fallback initialization for avr_n_flash.
5720         (varasm.h): #include.
5721         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
5722         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
5723         (avr_attribute_table): Add "io", "address" and "io_low".
5724         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
5725         Add special handling for symbols with "io" and/or "address" attributes.
5726         (avr_asm_asm_output_aligned_bss): New function.
5727         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
5728         as appropriate.  Handle io_low attribute.
5729         (avr_out_sbxx_branch): Handle symbolic io addresses.
5730         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
5731         avr_n_flash instead of avr_current_device->n_flash.
5732         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
5733         (avr_emit_movmemhi): Likewise.
5734         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
5735         Use TARGET_RMW instead of avr_current_device->dev_attributes.
5736         Don't define avr_current_device->macro (that's the specfile's job).
5737         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
5738         * config/avr/avr.c (avr_2word_insn_p): Likewise.
5739         * config/avr/avr.md (*cpse.ne): Likewise.
5740         (mov<mode>): Use avr_eval_addr_attrib.
5741         (cbi): Change constraint for low_io_address_operand operand to "i".
5742         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
5743         * config/avr/predicates.md (io_address_operand):
5744         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
5745         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
5746         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
5747         Update prototype.
5748         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
5749         * config/avr/genmultilib.awk: Use -march=.
5750         Remove Multilib matches processing.
5751         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
5752         * config/avr/avr-arch.h: Add double include guard.
5753         (avr_mcu_t) <library_name>: Update comment.
5754         * config/avr/driver-avr.c (avr_device_to_as): Delete.
5755         (avr_device_to_ld, avr_device_to_data_start): Likewise.
5756         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
5757         (avr_device_to_sp8): Likewise.
5758         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
5759
5760         * doc/extend.texi (io, address): Document new AVR variable attributes.
5761         (io_low): Likewise.
5762
5763 2014-10-09  Marek Polacek  <polacek@redhat.com>
5764
5765         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
5766
5767 2014-10-08  Richard Biener  <rguenther@suse.de>
5768
5769         PR tree-optimization/61969
5770         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
5771         variables.
5772
5773 2014-10-09  Richard Biener  <rguenther@suse.de>
5774
5775         PR tree-optimization/63445
5776         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
5777         overflow for non-equality compares.
5778
5779 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
5780
5781         PR rtl-optimization/57003
5782         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5783         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
5784         killing regs_invalidated_by_call.
5785
5786 2014-10-08  Teresa Johnson  <tejohnson@google.com>
5787
5788         PR bootstrap/63432.
5789         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
5790         (ssa_fix_duplicate_block_edges): Invoke it.
5791         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
5792
5793 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
5794
5795         PR target/52941
5796         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
5797         atomic_fetch_<fetchop_name>si_hard,
5798         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
5799         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
5800         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
5801         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
5802
5803 2014-10-08  Rong Xu  <xur@google.com>
5804
5805         * gcov-tool.c (profile_overlap): New driver function
5806         to compute profile overlap.
5807         (print_overlap_usage_message): New.
5808         (overlap_usage): New.
5809         (do_overlap): New.
5810         (print_usage): Add calls to overlap function.
5811         (main): Ditto.
5812         * doc/gcov-tool.texi: Add documentation.
5813
5814 2014-10-08  Steve Ellcey  <sellcey@mips.com>
5815
5816         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
5817         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
5818
5819 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
5820
5821         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
5822         pattern matching of MEM_REF.
5823         (check_stmt_for_type_change): Update.
5824
5825 2014-10-08  Steve Ellcey  <sellcey@mips.com>
5826
5827         * config/mips/linux64.h: Remove.
5828         * config/mips/gnu-user64.h: Remove.
5829         * gcc.config (mips*-*-*): Remove references to linux64.h and
5830         gnu-user64.h
5831         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
5832         with modified version from gnu-user64.h.
5833         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
5834         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
5835         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
5836         linux64.h.
5837         (GNU_USER_LINK_EMULATION64): Ditto.
5838         (GNU_USER_LINK_EMULATIONN32): Ditto.
5839         (GLIBC_DYNAMIC_LINKER32): Ditto.
5840         (GLIBC_DYNAMIC_LINKER64): Ditto.
5841         (GLIBC_DYNAMIC_LINKERN32): Ditto.
5842         (UCLIBC_DYNAMIC_LINKER32): Ditto.
5843         (UCLIBC_DYNAMIC_LINKER64): Ditto.
5844         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
5845         (BIONIC_DYNAMIC_LINKERN32): Ditto.
5846         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
5847         (GLIBC_DYNAMIC_LINKER): Delete.
5848         (UCLIBC_DYNAMIC_LINKER): Delete.
5849
5850 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
5851             Richard Biener  <rguenther@suse.de>
5852
5853         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
5854         Get address space from operand 0 (BASE).
5855
5856 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
5857
5858         PR target/61387
5859         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
5860
5861 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
5862
5863         * dwarf2out.c: Remove current_function_has_inlines.
5864         (gen_subprogram_die): Same.
5865         (gen_inlined_subroutine_die): Same.
5866
5867 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
5868
5869         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
5870         type.
5871         (_addcarry_u64): Ditto.
5872         (_addcarryx_u64): Ditto.
5873
5874 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
5875
5876         * cgraph.h (cgraph_node::get_fun): Declare.
5877         * cgraph.c (cgraph_node::get_fun): New method.
5878         * ipa-inline.c (can_inline_edge_p): Use it.
5879
5880 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
5881
5882         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
5883         and -ftrapping-math.
5884         * lto-wrapper.c (merge_and_complain): Likewise.
5885         (run_gcc): Likewise.
5886
5887 2014-10-06  Rong Xu  <xur@google.com>
5888
5889         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
5890         * tree-profile.c: (params.h): New include.
5891         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
5892         and __gcov_indirect_call_topn_counters for
5893         indirect_call_topn_profile.
5894         (gimple_init_edge_profiler): New decls for
5895         __gcov_indirect_call_topn_profiler.
5896         (gimple_gen_ic_profiler): Generate the correct profiler call.
5897         (gimple_gen_ic_func_profiler): Fix format.
5898         * value-prof.c (params.h): New include.
5899         (dump_histogram_value): Hanlde indirect_call_topn counters.
5900         (stream_in_histogram_value): Ditto.
5901         (gimple_indirect_call_to_profile): Use indirect_call_topn
5902         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
5903         (gimple_find_values_to_profile): Hanlde indirect_call_topn
5904         counters.
5905         * value-prof.h (enum hist_type): Histrogram type for
5906         indirect_call_topn counters.
5907         * profile.c (instrument_values): Instrument
5908         indirect_call_topn counters.
5909
5910 2014-10-06  Rong Xu  <xur@google.com>
5911
5912         * Makefile.in: Fix dependence.
5913         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
5914         indirect call topn profiler.
5915         * gcov-io.h: Ditto.
5916
5917 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
5918
5919         * calls.c (expand_call): Do not use the target as the return slot if
5920         it is not sufficiently aligned.
5921
5922 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5923
5924         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
5925         discussion of permutes and why we don't handle them.
5926
5927 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
5928
5929         * config/sparc/predicates.md (int_register_operand): Delete.
5930
5931 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
5932
5933         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
5934
5935 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
5936
5937         * ubsan.h (ubsan_get_source_location): New prototype.
5938         * ubsan.c (ubsan_source_location_type): New variable.
5939         Function renamed to ...
5940         (ubsan_get_source_location_type): ... this.  Cache
5941         return value in ubsan_source_location_type variable.
5942         (ubsan_source_location, ubsan_create_data): Use
5943         ubsan_get_source_location_type instead of
5944         ubsan_source_location_type.
5945         * asan.c (asan_protect_global): Don't protect globals
5946         with ubsan_get_source_location_type () type.
5947         (asan_add_global): Provide global decl location info
5948         if possible.
5949
5950 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
5951
5952         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
5953         sanity check.
5954
5955 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
5956
5957         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
5958         on size.
5959         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
5960         into vptr pointer.
5961         (ipa_polymorphic_call_context::dump): Fix formating.
5962         (walk_ssa_copies): Add logic avoiding loops; update uses.
5963         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
5964
5965 2014-10-02  Mark Wielaard  <mjw@redhat.com>
5966
5967         PR debug/63239
5968         * dwarf2out.c (gen_subprogram_die): When a member function is
5969         explicitly deleted then add a DW_AT_GNU_deleted attribute.
5970         * langhooks.h (struct lang_hooks_for_decls): Add
5971         function_decl_deleted_p langhook.
5972         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
5973         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
5974
5975 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
5976
5977         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
5978         NULL pointer checks.
5979         (ipa_polymorphic_call_context::get_dynamic_type): Return true
5980         if type doesn't change.
5981         * cgraph.h (cgraph_indirect_call_info): New flag.
5982         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
5983         (cgraph_node::dump): Dump it.
5984         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
5985         of context.get_dynamic_type.
5986         (ipa_make_edge_direct_to_target): Do not speculate
5987         edge that is already speuclative.
5988         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
5989         speculate to __builtin_unreachable
5990         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
5991         vptr_changed.
5992         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
5993
5994 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
5995
5996         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
5997         get_dynamic_type; drop TODO.
5998         * ipa-polymorphic-call.c
5999         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
6000         for otr_type to be unknown.
6001
6002 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
6003
6004         * common/config/score/score-common.c: Remove.
6005         * config.gcc: Remove support for score-*.
6006         * config/score/constraints.md: Remove.
6007         * config/score/elf.h: Remove.
6008         * config/score/predicates.md: Remove.
6009         * config/score/score-conv.h: Remove.
6010         * config/score/score-generic.md: Remove.
6011         * config/score/score-modes.def: Remove.
6012         * config/score/score-protos.h: Remove.
6013         * config/score/score.c: Remove.
6014         * config/score/score.h: Remove.
6015         * config/score/score.md: Remove.
6016         * config/score/score.opt: Remove.
6017         * doc/md.texi: Don't document score-*.
6018
6019 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
6020
6021         PR pch/63429
6022         * genconditions.c: Directly include ggc.h before rtl.h.
6023
6024 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
6025
6026         * ipa-polymorphic-call.c
6027         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
6028         code determining speculative type.
6029         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
6030
6031 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6032
6033         * altivec.md (altivec_lvsl): New define_expand.
6034         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
6035         (altivec_lvsr): New define_expand.
6036         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
6037         * rs6000.c (rs6000_expand_builtin): Change to use
6038         altivec_lvs[lr]_direct; remove commented-out code.
6039
6040 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6041
6042         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6043         Issue a warning message when vec_lvsl or vec_lvsr is used with a
6044         little endian target.
6045
6046 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6047
6048         * tree-pretty-print.c (dump_location): Make it extern. Dump also
6049         the column.
6050         * tree-pretty-print.h (dump_location): Declare.
6051         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
6052         (pp_gimple_stmt_1): Likewise.
6053         (dump_implicit_edges): Likewise.
6054         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
6055         LOCATION_LINE.
6056
6057
6058 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
6059
6060         * gcc.c (driver::global_initializations): Remove "const" so
6061         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
6062         and decoded_options_count.
6063
6064 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
6065
6066         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
6067         macro.
6068         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
6069         TARGET_E500_DOUBLE case here.
6070
6071 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
6072
6073         PR c++/54427
6074         PR c++/57198
6075         PR c++/58845
6076         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
6077
6078 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
6079
6080         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
6081         * lto-cgraph.c (lto_output_edge, input_edge): Stream
6082         in_polymorphic_cdtor
6083         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
6084         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
6085         * cgraphclones.c (cgraph_edge::clone): Likewise.
6086         * ipa-prop.c (update_jump_functions_after_inlining,
6087         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
6088         to possible_dynamic_type_change.
6089         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
6090         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
6091         IN_POLY_CDOTR argument.
6092
6093         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
6094         for BASE and OUTER_TYPE being NULL.
6095         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
6096         in_poly_cdtor parameter.
6097
6098 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
6099
6100         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
6101         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
6102         TARGET_AVX512F.
6103         (expand_vec_perm_1): Likewise.
6104
6105 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
6106             Uros Bizjak  <ubizjak@gmail.com>
6107
6108         PR tree-optimization/61403
6109         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
6110         error in comment.  Also optimize 256-bit vectors for AVX2
6111         or AVX (floating vectors only), provided the first permutation
6112         can be performed in one insn.
6113
6114 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
6115
6116         * gcc.c (class driver): New class.
6117         (main): Reimplement in terms of driver::main, moving most of the
6118         locals to be locals within individual methods of class driver.
6119         The remaining locals "explicit_link_files", "decoded_options" and
6120         "decoded_options_count" are used by multiple driver:: methods, and
6121         so become member data.  Doing so isolates the argc/argv reads and
6122         writes.  Replace "goto out" with a special exit code from
6123         new method driver::prepare_infiles.  Split out the old
6124         implementation of main into the following...
6125         (driver::main): New function, corresponding to the old "main"
6126         implementation.
6127         (driver::set_progname): New function, taken from the old
6128         "main" implementation.
6129         (driver::expand_at_files): Likewise.
6130         (driver::decode_argv): Likewise.
6131         (driver::global_initializations): Likewise.
6132         (driver::build_multilib_strings): Likewise.
6133         (driver::set_up_specs): Likewise.
6134         (driver::putenv_COLLECT_GCC): Likewise.
6135         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
6136         (driver::handle_unrecognized_options): Likewise.
6137         (driver::maybe_print_and_exit): Likewise.
6138         (driver::prepare_infiles): Likewise.
6139         (driver::do_spec_on_infiles): Likewise.
6140         (driver::maybe_run_linker): Likewise.
6141         (driver::final_actions): Likewise.
6142         (driver::get_exit_code): Likewise.
6143
6144 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
6145
6146         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
6147         don't emit empty ctors.
6148
6149 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
6150
6151         * convert.c (convert_to_integer): Do not introduce useless conversions
6152         between integral types.
6153
6154 2014-10-03  David Sherwood  <david.sherwood@arm.com>
6155
6156         * ira-int.h (ira_allocno): Mark hard_regno as signed.
6157
6158 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
6159
6160         * lra-constraints.c (inherit_in_ebb): Handle calls with
6161         multiple return values.
6162         * caller-save.c (save_call_clobbered_regs): Likewise.
6163
6164 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
6165
6166         * tree-vect-data-refs.c (vect_permute_load_chain,
6167         vect_shift_permute_load_chain): Fix a typo in temporary var names,
6168         suffle3 to shuffle3.
6169
6170         PR libgomp/61200
6171         * omp-low.c (taskreg_contexts): New variable.
6172         (scan_omp_parallel): Push newly created context into taskreg_contexts
6173         vector and move record layout code to finish_taskreg_scan.
6174         (scan_omp_task): Likewise.
6175         (finish_taskreg_scan): New function.
6176         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
6177         vector elements and release it.
6178
6179         PR target/62128
6180         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
6181         of palignr arguments can't be used due to min 0 or max - min
6182         too high, try also op0, op1 order of palignr arguments.
6183
6184 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
6185
6186         * cgraph.h (ipa_polymorphic_call_context):
6187         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
6188         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
6189         * ipa-polymorphic-call.c
6190         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
6191         past end of dynamic types.
6192         (ipa_polymorphic_call_context::stream_out,
6193         speculative_outer_type): Stream dynamic flag.
6194         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
6195         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
6196         Clear DYNAMIC.
6197         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
6198         set it.
6199         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
6200         * ipa-prop.c (update_jump_functions_after_inlining,
6201         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
6202
6203 2014-10-02  Teresa Johnson  <tejohnson@google.com>
6204
6205         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
6206         up when synthesizing counts to avoid rounding errors.
6207
6208 2014-10-02  Teresa Johnson  <tejohnson@google.com>
6209
6210         PR middle-end/63422
6211         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
6212         asserts to handle incoming insanities.
6213
6214 2014-10-02  Martin Jambor  <mjambor@suse.cz>
6215
6216         PR tree-optimization/63375
6217         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
6218         references.
6219
6220 2014-10-02  Olivier Hainque  <hainque@adacore.com>
6221
6222         * Makefile.in (CROSS): Define, to @CROSS.
6223
6224 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
6225
6226         PR target/62128
6227         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
6228         if it expands to a single insn only.
6229         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
6230         fail unless in_order is true.  Add forward declaration.
6231         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
6232         is useful for one_operand_p.
6233         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
6234
6235 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
6236
6237         * cgraphclones.c (build_function_type_skip_args): Do not make new
6238         type variant of old.
6239
6240 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
6241
6242         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
6243         when speculation is added.
6244         (ipa_edge_args): Add polymorphic_call_contexts.
6245         (ipa_get_ith_polymorhic_call_context): New accesor.
6246         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
6247         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
6248         (ipa_compute_jump_functions_for_edge): Compute contexts.
6249         (update_jump_functions_after_inlining): Update contexts.
6250         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
6251         update dumping; add speculative edge creation.
6252         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
6253         context updating.
6254         (update_indirect_edges_after_inlining): Pass down context.
6255         (ipa_edge_duplication_hook): Duplicate contexts.
6256         (ipa_write_node_info): Stream out contexts.
6257         (ipa_read_node_info): Stream in contexts.
6258         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
6259         types.
6260         (try_speculative_devirtualization): New function.
6261         * ipa-utils.h (try_speculative_devirtualization): Declare.
6262
6263 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
6264
6265         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
6266         dumping during WPA.
6267
6268 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
6269
6270         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
6271         type variants.
6272
6273 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
6274
6275         * ipa-polymorphic-call.c
6276         (ipa_polymorphic_call_context::restrict_to_inner_class):
6277         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
6278         use speculation_consistent_p to do so; Add CONSDER_BASES
6279         and CONSIDER_PLACEMENT_NEW parameters.
6280         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
6281         short circuit obvious cases.
6282         (ipa_polymorphic_call_context::dump): Improve formatting.
6283         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
6284         combine_speculation_with to record speculations; Do not ICE when
6285         object is located in pointer type decl; do not ICE for methods
6286         of UNION_TYPE; do not record nonpolymorphic types.
6287         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
6288         (ipa_polymorphic_call_context::combine_speculation_with): New method.
6289         (ipa_polymorphic_call_context::combine_with): New method.
6290         (ipa_polymorphic_call_context::make_speculative): Move here; use
6291         combine speculation.
6292         * cgraph.h (ipa_polymorphic_call_context): Update
6293         restrict_to_inner_class prototype; add offset_by, make_speculative,
6294         combine_with, useless_p, combine_speculation_with and
6295         speculation_consistent_p methods.
6296         (ipa_polymorphic_call_context::offset_by): New method.
6297         (ipa_polymorphic_call_context::useless_p): New method.
6298
6299 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
6300
6301         PR rtl-optimization/62151
6302         * combine.c (can_combine_p): Allow the destination register of INSN
6303         to be clobbered in I3.
6304         (subst): Do not substitute into clobbers of registers.
6305
6306 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
6307
6308         PR debug/63342
6309         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
6310         offset, TARGET_MEM_REF and SSA_NAME.
6311
6312         * config/i386/i386.c (expand_vec_perm_palignr): Handle
6313         256-bit vectors for TARGET_AVX2.
6314
6315         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
6316         dfirst permutation.
6317
6318         PR target/63428
6319         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
6320         argument to avx2_permv2ti.
6321
6322 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6323
6324         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
6325
6326 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
6327
6328         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
6329         (fmod<mode>3): Ditto.
6330         (fpremxf4_i387): Ditto.
6331         (reminderxf3): Ditto.
6332         (reminder<mode>3): Ditto.
6333         (fprem1xf4_i387): Ditto.
6334
6335 2014-09-30  Teresa Johnson  <tejohnson@google.com>
6336
6337         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
6338         duplicate_blocks bitmap.
6339         (remove_ctrl_stmt_and_useless_edges): Ditto.
6340         (create_block_for_threading): Ditto.
6341         (compute_path_counts): New function.
6342         (update_profile): Ditto.
6343         (recompute_probabilities): Ditto.
6344         (update_joiner_offpath_counts): Ditto.
6345         (freqs_to_counts_path): Ditto.
6346         (clear_counts_path): Ditto.
6347         (ssa_fix_duplicate_block_edges): Update profile info.
6348         (ssa_create_duplicates): Pass new parameter.
6349         (ssa_redirect_edges): Remove old profile update.
6350         (thread_block_1): New duplicate_blocks bitmap,
6351         remove old profile update.
6352         (thread_single_edge): Pass new parameter.
6353
6354 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
6355
6356         PR middle-end/62120
6357         * varasm.c (decode_reg_name_and_count): Check availability for
6358         registers from ADDITIONAL_REGISTER_NAMES.
6359
6360 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
6361
6362         PR plugins/63410
6363         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
6364         (PLUGIN_HEADERS): Add pass-instances.def.
6365
6366 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
6367
6368         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
6369         iterator.
6370         * config/aarch64/aarch64-simd.md
6371         (aarch64_sqdmull_laneq<mode>): Expand iterator.
6372         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
6373         (vqdmulls_lane_s32): Fix return type.
6374         (vqdmulls_laneq_s32): New.
6375
6376 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
6377
6378         PR inline-asm/63282
6379         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
6380         or invert_jump_1 if jump isn't any_condjump_p.
6381
6382 2014-09-30  Terry Guo  <terry.guo@arm.com>
6383
6384         * config/arm/arm-cores.def (cortex-m7): New core name.
6385         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
6386         (fpv5-d16): Ditto.
6387         * config/arm/arm-tables.opt: Regenerated.
6388         * config/arm/arm-tune.md: Regenerated.
6389         * config/arm/arm.h (TARGET_VFP5): New macro.
6390         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
6391         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
6392         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
6393         * doc/invoke.texi: Document new cpu and fpu names.
6394
6395 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
6396
6397         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
6398         before sinking insn.
6399
6400 2014-09-30  David Sherwood  <david.sherwood@arm.com>
6401
6402         * ira-int.h (ira_allocno): Add "wmode" field.
6403         * ira-build.c (create_insn_allocnos): Add new "parent" function
6404         parameter.
6405         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
6406         that cannot be accessed in wmode.
6407
6408 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
6409
6410         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
6411         integer overflow.
6412
6413 2014-09-29  Andi Kleen  <ak@linux.intel.com>
6414
6415         * opts.c (print_filtered_help): Print --param min/max/default
6416         with -Q.
6417
6418 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6419
6420         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
6421
6422 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
6423
6424         * tree-vrp.c (get_single_symbol): New function.
6425         (build_symbolic_expr): Likewise.
6426         (symbolic_range_based_on_p): New predicate.
6427         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
6428         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
6429         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
6430         operand is symbolic and based on the other operand.
6431
6432 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
6433
6434         * config/microblaze/microblaze.md (call_internal1): Use VOID
6435         instead of SI to fix "((void (*)(void)) 0)()" issue
6436
6437 2014-09-29  Nick Clifton  <nickc@redhat.com>
6438
6439         * config/msp430/msp430.c (msp430_expand_prologue): Return a
6440         CLOBBER rtx for naked functions.
6441         (msp430_expand_epilogue): Likewise.
6442         (msp430_use_f5_series_hwmult): Cache result.
6443         (use_32bit_hwmult): Cache result.
6444         (msp430_no_hwmult): New function.
6445         (msp430_output_labelref): Use it.
6446
6447 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
6448
6449         PR middle-end/63247
6450         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
6451         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
6452         use the alignment of avar rather than ovar.
6453
6454 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
6455
6456         * config/pa/pa.c (pa_output_function_epilogue): Only update
6457         last_address when a nonnote insn is found.
6458
6459 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
6460
6461         PR ipa/60665
6462         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
6463
6464 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
6465
6466         PR ipa/62121
6467         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
6468         fix pasto in checking array size.
6469
6470 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
6471
6472         PR middle-end/35545
6473         * passes.def (pass_tracer): Move before last dominator pass.
6474
6475 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
6476
6477         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
6478         users.
6479         (run_attempt): Handle errors of "pex_run" invocation.
6480
6481 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
6482
6483         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
6484         (CC1_SPEC): Define.
6485         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
6486         (TARGET_ASAN_SHADOW_OFFSET): Define.
6487
6488 2014-09-26  Martin Liska  <mliska@suse.cz>
6489
6490         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
6491         introduced.
6492         * cgraph.h: Likewise.
6493         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
6494         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
6495         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
6496         * tree-ssa-alias.h: Likewise.
6497
6498 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
6499             Max Ostapenko  <m.ostapenko@partner.samsung.com>
6500
6501         * common.opt: New option.
6502         * doc/invoke.texi: Describe new option.
6503         * gcc.c (execute): Don't free first string early, but at the end
6504         of the function.  Call retry_ice if compiler exited with
6505         ICE_EXIT_CODE.
6506         (main): Factor out common code.
6507         (print_configuration): New function.
6508         (files_equal_p): Likewise.
6509         (check_repro): Likewise.
6510         (run_attempt): Likewise.
6511         (do_report_bug): Likewise.
6512         (append_text): Likewise.
6513         (try_generate_repro): Likewise
6514
6515 2014-09-25  Andi Kleen  <ak@linux.intel.com>
6516
6517         * config/i386/i386.c (x86_print_call_or_nop): New function.
6518         (x86_function_profiler): Support -mnop-mcount and
6519         -mrecord-mcount.
6520         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
6521         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
6522
6523 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
6524
6525         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
6526         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
6527         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
6528         Remove.
6529
6530 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
6531
6532         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
6533         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
6534         types_odr_comparable): Declare.
6535         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
6536         * ipa-polymorphic-call.c: New file.
6537         (contains_polymorphic_type_p, possible_placement_new,
6538         ipa_polymorphic_call_context::restrict_to_inner_class,
6539         contains_type_p, decl_maybe_in_construction_p,
6540         ipa_polymorphic_call_context::stream_out,
6541         ipa_polymorphic_call_context::debug,
6542         ipa_polymorphic_call_context::stream_in,
6543         ipa_polymorphic_call_context::set_by_decl,
6544         ipa_polymorphic_call_context::set_by_invariant,
6545         walk_ssa_copies,
6546         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
6547         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
6548         extr_type_from_vtbl_ptr_store, record_known_type
6549         check_stmt_for_type_change,
6550         ipa_polymorphic_call_context::get_dynamic_type): Move here from
6551         ipa-devirt.c
6552         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
6553         and streamer-hooks.h
6554         (contains_polymorphic_type_p, possible_placement_new,
6555         ipa_polymorphic_call_context::restrict_to_inner_class,
6556         contains_type_p, decl_maybe_in_construction_p,
6557         ipa_polymorphic_call_context::stream_out,
6558         ipa_polymorphic_call_context::debug,
6559         ipa_polymorphic_call_context::stream_in,
6560         ipa_polymorphic_call_context::set_by_decl,
6561         ipa_polymorphic_call_context::set_by_invariant,
6562         walk_ssa_copies,
6563         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
6564         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
6565         extr_type_from_vtbl_ptr_store, record_known_type
6566         check_stmt_for_type_change,
6567         ipa_polymorphic_call_context::get_dynamic_type): Move to
6568         ipa-polymorphic-call.c
6569         (type_all_derivations_known_p, types_odr_comparable,
6570         types_must_be_same_for_odr): Export.
6571         (type_known_to_have_no_deriavations_p): New function.
6572         * Makefile.in: Add ipa-polymorphic-call.c
6573
6574 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
6575
6576         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
6577         for better storage.
6578         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
6579         (possible_polymorphic_call_targets): Instead of computing both
6580         speculative and non-speculative answers, do just one at a time.
6581         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
6582         (dump_targets): Break out from ...
6583         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
6584         and non-speculative lists.
6585         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
6586         * ipa-utils.h (possible_polymorphic_call_targets): Update.
6587
6588 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
6589
6590         PR rtl-optimization/63348
6591         * emit-rtl.c (try_split): Do not emit extra barrier.
6592
6593 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
6594
6595         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
6596         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
6597         new predicates.
6598         (aarch64_<sur>shll2_n<mode>): Likewise.
6599         (aarch64_<sur>shr_n<mode>): Likewise.
6600         (aarch64_<sur>sra_n<mode>: Likewise.
6601         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
6602         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
6603         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
6604         * config/aarch64/iterators.md (ve_mode): New.
6605         (offsetlr): Remap to infix text for use in new predicates.
6606         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
6607         (aarch64_simd_shift_imm_hi): Likewise.
6608         (aarch64_simd_shift_imm_si): Likewise.
6609         (aarch64_simd_shift_imm_di): Likewise.
6610         (aarch64_simd_shift_imm_offset_qi): Likewise.
6611         (aarch64_simd_shift_imm_offset_hi): Likewise.
6612         (aarch64_simd_shift_imm_offset_si): Likewise.
6613         (aarch64_simd_shift_imm_offset_di): Likewise.
6614         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
6615         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
6616         (aarch64_simd_shift_imm_bitsize_si): Likewise.
6617         (aarch64_simd_shift_imm_bitsize_di): Likewise.
6618
6619 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
6620
6621         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
6622         new created BB as the intersection of live-in from "old_dest" and
6623         live-out from "bb".
6624
6625 2014-09-25  Felix Yang  <felix.yang@huawei.com>
6626
6627         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
6628         * genautomata.c (merge_states): Ditto.
6629
6630 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
6631
6632         PR target/62218
6633         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
6634         in instruction sequence.
6635
6636 2014-09-25  Nick Clifton  <nickc@redhat.com>
6637
6638         PR target/62218
6639         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
6640         in instruction sequence.
6641
6642 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6643
6644         PR target/63335
6645         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
6646         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
6647
6648 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6649             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6650             Anna Tikhonova  <anna.tikhonova@intel.com>
6651             Ilya Tocar  <ilya.tocar@intel.com>
6652             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6653             Ilya Verbin  <ilya.verbin@intel.com>
6654             Kirill Yukhin  <kirill.yukhin@intel.com>
6655             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6656
6657         * config/i386/sse.md
6658         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
6659         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
6660         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
6661         (define_expand "<avx512>_perm<mode>_mask"): ... this.
6662         Use VI8F_256_512 mode iterator.
6663         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
6664         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
6665
6666 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6667             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6668             Anna Tikhonova  <anna.tikhonova@intel.com>
6669             Ilya Tocar  <ilya.tocar@intel.com>
6670             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6671             Ilya Verbin  <ilya.verbin@intel.com>
6672             Kirill Yukhin  <kirill.yukhin@intel.com>
6673             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6674
6675         * config/i386/sse.md
6676         (define_insn "avx_movshdup256<mask_name>"): Add masking.
6677         (define_insn "sse3_movshdup<mask_name>"): Ditto.
6678         (define_insn "avx_movsldup256<mask_name>"): Ditto.
6679         (define_insn "sse3_movsldup<mask_name>"): Ditto.
6680         (define_insn "vec_dupv2df<mask_name>"): Ditto.
6681         (define_insn "*vec_concatv2df"): Add EVEX version.
6682
6683 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6684             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6685             Anna Tikhonova  <anna.tikhonova@intel.com>
6686             Ilya Tocar  <ilya.tocar@intel.com>
6687             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6688             Ilya Verbin  <ilya.verbin@intel.com>
6689             Kirill Yukhin  <kirill.yukhin@intel.com>
6690             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6691
6692         * config/i386/sse.md
6693         (define_insn "vec_set<mode>_0"): Add EVEX version.
6694
6695 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6696             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6697             Anna Tikhonova  <anna.tikhonova@intel.com>
6698             Ilya Tocar  <ilya.tocar@intel.com>
6699             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6700             Ilya Verbin  <ilya.verbin@intel.com>
6701             Kirill Yukhin  <kirill.yukhin@intel.com>
6702             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6703
6704         * config/i386/sse.md
6705         (define_insn
6706         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
6707         New.
6708         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
6709         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
6710         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
6711         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
6712         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
6713         (define_expand "sse2_cvtpd2ps_mask): New.
6714         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
6715         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
6716
6717 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6718             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6719             Anna Tikhonova  <anna.tikhonova@intel.com>
6720             Ilya Tocar  <ilya.tocar@intel.com>
6721             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6722             Ilya Verbin  <ilya.verbin@intel.com>
6723             Kirill Yukhin  <kirill.yukhin@intel.com>
6724             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6725
6726         * config/i386/i386.c
6727         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
6728         (ufix_notruncv8dfv8si2_mask_round): ... this.
6729         * config/i386/sse.md
6730         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
6731         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
6732         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
6733         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
6734         (define_expand "sse2_cvtpd2dq"): Delete.
6735         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
6736         make 2nd operand const0 vector.
6737         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
6738         Delete.
6739         (define_mode_attr pd2udqsuff): New.
6740         (define_insn
6741         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
6742         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
6743         (define_insn "*avx_cvttpd2dq256_2"): Delete.
6744         (define_expand "sse2_cvttpd2dq"): Ditto.
6745         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
6746         make 2nd operand const0 vector.
6747
6748 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
6749
6750         PR tree-optimization/63341
6751         * tree-vectorizer.h (vect_create_data_ref_ptr,
6752         vect_create_addr_base_for_vector_ref): Add another tree argument
6753         defaulting to NULL_TREE.
6754         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
6755         argument, pass it down to vect_create_addr_base_for_vector_ref.
6756         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
6757         add that to base_offset too if non-NULL.
6758         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
6759         for dr_explicit_realign_optimized set it to vector byte size
6760         - 1 instead of setting offset, pass byte_offset down to
6761         vect_create_data_ref_ptr.
6762
6763 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
6764
6765         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
6766         forgotten debug output; canonicalize querries more wtih LTO.
6767
6768 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
6769
6770         * cgraph.h (class ipa_polymorphic_call_context): Move here from
6771         ipa-utils.h; add stream_int and stream_out methods.
6772         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
6773         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
6774         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
6775         add CONTEXT.
6776         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
6777         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
6778         ipa_polymorphic_call_context::clear_speculation,
6779         ipa_polymorphic_call_context::clear_outer_type): Move here from
6780         ipa-utils.h
6781         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
6782         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
6783         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
6784         ipa_polymorphic_call_context::clear_speculation,
6785         ipa_polymorphic_call_context::clear_outer_type): Likewise.
6786         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
6787         streamer-hooks.h
6788         (ipa_polymorphic_call_context::stream_out): New method.
6789         (ipa_polymorphic_call_context::stream_in): New method.
6790         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
6791         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
6792         OUTER_TYPE.
6793         (ipa_analyze_call_uses): Simplify.
6794         (update_indirect_edges_after_inlining): Do not care about outer_type.
6795         (ipa_write_indirect_edge_info): Update.
6796         (ipa_write_indirect_edge_info): Likewise.
6797         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
6798         (dump_edge_flags): Break out from ...
6799         (cgraph_node::dump): ... here; dump indirect edges.
6800
6801 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
6802
6803         * ipa-utils.h (polymorphic_call_context): Add
6804         metdhos dump, debug and clear_outer_type.
6805         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
6806         (ipa_polymorphic_call_context::clear_outer_type): New method.
6807         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
6808         * ipa-devirt.c (types_odr_comparable): New function.
6809         (types_must_be_same_for_odr): New function.
6810         (odr_subtypes_equivalent_p): Simplify.
6811         (possible_placement_new): Break out from ...
6812         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
6813         be more cuatious about returning false in cases the context may be
6814         valid in derived type or via placement new.
6815         (contains_type_p): Clear maybe_derived_type
6816         (ipa_polymorphic_call_context::dump): New method.
6817         (ipa_polymorphic_call_context::debug): New method.
6818         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
6819         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
6820         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
6821         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
6822         to suceed on all valid cases; remove confused sanity check.
6823         (dump_possible_polymorphic_call_targets): Simplify.
6824
6825 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
6826
6827         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
6828         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
6829         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
6830         varpool.c: Rename all instances of DECL_ABSTRACT to
6831         DECL_ABSTRACT_P.
6832
6833 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6834
6835         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
6836         special handling for stores whose SET_SRC is an UNSPEC (such as
6837         UNSPEC_STVE).
6838
6839 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
6840
6841         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
6842         !REG_P (src) to release more instruction sink opportunities.
6843
6844 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
6845
6846         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
6847         move costs for 128-bit types.
6848
6849 2014-09-24  Martin Jambor  <mjambor@suse.cz>
6850
6851         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
6852         when duplicating a PASS_THROUGH jump function when creating a
6853         speculative edge.
6854
6855 2014-09-24  Marek Polacek  <polacek@redhat.com>
6856
6857         PR c/61405
6858         PR c/53874
6859         * asan.c (maybe_instrument_call): Add default case.
6860         * ipa-pure-const.c (special_builtin_state): Likewise.
6861         * predict.c (expr_expected_value_1): Likewise.
6862         * lto-streamer-out.c (write_symbol): Initialize variable.
6863
6864 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6865
6866         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
6867         the lane.
6868         (vmuld_laneq_f64): Likewise.
6869         (vmuls_lane_f32): Likewise.
6870         (vmuls_laneq_f32): Likewise.
6871
6872 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
6873
6874         PR bootstrap/63235
6875         * varpool.c (varpool_node::add): Pass decl attributes
6876         to lookup_attribute.
6877
6878 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
6879
6880         PR sanitizer/63316
6881         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
6882
6883 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6884
6885         PR tree-optimization/63266
6886         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
6887         marker for unknown byte value.
6888         (MARKER_MASK): New macro.
6889         (MARKER_BYTE_UNKNOWN): New macro.
6890         (HEAD_MARKER): New macro.
6891         (do_shift_rotate): Mark bytes with unknown values due to sign
6892         extension when doing an arithmetic right shift. Replace hardcoded
6893         mask for marker by new MARKER_MASK macro.
6894         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
6895         numbers accordingly.
6896
6897 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6898             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6899             Anna Tikhonova  <anna.tikhonova@intel.com>
6900             Ilya Tocar  <ilya.tocar@intel.com>
6901             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6902             Ilya Verbin  <ilya.verbin@intel.com>
6903             Kirill Yukhin  <kirill.yukhin@intel.com>
6904             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6905
6906         * config/i386/sse.md
6907         (define_insn
6908         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
6909         Add masking.
6910         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
6911         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
6912
6913 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6914             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6915             Anna Tikhonova  <anna.tikhonova@intel.com>
6916             Ilya Tocar  <ilya.tocar@intel.com>
6917             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6918             Ilya Verbin  <ilya.verbin@intel.com>
6919             Kirill Yukhin  <kirill.yukhin@intel.com>
6920             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6921
6922         * config/i386/sse.md
6923         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
6924         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
6925         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
6926         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
6927         (define_expand "avx512vl_pshuflw_mask"): New.
6928         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
6929         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
6930         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
6931         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
6932         (define_expand "avx512vl_pshufhw_mask"): New.
6933         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
6934
6935 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6936             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6937             Anna Tikhonova  <anna.tikhonova@intel.com>
6938             Ilya Tocar  <ilya.tocar@intel.com>
6939             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6940             Ilya Verbin  <ilya.verbin@intel.com>
6941             Kirill Yukhin  <kirill.yukhin@intel.com>
6942             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6943
6944         * config/i386/i386.c
6945         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
6946         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
6947         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
6948         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
6949         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
6950         * config/i386/sse.md
6951         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
6952         (define_insn
6953         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
6954         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
6955         (define_insn
6956         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
6957         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
6958         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
6959         (define_expand "avx512vl_pshufd_mask"): New.
6960         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
6961
6962 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6963             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6964             Anna Tikhonova  <anna.tikhonova@intel.com>
6965             Ilya Tocar  <ilya.tocar@intel.com>
6966             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6967             Ilya Verbin  <ilya.verbin@intel.com>
6968             Kirill Yukhin  <kirill.yukhin@intel.com>
6969             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6970
6971         * config/i386/i386.c
6972         (CODE_FOR_avx2_extracti128): Rename to ...
6973         (CODE_FOR_avx_vextractf128v4di): this.
6974         (CODE_FOR_avx2_inserti128): Rename to ...
6975         (CODE_FOR_avx_vinsertf128v4di): this.
6976         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
6977         CODE_FOR_avx_vextractf128v4di.
6978         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
6979         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
6980         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
6981         CODE_FOR_avx512vl_vinsertv8si.
6982         * config/i386/sse.md
6983         (define_expand
6984         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
6985         AVX512_VEC mode iterator.
6986         (define_insn
6987         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
6988         Ditto.
6989         (define_expand
6990         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
6991         AVX512_VEC_2 mode iterator.
6992         (define_insn "vec_set_lo_<mode><mask_name>"): New.
6993         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
6994         (define_expand "avx512vl_vinsert<mode>"): Ditto.
6995         (define_insn "avx2_vec_set_lo_v4di"): Delete.
6996         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
6997         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
6998         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
6999         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
7000         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
7001         (define_expand "avx2_extracti128"): Delete.
7002         (define_expand "avx2_inserti128"): Ditto.
7003
7004 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7005             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7006             Anna Tikhonova  <anna.tikhonova@intel.com>
7007             Ilya Tocar  <ilya.tocar@intel.com>
7008             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7009             Ilya Verbin  <ilya.verbin@intel.com>
7010             Kirill Yukhin  <kirill.yukhin@intel.com>
7011             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7012
7013         * config/i386/sse.md
7014         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
7015         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
7016         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
7017         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
7018         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
7019         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
7020         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
7021         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
7022         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
7023         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
7024         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
7025         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
7026         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
7027
7028 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7029
7030         PR rtl-optimization/63210
7031         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
7032         HARD_REGNO is not available for CONFLICT_A.
7033
7034 2014-09-23  Andi Kleen  <ak@linux.intel.com>
7035
7036         * cgraph.h (symtab_node): Add no_reorder attribute.
7037         (symbol_table::output_asm_statements): Remove.
7038         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
7039         (cgraph_node::create_version_clone): Dito.
7040         (symbol_table::output_asm_statements): Remove.
7041         * trans-mem.c (ipa_tm_create_version_alias): Dito.
7042         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
7043         (output_in_order): Add no_reorder flag. Only handle no_reorder
7044         nodes when set.
7045         (symbol_table::compile): Add separate pass for no_reorder nodes.
7046         (process_common_attributes): Set no_reorder flag in symtab node.
7047         Add node argument.
7048         (process_function_and_variable_attributes): Pass symtab nodes to
7049         process_common_attributes.
7050         * doc/extend.texi (no_reorder): Document no_reorder attribute.
7051         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
7052         (lto_output_varpool_node): Dito.
7053         (input_overwrite_node): Dito.
7054         (input_varpool_node): Dito.
7055         * varpool.c (varpool_node::add): Set no_reorder attribute.
7056         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
7057         (symbol_table::output_variables): Dito.
7058         * symtab.c (symtab_node::dump_base): Print no_reorder.
7059
7060 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
7061
7062         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
7063         be INVALID_REGNUM.
7064
7065 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
7066
7067         * configure: Regenerate.
7068
7069 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
7070
7071         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
7072         when result_mode == shift_mode.
7073
7074 2014-09-23  Kostya Serebryany  <kcc@google.com>
7075
7076         Update to match the changed asan API.
7077         * asan.c (asan_global_struct): Update the __asan_global definition
7078         to match the new API.
7079         (asan_add_global): Ditto.
7080         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
7081         to __asan_init_v4.
7082
7083 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
7084
7085         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
7086         refine the constraints used on 32/64-bit floating point moves.
7087         (f32_av): Likewise.
7088         (f64_vsx): Likewise.
7089         (f64_dm): Likewise.
7090         (f64_av): Likewise.
7091         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
7092         (BOOL_REGS_OP1): Likewise.
7093         (BOOL_REGS_OP2): Likewise.
7094         (BOOL_REGS_UNARY): Likewise.
7095         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
7096         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
7097         for moves involving VSX registers.  Do not use constraints that
7098         target VSX registers for decimal types.
7099         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
7100         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
7101
7102 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
7103
7104         * tree.h (int_bit_position): Turn into inline function;
7105         implement using wide int.
7106         * tree.c (int_bit_position): Remove.
7107
7108 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
7109
7110         PR bootstrap/63280
7111         * target-globals.c (target_globals::~target_globals): Fix location
7112         of ira_int destruction.
7113
7114 2014-09-23  Renlin Li  <renlin.li@arm.com>
7115
7116         * config/aarch64/aarch64.md (return): New.
7117         (simple_return): Likewise.
7118         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
7119         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
7120
7121 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
7122
7123         * common/config/aarch64/aarch64-common.c:
7124         (default_options aarch_option_optimization_table):
7125         Default to -fsched-pressure.
7126
7127 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
7128
7129         * cfgcleanup.c (try_optimize_cfg): Do not remove label
7130         with LABEL_PRESERVE_P flag set.
7131
7132 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7133             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7134             Anna Tikhonova  <anna.tikhonova@intel.com>
7135             Ilya Tocar  <ilya.tocar@intel.com>
7136             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7137             Ilya Verbin  <ilya.verbin@intel.com>
7138             Kirill Yukhin  <kirill.yukhin@intel.com>
7139             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7140
7141         * config/i386/sse.md
7142         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
7143         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
7144         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
7145         (define_insn "sse2_shufpd_v2df_mask"): New.
7146
7147 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7148             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7149             Anna Tikhonova  <anna.tikhonova@intel.com>
7150             Ilya Tocar  <ilya.tocar@intel.com>
7151             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7152             Ilya Verbin  <ilya.verbin@intel.com>
7153             Kirill Yukhin  <kirill.yukhin@intel.com>
7154             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7155
7156         * config/i386/sse.md
7157         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
7158         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
7159         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
7160         (define_insn "sse_shufps_v4sf_mask"): New.
7161
7162 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7163             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7164             Anna Tikhonova  <anna.tikhonova@intel.com>
7165             Ilya Tocar  <ilya.tocar@intel.com>
7166             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7167             Ilya Verbin  <ilya.verbin@intel.com>
7168             Kirill Yukhin  <kirill.yukhin@intel.com>
7169             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7170
7171         * config/i386/sse.md
7172         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
7173         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
7174         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
7175         (define_insn "unpcklps128_mask"): New.
7176
7177 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7178             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7179             Anna Tikhonova  <anna.tikhonova@intel.com>
7180             Ilya Tocar  <ilya.tocar@intel.com>
7181             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7182             Ilya Verbin  <ilya.verbin@intel.com>
7183             Kirill Yukhin  <kirill.yukhin@intel.com>
7184             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7185
7186         * config/i386/sse.md
7187         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
7188         (define_insn "avx512vl_unpckhpd128_mask"): New.
7189         (define_expand "avx_movddup256<mask_name>"): Add masking.
7190         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
7191         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
7192         (define_insn "avx512vl_unpcklpd128_mask"): New.
7193
7194 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
7195
7196         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7197         * doc/tm.texi: Regenerate.
7198         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
7199         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7200         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
7201         Remove.
7202         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7203         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7204         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7205         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7206         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
7207         Remove.
7208         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7209         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7210         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7211         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7212         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7213         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7214         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7215         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7216         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7217         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
7218         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
7219         Remove.
7220
7221 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
7222
7223         * tree-ssa-ccp.c (prop_value_d): Rename to ...
7224         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
7225         * ipa-prop.c (struct type_change_info): Rename to ...
7226         (prop_type_change_info): ... this; update uses.
7227         * ggc-page.c (globals): Rename to ...
7228         (static struct ggc_globals): ... this; update uses.
7229         * tree-ssa-loop-im.c (mem_ref): Rename to ...
7230         (im_mem_ref): ... this; update uses.
7231         * ggc-common.c (loc_descriptor): Rename to ...
7232         (ggc_loc_descriptor): ... this; update uses.
7233         * lra-eliminations.c (elim_table): Rename to ...
7234         (lra_elim_table): ... this; update uses.
7235         * bitmap.c (output_info): Rename to ...
7236         (bitmap_output_info): ... this; update uses.
7237         * gcse.c (expr): Rename to ...
7238         (gcse_expr) ... this; update uses.
7239         (occr): Rename to ...
7240         (gcse_occr): .. this; update uses.
7241         * tree-ssa-copy.c (prop_value_d): Rename to ...
7242         (prop_value_t): ... this.
7243         * predict.c (block_info_def): Rename to ...
7244         (block_info): ... this; update uses.
7245         (edge_info_def): Rename to ...
7246         (edge_info): ... this; update uses.
7247         * profile.c (bb_info): Rename to ...
7248         (bb_profile_info): ... this; update uses.
7249         * alloc-pool.c (output_info): Rename to ...
7250         (pool_output_info): ... this; update uses.
7251         * ipa-cp.c (topo_info): Rename to ..
7252         (ipa_topo_info): ... this; update uses.
7253         * tree-nrv.c (nrv_data): Rename to ...
7254         (nrv_data_t): ... this; update uses.
7255         * ipa-split.c (bb_info): Rename to ...
7256         (split_bb_info): ... this one.
7257         * profile.h (edge_info): Rename to ...
7258         (edge_profile_info): ... this one; update uses.
7259         * dse.c (bb_info): Rename to ...
7260         (dse_bb_info): ... this one; update uses.
7261         * cprop.c (occr): Rename to ...
7262         (cprop_occr): ... this one; update uses.
7263         (expr): Rename to ...
7264         (cprop_expr): ... this one; update uses.
7265
7266 2014-09-22  Jason Merrill  <jason@redhat.com>
7267
7268         * Makefile.in (check-parallel-%): Add @.
7269
7270 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
7271
7272         * config/aarch64/geniterators.sh: New.
7273         * config/aarch64/iterators.md (VDQF_DF): New.
7274         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
7275         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
7276
7277 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
7278
7279         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
7280         -lnosys when -msim absent.
7281
7282 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
7283
7284         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
7285
7286 2014-09-22  Richard Biener  <rguenther@suse.de>
7287
7288         * gimplify.c (gimplify_init_constructor): Do not leave
7289         non-GIMPLE vector constructors around.
7290         * tree-cfg.c (verify_gimple_assign_single): Verify that
7291         CONSTRUCTORs have gimple elements.
7292
7293 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
7294
7295         PR debug/63328
7296         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
7297         insert a debug source bind stmt setting DEBUG_EXPR_DECL
7298         instead of a normal gimple assignment stmt.
7299
7300 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
7301
7302         * config/bfin/bfin.md: Fix use of constraints in define_split.
7303
7304 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
7305
7306         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
7307         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
7308
7309 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
7310
7311         * hard-reg-set.h: Include hash-table.h.
7312         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
7313         field.
7314         * target-globals.c (target_globals::~target_globals): Call
7315         hard_regs->finalize.
7316         * rtl.h (subreg_shape): New structure.
7317         (shape_of_subreg): New function.
7318         (simplifiable_subregs): Declare.
7319         * reginfo.c (simplifiable_subreg): New structure.
7320         (simplifiable_subregs_hasher): Likewise.
7321         (simplifiable_subregs): New function.
7322         (invalid_mode_changes): Delete.
7323         (alid_mode_changes, valid_mode_changes_obstack): New variables.
7324         (record_subregs_of_mode): Remove subregs_of_mode parameter.
7325         Record valid mode changes in valid_mode_changes.
7326         (find_subregs_of_mode): Remove subregs_of_mode parameter.
7327         Update calls to record_subregs_of_mode.
7328         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
7329         handling.  Initialize new variables.  Update call to
7330         find_subregs_of_mode.
7331         (invalid_mode_change_p): Check new variables instead of
7332         invalid_mode_changes.
7333         (finish_subregs_of_mode): Finalize new variables instead of
7334         invalid_mode_changes.
7335         (target_hard_regs::finalize): New function.
7336         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
7337         even when CLASS_CANNOT_CHANGE_MODE is undefined.
7338
7339 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
7340
7341         * combine.c (subst): Use simplify_subreg_regno rather than
7342         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
7343
7344 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
7345
7346         * rtl.h (subreg_info): Expand commentary
7347         * rtlanal.c (subreg_get_info): Likewise.
7348
7349 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
7350
7351         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
7352         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
7353         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
7354
7355 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
7356
7357         * config/arm/arm.c: #include "tm-constrs.h"
7358         (thumb1_size_rtx_costs): Adjust rtx costs.
7359
7360 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
7361
7362         * configure.ac (target_header_dir): Move block defining
7363         this to before the block setting inhibit_libc.
7364         (inhibit_libc): When considering $with_headers, just
7365         check it it's explicitly "no".  If not, also check if
7366         $target_header_dir/stdio.h is present.  If not, set
7367         inhibit_libc=true.
7368         * configure: Regenerate.
7369
7370 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
7371
7372         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
7373
7374 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
7375
7376         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
7377         insn for divides by integer powers of two.
7378         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
7379         (mod<mode>3): Fix formatting.
7380         (three anonymous define_insn and two define_split): Delete.
7381
7382 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
7383
7384         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
7385         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
7386         (floatdisf2_internal2): Ditto.
7387         (ashrdi3_no_power): Ditto.  Fix formatting.
7388
7389 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
7390
7391         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
7392         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
7393         Tidy.
7394
7395 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
7396
7397         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
7398         constant, use addsi3 directly.
7399         (three anonymous define_insn, two define_split): Delete.
7400         (sub<mode>3): Move.  Do not allow constant second operand.
7401         Generate different insn for constant first operand.
7402         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
7403         (subf<mode>3_imm): New.
7404         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
7405         (*plus_ltu<mode>): Only handle registers.
7406         (*plus_ltu<mode>_1): New.  Handle integer third operand.
7407         (*plus_gtu<mode>): Only handle registers.
7408         (*plus_gtu<mode>_1): New.  Handle integer third operand.
7409
7410 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
7411
7412         * config/rs6000/rs6000.md (iorxor): New code_iterator.
7413         (iorxor): New code_attr.
7414         (IORXOR): New code_attr.
7415         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
7416         (ior<mode>3, xor<mode>3): Delete.
7417         (<iorxor><mode>3): New.
7418         (splitter for "big" integer ior, xor): New.
7419         (*bool<mode>3): Move.  Also handle AND.
7420         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
7421         (splitter for "big" integer ior, xor): Delete.
7422
7423 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
7424
7425         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
7426         (two anonymous define_insn and two define_split): Delete.
7427         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
7428
7429 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
7430
7431         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
7432         (two anonymous define_insn and two define_split): Delete.
7433         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
7434
7435 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
7436
7437         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
7438
7439 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
7440
7441         * config/rs6000/predicates.md (ca_operand): Allow subregs.
7442         (input_operand): Do not allow ca_operand.
7443         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
7444         carry bit, allow SImode and Pmode.
7445         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
7446
7447 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
7448
7449         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
7450         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
7451         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
7452         (*call_rex64_ms_sysv): Remove.
7453         (*call_value_rex64_ms_sysv): Ditto.
7454         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
7455
7456 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
7457
7458         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
7459         operand 3 to "CnL".
7460
7461 2014-09-20  Andreas Schwab  <schwab@suse.de>
7462
7463         * config/ia64/ia64.md: Remove constraints from define_split
7464         patterns.
7465
7466 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
7467
7468         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
7469         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
7470         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
7471         (get_dynamic_type): Remove.
7472         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
7473         (clear_speculation): Bring to ipa-deivrt.h
7474         (get_class_context): Rename to ...
7475         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
7476         (contains_type_p): Update.
7477         (get_dynamic_type): Rename to ...
7478         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
7479         (possible_polymorphic_call_targets): UPdate.
7480         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
7481         * ipa-prop.c (ipa_analyze_call_uses): Update.
7482
7483 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
7484
7485         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
7486         privatize dynamic TLS variables.
7487
7488 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
7489
7490         * diagnostic.c (warning_n): New function.
7491         * diagnostic-core.h (warning_n): Declare.
7492         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
7493         output dynamic counts when available.
7494
7495 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
7496
7497         PR tree-optimization/63255
7498         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
7499         issue in setting body_removed flag.
7500
7501 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
7502
7503         PR c++/61825
7504         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
7505         that visibility change is possible
7506         (handle_weakref_attribute): Likewise.
7507         * cgraph.h (symtab_node): Add method get_create and
7508         field refuse_visibility_changes.
7509         (symtab_node::get_create): New method.
7510         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
7511         * varasm.c (mark_weak): Verify that visibility change is
7512         possible.
7513
7514 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
7515
7516         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
7517         for base_reg_operand to be common between LO_SUM and PLUS.
7518         (fusion_gpr_mem_combo): New predicate to match a fused address
7519         that combines the addis and memory offset address.
7520
7521         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
7522         calling signature.
7523         (emit_fusion_gpr_load): Likewise.
7524
7525         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
7526         signature to pass each argument separately, rather than
7527         using an operands array.  Rewrite the insns found by peephole2 to
7528         be a single insn, rather than hoping the insns will still be
7529         together when the peephole pass is done.  Drop being called via a
7530         normal peephole.
7531         (emit_fusion_gpr_load): Change calling signature to be called from
7532         the fusion_gpr_load_<mode> insns with a combined memory address
7533         instead of the peephole pass passing the addis and offset
7534         separately.
7535
7536         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
7537         fusion.
7538         (power8 fusion peephole): Drop support for doing power8 via a
7539         normal peephole that was created by the peephole2 pass.
7540         (power8 fusion peephole2): Create a new insn with the fused
7541         address, so that the fused operation is kept together after
7542         register allocation is done.
7543         (fusion_gpr_load_<mode>): Likewise.
7544
7545 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
7546
7547         PR lto/63286
7548         * tree.c (need_assembler_name_p): Do not mangle variadic types.
7549
7550 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
7551
7552         * recog.c (scratch_operand): Do not simply allow all hard registers:
7553         only allow those that are allocatable.
7554
7555 2014-09-19  Felix Yang  <felix.yang@huawei.com>
7556
7557         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
7558         comments and fix spacing to conform to coding style.
7559
7560 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
7561
7562         * genrecog.c (validate_pattern): Allow empty constraints in
7563         a match_scratch.
7564
7565 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
7566
7567         * dwarf2out.c (decl_ultimate_origin): Update comment.
7568         * tree.c (block_ultimate_origin): Same.
7569
7570 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7571
7572         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
7573         Update GCC version name to GCC 5.
7574         (rs6000_function_arg_boundary): Likewise.
7575         (rs6000_function_arg): Likewise.
7576
7577 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
7578
7579         * config/sh/sh.md: Fix use of constraints in define_split.
7580
7581 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
7582
7583         PR ipa/61998
7584         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
7585
7586 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
7587
7588         * doc/md.texi (Modifiers): Consistently use "read/write"
7589         nomenclature rather than "input/output".
7590         * genrecog.c (constraints_supported_in_insn_p): New.
7591         (validate_pattern): If needed, also check constraints on
7592         MATCH_SCRATCH operands.
7593         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
7594         operands with no '=' or '+' modifier.
7595
7596 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
7597
7598         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
7599         scratch register as written.
7600
7601 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7602
7603         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
7604         assignment.
7605
7606 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7607
7608         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
7609         expanders.
7610
7611 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7612
7613         PR target/62662
7614         * config/s390/s390.c (s390_emit_epilogue): When doing the return
7615         address load optimization force s390_optimize_prologue to leave it
7616         that way.  Only do the optimization if we already decided to push
7617         r14 into a stack slot.
7618
7619 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
7620
7621         * asan.c (build_check_stmt): Alignment arg was added.
7622         (asan_expand_check_ifn): Optimization for alignment >= 8.
7623
7624 2014-09-19  Olivier Hainque  <hainque@adacore.com>
7625
7626         * config/i386/vxworksae.h: Remove obsolete definitions.
7627         (STACK_CHECK_PROTECT): Define.
7628         * config/i386/vx-common.h: Remove.  Merge contents within
7629         config/i386/vxworks.h.
7630         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
7631         i386/vx-common.h.
7632
7633 2014-09-19  Olivier Hainque  <hainque@adacore.com>
7634
7635         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
7636         * config/rs6000/t-vxworksmils: New file.
7637         * config/rs6000/vxworksmils.h: New file.
7638
7639 2014-09-19  Olivier Hainque  <hainque@adacore.com>
7640
7641         * varasm.c (default_section_type_flags): Flag .persistent.bss
7642         sections as SECTION_BSS.
7643
7644 2014-09-19  Nick Clifton  <nickc@redhat.com>
7645
7646         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
7647         pop'ed registers so that DCE does not eliminate them.
7648
7649 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
7650
7651         PR lto/63298
7652         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
7653
7654 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
7655
7656         * system.h (LIBGCC2_TF_CEXT): Poison.
7657         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
7658         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
7659         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
7660         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
7661         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
7662         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
7663         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
7664         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
7665         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
7666
7667 2014-09-19  Kito Cheng  <kito@0xlab.org>
7668
7669         * except.h: Fix header guard.
7670         * addresses.h: Add missing header guard.
7671         * cfghooks.h: Likewise.
7672         * collect-utils.h: Likewise.
7673         * collect2-aix.h: Likewise.
7674         * conditions.h: Likewise.
7675         * cselib.h: Likewise.
7676         * dwarf2asm.h: Likewise.
7677         * graphds.h: Likewise.
7678         * graphite-scop-detection.h: Likewise.
7679         * gsyms.h: Likewise.
7680         * hw-doloop.h: Likewise.
7681         * incpath.h: Likewise.
7682         * ipa-inline.h: Likewise.
7683         * ipa-ref.h: Likewise.
7684         * ira-int.h: Likewise.
7685         * ira.h: Likewise.
7686         * lra-int.h: Likewise.
7687         * lra.h: Likewise.
7688         * lto-section-names.h: Likewise.
7689         * read-md.h: Likewise.
7690         * reload.h: Likewise.
7691         * rtl-error.h: Likewise.
7692         * sdbout.h: Likewise.
7693         * targhooks.h: Likewise.
7694         * tree-affine.h: Likewise.
7695         * xcoff.h: Likewise.
7696         * xcoffout.h: Likewise.
7697
7698 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
7699
7700         PR debug/63285
7701         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
7702         if advance != 0.
7703
7704 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
7705
7706         PR target/61360
7707         * lra.c (lra): Call recog_init.
7708
7709 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
7710
7711         PR c++/62017
7712         * asan.c (transform_statements): Don't instrument clobber statements.
7713
7714 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7715
7716         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
7717         to neon_load1_1reg<q>.
7718
7719 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
7720
7721         PR debug/63284
7722         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
7723         if there are only debug stmts after the noreturn call, instead
7724         remove the debug stmts.
7725
7726 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
7727
7728         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
7729         (odr_types_equivalent_p): Use pair hash.
7730         (odr_subtypes_equivalent_p): Likewise, do structural compare
7731         on ODR types that may be mismatched.
7732         (warn_odr): Support warning when only one field is given.
7733         (odr_types_equivalent_p): Strenghten comparsions made;
7734         support VOIDtype.
7735         (add_type_duplicate): Update VISITED hash set.
7736
7737 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7738
7739         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
7740         Enable selection of 'posix' or no thread model.
7741
7742 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
7743
7744         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
7745         when architecture is older than ARMv7.
7746
7747 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
7748
7749         PR target/61853
7750         * config/pa/pa.c (pa_function_value): Directly handle aggregates
7751         that fit exactly in a word or double word.
7752
7753 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
7754
7755         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
7756         zmm/k regs support.
7757
7758 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7759             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7760             Anna Tikhonova  <anna.tikhonova@intel.com>
7761             Ilya Tocar  <ilya.tocar@intel.com>
7762             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7763             Ilya Verbin  <ilya.verbin@intel.com>
7764             Kirill Yukhin  <kirill.yukhin@intel.com>
7765             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7766
7767         * config/i386/i386.c
7768         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
7769         * config/i386/sse.md
7770         (define_mode_iterator VI48F_256): New.
7771         (define_mode_attr extract_type): Ditto.
7772         (define_mode_attr extract_suf): Ditto.
7773         (define_mode_iterator AVX512_VEC): Ditto.
7774         (define_expand
7775         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
7776         AVX512_VEC.
7777         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
7778         (define_insn
7779         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
7780         Ditto.
7781         (define_mode_attr extract_type_2): Ditto.
7782         (define_mode_attr extract_suf_2): Ditto.
7783         (define_mode_iterator AVX512_VEC_2): Ditto.
7784         (define_expand
7785         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
7786         AVX512_VEC_2 mode iterator.
7787         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
7788         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
7789         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
7790         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
7791         (define_split for V16FI mode): Ditto.
7792         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
7793         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
7794         (define_split for VI8F_256 mode): Ditto.
7795         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
7796         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
7797         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
7798         (define_split for VI4F_256 mode): Ditto.
7799         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
7800         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
7801         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
7802         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
7803         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
7804         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
7805         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
7806         Update `type' attribute, remove explicit `memory' attribute calculation.
7807
7808 2014-09-16  Kito Cheng  <kito@0xlab.org>
7809
7810         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
7811         ira_spilled_reg_stack_slots_num if using lra.
7812         (do_reload): Remove release ira_spilled_reg_stack_slots part.
7813         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
7814         make sure not using lra.
7815         (ira_reuse_stack_slot): Likewise.
7816         (ira_mark_new_stack_slot): Likewise.
7817
7818 2014-09-15  Andi Kleen  <ak@linux.intel.com>
7819
7820         * function.c (allocate_struct_function): Force
7821         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
7822         profiling is disabled.
7823
7824 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
7825
7826         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
7827         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
7828         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
7829         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
7830         macro with statically checked member functions.
7831         * rtl.h (rtx_insn::deleted): New method.
7832         (rtx_insn::set_deleted): Likewise.
7833         (rtx_insn::set_undeleted): Likewise.
7834         (INSN_DELETED_P): Remove.
7835
7836 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
7837
7838         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
7839         result of emit_jump_insn_before to a new variable.
7840         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
7841         (mark_jump_label_1): Likewise.
7842         (mark_jump_label_asm): Likewise.
7843         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
7844         * rtl.h (mark_jump_label): Adjust.
7845
7846 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
7847
7848         * Makefile.in (dg_target_exps): Remove.
7849         (check_gcc_parallelize): Change to just an upper bound number.
7850         (check-%-subtargets): Always print the non-parallelized goals.
7851         (check_p_vars, check_p_comma, check_p_subwork): Remove.
7852         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
7853         check_p_numbers3, check_p_numbers4, check_p_numbers5,
7854         check_p_numbers6): New variables.
7855         (check_p_numbers): Set to sequence from 1 to 9999.
7856         (check_p_subdirs): Set to sequence from 1 to minimum of
7857         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
7858         or 128.
7859         (check-%, check-parallel-%): Rewritten so that for parallelized
7860         testing each job runs all the *.exp files, with
7861         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
7862
7863 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
7864
7865         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
7866         rtx to rtx_insn *.
7867         (arc_sets_cc_p): Likewise.
7868         * config/arc/arc.c (arc_print_operand): Use methods of
7869         "final_sequence" for clarity, and to enable strengthening of
7870         locals "jump" and "delay" from rtx to rtx_insn *.
7871         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
7872         rtx_insn *; use method of rtx_sequence for typesafety.
7873         (arc_get_insn_variants): Use insn method of rtx_sequence for
7874         typesafety.
7875         (arc_pad_return): Likewise.
7876         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
7877         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
7878         dyn_cast to rtx_sequence *, using insn method for typesafety.
7879         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
7880         rtx_sequence * and use insn method when invoking get_attr_length.
7881         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
7882         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
7883         rtx_sequence *, introducing a local "seq", using its insn method
7884         from typesafety and clarity.
7885         (add_sched_insns_for_speculation): Strengthen local "next" from
7886         rtx to rtx_insn *.
7887         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
7888         (predicate_insn): Likewise.
7889         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
7890         second param.
7891         * config/cris/cris.c (cris_notice_update_cc): Likewise.
7892         * config/epiphany/epiphany-protos.h
7893         (extern void epiphany_insert_mode_switch_use): Likewise for param
7894         "insn".
7895         (get_attr_sched_use_fpu): Likewise for param.
7896         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
7897         Likewise for param "insn".
7898         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
7899         param "insn" of "target_insert_mode_switch_use" callback.
7900         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
7901         (frv_issues_to_branch_unit_p): Likewise.
7902         (frv_pack_insn_p): Likewise.
7903         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
7904         const rtx * (i.e. mutable rtx_def * const *) to
7905         rtx_insn * const *.
7906         * config/i386/i386-protos.h (standard_sse_constant_opcode):
7907         Strengthen first param from rtx to rtx_insn *.
7908         (output_fix_trunc): Likewise.
7909         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
7910         (output_fix_trunc): Likewise.
7911         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
7912         local "insn".
7913         (min_insn_size): Likewise for param "insn".
7914         (get_mem_group): Likewise.
7915         (is_cmp): Likewise.
7916         (get_insn_path): Likewise.
7917         (get_insn_group): Likewise.
7918         (count_num_restricted): Likewise.
7919         (fits_dispatch_window): Likewise.
7920         (add_insn_window): Likewise.
7921         (add_to_dispatch_window): Likewise.
7922         (debug_insn_dispatch_info_file): Likewise.
7923         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
7924         first param.
7925         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
7926         "cmp" and local "prev".
7927         (m32c_output_compare): Likewise for param "insn".
7928         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
7929         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
7930         (define_predicate "large_insn_p"): Likewise.
7931         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
7932         param from rtx to rtx_insn *.
7933         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
7934         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
7935         (m68k_sched_attr_size): Likewise.
7936         (sched_get_opxy_mem_type): Likewise for param "insn".
7937         (m68k_sched_attr_op_mem): Likewise.
7938         (sched_mem_operand_p): Likewise.
7939         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
7940         * config/mep/mep.c (mep_multi_slot): Likewise.
7941         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
7942         first param.
7943         (mips_sync_loop_insns): Likewise.
7944         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
7945         method of "final_sequence" for typesafety.
7946         (mips_process_sync_loop): Strengthen param "insn" from rtx to
7947         rtx_insn *.
7948         (mips_output_sync_loop): Likewise.
7949         (mips_sync_loop_insns): Likewise.
7950         (mips_74k_agen_init): Likewise.
7951         (mips_sched_init): Use NULL rather than NULL_RTX when working with
7952         insns.
7953         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
7954         Strengthen param "insn" from rtx to rtx_insn *.
7955         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
7956         local "insn".
7957         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
7958         param.
7959         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
7960         "insn".  Use method of rtx_sequence for typesafety.
7961         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
7962         rtx_insn *.
7963         (branch_needs_nop_p): Likewise.
7964         (use_skip_p): Likewise.
7965         (pa_insn_refs_are_delayed): Likewise.
7966         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
7967         for locals "insn", "ninsn".
7968         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
7969         "insn".
7970         (is_cracked_insn): Likewise.
7971         (is_branch_slot_insn): Likewise.
7972         (is_nonpipeline_insn): Likewise.
7973         (insn_terminates_group_p): Likewise.
7974         (insn_must_be_first_in_group): Likewise.
7975         (insn_must_be_last_in_group): Likewise.
7976         (force_new_group): Likewise for param "next_insn".
7977         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
7978         "insn".
7979         (s390_sched_score): Likewise.
7980         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
7981         (rtx sfunc_uses_reg): Likewise for sole param.
7982         * config/sh/sh.c (sh_print_operand): Use insn method of
7983         final_sequence for typesafety.
7984         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
7985         Use insn method of final_sequence for typesafety.
7986         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
7987         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
7988         for param.
7989         (eligible_for_return_delay): Likewise.
7990         (eligible_for_sibcall_delay): Likewise.
7991         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
7992         (eligible_for_return_delay): Likewise.
7993         (eligible_for_sibcall_delay): Likewise.
7994         * config/stormy16/stormy16-protos.h
7995         (xstormy16_output_cbranch_hi): Likewise for final param.
7996         (xstormy16_output_cbranch_si): Likewise.
7997         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
7998         (xstormy16_output_cbranch_si): Likewise.
7999         * config/v850/v850-protos.h (notice_update_cc): Likewise.
8000         * config/v850/v850.c (notice_update_cc): Likewise.
8001
8002         * final.c (get_attr_length_1): Strengthen param "insn" and param
8003         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
8004         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
8005         (get_attr_min_length): Likewise.
8006         (shorten_branches): Likewise for signature of locals "length_fun"
8007         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
8008         from a checked cast and use its methods for clarity and to enable
8009         strengthening local "inner_insn" from rtx to rtx_insn *.
8010         * genattr.c (gen_attr): When writing out the prototypes of the
8011         various generated "get_attr_" functions, strengthen the params of
8012         the non-const functions from rtx to rtx_insn *.
8013         Similarly, strengthen the params of insn_default_length,
8014         insn_min_length, insn_variable_length_p, insn_current_length.
8015         (main): Similarly, strengthen the param of num_delay_slots,
8016         internal_dfa_insn_code, insn_default_latency, bypass_p,
8017         insn_latency, min_issue_delay, print_reservation,
8018         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
8019         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
8020         to hook_int_rtx_insn_unreachable.
8021         * genattrtab.c (write_attr_get): When writing out the generated
8022         "get_attr_" functions, strengthen the param "insn" from rtx to
8023         rtx_insn *, eliminating a checked cast.
8024         (make_automaton_attrs): When writing out prototypes of
8025         "internal_dfa_insn_code_", "insn_default_latency_" functions
8026         and the "internal_dfa_insn_code" and "insn_default_latency"
8027         callbacks, strengthen their params from rtx to rtx_insn *
8028         * genautomata.c (output_internal_insn_code_evaluation): When
8029         writing out code, add a checked cast from rtx to rtx_insn * when
8030         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
8031         (output_dfa_insn_code_func): Strengthen param of generated
8032         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
8033         (output_trans_func): Likewise for generated function
8034         "state_transition".
8035         (output_internal_insn_latency_func): When writing out generated
8036         function "internal_insn_latency", rename params from "insn" and
8037         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
8038         locals "insn" and "insn2" as rtx_insn * with checked casts once
8039         we've proven that we're not dealing with const0_rtx.
8040         (output_insn_latency_func):  Strengthen param of generated
8041         function "insn_latency" from rtx to rtx_insn *.
8042         (output_print_reservation_func): Likewise for generated function
8043         "print_reservation".
8044         (output_insn_has_dfa_reservation_p): Likewise for generated
8045         function "insn_has_dfa_reservation_p".
8046         * hooks.c (hook_int_rtx_unreachable): Rename to...
8047         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
8048         from rtx to rtx_insn *.
8049         * hooks.h (hook_int_rtx_unreachable): Likewise.
8050         (extern int hook_int_rtx_insn_unreachable): Likewise.
8051         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
8052         (get_attr_min_length): Likewise.
8053         * recog.c (get_enabled_alternatives): Likewise.
8054         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
8055         * reorg.c (find_end_label): Introduce local rtx "pat" and
8056         strengthen local "insn" from rtx to rtx_insn *.
8057         (redundant_insn): Use insn method of "seq" rather than element for
8058         typesafety; strengthen local "control" from rtx to rtx_insn *.
8059         * resource.c (mark_referenced_resources): Add checked cast to
8060         rtx_insn * within INSN/JUMP_INSN case.
8061         (mark_set_resources): Likewise.
8062         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
8063         rtx to rtx_insn *.
8064
8065 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
8066
8067         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
8068         param "label" from rtx to rtx_insn *.
8069         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
8070         and local "op".
8071         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
8072         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
8073         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
8074         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
8075         * final.c (default_label_align_after_barrier_max_skip): Strengthen
8076         param from rtx to rtx_insn *.
8077         (default_loop_align_max_skip): Likewise.
8078         (default_label_align_max_skip): Likewise.
8079         (default_jump_align_max_skip): Likewise.
8080         * target.def (label_align_after_barrier_max_skip): Likewise.
8081         (loop_align_max_skip): Likewise.
8082         (label_align_max_skip): Likewise.
8083         (jump_align_max_skip): Likewise.
8084         * targhooks.h (default_label_align_after_barrier_max_skip):
8085         Likewise.
8086         (default_loop_align_max_skip): Likewise.
8087         (default_label_align_max_skip): Likewise.
8088         (default_jump_align_max_skip): Likewise.
8089
8090 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
8091
8092         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
8093         from const_rtx to const rtx_insn *.  Update union members from rtx
8094         to rtx_insn *.
8095         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
8096         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
8097         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
8098         strengthen both params from const_rtx to const rtx_insn *.
8099         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
8100         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
8101         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
8102         rtx_insn *.
8103         * target.def (can_follow_jump): Strengthen both params from
8104         const_rtx to const rtx_insn *, and update default implementation
8105         from hook_bool_const_rtx_const_rtx_true to
8106         hook_bool_const_rtx_insn_const_rtx_insn_true.
8107
8108 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
8109
8110         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
8111         "insn" from rtx to rtx_insn *.
8112         * sched-int.h (deps_start_bb): Likewise for 2nd param.
8113
8114 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8115             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8116             Anna Tikhonova  <anna.tikhonova@intel.com>
8117             Ilya Tocar  <ilya.tocar@intel.com>
8118             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8119             Ilya Verbin  <ilya.verbin@intel.com>
8120             Kirill Yukhin  <kirill.yukhin@intel.com>
8121             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8122
8123         * config/i386/sse.md
8124         (define_insn "vcvtph2ps<mask_name>"): Add masking.
8125         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
8126         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
8127         (define_expand "vcvtps2ph_mask"): New.
8128         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
8129         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
8130         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
8131
8132 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8133             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8134             Anna Tikhonova  <anna.tikhonova@intel.com>
8135             Ilya Tocar  <ilya.tocar@intel.com>
8136             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8137             Ilya Verbin  <ilya.verbin@intel.com>
8138             Kirill Yukhin  <kirill.yukhin@intel.com>
8139             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8140
8141         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
8142         New.
8143         (define_mode_iterator VI24_AVX512BW_1): Ditto.
8144         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
8145         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
8146         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
8147         also for TARGET_AVX512VL.
8148         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
8149
8150 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
8151
8152         * doc/install.texi (Options specification): add
8153         --disable-libsanitizer item.
8154
8155 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
8156             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8157
8158         PR target/61407
8159         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
8160         and above.
8161         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
8162         kernel version check to avoid incrementing it after every major OS X
8163         release.
8164         (darwin_default_min_version): Avoid static memory buffer.
8165
8166 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
8167
8168         * tree.c (need_assembler_name_p): Store C++ type mangling only
8169         for aggregates.
8170
8171 2014-09-13  Marek Polacek  <polacek@redhat.com>
8172
8173         * tree.c (protected_set_expr_location): Don't check whether T is
8174         non-null here.
8175
8176 2014-09-12  DJ Delorie  <dj@redhat.com>
8177
8178         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
8179         (extend_and_shift1_hipsi2): Likewise.
8180         (extend_and_shift2_hipsi2): Likewise.
8181
8182 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
8183
8184         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
8185         with NULL when dealing with an insn.
8186         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
8187         from rtx to rtx_insn *.
8188         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
8189         const_rtx to const rtx_insn *.
8190         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
8191
8192 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
8193
8194         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
8195         assert.
8196
8197 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
8198
8199         * target.def (libgcc_floating_mode_supported_p): New hook.
8200         * targhooks.c (default_libgcc_floating_mode_supported_p): New
8201         function.
8202         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
8203         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
8204         (LIBGCC2_HAS_TF_MODE): Remove.
8205         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
8206         * doc/tm.texi: Regenerate.
8207         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
8208         machine mode.
8209         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
8210         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
8211         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
8212         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
8213         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8214         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
8215         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
8216         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
8217         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
8218         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
8219         function.
8220         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
8221         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8222         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8223         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8224         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8225         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8226         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8227         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
8228         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
8229         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
8230         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
8231         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
8232         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
8233         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
8234         Remove.
8235         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
8236         New macro.
8237         (ia64_libgcc_floating_mode_supported_p): New function.
8238         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
8239         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
8240         (IA64_NO_LIBGCC_TFMODE): Define.
8241         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
8242         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
8243         macro.
8244         (pdp11_scalar_mode_supported_p): New function.
8245         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
8246         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
8247
8248 2014-09-12  Richard Biener  <rguenther@suse.de>
8249
8250         PR middle-end/63237
8251         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
8252
8253 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
8254
8255         * tree.c (integer_each_onep): New function.
8256         * tree.h (integer_each_onep): Declare it.
8257         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
8258         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
8259         (X & 1) == 0 for vector and complex.
8260
8261 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
8262
8263         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
8264         for A57.
8265         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
8266         cost to spilling from integer to FP registers.
8267
8268 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
8269
8270         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
8271         move handling.
8272         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
8273         are now handled correctly.
8274
8275 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
8276
8277         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
8278         handling of CALLER_SAVE_REGS and POINTER_REGS.
8279
8280 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
8281
8282         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
8283         the number of hard registers.
8284
8285 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8286             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8287             Anna Tikhonova  <anna.tikhonova@intel.com>
8288             Ilya Tocar  <ilya.tocar@intel.com>
8289             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8290             Ilya Verbin  <ilya.verbin@intel.com>
8291             Kirill Yukhin  <kirill.yukhin@intel.com>
8292             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8293
8294         * config/i386/sse.md
8295         (define_mode_iterator VI48_AVX512VL): New.
8296         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
8297         "avx512f_vternlog<mode>_maskz" and update mode iterator.
8298         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
8299         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
8300         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
8301         "avx512f_vternlog<mode>_mask" and update mode iterator.
8302         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
8303         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
8304         iterator.
8305         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
8306         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
8307         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
8308         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
8309         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
8310         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
8311
8312 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8313             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8314             Anna Tikhonova  <anna.tikhonova@intel.com>
8315             Ilya Tocar  <ilya.tocar@intel.com>
8316             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8317             Ilya Verbin  <ilya.verbin@intel.com>
8318             Kirill Yukhin  <kirill.yukhin@intel.com>
8319             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8320
8321         * config/i386/sse.md (VI128_256): Delete.
8322         (define_mode_iterator VI124_256): New.
8323         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
8324         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
8325         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
8326         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
8327         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
8328         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
8329         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
8330         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
8331         iterator.
8332         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
8333         in presence of AVX-512.
8334
8335 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8336             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8337             Anna Tikhonova  <anna.tikhonova@intel.com>
8338             Ilya Tocar  <ilya.tocar@intel.com>
8339             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8340             Ilya Verbin  <ilya.verbin@intel.com>
8341             Kirill Yukhin  <kirill.yukhin@intel.com>
8342             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8343
8344         * config/i386/sse.md
8345         (define_expand "<avx512>_gathersi<mode>"): Rename from
8346         "avx512f_gathersi<mode>".
8347         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
8348         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
8349         (define_expand "<avx512>_gatherdi<mode>"): Rename from
8350         "avx512f_gatherdi<mode>".
8351         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
8352         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
8353         wide versions.
8354         (define_expand "<avx512>_scattersi<mode>"): Rename from
8355         "avx512f_scattersi<mode>".
8356         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
8357         (define_expand "<avx512>_scatterdi<mode>"): Rename from
8358         "avx512f_scatterdi<mode>".
8359         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
8360
8361 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
8362
8363         * ira.h (ira_finish_once): Delete.
8364         * ira-int.h (target_ira_int::~target_ira_int): Declare.
8365         (target_ira_int::free_ira_costs): Likewise.
8366         (target_ira_int::free_register_move_costs): Likewise.
8367         (ira_finish_costs_once): Delete.
8368         * ira.c (free_register_move_costs): Replace with...
8369         (target_ira_int::free_register_move_costs): ...this new function.
8370         (target_ira_int::~target_ira_int): Define.
8371         (ira_init): Call free_register_move_costs as a member function rather
8372         than a global function.
8373         (ira_finish_once): Delete.
8374         * ira-costs.c (free_ira_costs): Replace with...
8375         (target_ira_int::free_ira_costs): ...this new function.
8376         (ira_init_costs): Call free_ira_costs as a member function rather
8377         than a global function.
8378         (ira_finish_costs_once): Delete.
8379         * target-globals.c (target_globals::~target_globals): Call the
8380         target_ira_int destructor.
8381         * toplev.c: Include lra.h.
8382         (finalize): Call lra_finish_once rather than ira_finish_once.
8383
8384 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
8385
8386         * common.opt (flto-odr-type-merging): New flag.
8387         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
8388         (types_same_for_odr): Likewise.
8389         (odr_subtypes_equivalent_p): Likewise.
8390         (add_type_duplicate): Do not walk type variants.
8391         (register_odr_type): New function.
8392         * ipa-utils.h (register_odr_type): Declare.
8393         (odr_type_p): New function.
8394         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
8395         TYPE_DECLs
8396         * doc/invoke.texi (-flto-odr-type-merging): Document.
8397         * tree.c (need_assembler_name_p): Compute ODR names when asked
8398         for it.
8399         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
8400
8401 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
8402
8403         PR target/63228
8404         * config/i386/i386.c (ix86_option_override_internal): Also turn
8405         off OPTION_MASK_ABI_X32 for -m16.
8406
8407 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
8408
8409         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
8410         GPR instead of P.
8411
8412 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
8413
8414         PR target/58757
8415         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
8416         Directly forward to __*_DENORM_MIN__.
8417
8418 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
8419
8420         * rtl.h (LABEL_REF_LABEL): New macro.
8421
8422         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
8423         of XEXP (, 0), where we know that we have a LABEL_REF.
8424         * cfgbuild.c (make_edges): Likewise.
8425         (purge_dead_tablejump_edges): Likewise.
8426         * cfgexpand.c (convert_debug_memory_address): Likewise.
8427         * cfgrtl.c (patch_jump_insn): Likewise.
8428         * combine.c (distribute_notes): Likewise.
8429         * cse.c (hash_rtx_cb): Likewise.
8430         (exp_equiv_p): Likewise.
8431         (fold_rtx): Likewise.
8432         (check_for_label_ref): Likewise.
8433         * cselib.c (rtx_equal_for_cselib_1): Likewise.
8434         (cselib_hash_rtx): Likewise.
8435         * emit-rtl.c (mark_label_nuses): Likewise.
8436         * explow.c (convert_memory_address_addr_space): Likewise.
8437         * final.c (output_asm_label): Likewise.
8438         (output_addr_const): Likewise.
8439         * gcse.c (add_label_notes): Likewise.
8440         * genconfig.c (walk_insn_part): Likewise.
8441         * genrecog.c (validate_pattern): Likewise.
8442         * ifcvt.c (cond_exec_get_condition): Likewise.
8443         (noce_emit_store_flag): Likewise.
8444         (noce_get_alt_condition): Likewise.
8445         (noce_get_condition): Likewise.
8446         * jump.c (maybe_propagate_label_ref): Likewise.
8447         (mark_jump_label_1): Likewise.
8448         (redirect_exp_1): Likewise.
8449         (rtx_renumbered_equal_p): Likewise.
8450         * lra-constraints.c (operands_match_p): Likewise.
8451         * reload.c (operands_match_p): Likewise.
8452         (find_reloads): Likewise.
8453         * reload1.c (set_label_offsets): Likewise.
8454         * reorg.c (get_branch_condition): Likewise.
8455         * rtl.c (rtx_equal_p_cb): Likewise.
8456         (rtx_equal_p): Likewise.
8457         * rtlanal.c (reg_mentioned_p): Likewise.
8458         (rtx_referenced_p): Likewise.
8459         (get_condition): Likewise.
8460         * sched-vis.c (print_value): Likewise.
8461         * varasm.c (const_hash_1): Likewise.
8462         (compare_constant): Likewise.
8463         (const_rtx_hash_1): Likewise.
8464         (output_constant_pool_1): Likewise.
8465
8466 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
8467
8468         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
8469         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
8470         instead of minus.
8471         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
8472         cr6_test_for_lt_reverse): Ditto.
8473
8474 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
8475
8476         PR c++/61489
8477         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
8478
8479 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
8480
8481         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
8482         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
8483         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
8484         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
8485         Delete.
8486
8487         (aarch64_fold_builtin): Remove all reinterpret cases.
8488
8489         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
8490
8491         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
8492
8493         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
8494         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
8495         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
8496         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
8497         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
8498         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
8499         aarch64_reinterpretv2df<mode>): Delete.
8500
8501         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
8502
8503         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
8504         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
8505         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
8506         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
8507         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
8508         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
8509         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
8510         vreinterpret_u32_f64): Use cast.
8511
8512         * config/aarch64/iterators.md (VD_RE): Delete.
8513
8514 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
8515
8516         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
8517         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
8518         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
8519         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
8520         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
8521         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
8522         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
8523         Replace inline assembler with __aarch64_vset_lane_any.
8524
8525 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
8526
8527         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
8528         types.
8529         (vmull_high_lane_s32): Likewise.
8530         (vmull_high_lane_u16): Likewise.
8531         (vmull_high_lane_u32): Likewise.
8532
8533 2014-09-11  Jason Merrill  <jason@redhat.com>
8534
8535         PR c++/58678
8536         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
8537
8538 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
8539
8540         PR target/63223
8541         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
8542         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
8543         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
8544
8545 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8546             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8547             Anna Tikhonova  <anna.tikhonova@intel.com>
8548             Ilya Tocar  <ilya.tocar@intel.com>
8549             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8550             Ilya Verbin  <ilya.verbin@intel.com>
8551             Kirill Yukhin  <kirill.yukhin@intel.com>
8552             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8553
8554         * config/i386/sse.md
8555         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
8556         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
8557         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
8558         New.
8559         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
8560         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
8561         iterator.
8562         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
8563         New.
8564         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
8565         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
8566         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
8567         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
8568         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
8569         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
8570         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
8571         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
8572         iterator.
8573         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
8574         New.
8575         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
8576         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
8577         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
8578
8579 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
8580
8581         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
8582         to access removed nodes.
8583
8584 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
8585
8586         PR tree-optimization/63186
8587         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
8588         (mark_nonssa_use): Likewise.
8589         (verify_non_ssa_vars): Verify all header blocks for label
8590         definitions.
8591
8592 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8593             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8594             Anna Tikhonova  <anna.tikhonova@intel.com>
8595             Ilya Tocar  <ilya.tocar@intel.com>
8596             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8597             Ilya Verbin  <ilya.verbin@intel.com>
8598             Kirill Yukhin  <kirill.yukhin@intel.com>
8599             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8600
8601         * config/i386/sse.md
8602         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
8603         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
8604         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
8605         "<avx2_avx512f>_permvar<mode><mask_name>".
8606         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
8607         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
8608         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
8609         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
8610         Ditto.
8611         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
8612         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
8613         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
8614         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
8615
8616 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
8617
8618         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
8619         V2DF, V4SF, DF, and DI modes.
8620         (vsx_fmav2df2): Likewise.
8621         (vsx_float_fix_<mode>2): Likewise.
8622         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
8623
8624 2014-09-10  Xinliang David Li  <davidxl@google.com>
8625
8626         PR target/63209
8627         * config/arm/arm.md (movcond_addsi): Handle case where source
8628         and target operands are the same.
8629
8630 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
8631
8632         * final.c (this_is_asm_operands): Strengthen this variable from
8633         rtx to const rtx_insn *.
8634         * output.h (this_is_asm_operands): Likewise.
8635         * rtl-error.c (location_for_asm): Strengthen param "insn" from
8636         const_rtx to const rtx_insn *.
8637         (diagnostic_for_asm): Likewise.
8638         * rtl-error.h (error_for_asm): Likewise.
8639         (warning_for_asm): Likewise.
8640
8641 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
8642
8643         * genextract.c (print_header): When writing out insn_extract to
8644         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
8645         * recog.h (insn_extract): Strengthen the param from rtx to
8646         rtx_insn *.
8647
8648 2014-09-10  Mike Stump  <mikestump@comcast.net>
8649
8650         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
8651         8.6.1.
8652
8653 2014-09-10  Martin Jambor  <mjambor@suse.cz>
8654
8655         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
8656         (analyze): Do not set analyze flag if expand_thunk returns false;.
8657         (create_wrapper): Likewise.
8658         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
8659
8660 2014-09-10  Martin Jambor  <mjambor@suse.cz>
8661
8662         PR ipa/61654
8663         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
8664         new decl properly.  Analyze the new thunk if it is expanded.
8665
8666 2014-09-10  Andreas Schwab  <schwab@suse.de>
8667
8668         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
8669         [USED_FOR_TARGET]: Define.
8670
8671 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
8672
8673         * config/mips/mips.c (mips_secondary_reload_class): Handle
8674         regno < 0 case.
8675
8676 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
8677
8678         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
8679         assignment.
8680
8681 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
8682
8683         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
8684         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
8685         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
8686         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
8687         flag_delete_null_pointer_checks for them.
8688         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
8689         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
8690         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
8691         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
8692         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
8693         stmt's iterator.
8694         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
8695         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
8696         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
8697         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
8698         * doc/invoke.texi (-fsanitize=nonnull-attribute,
8699         -fsanitize=returns-nonnull-attribute): Document.
8700
8701         * ubsan.h (struct ubsan_mismatch_data): Removed.
8702         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
8703         * ubsan.c (ubsan_source_location): For unknown locations,
8704         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
8705         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
8706         Allow more than one location and arbitrary extra arguments passed
8707         in ... instead of through MISMATCH pointer.
8708         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
8709         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
8710         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
8711         callers.
8712
8713 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8714             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8715             Anna Tikhonova  <anna.tikhonova@intel.com>
8716             Ilya Tocar  <ilya.tocar@intel.com>
8717             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8718             Ilya Verbin  <ilya.verbin@intel.com>
8719             Kirill Yukhin  <kirill.yukhin@intel.com>
8720             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8721
8722         * config/i386/sse.md
8723         (define_mode_iterator VI48F): New.
8724         (define_insn "<avx512>_compress<mode>_mask"): Rename from
8725         "avx512f_compress<mode>_mask" and update mode iterator.
8726         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
8727         "avx512f_compressstore<mode>_mask" and update mode iterator.
8728         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
8729         "avx512f_expand<mode>_maskz" and update mode iterator.
8730         (define_insn "<avx512>_expand<mode>_mask"): Rename from
8731         "avx512f_expand<mode>_mask" and update mode iterator.
8732
8733 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8734             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8735             Anna Tikhonova  <anna.tikhonova@intel.com>
8736             Ilya Tocar  <ilya.tocar@intel.com>
8737             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8738             Ilya Verbin  <ilya.verbin@intel.com>
8739             Kirill Yukhin  <kirill.yukhin@intel.com>
8740             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8741
8742         * config/i386/i386.c
8743         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
8744         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
8745         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
8746         avx512dq_rangepv4sf_mask.
8747         * config/i386/sse.md
8748         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
8749         UNSPEC_RANGE.
8750         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
8751         (define_insn "reduces<mode>"): Ditto.
8752         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
8753         Ditto.
8754         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
8755         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
8756         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
8757
8758 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8759             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8760             Anna Tikhonova  <anna.tikhonova@intel.com>
8761             Ilya Tocar  <ilya.tocar@intel.com>
8762             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8763             Ilya Verbin  <ilya.verbin@intel.com>
8764             Kirill Yukhin  <kirill.yukhin@intel.com>
8765             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8766
8767         * config/i386/i386.c
8768         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
8769         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
8770         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
8771         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
8772         avx512vl_getmantv2df_mask.
8773         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
8774         avx512f_vgetmantv4sf_round.
8775         * config/i386/sse.md
8776         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
8777         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
8778         mode iterator.
8779         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
8780         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
8781         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
8782         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
8783         iterator..
8784         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
8785         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
8786         update mode iterator.
8787         (define_expand
8788         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
8789         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
8790         mode iterator.
8791         (define_insn
8792         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
8793         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
8794         update mode iterator.
8795         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
8796         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
8797         iterator..
8798         (define_insn
8799         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
8800         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
8801         mode iterator..
8802         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
8803         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
8804         update mode iterator.
8805         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
8806         "avx512f_getmant<mode><round_saeonly_name>".
8807
8808 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
8809
8810         PR ipa/63166
8811         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
8812
8813 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8814             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8815             Anna Tikhonova  <anna.tikhonova@intel.com>
8816             Ilya Tocar  <ilya.tocar@intel.com>
8817             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8818             Ilya Verbin  <ilya.verbin@intel.com>
8819             Kirill Yukhin  <kirill.yukhin@intel.com>
8820             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8821
8822         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
8823         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
8824         (define_mode_iterator FMAMODE_AVX512): New.
8825         (define_mode_iterator FMAMODE): Remove conditions.
8826         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
8827         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
8828         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
8829         mode iterator.
8830         (define_mode_iterator FMAMODE_NOVF512): Remove.
8831         (define_insn "*fma_fmadd_<mode>"): Rename from
8832         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
8833         FMAMODE mode iterator.
8834         (define_mode_iterator VF_SF_AVX512VL): New.
8835         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
8836         Use VF_SF_AVX512VL mode iterator.
8837         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
8838         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
8839         iterator.
8840         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
8841         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
8842         iterator.
8843         (define_insn "*fma_fmsub_<mode>"): Rename from
8844         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
8845         FMAMODE mode iterator.
8846         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
8847         Use VF_SF_AVX512VL mode iterator.
8848         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
8849         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
8850         iterator.
8851         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
8852         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
8853         iterator.
8854         (define_insn "*fma_fnmadd_<mode>"): Rename from
8855         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
8856         use FMAMODE mode iterator.
8857         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
8858         Use VF_SF_AVX512VL mode iterator.
8859         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
8860         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
8861         iterator.
8862         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
8863         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
8864         iterator.
8865         (define_insn "*fma_fnmsub_<mode>"): Rename from
8866         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
8867         FMAMODE mode iterator.
8868         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
8869         Use VF_SF_AVX512VL mode iterator.
8870         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
8871         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
8872         iterator.
8873         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
8874         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
8875         iterator.
8876         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
8877         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
8878         use VF_AVX512VL mode iterator.
8879         (define_insn "*fma_fmaddsub_<mode>"): Rename from
8880         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
8881         remove subst usage.
8882         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
8883         Use VF_SF_AVX512VL mode iterator.
8884         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
8885         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
8886         iterator.
8887         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
8888         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
8889         iterator.
8890         (define_insn "*fma_fmsubadd_<mode>"): Rename from
8891         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
8892         remove usage of subst.
8893         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
8894         Use VF_SF_AVX512VL mode iterator.
8895         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
8896         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
8897         iterator.
8898         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
8899         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
8900         iterator.
8901
8902 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
8903
8904         Revert r213751:
8905         * calls.c (precompute_arguments): Check
8906          promoted_for_signed_and_unsigned_p and set the promoted mode.
8907         (promoted_for_signed_and_unsigned_p): New function.
8908         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
8909         and set the promoted mode.
8910         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
8911         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
8912         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
8913
8914 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8915
8916         * opth-gen.awk: Generate mapping from cpp message reasons to the
8917         options that enable them.
8918         * doc/options.texi (CppReason): Document.
8919
8920 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8921
8922         * doc/invoke.texi (Wnormalized=): Update.
8923
8924 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
8925
8926         PR target/63195
8927         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
8928         operands.  Split off the constant operand alternative to ...
8929         (*bool<mode>3_imm): New.
8930
8931 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
8932
8933         * rtl.h (single_set_2): Strengthen first param from const_rtx to
8934         const rtx_insn *, and move prototype to above...
8935         (single_set): ...this.  Convert this from a macro to an inline
8936         function, enforcing the requirement that the param is a const
8937         rtx_insn *.
8938         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
8939
8940         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
8941         Strengthen both params from rtx to rtx_insn *.
8942         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
8943         Likewise; introduce locals "producer_set", "consumer_set", using
8944         them in place of "producer" and "consumer" when dealing with SET
8945         rather than insn.
8946         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
8947         when invoking single_set in region guarded by INSN_P.
8948         (avr_out_bitop): Likewise.
8949         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
8950         region guarded by GET_CODE check, using methods to strengthen
8951         local "this_insn" from rtx to rtx_insn *, and for clarity.
8952         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
8953         Strengthen local "insn" from rtx to rtx_insn *.
8954         (define_insn_and_split "xload<mode>_A"): Likewise.
8955         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
8956         "insn".
8957         (find_load): Likewise for return type.
8958         (workaround_speculation): Likewise for both locals named
8959         "load_insn".
8960         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
8961         local "cc0_user".
8962         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
8963         for local "prev".
8964         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
8965         param 2.
8966         * config/h8300/h8300.c (notice_update_cc): Likewise.
8967         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
8968         "insn" and "dep_insn".
8969         (exact_store_load_dependency): Likewise for both params.
8970         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
8971         since this now clashes with inline function.  Instead, delay
8972         calling single_set until the point where its needed, and then
8973         assign the result to "compare_set" and rework the conditional that
8974         follows.
8975         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
8976         local "last" from rtx to rtx_insn *.
8977         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
8978         second param.
8979         (mips_store_data_bypass_p): Likewise for both params.
8980         * config/mips/mips.c (mips_load_store_insns): Likewise for second
8981         param.
8982         (mips_store_data_bypass_p): Likewise for both params.
8983         (mips_orphaned_high_part_p): Likewise for param "insn".
8984         * config/mn10300/mn10300.c (extract_bundle): Likewise.
8985         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
8986         Introduce local rtx "insn2_pat".
8987         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
8988         "ninsn".
8989         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
8990         Introduce local rtx "set", using it in place of "insn" for the
8991         result of single_set.  This appears to fix a bug, since the call
8992         to find_regno_note on a SET does nothing.
8993         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
8994         params from rtx to rtx_insn *.
8995         (set_to_load_agen): Likewise.
8996         * config/s390/s390.c (s390_label_align): Likewise for local
8997         "prev_insn".  Introduce new rtx locals "set" and "src", using
8998         them in place of "prev_insn" for the results of single_set
8999         and SET_SRC respectively.
9000         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
9001         Introduce new rtx local "set" using in place of "jump" for the
9002         result of single_set.  Use SET_SRC (set) rather than plain
9003         XEXP (set, 1).
9004         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
9005         rtx to rtx_insn *.
9006         (noncall_uses_reg): Likewise.
9007         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
9008         guarded by GET_CODE check, using its methods for clarity, and to
9009         enable strengthening local "this_insn" from rtx to rtx_insn *.
9010         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
9011         "insn" from rtx to rtx_insn *.
9012         (define_expand "umulhisi3"): Likewise.
9013         (define_expand "smulsi3_highpart"): Likewise.
9014         (define_expand "umulsi3_highpart"): Likewise.
9015         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
9016         local "after".  Replace GET_CODE check with a dyn_cast,
9017         introducing new local rtx_sequence * "seq", using insn method for
9018         typesafety.
9019
9020         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
9021         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
9022         place of "insn" once we're dealing with patterns rather than the
9023         input insn.
9024         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
9025         (scan_trace): Likewise for local "elt", updating lookups within
9026         sequence to use insn method rather than element method.
9027         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
9028         to rtx_insn *.
9029         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
9030         * ifcvt.c (noce_try_abs): Likewise for local "insn".
9031         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
9032         invoking single_set.
9033         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
9034         "insn" from rtx to rtx_insn *.
9035         (skip_usage_debug_insns): Likewise for return type, adding a
9036         checked cast.
9037         (check_secondary_memory_needed_p): Likewise for local "insn".
9038         (inherit_reload_reg): Likewise.
9039         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
9040         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
9041         checked casts.
9042         (store_data_bypass_p): Likewise for both params.
9043         (if_test_bypass_p): Likewise.
9044         * recog.h (store_data_bypass_p): Likewise for both params.
9045         (if_test_bypass_p): Likewise.
9046         * reload.c (find_equiv_reg): Likewise for local "where".
9047         * reorg.c (delete_jump): Likewise for param "insn".
9048         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
9049         to const rtx_insn *.
9050         * store-motion.c (replace_store_insn): Likewise for param "del".
9051         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
9052         and use its methods for clarity, and to strengthen local "del"
9053         from rtx to rtx_insn *.
9054         (build_store_vectors): Use insn method of "st" when calling
9055         replace_store_insn for typesafety and clarity.
9056
9057 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9058
9059         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
9060         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
9061         on how to make it legal in future.
9062
9063 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
9064
9065         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
9066         to rtx_insn *.
9067         (restinsn): Likewise.
9068         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
9069         Likewise for param.
9070         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
9071         Likewise.
9072         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
9073         first param.
9074         (arc_hazard): Likewise for both params.
9075         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
9076         checked casts to rtx_sequence * and uses of the insn method for
9077         type-safety.
9078         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
9079         (arc_adjust_insn_length): Likewise for param "insn".
9080         (struct insn_length_parameters_s): Likewise for first param of
9081         "get_variants" callback field.
9082         (arc_get_insn_variants): Likewise for first param and local
9083         "inner".  Replace a check of GET_CODE with a dyn_cast to
9084         rtx_sequence *, using methods for type-safety and clarity.
9085         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
9086         rtx_sequence * and uses of the insn method for type-safety when
9087         invoking arc_adjust_insn_length.
9088         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
9089         for param.
9090         (arm_address_offset_is_imm): Likewise.
9091         (struct tune_params): Likewise for params 1 and 3 of the
9092         "sched_adjust_cost" callback field.
9093         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
9094         params 1 and 3 ("insn" and "dep").
9095         (xscale_sched_adjust_cost): Likewise.
9096         (fa726te_sched_adjust_cost): Likewise.
9097         (cortexa7_older_only): Likewise for param "insn".
9098         (cortexa7_younger): Likewise.
9099         (arm_attr_length_move_neon): Likewise.
9100         (arm_address_offset_is_imm): Likewise.
9101         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
9102         * config/avr/avr.c (avr_notice_update_cc): Likewise.
9103         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
9104         (workaround_speculation): Likewise for local "last_condjump".
9105         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
9106         (shadow_or_blockage_p): Likewise.
9107         (get_unit_reqs): Likewise.
9108         (get_unit_operand_masks): Likewise.
9109         (c6x_registers_update): Likewise.
9110         (returning_call_p): Likewise.
9111         (can_use_callp): Likewise.
9112         (convert_to_callp): Likewise.
9113         (find_last_same_clock): Likwise for local "t".
9114         (reorg_split_calls): Likewise for local "shadow".
9115         (hwloop_pattern_reg): Likewise for param "insn".
9116         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
9117         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
9118         (frv_extract_membar): Likewise.
9119         (frv_optimize_membar_local): Strengthen param "last_membar" from
9120         rtx * to rtx_insn **.
9121         (frv_optimize_membar_global): Strengthen param "membar" from rtx
9122         to rtx_insn *.
9123         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
9124         to rtx_insn **.
9125         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
9126         both params from rtx to rtx_insn *.
9127         (ia64_ld_address_bypass_p): Likewise.
9128         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
9129         "insn".
9130         (ia64_safe_type): Likewise.
9131         (group_barrier_needed): Likewise.
9132         (safe_group_barrier_needed): Likewise.
9133         (ia64_single_set): Likewise.
9134         (is_load_p): Likewise.
9135         (record_memory_reference): Likewise.
9136         (get_mode_no_for_insn): Likewise.
9137         (important_for_bundling_p): Likewise.
9138         (unknown_for_bundling_p): Likewise.
9139         (ia64_st_address_bypass_p): Likewise for both params.
9140         (ia64_ld_address_bypass_p): Likewise.
9141         (expand_vselect): Introduce new local rtx_insn * "insn", using it
9142         in place of rtx "x" after the emit_insn call.
9143         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
9144         Strengthen param from rtx to rtx_insn *.
9145         (ix86_agi_dependent): Likewise for both params.
9146         (ix86_attr_length_immediate_default): Likewise for param 1.
9147         (ix86_attr_length_address_default): Likewise for param.
9148         (ix86_attr_length_vex_default): Likewise for param 1.
9149         * config/i386/i386.c (ix86_attr_length_immediate_default):
9150         Likewise for param "insn".
9151         (ix86_attr_length_address_default): Likewise.
9152         (ix86_attr_length_vex_default): Likewise.
9153         (ix86_agi_dependent): Likewise for both params.
9154         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
9155         (vselect_insn): Likewise for this variable.
9156         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
9157         for param 1.
9158         (m68k_sched_attr_opy_type): Likewise.
9159         * config/m68k/m68k.c (sched_get_operand): Likewise.
9160         (sched_attr_op_type): Likewise.
9161         (m68k_sched_attr_opx_type): Likewise.
9162         (m68k_sched_attr_opy_type): Likewise.
9163         (sched_get_reg_operand): Likewise.
9164         (sched_get_mem_operand): Likewise.
9165         (m68k_sched_address_bypass_p): Likewise for both params.
9166         (sched_get_indexed_address_scale): Likewise.
9167         (m68k_sched_indexed_address_bypass_p): Likewise.
9168         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
9169         (m68k_sched_indexed_address_bypass_p): Likewise.
9170         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
9171         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
9172         removing another.
9173         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
9174         params from rtx to rtx_insn *.
9175         (mips_fmadd_bypass): Likewise.
9176         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
9177         (mips_linked_madd_p): Likewise.
9178         (mips_macc_chains_last_hilo): Likewise for this variable.
9179         (mips_macc_chains_record): Likewise for param.
9180         (vr4130_last_insn): Likewise for this variable.
9181         (vr4130_swap_insns_p): Likewise for both params.
9182         (mips_ls2_variable_issue): Likewise for param.
9183         (mips_need_noat_wrapper_p): Likewise for param "insn".
9184         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
9185         in place of "x" after the emit_insn.
9186         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
9187         params from rtx to rtx_insn *.
9188         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
9189         (pa_combine_instructions): Introduce local "par" for result of
9190         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
9191         to make_insn_raw.
9192         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
9193         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
9194         (rl78_alloc_physical_registers_op1): Likewise.
9195         (rl78_alloc_physical_registers_op2): Likewise.
9196         (rl78_alloc_physical_registers_ro1): Likewise.
9197         (rl78_alloc_physical_registers_cmp): Likewise.
9198         (rl78_alloc_physical_registers_umul): Likewise.
9199         (rl78_alloc_address_registers_macax): Likewise.
9200         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
9201         * config/s390/predicates.md (execute_operation): Likewise for
9202         local "insn".
9203         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
9204         params.
9205         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
9206         (addr_generation_dependency_p): Likewise for param "insn".
9207         (s390_agen_dep_p): Likewise for both params.
9208         (s390_fpload_toreg): Likewise for param "insn".
9209         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
9210         * config/sh/sh.c (sh_loop_align): Likewise for param and local
9211         "next".
9212         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
9213         * config/sh/sh_treg_combine.cc
9214         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
9215         and local "i".
9216         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
9217         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
9218         "and_insn", "load", "shift".
9219         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
9220         "insn".
9221         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
9222         for XEXP (note, 0) of the REG_CC_SETTER note.
9223         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
9224         rtx_insn *, eliminating a checked cast made redundant by this.
9225         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
9226         to rtx_insn *.
9227         * genattr.c (main): When writing out the prototype to
9228         const_num_delay_slots, strengthen the param from rtx to
9229         rtx_insn *.
9230         * genattrtab.c (write_const_num_delay_slots): Likewise when
9231         writing out the implementation of const_num_delay_slots.
9232         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
9233         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
9234         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
9235         favor of new rtx locals "src" and "set" and new local rtx_insn *
9236         "insn" and "seq".
9237         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
9238         to rtx_insn *.
9239         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
9240         locals "cond", "if_then_else", "set" and new rtx_insn * locals
9241         "insn" and "seq".
9242         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
9243         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
9244         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
9245         the top-level scope, replacing with new more tightly-scoped rtx
9246         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
9247         "new_insn", "copy_of_insn_b", and make local rtx "set" more
9248         tightly-scoped.
9249         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
9250         rtx_insn *.
9251         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
9252         "move_insn".
9253         (ira_setup_alts): Likewise for param "insn".
9254         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
9255         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
9256         and an rtx_insn *.
9257         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
9258         new more-tightly scoped rtx locals "add3_insn", "insn",
9259         "add2_insn" and rtx_insn * "move_insn".
9260         * postreload-gcse.c (eliminate_partially_redundant_load): Add
9261         checked cast on result of gen_move_insn when invoking
9262         extract_insn.
9263         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
9264         rtx_insn *.
9265         (verify_changes): Add a checked cast on "object" when invoking
9266         insn_invalid_p.
9267         (extract_insn_cached): Strengthen param "insn" from rtx to
9268         rtx_insn *.
9269         (extract_constrain_insn_cached): Likewise.
9270         (extract_insn): Likewise.
9271         * recog.h (insn_invalid_p): Likewise for param 1.
9272         (recog_memoized): Likewise for param.
9273         (extract_insn): Likewise.
9274         (extract_constrain_insn_cached): Likewise.
9275         (extract_insn_cached): Likewise.
9276         * reload.c (can_reload_into): Likewise for local "test_insn".
9277         * reload.h (cleanup_subreg_operands): Likewise for param.
9278         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
9279         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
9280         result of emit_insn.  Remove a checked cast made redundant by this
9281         change.
9282         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
9283         rtx to rtx_insn *.
9284         * sel-sched.c (get_reg_class): Likewise.
9285
9286 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9287             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9288
9289         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
9290         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
9291         Define.
9292         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
9293
9294 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
9295
9296         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
9297         const rtx_insn *, and from rtx to rtx_insn * for the other
9298         overloaded variant.
9299         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
9300         INSN_LOCATION, since we know INSN_P holds.
9301         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
9302         (insn_file): Likewise.
9303         (insn_scope): Likewise.
9304         (insn_location): Likewise.
9305
9306         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
9307         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
9308         for the result of gen_load_const_gp.
9309         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
9310         param from rtx to rtx_insn *.
9311         * config/rs6000/rs6000.c (output_call): Likewise.
9312         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
9313         introducing a checked cast to rtx_sequence * and use of the insn
9314         method.
9315         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
9316         from rtx to rtx_insn *.
9317         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
9318         (insn_line): Likewise.
9319         (insn_file): Likewise.
9320         (insn_location): Likewise.
9321         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
9322         from rtx to rtx_insn *.
9323         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
9324         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
9325         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
9326         via a checked cast.
9327         * reorg.c (relax_delay_slots): Strengthen locals named "after"
9328         from rtx to rtx_insn *; use methods of "pat" for type-safety.
9329
9330 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
9331
9332         * combine.c (try_combine): Eliminate checked cast on result of
9333         gen_rtx_INSN.
9334         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
9335         autogenerated one by strengthening the return type and params 2 and 3
9336         from rtx to rtx_insn *, and by naming the params.
9337         * gengenrtl.c (special_rtx): Add INSN to those that are
9338         special-cased.
9339         * rtl.h (gen_rtx_INSN): New prototype.
9340
9341 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
9342
9343         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
9344         than NULL_RTX.
9345         (no_equiv): Likewise.
9346         (update_equiv_regs): Likewise.
9347         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
9348         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
9349         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
9350         clarity.
9351         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
9352         from rtx to rtx_insn_list *.
9353         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
9354         rtx_insn_list * and use methods for clarity and typesafety.
9355         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
9356         "list".
9357         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
9358         redundant check on INSN_P (insns): this cannot hold, as "insns" is
9359         an INSN_LIST, not an insn.
9360         (reverse_equiv_p): Strengthen local "insns" from rtx to
9361         rtx_insn_list * and use methods for clarity and typesafety.
9362         (contains_reloaded_insn_p): Likewise for local "list".
9363
9364 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
9365
9366         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
9367         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
9368         (arm_builtin_vectorized_function): Likewise.
9369         * config/arm/arm_neon_builtins.def: New macro for copysignf.
9370         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
9371
9372 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
9373
9374         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
9375         * builtins.h (default_target_builtins): Likewise.
9376         * gcse.h (default_target_gcse): Likewise.
9377         * target-globals.h (target_globals): Add a destructor.  Convert
9378         void-pointer fields back to their real type and change from
9379         GTY((atomic)) to GTY((skip)).
9380         (restore_target_globals): Remove casts accordingly.
9381         * target-globals.c (save_target_globals): Use XCNEW rather than
9382         ggc_internal_cleared_alloc to allocate non-GC structures.
9383         Use ggc_cleared_alloc to allocate the target_globals structure
9384         itself.
9385         (target_globals::~target_globals): Define.
9386
9387 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9388
9389         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
9390         mnemonic instead of fldmfdd.
9391         * config/arm/arm.c (vfp_output_fstmd): Rename to...
9392         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
9393         Output vpush when address register is SP.
9394         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
9395         (vfp_output_vstmd): ... This.
9396         * config/arm/vfp.md (push_multi_vfp): Update call to
9397         vfp_output_vstmd.
9398
9399 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9400
9401         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
9402
9403 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9404
9405         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
9406         (*sqrtdf2_vfp): Likewise.
9407         (*cmpsf_vfp): Likewise.
9408         (*cmpsf_trap_vfp): Likewise.
9409         (*cmpdf_vfp): Likewise.
9410         (*cmpdf_trap_vfp): Likewise.
9411
9412 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9413
9414         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
9415         (*truncdfsf2_vfp): Likewise.
9416         (*truncsisf2_vfp): Likewise.
9417         (*truncsidf2_vfp): Likewise.
9418         (fixuns_truncsfsi2): Likewise.
9419         (fixuns_truncdfsi2): Likewise.
9420         (*floatsisf2_vfp): Likewise.
9421         (*floatsidf2_vfp): Likewise.
9422         (floatunssisf2): Likewise.
9423         (floatunssidf2): Likewise.
9424
9425 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9426
9427         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
9428         (*muldf3_vfp): Likewise.
9429         (*mulsf3negsf_vfp): Likewise.
9430         (*muldf3negdf_vfp): Likewise.
9431         (*mulsf3addsf_vfp): Likewise.
9432         (*muldf3adddf_vfp): Likewise.
9433         (*mulsf3subsf_vfp): Likewise.
9434         (*muldf3subdf_vfp): Likewise.
9435         (*mulsf3negsfaddsf_vfp): Likewise.
9436         (*fmuldf3negdfadddf_vfp): Likewise.
9437         (*mulsf3negsfsubsf_vfp): Likewise.
9438         (*muldf3negdfsubdf_vfp): Likewise.
9439
9440 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9441
9442         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
9443         (*absdf2_vfp): Likewise.
9444         (*negsf2_vfp): Likewise.
9445         (*negdf2_vfp): Likewise.
9446         (*addsf3_vfp): Likewise.
9447         (*adddf3_vfp): Likewise.
9448         (*subsf3_vfp): Likewise.
9449         (*subdf3_vfp): Likewise.
9450         (*divsf3_vfp): Likewise.
9451         (*divdf3_vfp): Likewise.
9452
9453 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9454
9455         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
9456         multiple.
9457         (arm_print_operand): Don't convert real values to decimal
9458         representation in default case.
9459         (fp_immediate_constant): Delete.
9460         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
9461         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
9462         syntax.
9463         (*thumb2_movsi_vfp): Likewise.
9464         (*movdi_vfp): Likewise.
9465         (*movdi_vfp_cortexa8): Likewise.
9466         (*movhf_vfp_neon): Likewise.
9467         (*movhf_vfp): Likewise.
9468         (*movsf_vfp): Likewise.
9469         (*thumb2_movsf_vfp): Likewise.
9470         (*movdf_vfp): Likewise.
9471         (*thumb2_movdf_vfp): Likewise.
9472         (*movsfcc_vfp): Likewise.
9473         (*thumb2_movsfcc_vfp): Likewise.
9474         (*movdfcc_vfp): Likewise.
9475         (*thumb2_movdfcc_vfp): Likewise.
9476
9477 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
9478
9479         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
9480         (-mtune): Likewise.
9481         (-mcpu): Likewise.
9482
9483 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9484
9485         PR target/61749
9486         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
9487         Use qualifier_immediate for last operand.  Rename to...
9488         (aarch64_types_ternop_lane_qualifiers): ... This.
9489         (TYPES_QUADOP): Rename to...
9490         (TYPES_TERNOP_LANE): ... This.
9491         (aarch64_simd_expand_args): Return const0_rtx when encountering user
9492         error.  Change return of 0 to return of NULL_RTX.
9493         (aarch64_crc32_expand_builtin): Likewise.
9494         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
9495         ICE when expanding unknown builtin.
9496         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
9497         TERNOP_LANE qualifiers.
9498         (sqdmlsl_lane): Likewise.
9499         (sqdmlal_laneq): Likewise.
9500         (sqdmlsl_laneq): Likewise.
9501         (sqdmlal2_lane): Likewise.
9502         (sqdmlsl2_lane): Likewise.
9503         (sqdmlal2_laneq): Likewise.
9504         (sqdmlsl2_laneq): Likewise.
9505
9506 2014-09-09  Nick Clifton  <nickc@redhat.com>
9507
9508         * doc/invoke.texi (Optimization Options): Add missing @gol to the
9509         end of a line.
9510         (S/390 and zSeries Options): Remove superfluous word from the
9511         description of the -mhotpatch option.
9512
9513 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9514
9515         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
9516         * ira.c: #include "shrink-wrap.h"
9517         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
9518         * ifcvt.c: #include "shrink-wrap.h"
9519         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
9520
9521 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
9522
9523         * common/config/picochip/picochip-common.c: Remove.
9524         * config.gcc: Remove support for picochip.
9525         * config/picochip/constraints.md: Remove.
9526         * config/picochip/dfa_space.md: Remove.
9527         * config/picochip/dfa_speed.md: Remove.
9528         * config/picochip/picochip-protos.h: Remove.
9529         * config/picochip/picochip.c: Remove.
9530         * config/picochip/picochip.h: Remove.
9531         * config/picochip/picochip.md: Remove.
9532         * config/picochip/picochip.opt: Remove.
9533         * config/picochip/predicates.md: Remove.
9534         * config/picochip/t-picochip: Remove.
9535         * doc/md.texi: Don't document picochi.
9536
9537 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
9538
9539         * basic-block.h (control_flow_insn_p): Strengthen param from
9540         const_rtx to const rtx_insn *.
9541         * cfgbuild.c (control_flow_insn_p): Likewise.
9542
9543 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
9544
9545         * gcse.c (modify_mem_list): Strengthen this variable from
9546         vec<rtx> * to vec<rtx_insn *> *.
9547         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
9548         vec<rtx_insn *>.
9549         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
9550         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
9551         (record_last_mem_set_info): Strengthen param "insn" from rtx to
9552         rtx_insn *.
9553         (record_last_set_info): Likewise for local "last_set_insn".
9554
9555 2014-09-08  DJ Delorie  <dj@redhat.com>
9556
9557         * doc/invoke.texi (MSP430 Options): Add -minrt.
9558
9559 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9560
9561         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
9562         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
9563         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
9564         handling SH_SPLAT.
9565         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
9566         of extracted lane.
9567         (adjust_splat): New function.
9568         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
9569         (dump_swap_insn_table): Add case for SH_SPLAT.
9570
9571 2014-09-08  Richard Biener  <rguenther@suse.de>
9572
9573         PR ipa/63196
9574         * tree-inline.c (copy_loops): The source loop header should
9575         always be non-NULL.
9576         (tree_function_versioning): If loops need fixup after removing
9577         unreachable blocks fix them.
9578         * omp-low.c (simd_clone_adjust): Do not add incr block to
9579         loop under construction.
9580
9581 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
9582
9583         * config/aarch64/aarch64-builtins.c
9584         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
9585
9586 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
9587
9588         * config/i386/cygming.h (TF_SIZE): Remove.
9589         * config/i386/darwin.h (TF_SIZE): Remove.
9590         * config/i386/dragonfly.h (TF_SIZE): Remove.
9591         * config/i386/freebsd.h (TF_SIZE): Remove.
9592         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
9593         * config/i386/openbsdelf.h (TF_SIZE): Remove.
9594         * config/i386/sol2.h (TF_SIZE): Remove.
9595         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
9596         * config/ia64/linux.h (TF_SIZE): Remove.
9597         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
9598         * doc/tm.texi: Regenerate.
9599         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
9600
9601 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
9602
9603         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
9604         Remove.
9605         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
9606         Remove.
9607         * doc/tm.texi: Regenerate.
9608         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
9609         Poison.
9610         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
9611         * config/cris/cris.h (__make_dp): Remove.
9612
9613 2014-09-08  Richard Biener  <rguenther@suse.de>
9614
9615         PR bootstrap/63204
9616         * cfgloop.c (mark_loop_for_removal): Track former header
9617         unconditionally.
9618         * cfgloop.h (struct loop): Add former_header member unconditionally.
9619         * loop-init.c (fix_loop_structure): Enable bogus loop removal
9620         diagnostic unconditionally.
9621
9622 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
9623
9624         PR target/63190
9625         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
9626         constraint for operand0 and remove write only modifier from operand3.
9627
9628 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
9629
9630         PR rtl-optimization/62208
9631         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
9632         rather than const0_rtx in eq/ne-xor simplifications.
9633
9634 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
9635
9636         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
9637         (arc_output_mi_thunk): Likewise.
9638
9639         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
9640         arguments to silence bogus warning.
9641
9642 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
9643
9644         PR middle-end/63171
9645         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
9646
9647 2014-09-06  Tom de Vries  <tom@codesourcery.com>
9648
9649         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
9650         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
9651         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
9652
9653 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
9654
9655         PR target/63188
9656         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
9657         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
9658
9659 2014-09-05  Easwaran Raman  <eraman@google.com>
9660
9661         PR rtl-optimization/62146
9662         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
9663         hoisted instruction unconditional.
9664
9665 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
9666
9667         PR target/63187
9668         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
9669         Do not allow any_mask_operand for operands[2].
9670         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
9671
9672 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9673
9674         * config/arc/arc.c (arc_print_operand): Use insn method of
9675         final_sequence for type-safety.
9676         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
9677         "insn" from rtx to rtx_insn *.
9678         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
9679         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9680         Likewise for locals "branch", "label".
9681         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
9682         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
9683         (same_cmp_following_p): Likewise for locals "i2", "i3".
9684         * config/sh/sh_optimize_sett_clrt.cc
9685         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
9686         param "cbranch_insn".
9687         * function.c (convert_jumps_to_returns): Likewis for local "jump".
9688         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
9689         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
9690         const rtx_insn *.
9691         (condjump_p): Likewise.
9692         (condjump_in_parallel_p): Likewise.
9693         (pc_set): Likewise.
9694         (any_uncondjump_p): Likewise.
9695         (any_condjump_p): Likewise.
9696         (condjump_label): Likewise.
9697         (returnjump_p): Strengthen param "insn" from rtx to
9698         const rtx_insn *.
9699         (onlyjump_p): Strengthen param "insn" from const_rtx to
9700         const rtx_insn *.
9701         (jump_to_label_p): Likewise.
9702         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
9703         (invert_jump): Likewise.
9704         * reorg.c (simplejump_or_return_p): Add checked cast when calling
9705         simplejump_p.
9706         (get_jump_flags): Strengthen param "insn" from rtx to
9707         const rtx_insn *.
9708         (get_branch_condition): Likewise.
9709         (condition_dominates_p): Likewise.
9710         (make_return_insns): Move declaration of local "pat" earlier, to
9711         after we've handled NONJUMP_INSN_P and non-sequences, using its
9712         methods to simplify the code and for type-safety.
9713         * rtl.h (find_constant_src): Strengthen param from const_rtx to
9714         const rtx_insn *.
9715         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
9716         (condjump_p): Strengthen param from const_rtx to
9717         const rtx_insn *.
9718         (any_condjump_p): Likewise.
9719         (any_uncondjump_p): Likewise.
9720         (pc_set): Likewise.
9721         (condjump_label): Likewise.
9722         (simplejump_p): Likewise.
9723         (returnjump_p): Likewise.
9724         (onlyjump_p): Likewise.
9725         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
9726         (invert_jump): Likewise.
9727         (condjump_in_parallel_p): Strengthen param from const_rtx to
9728         const rtx_insn *.
9729         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
9730         to const rtx_insn *.
9731         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
9732         to const rtx_insn *.
9733         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
9734
9735 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9736
9737         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
9738         above the conditional, and convert the check on GET_CODE to a
9739         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
9740         the conditional.  Simplify the conditional by using methods of
9741         "trial_seq".
9742
9743 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9744
9745         * haifa-sched.c (check_clobbered_conditions): Strengthen local
9746         "link" from rtx to rtx_insn_list *, and use its methods for
9747         clarity and type-safety.
9748         (toggle_cancelled_flags): Likewise.
9749         (restore_last_backtrack_point): Likewise.
9750         (queue_to_ready): Use insn method of "link" in one place.
9751         (schedule_block): Strengthen local "link" from rtx to
9752         rtx_insn_list *, and use its methods for clarity and type-safety.
9753
9754 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9755
9756         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
9757         param "insn" from const_rtx to const rtx_insn *.
9758         (sched_get_reverse_condition_uncached): Likewise.
9759         (sched_get_condition_with_rev): Likewise.
9760         (sched_has_condition_p): Likewise.
9761         (sched_insns_conditions_mutex_p): Likewise for both params.
9762         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
9763         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
9764         (setup_insn_reg_uses): Move local "list" to be more tightly
9765         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
9766         its methods for clarity and type-safety.
9767         (sched_analyze_1): Strengthen local "pending" from rtx to
9768         rtx_insn_list *, and local "pending_mem" from rtx to
9769         rtx_expr_list *.  Use methods of each for clarity and type-safety.
9770         (sched_analyze_2): Likewise.
9771         (sched_analyze_insn): Likewise.
9772
9773         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
9774         param from const_rtx to const rtx_insn *.
9775         (sched_insns_conditions_mutex_p): Likewise for both params.
9776         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
9777         param.
9778
9779         * system.h (CONST_CAST_RTX_INSN): New macro.
9780
9781 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9782
9783         * recog.c (peep2_attempt): Strengthen return type from rtx to
9784         rtx_insn *.
9785         (peep2_update_life): Likewise for params "last", "prev", removing
9786         a checked cast made redundant by this.
9787         (peephole2_optimize): Likewise for local "last".
9788
9789 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9790
9791         * basic-block.h (set_block_for_insn): Eliminate this macro in
9792         favor of...
9793         * rtl.h (set_block_for_insn): New inline function, imposing the
9794         requirement that the "insn" param is an rtx_insn *.
9795
9796 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9797
9798         * caller-save.c (setup_save_areas): Strengthen local "insn" from
9799         rtx to rtx_insn *.
9800         * final.c (get_call_reg_set_usage): Likewise for first param,
9801         eliminating a checked cast.
9802         * regs.h (get_call_reg_set_usage): Likewise for first param.
9803         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
9804         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
9805         cast, replacing references to "x" with "call_insn" where
9806         appropriate.
9807         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
9808         rtx_insn *, adding a checked cast.
9809
9810 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9811
9812         * output.h (final_scan_insn): Strengthen first param from rtx to
9813         rtx_insn *.
9814
9815         * final.c (final_scan_insn): Likewise, renaming it back from
9816         "uncast_insn" to "insn", eliminating the checked cast.
9817
9818         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
9819         "vec" with an rtx_sequence * "seq", taking a copy of
9820         "final_sequence", and using methods of "seq" for clarity, and for
9821         type-safety in the calls to final_scan_insn.
9822         * config/mips/mips.c (mips_output_conditional_branch): Use methods
9823         of "final_sequence" for clarity, and for type-safety in the call to
9824         final_scan_insn.
9825         * config/sh/sh.c (print_slot): Strengthen param from rtx to
9826         rtx_sequence * and rename from "insn" to "seq".
9827
9828 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
9829
9830         * jump.c (delete_related_insns): Introduce a new local "table" by
9831         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
9832         get_labels method of "table" to simplify access to the labels in
9833         the jump table.
9834
9835 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9836
9837         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
9838         f_minmaxs, f_minmaxd types.
9839
9840 2014-09-05  Richard Biener  <rguenther@suse.de>
9841
9842         * cfgloop.c (mark_loop_for_removal): Record former header
9843         when ENABLE_CHECKING.
9844         * cfgloop.h (strut loop): Add former_header member when
9845         ENABLE_CHECKING.
9846         * loop-init.c (fix_loop_structure): Sanity check loops
9847         marked for removal if they re-appeared.
9848
9849 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9850
9851         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
9852         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
9853
9854         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
9855         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
9856         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
9857         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
9858         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
9859         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
9860         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
9861         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
9862         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
9863         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
9864         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
9865         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
9866         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
9867         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
9868         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
9869         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
9870         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
9871         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
9872         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
9873         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
9874         with int{32,16,8}_t.
9875
9876 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9877
9878         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
9879         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
9880         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
9881         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
9882         Remove temporary __asm__ and reimplement.
9883
9884 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9885
9886         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
9887         handling cmge, cmgt, cmeq, cmtst.
9888
9889         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
9890         cmlt, cmgeu, cmgtu, cmtst): Remove.
9891
9892         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
9893         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
9894         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
9895         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
9896
9897 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9898
9899         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
9900         TYPES_TST): Define.
9901         (aarch64_fold_builtin): Update pattern for cmtst.
9902
9903         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
9904         Declare.
9905
9906         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
9907
9908         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
9909         Switch operands, separate out more cases, refactor.
9910
9911         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
9912
9913         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
9914         argument; rename old version to...
9915         (aarch64_const_vec_all_same_in_range_p): ...this.
9916         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
9917
9918         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
9919
9920 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9921
9922         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9923         Remove qualifier_const_pointer, update comment.
9924
9925 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9926
9927         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
9928
9929 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9930
9931         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
9932         varargs with pointer parameter.
9933         (aarch64_simd_expand_builtin): pass pointer into previous.
9934
9935 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9936
9937         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
9938         alus_ext.
9939
9940 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
9941
9942         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
9943         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
9944         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
9945         Replace temporary asm with call to builtin.
9946         (vrbit_p8, vrbitq_p8): New functions.
9947
9948 2014-09-05  Richard Biener  <rguenther@suse.de>
9949
9950         * cfgloop.c (mark_loop_for_removal): New function.
9951         * cfgloop.h (mark_loop_for_removal): Declare.
9952         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
9953         (merge_blocks): Likewise.
9954         (duplicate_block): Likewise.
9955         * except.c (sjlj_emit_dispatch_table): Likewise.
9956         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
9957         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
9958         (thread_through_loop_header): Likewise.
9959
9960 2014-09-05  Richard Biener  <rguenther@suse.de>
9961
9962         PR middle-end/63148
9963         * fold-const.c (try_move_mult_to_index): Remove.
9964         (fold_binary_loc): Do not call it.
9965         * tree-data-ref.c (dr_analyze_indices): Strip conversions
9966         from the base object again.
9967
9968 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
9969
9970         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
9971         DImode.
9972
9973 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
9974
9975         PR target/55701
9976         * config/arm/arm.md (setmem): New pattern.
9977         * config/arm/arm-protos.h (struct tune_params): New fields.
9978         (arm_gen_setmem): New prototype.
9979         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9980         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9981         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9982         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9983         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9984         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9985         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9986         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9987         (arm_const_inline_cost): New function.
9988         (arm_block_set_max_insns): New function.
9989         (arm_block_set_non_vect_profit_p): New function.
9990         (arm_block_set_vect_profit_p): New function.
9991         (arm_block_set_unaligned_vect): New function.
9992         (arm_block_set_aligned_vect): New function.
9993         (arm_block_set_unaligned_non_vect): New function.
9994         (arm_block_set_aligned_non_vect): New function.
9995         (arm_block_set_vect, arm_gen_setmem): New functions.
9996
9997 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
9998
9999         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
10000
10001 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
10002
10003         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
10004
10005 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
10006
10007         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
10008         an rtx.
10009         * valtrack.h: Adjust.
10010
10011 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
10012
10013         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
10014         an rtx.
10015         (emit_jump_insn_before_noloc): Likewise.
10016         (emit_call_insn_before_noloc): Likewise.
10017         (emit_label_before): Likewise.
10018         (emit_label_after): Likewise.
10019         (emit_insn_before_setloc): Likewise.
10020         (emit_jump_insn_before_setloc): Likewise.
10021         (emit_call_insn_before_setloc): Likewise.
10022         (emit_call_insn_before): Likewise.
10023         * rtl.h: Adjust.
10024
10025 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
10026
10027         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
10028         rtx_insn *, eliminating a checked cast.
10029
10030 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
10031
10032         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
10033         const_rtx to const rtx_insn *.
10034         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
10035         cast.
10036
10037 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
10038
10039         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
10040         fixup_args_size_notes.
10041         * expr.c (fixup_args_size_notes): Strengthen first two params from
10042         rtx to rtx_insn *, eliminating a checked cast.
10043         * rtl.h (fixup_args_size_notes): Strengthen first two params from
10044         rtx to rtx_insn *.
10045
10046 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
10047
10048         * haifa-sched.c (get_ready_element): Strengthen return type from
10049         rtx to rtx_insn *.
10050         * sched-int.h (get_ready_element): Likewise.
10051
10052 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
10053
10054         PR target/63165
10055         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
10056         indexed_or_indirect_operand instead of memory_operand.
10057         (floatsi<mode>2_lfiwzx_mem): Ditto.
10058
10059 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
10060
10061         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
10062         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
10063         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
10064
10065 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
10066
10067         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
10068         rtx.
10069         (get_last_nonnote_insn): Likewise.
10070         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
10071         * resource.c (find_basic_block): Likewise.
10072         * rtl.h: Adjust.
10073         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
10074         const_rtx.
10075
10076 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
10077
10078         * genattr.c (main): Within the prototype of insn_latency written
10079         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
10080         * genautomata.c (output_internal_maximal_insn_latency_func):
10081         Within the implementation of insn_latency written out to
10082         insn-automata.c, strengthen both params from rtx to rtx_insn *,
10083         eliminating a pair of checked casts.
10084
10085 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
10086
10087         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
10088         rtx_insn *.
10089
10090         * rtl.h (eh_returnjump_p): Likewise.
10091
10092 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
10093
10094         * Makefile.in (TAGS): Handle constructs in timevar.def.
10095
10096 2014-09-04  Guozhi Wei  <carrot@google.com>
10097
10098         PR target/62040
10099         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
10100         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
10101         it into two patterns.
10102         (move_lo_quad_internal_be_<mode>): Likewise.
10103
10104 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10105
10106         * doc/options.texi: Document that Var and Init are required if CPP
10107         is given.
10108         * optc-gen.awk: Require Var and Init if CPP is given.
10109         * common.opt (Wpedantic): Use Init.
10110
10111 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10112
10113         * config/rs6000/rs6000.c (special_handling_values): Add
10114         SH_EXTRACT.
10115         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
10116         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
10117         as swappable with special handling SH_EXTRACT.  Remove
10118         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
10119         optimization.
10120         (adjust_extract): New function.
10121         (handle_special_swappables): Add default to case statement; add
10122         case for SH_EXTRACT that calls adjust_extract.
10123         (dump_swap_insn_table): Handle SH_EXTRACT.
10124
10125 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10126
10127         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
10128         selection of 0th memory doubleword, regardless of endianness.
10129
10130 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10131
10132         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
10133
10134 2014-09-04  Alan Modra  <amodra@gmail.com>
10135
10136         PR debug/60655
10137         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
10138         can't be output.
10139
10140 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
10141
10142         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
10143         * targhooks.c (default_dwarf_frame_reg_mode): New function.
10144         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
10145         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
10146         * doc/tm.texi: Regenerate.
10147         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
10148         selection logic to default_dwarf_frame_reg_mode.
10149
10150 2014-09-03  Marek Polacek  <polacek@redhat.com>
10151
10152         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
10153         by -Wall.
10154
10155 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
10156
10157         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
10158         the automodified register.
10159
10160 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
10161
10162         * output.h (get_some_local_dynamic_name): Declare.
10163         * final.c (some_local_dynamic_name): New variable.
10164         (get_some_local_dynamic_name): New function.
10165         (final_end_function): Clear some_local_dynamic_name.
10166         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
10167         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
10168         (print_operand): Report an error if '%&' is used inappropriately.
10169         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
10170         (get_some_local_dynamic_name_1): Delete.
10171         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
10172         (rs6000_get_some_local_dynamic_name): Delete.
10173         (rs6000_get_some_local_dynamic_name_1): Delete.
10174         (print_operand): Report an error if '%&' is used inappropriately.
10175         * config/s390/s390.c (machine_function): Remove some_ld_name.
10176         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
10177         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
10178         * config/sparc/sparc.c: Include rtl-iter.h.
10179         (machine_function): Remove some_ld_name.
10180         (sparc_print_operand): Report an error if '%&' is used inappropriately.
10181         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
10182
10183 2014-09-03  Richard Henderson  <rth@redhat.com>
10184
10185         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
10186         (aarch64_popwb_pair_reg): Remove.
10187         (aarch64_set_frame_expr): Remove.
10188         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
10189         the restore ops performed by the insns generated.
10190         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
10191         insn.  Perform the calls_eh_return addition later; do not attempt to
10192         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
10193         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
10194         special markup at all.  Load cfun->machine->frame.hard_fp_offset
10195         into a local variable.
10196         (aarch64_frame_pointer_required): Don't check calls_alloca.
10197
10198 2014-09-03  Richard Biener  <rguenther@suse.de>
10199
10200         * opts.c (default_options_optimization): Adjust
10201         max-combine-insns to 2 for -Og.
10202
10203 2014-09-03  Martin Jambor  <mjambor@suse.cz>
10204
10205         PR ipa/62015
10206         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
10207         pass-trough jump functions correctly.
10208
10209 2014-09-03  Martin Jambor  <mjambor@suse.cz>
10210
10211         PR ipa/61986
10212         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
10213         created replacements in ascending order of offsets.
10214         (known_aggs_to_agg_replacement_list): Likewise.
10215
10216 2014-09-03  Martin Liska  <mliska@suse.cz>
10217
10218         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
10219         is set to set uninitialized value for vnresult.
10220
10221 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10222
10223         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
10224         for TARGET_MUST_PASS_IN_STACK.
10225
10226 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10227
10228         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
10229         for TARGET_ARG_PARTIAL_BYTES.
10230
10231 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10232
10233         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
10234         instructions for varargs implementation.
10235         (nds32_expand_epilogue): Emit stack adjustment instructions for
10236         varargs implementation.
10237
10238 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10239
10240         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
10241         optimization detection.
10242
10243 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10244
10245         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
10246         arguments.
10247         (nds32_function_arg_advance): Deal with nameless arguments.
10248         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
10249         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
10250         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
10251
10252 2014-09-03  Richard Biener  <rguenther@suse.de>
10253
10254         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
10255         (struct bb_bitmap_sets): Remove deferred member.
10256         (BB_DEFERRED): Remove.
10257         (defer_or_phi_translate_block): Remove.
10258         (compute_antic_aux): Remove deferring of blocks, assert
10259         proper iteration order.
10260         (compute_antic): Do not set BB_DEFERRED.
10261         (eliminate): Allocate el_avail of proper size initially.
10262
10263 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10264
10265         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
10266         according to the value of crtl->args.pretend_args_size.
10267
10268 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10269
10270         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
10271         varargs information.
10272
10273 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10274
10275         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
10276         implementation for TARGET_SETUP_INCOMING_VARARGS.
10277         (nds32_strict_argument_naming): Refine comment.
10278         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
10279         Define for future implementation.
10280
10281 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
10282
10283         * config/i386/adxintrin.h (_subborrow_u32): New.
10284         (_addcarry_u32): Ditto.
10285         (_subborrow_u64): Ditto.
10286         (_addcarry_u64): Ditto.
10287         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
10288         IX86_BUILTIN_SBB64.
10289         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
10290         __builtin_ia32_sbb_u64
10291
10292 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10293
10294         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
10295         GPR-specific stuff.
10296         (nds32_function_arg_advance): Likewise.
10297         (nds32_init_cumulative_args): Likewise.
10298         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
10299         (NDS32_FIRST_GPR_REGNUM): Define.
10300         (NDS32_LAST_GPR_REGNUM): Define.
10301         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
10302         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
10303         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
10304         (machine_function): Use GRP-specific stuff.
10305
10306 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10307
10308         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
10309         (nds32_expand_epilogue): Likewise.
10310         (nds32_expand_prologue_v3push): Likewise.
10311         (nds32_expand_epilogue_v3pop): Likewise.
10312
10313 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10314
10315         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
10316         v3push/v3pop for variadic function.
10317         * config/nds32/nds32.md (prologue, epilogue): Likewise.
10318
10319 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10320
10321         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
10322         Check rtx for varargs implementation.
10323         (nds32_output_stack_pop): Likewise.
10324         * config/nds32/nds32-protos.h: Have a rtx argument for
10325         nds32_output_stack_push and nds32_output_stack_pop.
10326         * config/nds32/nds32.md: Likewise.
10327
10328 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10329
10330         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
10331         to check if FUNC is an interrupt service routine.
10332         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
10333
10334 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10335
10336         * config/nds32/nds32.h (machine_function): Add some fields for variadic
10337         arguments implementation.
10338
10339 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10340
10341         * config/nds32/nds32-predicates.c
10342         (nds32_valid_stack_push_pop): Rename to ...
10343         (nds32_valid_stack_push_pop_p): ... this.
10344         * config/nds32/nds32-protos.h: Likewise.
10345         * config/nds32/predicates.md: Likewise.
10346
10347 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10348
10349         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
10350         (nds32_emit_stack_v3push): ... this.
10351         (nds32_gen_stack_v3pop): Rename to ...
10352         (nds32_emit_stack_v3pop): ... this and consider CFA restore
10353         information.
10354
10355 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10356
10357         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
10358         (nds32_emit_stack_push_multiple): ... this.
10359         (nds32_gen_stack_pop_multiple): Rename to ...
10360         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
10361         information.
10362
10363 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10364
10365         PR target/61078
10366         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
10367         and add a second splitter to handle the remaining cases.
10368
10369 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
10370
10371         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
10372
10373 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
10374
10375         * cfgexpand.c (label_rtx_for_bb): Change type to
10376         hash_map<basic_block, rtx_code_label *> *.
10377         (expand_gimple_basic_block): Adjust.
10378         (pass_expand::execute): Likewise.
10379
10380 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
10381
10382         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
10383         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
10384         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
10385         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
10386         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
10387         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
10388         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
10389         of rtx.
10390
10391 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
10392
10393         * alloc-pool.c: Include coretypes.h.
10394         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
10395         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
10396         hash_set instead of htab.
10397         * ggc-page.c (in_gc): New variable.
10398         (ggc_free): Do nothing if a collection is taking place.
10399         (ggc_collect): Set in_gc appropriately.
10400         * ggc.h (gt_ggc_mx(const char *)): New function.
10401         (gt_pch_nx(const char *)): Likewise.
10402         (gt_ggc_mx(int)): Likewise.
10403         (gt_pch_nx(int)): Likewise.
10404         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
10405         (hash_map::hash_entry::pch_nx): Likewise.
10406         (hash_map::hash_entry::pch_nx_helper): Likewise.
10407 (hash_map::hash_map): Adjust.
10408 (hash_map::create_ggc): New function.
10409 (gt_ggc_mx): Likewise.
10410 (gt_pch_nx): Likewise.
10411         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
10412 (default_hashset_traits::pch_nx): Likewise.
10413 (hash_set::hash_entry::ggc_mx): Likewise.
10414 (hash_set::hash_entry::pch_nx): Likewise.
10415 (hash_set::hash_entry::pch_nx_helper): Likewise.
10416 (hash_set::hash_set): Adjust.
10417 (hash_set::create_ggc): New function.
10418 (hash_set::elements): Likewise.
10419 (gt_ggc_mx): Likewise.
10420 (gt_pch_nx): Likewise.
10421         * hash-table.h (hash_table::hash_table): Adjust.
10422 (hash_table::m_ggc): New member.
10423         (hash_table::~hash_table): Adjust.
10424         (hash_table::expand): Likewise.
10425         (hash_table::empty): Likewise.
10426 (gt_ggc_mx): New function.
10427         (hashtab_entry_note_pointers): Likewise.
10428 (gt_pch_nx): Likewise.
10429
10430 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10431
10432         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
10433         built-in definition.
10434         (XVCVUXDDP_SCALE): Likewise.
10435         (XVCVDPSXDS_SCALE): Likewise.
10436         (XVCVDPUXDS_SCALE): Likewise.
10437         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
10438         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
10439         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
10440         VSX_BUILTIN_XVCVDPUXDS_SCALE.
10441         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
10442         prototype.
10443         * config/rs6000/rs6000.c (real.h): New include.
10444         (rs6000_scale_v2df): New function.
10445         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
10446         (UNSPEC_VSX_XVCVUXDDP): Likewise.
10447         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
10448         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
10449         (vsx_xvcvsxddp_scale): New define_expand.
10450         (vsx_xvcvsxddp): New define_insn.
10451         (vsx_xvcvuxddp_scale): New define_expand.
10452         (vsx_xvcvuxddp): New define_insn.
10453         (vsx_xvcvdpsxds_scale): New define_expand.
10454         (vsx_xvcvdpsxds): New define_insn.
10455         (vsx_xvcvdpuxds_scale): New define_expand.
10456         (vsx_xvcvdpuxds): New define_insn.
10457         * doc/extend.texi (vec_ctf): Add new prototypes.
10458         (vec_cts): Likewise.
10459         (vec_ctu): Likewise.
10460         (vec_splat): Likewise.
10461         (vec_div): Likewise.
10462         (vec_mul): Likewise.
10463
10464 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10465
10466         PR target/62275
10467         * config/arm/neon.md
10468         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
10469         <v_cmp_result>): New pattern.
10470         * config/arm/iterators.md (NEON_VCVT): New int iterator.
10471         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
10472         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
10473         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
10474         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
10475         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
10476
10477 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10478
10479         PR target/62275
10480         * config/arm/iterators.md (FIXUORS): New code iterator.
10481         (VCVT): New int iterator.
10482         (su_optab): New code attribute.
10483         (su): Likewise.
10484         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
10485
10486 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10487
10488         * config/aarch64/predicates.md (aarch64_comparison_operation):
10489         New special predicate.
10490         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
10491         aarch64_comparison_operation instead of matching an operator.
10492         Update operand numbers.
10493         (csinc3<mode>_insn): Likewise.
10494         (*csinv3<mode>_insn): Likewise.
10495         (*csneg3<mode>_insn): Likewise.
10496         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
10497         * config/aarch64/aarch64.c (aarch64_get_condition_code):
10498         Return -1 instead of aborting on invalid condition codes.
10499         (aarch64_print_operand): Update aarch64_get_condition_code callsites
10500         to assert that the returned condition code is valid.
10501         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
10502
10503 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
10504
10505         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
10506         tree.def, and gimple.def
10507
10508 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
10509             Balaji V. Iyer  <balaji.v.iyer@intel.com>
10510             Igor Zamyatin  <igor.zamyatin@intel.com>
10511
10512         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
10513         (__cilkrts_cilk_for_64): Likewise.
10514         * cilk-common.c (declare_cilk_for_builtin): New function.
10515         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
10516         __cilkrts_cilk_for_64 bultins.
10517         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
10518         CILK_TI_F_LOOP_64.
10519         (cilk_for_32_fndecl): New define.
10520         (cilk_for_64_fndecl): Likewise.
10521         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
10522         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
10523         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
10524         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
10525         GF_OMP_FOR_COMBINED_INTO.
10526         * gimplify.c (gimplify_scan_omp_clauses): Added
10527         OMP_CLAUSE__CILK_FOR_COUNT_ case.
10528         (gimplify_adjust_omp_clauses): Ditto.
10529         (gimplify_omp_for): Added CILK_FOR case.
10530         (gimplify_expr): Ditto.
10531         * omp-low.c: Include cilk.h.
10532         (extract_omp_for_data): Set appropriate kind for
10533         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
10534         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
10535         (create_omp_child_function_name): Added second argument to handle
10536         cilk_for case.
10537         (cilk_for_check_loop_diff_type): New function.
10538         (expand_cilk_for_call): Likewise.
10539         (expand_cilk_for): Likewise.
10540         (create_omp_child_function): Set cilk_for_count; handle the cases when
10541         it is true; call create_omp_child_function_name with second argument.
10542         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
10543         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
10544         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
10545         * tree-nested.c (convert_nonlocal_omp_clauses): Added
10546         OMP_CLAUSE__CILK_FOR_COUNT_ case.
10547         (convert_local_omp_clauses): Ditto.
10548         * tree-pretty-print.c (dump_omp_clause): Added
10549         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
10550         (dump_generic_node): Added CILK_FOR case.
10551         * tree.c (omp_clause_num_ops): New element
10552         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
10553         (omp_clause_code_name): New element _Cilk_for_count_.
10554         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
10555         * tree.def: Add tree code for CILK_FOR.
10556
10557 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
10558
10559         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
10560         (ppc403-compare): Add "exts with dot" case.
10561         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
10562         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
10563         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
10564         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
10565         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
10566         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
10567         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
10568         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
10569         cell-cmp-microcoded): Similarly.
10570         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
10571         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
10572         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
10573         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
10574         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
10575         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
10576         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
10577         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
10578         (power6-compare): Add "exts with dot" case.
10579         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
10580         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
10581         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
10582
10583         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
10584         if avoiding Cell microcode.
10585         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
10586         (is_cracked_insn): Ditto.
10587         (insn_must_be_first_in_group): Ditto.
10588         * config/rs6000/rs6000.md (dot): Adjust comment.
10589         (cell_micro): Handle exts+dot.
10590         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
10591         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
10592         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
10593         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
10594         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
10595         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
10596         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
10597
10598 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
10599
10600         * config/rs6000/rs6000.md (QHSI): Delete.
10601         (EXTQI, EXTHI, EXTSI): New mode iterators.
10602         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
10603         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
10604         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
10605         9 anonymous instructions, and 8 splitters): Delete.
10606         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
10607         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
10608         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
10609         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
10610         *zero_extendsi<mode>2_dot2): New.
10611
10612 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
10613
10614         * config/rs6000/rs6000.md (any_extend): New code iterator.
10615         (u, su): New code attributes.
10616         (dmode, DMODE): New mode attributes.
10617         (<su>mul<mode>3_highpart): New.
10618         (*<su>mul<mode>3_highpart): New.
10619         (<su>mulsi3_highpart_le): New.
10620         (<su>muldi3_highpart_le): New.
10621         (<su>mulsi3_highpart_64): New.
10622         (<u>mul<mode><dmode>3): New.
10623         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
10624         splitters): Delete.
10625         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
10626         splitters): Delete.
10627
10628 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
10629
10630         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
10631         *mulsi3_internal2, and two splitters): Delete.
10632         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
10633         Delete.
10634         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
10635
10636 2014-09-02  Richard Biener  <rguenther@suse.de>
10637
10638         PR tree-optimization/62695
10639         * tree-ssa-structalias.c (find_func_clobbers): Add missing
10640         vector truncate.
10641
10642 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
10643
10644         PR target/62312
10645         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
10646
10647 2014-09-01  Andi Kleen  <ak@linux.intel.com>
10648
10649         * file-find.c (add_prefix_begin): Add.
10650         (do_add_prefix): Rename from add_prefix with first argument.
10651         (add_prefix): Add new wrapper.
10652         * file-find.h (add_prefix_begin): Add.
10653         * gcc-ar.c (main): Support -B option.
10654
10655 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
10656
10657         * genemit.c: Include dumpfile.h.
10658         (gen_split): Print name of splitter function to dump file.
10659
10660 2014-09-01  Richard Biener  <rguenther@suse.de>
10661
10662         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
10663         Use stack auto_vecs for constraint expressions.
10664         (find_func_aliases_for_call): Likewise.
10665         (find_func_aliases): Likewise.
10666         (find_func_clobbers): Likewise.
10667
10668 2014-09-01  Richard Biener  <rguenther@suse.de>
10669
10670         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
10671         operands vector in most cases.  Remove redundant code.
10672
10673 2014-09-01  Olivier Hainque  <hainque@adacore.com>
10674
10675         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
10676         $WIND_BASE instead of designating a harcoded arbitrary home dir.
10677         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
10678
10679 2014-09-01  Richard Biener  <rguenther@suse.de>
10680
10681         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
10682         copy_reference_ops_from_call, vn_nary_op_compute_hash,
10683         vn_reference_compute_hash, vn_reference_insert): Remove.
10684         (vn_reference_lookup_call): New function.
10685         * tree-ssa-sccvn.c (vn_reference_compute_hash,
10686         copy_reference_ops_from_ref, copy_reference_ops_from_call,
10687         vn_reference_insert, vn_nary_op_compute_hash): Make static.
10688         (create_reference_ops_from_call): Remove.
10689         (vn_reference_lookup_3): Properly update shared_lookup_references.
10690         (vn_reference_lookup_pieces): Assert that we updated
10691         shared_lookup_references properly.
10692         (vn_reference_lookup): Likewise.
10693         (vn_reference_lookup_call): New function.
10694         (visit_reference_op_call): Use it.  Avoid re-building the
10695         reference ops.
10696         (visit_reference_op_load): Remove redundant lookup.
10697         (visit_reference_op_store): Perform special tail-merging work
10698         only when possibly doing tail-merging.
10699         (visit_use): Likewise.
10700         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
10701
10702 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
10703
10704         PR target/62025
10705         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
10706         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
10707         (find_inc): Revert 2014-08-13 change.
10708
10709 2014-09-01  Marek Polacek  <polacek@redhat.com>
10710
10711         PR middle-end/61903
10712         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
10713         Change the type of V to unsigned HOST_WIDE_INT.
10714
10715 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10716
10717         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
10718         the size of byte markers.
10719         (do_shift_rotate): Fix confusion between host, target and marker byte
10720         size.
10721         (verify_symbolic_number_p): Likewise.
10722         (find_bswap_or_nop_1): Likewise.
10723         (find_bswap_or_nop): Likewise.
10724
10725 2014-09-01  Olivier Hainque  <hainque@adacore.com>
10726
10727         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
10728         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
10729
10730 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
10731
10732         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
10733         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
10734         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
10735
10736 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
10737
10738         PR sanitizer/61897
10739         PR sanitizer/62140
10740         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
10741         (build_check_stmt): Likewise.
10742         (instrument_strlen_call): Likewise.
10743         (asan_expand_check_ifn): Likewise and fix types.
10744         (maybe_cast_to_ptrmode): New function.
10745
10746 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10747
10748         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
10749
10750 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
10751
10752         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
10753
10754 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
10755
10756         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
10757         prefix to function labels when generating fast indirect calls.
10758
10759 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
10760
10761         PR bootstrap/62304
10762
10763         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
10764         param back from rtx_insn * to rtx.  Rename param from "label" to
10765         "label_or_return", reintroducing "label" as an rtx_insn * after
10766         we've ensured it's not a RETURN.
10767         (first_active_target_insn): Likewise for return type and param;
10768         add a checked cast to rtx_insn * once we've ensured "insn" is not
10769         a RETURN.
10770         (steal_delay_list_from_target): Convert param "pnew_thread" back
10771         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
10772         with JUMP_LABEL.
10773         (own_thread_p): Convert param "thread" back from an rtx_insn * to
10774         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
10775         cast once we've established we're not dealing with a RETURN,
10776         renaming subsequent uses of "thread" to "thread_insn".
10777         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
10778         to JUMP_LABEL.
10779         (follow_jumps): Convert return type and param "label" from
10780         rtx_insn * back to rtx.  Move initialization of "value" to after
10781         the handling for ANY_RETURN_P, adding a checked cast there to
10782         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
10783         rename to "this_label_or_return", reintroducing "this_label" as
10784         an rtx_insn * once we've handled the case where it could be an
10785         ANY_RETURN_P.
10786         (fill_slots_from_thread): Rename param "thread" to
10787         "thread_or_return", converting from an rtx_insn * back to an rtx.
10788         Reintroduce name "thread" as an rtx_insn * local with a checked
10789         cast once we've handled the case of it being an ANY_RETURN_P.
10790         Convert local "new_thread" from an rtx_insn * back to an rtx.
10791         Add a checked cast when assigning to "trial" from "new_thread".
10792         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
10793         checked cast to rtx_insn * from "new_thread" when invoking
10794         get_label_before.
10795         (fill_eager_delay_slots): Convert locals "target_label",
10796         "insn_at_target" from rtx_insn * back to rtx.
10797         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
10798         (relax_delay_slots): Convert locals "trial", "target_label" from
10799         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
10800         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
10801         invoking update_block.
10802         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
10803         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
10804
10805         * resource.h (mark_target_live_regs): Undo erroneous conversion
10806         of second param of r214693, converting it back from rtx_insn * to
10807         rtx, since it could be a RETURN.
10808
10809         * resource.c (find_dead_or_set_registers): Similarly, convert
10810         param "jump_target" back from an rtx_insn ** to an rtx *, as we
10811         could be writing back a RETURN.  Rename local rtx_insn * "next" to
10812         "next_insn", and introduce "lab_or_return" as a local rtx,
10813         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
10814         (mark_target_live_regs): Undo erroneous conversion
10815         of second param of r214693, converting it back from rtx_insn * to
10816         rtx, since it could be a RETURN.  Rename it from "target" to
10817         "target_maybe_return", reintroducing the name "target" as a local
10818         rtx_insn * with a checked cast, after we've handled the case of
10819         ANY_RETURN_P.
10820
10821 2014-08-29  DJ Delorie  <dj@redhat.com>
10822
10823         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
10824         pointer size up to a power of two.
10825         * defaults.h (DWARF2_ADDR_SIZE): Round up.
10826         (POINTER_SIZE_UNITS): New, rounded up value.
10827         * dwarf2asm.c (size_of_encoded_value): Use it.
10828         (dw2_output_indirect_constant_1): Likewise.
10829         * expmed.c (init_expmed_one_conv): We now know the sizes of
10830         partial int modes.
10831         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
10832         * optabs.c (expand_float): Use precision, not size.
10833         (expand_fix): Likewise.
10834         * simplify-rtx (simplify_unary_operation_1): Likewise.
10835         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10836         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
10837         (default_assemble_integer) Likewise.
10838         (dump_tm_clone_pairs): Likewise.
10839         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
10840         * var-tracking.c (adjust_mems): Allow partial-int modes also.
10841         (prepare_call_arguments): Likewise.
10842         * stor-layout.c (finalize_type_size): Preserve precision.
10843         (layout_type): Use precision, not size.
10844
10845         * expr.c (convert_move): If the target has an explicit converter,
10846         use it.
10847
10848 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
10849
10850         * gdbinit.in: Skip various inline functions in rtl.h when
10851         stepping.
10852
10853 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
10854
10855         PR bootstrap/62301
10856         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
10857
10858 2014-08-29  Richard Biener  <rguenther@suse.de>
10859
10860         PR tree-optimization/62291
10861         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
10862         exactly the vector size needed and use quick_push.
10863         (phi_translate_1): Adjust comment.
10864         (valid_in_sets): Remove block argument and remove pointless
10865         checking of NAMEs.
10866         (dependent_clean): Adjust for removal of block argument.
10867         (clean): Likewise.
10868         (compute_antic_aux): Likewise.
10869         (compute_partial_antic_aux): Likewise.
10870
10871 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10872             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10873             Anna Tikhonova  <anna.tikhonova@intel.com>
10874             Ilya Tocar  <ilya.tocar@intel.com>
10875             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10876             Ilya Verbin  <ilya.verbin@intel.com>
10877             Kirill Yukhin  <kirill.yukhin@intel.com>
10878             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10879
10880         * config/i386/sse.md
10881         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
10882         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
10883         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
10884         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
10885
10886 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10887             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10888             Anna Tikhonova  <anna.tikhonova@intel.com>
10889             Ilya Tocar  <ilya.tocar@intel.com>
10890             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10891             Ilya Verbin  <ilya.verbin@intel.com>
10892             Kirill Yukhin  <kirill.yukhin@intel.com>
10893             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10894
10895         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
10896         * config/i386/sse.md
10897         (define_mode_iterator VI4_128_8_256): New.
10898         (define_mode_iterator VI2_128_4_256): Ditto.
10899         (define_mode_iterator PMOV_DST_MODE): Rename into
10900         (define_mode_iterator PMOV_DST_MODE_1): this.
10901         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
10902         Use PMOV_DST_MODE_1 mode iterator.
10903         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
10904         Ditto.
10905         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
10906         Ditto.
10907         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
10908         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
10909         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
10910         (define_mode_iterator PMOV_DST_MODE_2): New.
10911         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
10912         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
10913         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
10914         Ditto.
10915         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
10916         (define_mode_attr pmov_dst_3): Ditto.
10917         (define_mode_attr pmov_dst_zeroed_3): Ditto.
10918         (define_mode_attr pmov_suff_3): Ditto.
10919         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
10920         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
10921         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
10922         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
10923         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
10924         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
10925         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
10926         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
10927         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
10928         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
10929         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
10930         (define_mode_attr pmov_dst_4): Ditto.
10931         (define_mode_attr pmov_dst_zeroed_4): Ditto.
10932         (define_mode_attr pmov_suff_4): Ditto.
10933         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
10934         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
10935         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
10936         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
10937         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
10938         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
10939         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
10940         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
10941         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
10942         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
10943         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
10944
10945 2014-08-29  Richard Biener  <rguenther@suse.de>
10946
10947         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
10948         NON_LVALUE_EXPR in gimple.
10949
10950 2014-08-29  Richard Biener  <rguenther@suse.de>
10951
10952         PR middle-end/62292
10953         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
10954         from previous refactoring.
10955         (gimple_fold_builtin_strncpy): Likewise.
10956
10957 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
10958
10959         PR bootstrap/62300
10960         * function.c (assign_parm_setup_reg): Remove erroneous checked
10961         cast to rtx_insn * on result of gen_extend_insn in favor of
10962         introducing a new local rtx "pat".
10963
10964 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
10965
10966         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
10967         to silence warning.
10968         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
10969
10970 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10971
10972         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
10973         (next_insn): Likewise.
10974         * emit-rtl.c (next_insn): Likewise.
10975         (previous_insn): Likewise.
10976         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
10977         "insn" and "next" from rtx to rtx_insn *.
10978         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
10979         "insn", "insn1", "vliw_start",  "prologue_end_note",
10980         "last_insn_in_packet".
10981
10982 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10983
10984         * shrink-wrap.h (active_insn_between): Strengthen both params from
10985         rtx to rtx_insn *.
10986         * function.c (active_insn_between): Likewise.
10987
10988 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10989
10990         * genattr.c (main): When writing out insn-attr.h, strengthen param
10991         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
10992         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
10993         writing out the definition of dfa_clear_single_insn_cache to the
10994         generated insn-automata.c
10995
10996 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
10997
10998         * resource.h (clear_hashed_info_for_insn): Strengthen param from
10999         rtx to rtx_insn *.
11000         (incr_ticks_for_insn): Likewise.
11001         (init_resource_info): Likewise.
11002
11003         * resource.c (init_resource_info): Likewise.
11004         (clear_hashed_info_for_insn): Likewise.
11005         (incr_ticks_for_insn): Likewise.
11006
11007         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
11008         rtx to rtx_insn *.
11009         (steal_delay_list_from_target): Use methods of "seq".
11010         (try_merge_delay_insns): Use methods of "merged_insns".
11011         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
11012         (reorg_redirect_jump): Likewise for param "jump".
11013
11014 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11015
11016         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
11017         rtx to rtx_insn *.
11018         * config/s390/s390.c (s390_split_branches): Eliminate top-level
11019         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
11020         "set_insn".
11021         (s390_mainpool_finish): In three places, split out a local rtx
11022         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
11023         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
11024         and split another local rtx "insn" out into rtx "pat" and
11025         rtx_insn * "insn".
11026         * config/sh/sh.c (output_branchy_insn): Rather than working
11027         directly on operands[9], introduce local rtx_code_label *
11028         variables named "lab" in two places, working on them, and then
11029         assigning them to operands[9], so that the intervening operations
11030         are known by the type system to be on insns.
11031
11032 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11033
11034         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
11035         const rtx_insn *.
11036
11037         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
11038         in invocation of INSN_HAS_LOCATION.
11039
11040 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11041
11042         * config/rs6000/altivec.h (vec_xl): New #define.
11043         (vec_xst): Likewise.
11044         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
11045         (XXSPLTD_V2DI): Likewise.
11046         (DIV_V2DI): Likewise.
11047         (UDIV_V2DI): Likewise.
11048         (MUL_V2DI): Likewise.
11049         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11050         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
11051         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
11052         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
11053         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
11054         (UNSPEC_VSX_DIVSD): Likewise.
11055         (UNSPEC_VSX_DIVUD): Likewise.
11056         (UNSPEC_VSX_MULSD): Likewise.
11057         (vsx_mul_v2di): New insn-and-split.
11058         (vsx_div_v2di): Likewise.
11059         (vsx_udiv_v2di): Likewise.
11060         (vsx_xxspltd_<mode>): New insn.
11061
11062 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11063
11064         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
11065         NEXT_INSN.
11066         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
11067         (NEXT_INSN): Likewise.
11068         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
11069         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
11070         const rtx_insn *.
11071         (no_labels_between_p): Likewise for both params.
11072
11073         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
11074         cast when using NEXT_INSN on operands[2].
11075         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
11076         "insn" from rtx to rtx_insn *, adding a checked cast.
11077         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
11078         rtx_insn *.
11079         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
11080         for third param.
11081         (arc_text_label): Likewise for param "insn".
11082         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
11083         "insn".
11084         (arc_ccfsm_record_condition): Likewise for param "jump".
11085         (arc_text_label): Likewise for local "label".
11086         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
11087         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
11088         a method for typesafety.  Add a checked cast.
11089         * config/arc/constraints.md (Clb): Add a checked cast when getting
11090         the CODE_LABEL from a LABEL_REF.
11091         * config/arm/arm.c (require_pic_register): Strengthen locals
11092         "seq", "insn" from rtx to rtx_insn *.
11093         (create_fix_barrier): Likewise for locals "selected", "next".
11094         (thumb1_reorg): Likewise for locals "prev", "insn".
11095         (arm_expand_prologue): Likewise for local "last".
11096         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
11097         operands[0].
11098         (thumb2_output_casesi): Likewise for operands[2].
11099         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
11100         strengthen local "insn" from rtx to rtx_insn *.
11101         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
11102         type and param "insn".
11103         (find_prev_insn_start): Likewise.
11104         (hwloop_optimize): Likewise for locals "insn", "last_insn",
11105         "prev".
11106         (gen_one_bundle): Likewise for loal "t".
11107         (find_load): Likewise for param "insn".
11108         (workaround_speculation): Likewise for locals "insn", "next",
11109         "target", "next_tgt".
11110         * config/c6x/c6x.c (assign_reservations): Likewise for both params
11111         and for locals "insn", "within", "last".
11112         (count_unit_reqs): Likewise for params "head", "tail" and local
11113         "insn".
11114         (try_rename_operands): Likewise for params "head", "tail".
11115         (reshuffle_units): Likewise for locals "head", "tail", "insn".
11116         (struct c6x_sched_context): Likewise for fields
11117         "last_scheduled_insn", "last_scheduled_iter0".
11118         (init_sched_state): Replace NULL_RTX with NULL.
11119         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
11120         to rtx_insn *.
11121         (undo_split_delayed_nonbranch): Likewise for param and for local
11122         "prev".
11123         (conditionalize_after_sched): Likewise for local "insn".
11124         (bb_earliest_end_cycle): Likewise.
11125         (filter_insns_above): Likewise for locals "insn", "next".
11126         (hwloop_optimize): Remove redundant checked cast.
11127         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
11128         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
11129         NULL_RTX with NULL.
11130         (cris_simple_epilogue): Likewise.
11131         (cris_expand_prologue): Likewise.
11132         (cris_expand_epilogue): Likewise.
11133         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
11134         local "insn" from rtx to rtx_insn *.
11135         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
11136         (struct frv_packet_group): Likewise for the elements within array
11137         fields "insns", "sorted", and for field "nop".
11138         (frv_packet): Likewise for the elements within array field
11139         "insns".
11140         (frv_add_insn_to_packet): Likewise for param "insn".
11141         (frv_insert_nop_in_packet): Likewise for param "insn" and local
11142         "last".
11143         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
11144         (frv_sort_insn_group_1): Likewise for local "insn".
11145         (frv_optimize_membar_local): Likewise.
11146         (frv_align_label): Likewise for locals "x", "last", "barrier",
11147         "label".
11148         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
11149         local.
11150         (ia64_sched_init): Likewise for local "insn".
11151         (scheduled_good_insn): Likewise for param "last".
11152         (struct _ia64_sched_context): Likewise for field
11153         "last_scheduled_insn".
11154         (ia64_init_sched_context): Replace NULL_RTX with NULL.
11155         (struct bundle_state): Likewise for field "insn".
11156         (issue_nops_and_insn): Likewise for param "insn".
11157         (get_next_important_insn): Likewise for return type and both
11158         params.
11159         (ia64_add_bundle_selector_before): Likewise for param "insn".
11160         (bundling): Likewise for params "prev_head_insn", "tail" and
11161         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
11162         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
11163         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
11164         Strengthen final param from rtx to rtx_insn *.
11165         (iq2000_move_1word): Likewise for second param.
11166         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
11167         param "cur_insn" and local "next_insn".
11168         (iq2000_move_1word): Likewise for param "insn".
11169         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
11170         casts when using NEXT_INSN on operands[1].
11171         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
11172         "insn" from rtx to rtx_insn *.
11173         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
11174         "x", introducing local rtx_insn * "insn" for when working with the
11175         CODE_LABEL of the LABEL_REF.
11176         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
11177         rtx_insn *.
11178         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
11179         param.
11180         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
11181         type.
11182         (conditionalize_block): Likewise for return type and param.
11183         (mcore_is_dead): Likewise for param "first" and local "insn".
11184         (emit_new_cond_insn): Likewise for return type.
11185         (conditionalize_block): Likewise for return type, param, and
11186         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
11187         "newinsn".
11188         (conditionalize_optimization): Likewise for local "insn".
11189         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
11190         using NEXT_INSN.
11191         * config/microblaze/microblaze.md: Add checked casts when using
11192         NEXT_INSN.
11193         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
11194         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
11195         and rtx_insn * "insn".
11196         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
11197         checked cast when using NEXT_INSN on operands[2].
11198         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
11199         local "insn" from rtx to rtx_insn *.
11200         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
11201         Likewise.
11202         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
11203         Add a checked cast when using NEXT_INSN on operands[1].
11204         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
11205         rtx to rtx_insn *.
11206         (pa_output_cbranch): Likewise for final param.
11207         (pa_output_lbranch): Likewise for second param.
11208         (pa_output_bb): Likewise for third param.
11209         (pa_output_bvb): Likewise.
11210         (pa_output_dbra): Likewise for second param.
11211         (pa_output_movb): Likewise.
11212         (pa_output_parallel_movb): Likewise.
11213         (pa_output_parallel_addb): Likewise.
11214         (pa_output_millicode_call): Likewise for first param.
11215         (pa_output_mul_insn): Likewise for second param.
11216         (pa_output_div_insn): Likewise for third param.
11217         (pa_output_mod_insn): Likewise for second param.
11218         (pa_jump_in_call_delay): Likewise for param.
11219         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
11220         (pa_output_div_insn): Likewise.
11221         (pa_output_mod_insn): Likewise.
11222         (pa_output_cbranch): Likewise.
11223         (pa_output_lbranch): Likewise.
11224         (pa_output_bb): Likewise.
11225         (pa_output_bvb): Likewise.
11226         (pa_output_dbra): Likewise.
11227         (pa_output_movb): Likewise.
11228         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
11229         to simplify and for typesafety.
11230         (pa_output_call): Use method of rtx_sequence *.
11231         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
11232         (pa_jump_in_call_delay): Likewise.
11233         (pa_output_parallel_movb): Likewise.
11234         (pa_output_parallel_addb): Likewise.
11235         (pa_following_call): Likewise.
11236         (pa_combine_instructions): Likewise for locals "anchor",
11237         "floater".
11238         (pa_can_combine_p): Likewise for params "anchor", "floater" and
11239         locals "start", "end".
11240         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
11241         param "insn" and local "local_insn".
11242         (picochip_final_prescan_insn): Likewise for local "local_insn".
11243         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
11244         local "insn".
11245         (uses_TOC): Likewise.
11246         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
11247         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
11248         splitting out to more tightly-scoped locals, 3 as rtx and one as
11249         rtx_insn *.
11250         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
11251         to rtx_insn *.
11252         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
11253         where needed.
11254         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
11255         to rtx_insn *.
11256         (fixup_addr_diff_vecs): Likewise.
11257         (reg_unused_after): Likewise for param 2.
11258         (sh_can_redirect_branch): Likewise for both params.
11259         (check_use_sfunc_addr): Likewise for param 1.
11260         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
11261         (find_barrier): Likewise for local "last_got".
11262         (gen_block_redirect): Likewise for return type, param "jump" and
11263         locals "prev", "scan", "next", "insn".
11264         (struct far_branch): Likewise for fields "near_label",
11265         "insert_place", "far_label".
11266         (gen_far_branch): Likewise for local "jump".
11267         (fixup_addr_diff_vecs): Likewise for param "first" and locals
11268         "insn", "prev".
11269         (barrier_align): Likewise for param and for locals "prev", "x".
11270         Introduce local rtx_sequence * "prev_seq" and use insn method for
11271         typesafety and clarity.
11272         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
11273         (get_dest_uid): Likewise for local "dest".
11274         (split_branches): Likewise for locals "next", "beyond", "label",
11275         "block", "far_label".  Add checked casts when assigning to
11276         bp->far_label and "far_label".
11277         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
11278         (sequence_insn_p): Likewise.
11279         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
11280         more loop-scoped rtx "insn" when walking LABEL_REFS.
11281         (sh_can_redirect_branch): Strengthen both params from rtx to
11282         rtx_insn *.
11283         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
11284         new local rtx_sequence * "seq" via a dyn_cast, and use a method
11285         for clarity and typesafety.
11286         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
11287         "insn" from rtx to rtx_insn *.
11288         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
11289         when using NEXT_INSN on the CODE_LABEL in operands[2].
11290         (define_insn "casesi_worker_2"): Likewise.
11291         (define_insn "casesi_shift_media"): Likewise.
11292         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
11293         operands[3].
11294         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
11295         Strengthen field "insn" from rtx to rtx_insn *.
11296         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
11297         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
11298         param "start_insn" and local "start_insn".
11299         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
11300         field "insn".
11301         (find_set_of_reg_bb): Likewise for param "insn".
11302         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
11303         (trace_reg_uses): Likewise for param "start_insn".
11304         (sh_treg_combine::cbranch_trace): Likewise for field
11305         "cbranch_insn".
11306         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
11307         param "insn".
11308         (sh_treg_combine::record_set_of_reg): Likewise for param
11309         "start_insn" and local "i".
11310         (sh_treg_combine::can_remove_cstore): Likewise for local
11311         "prev_insn".
11312         (sh_treg_combine::try_optimize_cbranch): Likewise for param
11313         "insn".
11314         (sh_treg_combine::execute): Likewise for local "i".
11315         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
11316         param.
11317         (sparc_check_64): Likewise for second param.
11318         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
11319         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
11320         dyn_cast, using its insn method for typesafety and clarity.
11321         (empty_delay_slot): Strengthen param "insn" from rtx to
11322         rtx_insn *.
11323         (set_extends): Likewise.
11324         (sparc_check_64): Likewise.
11325         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
11326         for locals "seq", "last_insn".
11327         (combine_bnp): Likewise for param "insn".
11328         (xstormy16_reorg): Likewise for local "insn".
11329         * config/v850/v850.c (substitute_ep_register): Likewise for params
11330         "first_insn", "last_insn" and local "insn".
11331         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
11332         elements of "regs" array, and local "insn".
11333         * except.c (emit_note_eh_region_end): Likewise for param "insn".
11334         * final.c (final_sequence): Strengthen this global from rtx to
11335         rtx_sequence *.
11336         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
11337         rtx_insn *.
11338         (final_scan_insn): Update assignment to "final_sequence" to be
11339         from "seq", the cast version of "body", for type-safety.
11340         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
11341         "insns" from rtx to rtx_insn *.
11342         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
11343         * genattr.c (main): When writing out generated insn-attr.h,
11344         strengthen params 1 and 3 of eligible_for_delay,
11345         eligible_for_annul_true, eligible_for_annul_false from rtx to
11346         rtx_insn *.
11347         * genattrtab.c (write_eligible_delay): Likewise when writing out
11348         generated insn-attrtab.c; also local "insn" the generated
11349         functions.
11350         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
11351         to rtx_insn *.
11352         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
11353         "start_label" from rtx to rtx_insn *.
11354         * ira.c (decrease_live_ranges_number): Likewise for local "p".
11355         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
11356         "insns" and local "insn".
11357         (validate_equiv_mem): Likewise for param "start" and local "insn".
11358         (memref_used_between_p): Likewise for params "start", "end" and
11359         local "insn".
11360         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
11361         final param.
11362         * loop-doloop.c (doloop_optimize): Within region guarded by
11363         INSN_P (doloop_pat), introduce a new local rtx_insn *
11364         "doloop_insn" via a checked cast, and use it for typesafety,
11365         eventually writing the value back into doloop_pat.
11366         * output.h (final_sequence): Strengthen this global from rtx to
11367         rtx_sequence *.
11368         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
11369         reintroducing "insn" as an rtx_insn * via a checked cast.
11370         Strengthen param "attempt" and local "new_insn"from rtx to
11371         rtx_insn *.
11372         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
11373         to rtx_insn *.
11374         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
11375         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
11376         "p" in favor of more tightly-scoped replacements, sometimes rtx
11377         and sometimes rtx_insn *, as appropriate.
11378         (delete_output_reload): Eliminate top-level rtx "i1", splitting
11379         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
11380         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
11381         local "trial" from rtx to rtx_insn *.
11382         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
11383         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
11384         rtx_sequence * and use methods for clarity and typesafety.
11385         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
11386         rtx to rtx_insn *.  Strenghten local "li" from rtx to
11387         rtx_insn_list * and use its methods for clarity and typesafety.
11388         (steal_delay_list_from_target): Strengthen param "insn" from rtx
11389         to rtx_insn *.
11390         (steal_delay_list_from_fallthrough): Likewise.
11391         (try_merge_delay_insns): Likewise for param "thread" and locals
11392         "trial", "next_trial", "delay_insn".
11393         (redundant_insn): Likewise for param "target" and local "trial".
11394         (own_thread_p): Likewise for param "thread" and locals
11395         "active_insn", "insn".
11396         (get_label_before): Likewise for param "insn".
11397         (fill_simple_delay_slots): Likewise for local "new_label"; use
11398         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
11399         (label_before_next_insn): Strengthen return type and local "insn"
11400         from rtx to rtx_insn *.
11401         (relax_delay_slots): Likewise for locals "other", "tmp".
11402         (make_return_insns): Likewise for param "first" and locals "insn",
11403         "jump_insn", "prev".  Move declaration of "pat" to its assignment
11404         and strengthen from rtx to rtx_sequence *.  Use its methods for
11405         clarity and typesafety.
11406         * rtlanal.c (no_labels_between_p): Strengthen params from
11407         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
11408         rtx_insn *.
11409         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
11410         from const_rtx to const rtx_insn *.
11411         (reg_set_between_p): Rename param "from_insn" to
11412         "uncast_from_insn", and reintroduce "from_insn" as a
11413         const rtx_insn * via a checked cast.
11414         (modified_between_p): Likewise for param "start" as "uncast_start".
11415         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
11416         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
11417         "tmp", head" from rtx to rtx_insn *.
11418         (recompute_rev_top_order): Likewise for local "insn".
11419         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
11420         * store-motion.c (build_store_vectors): Likewise for local "insn".
11421         Strengthen local "st" from rtx to rtx_insn_list * and use methods
11422         for clarity and typesafety.
11423         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
11424         rtx to rtx_insn *.
11425         (computation_cost): Likewise for local "seq".
11426         (get_address_cost): Likewise.
11427
11428 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11429
11430         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
11431         const rtx_insn *.
11432         (label_is_jump_target_p): Likewise for second param.
11433
11434         * rtlanal.c (tablejump_p): Likewise for param "insn".
11435         (label_is_jump_target_p): Likewise for param "jump_insn".
11436
11437 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11438
11439         * rtl.h (find_first_parameter_load): Strengthen return type and
11440         both params from rtx to rtx_insn *.
11441         * rtlanal.c (find_first_parameter_load): Strengthen return type,
11442         both params and locals "before", "first_set" from rtx to
11443         rtx_insn *.  Remove now-redundant cast.
11444         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
11445
11446 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11447
11448         * rtl.h (find_last_value): Delete.
11449         * rtlanal.c (find_last_value): Delete.
11450
11451 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11452
11453         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
11454         from rtx to rtx_insn *.
11455         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
11456         rtx "note" with new local rtx_insn * "new_head" when calculating
11457         head insn of new basic block.
11458         * combine.c (combine_split_insns): Strengthen return type and local
11459         "ret" from rtx to rtx_insn *.
11460         (likely_spilled_retval_p): Likewise for locals "use" and "p".
11461         (try_combine): Eliminate local "m_split", splitting into new
11462         locals "m_split_insn" and "m_split_pat".
11463         (find_split_point): Strengthen local "seq" from rtx into
11464         rtx_insn *.
11465         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
11466         locals "label", "branch".
11467         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
11468         for local "insn".
11469         (define_expand "umulsi3_highpart"): Likewise for local "insn".
11470         * dse.c (note_add_store_info): Likewise for fields "first",
11471         "current".
11472         (note_add_store): Likewise for local "insn".
11473         (emit_inc_dec_insn_before): Likewise for locals "insn",
11474         "new_insn", "cur".
11475         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
11476         (replace_read): Likewise for locals "insns", "this_insn".
11477         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
11478         (notice_eh_throw): Likewise for param "insn".
11479         (before_next_cfi_note): Likewise for return type, param, and local
11480         "prev".
11481         (connect_traces): Likewise for local "note".
11482         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
11483         (verify_rtl_sharing): Likewise.
11484         (unshare_all_rtl_in_chain): Likewise for param "insn".
11485         (get_first_nonnote_insn): Likewise for local "insn".
11486         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
11487         "seq" and use its methods to clarify things.
11488         (next_insn): Strengthen return type from rtx to rtx_insn *.
11489         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
11490         local rtx_insn * using a checked cast, dropping a checked cast
11491         made redundant by this change.  Use a cast to and method of
11492         rtx_sequence to clarify the code.
11493         (previous_insn): Rename param "insn" to "uncast_insn" and
11494         reintroduce "insn" as a local rtx_insn * using a checked cast,
11495         dropping a checked cast made redundant by this change.  Use a cast
11496         to and method of rtx_sequence to clarify the code.
11497         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
11498         reintroduce "insn" as a local rtx_insn * using a checked cast,
11499         dropping a checked cast made redundant by this change.
11500         (next_nonnote_insn_bb): Likewise.
11501         (prev_nonnote_insn): Likewise.
11502         (prev_nonnote_insn_bb): Likewise.
11503         (next_nondebug_insn): Likewise.
11504         (prev_nondebug_insn): Likewise.
11505         (next_nonnote_nondebug_insn): Likewise.
11506         (prev_nonnote_nondebug_insn): Likewise.
11507         (next_real_insn): Likewise.
11508         (prev_real_insn): Likewise.
11509         (next_active_insn): Likewise.
11510         (prev_active_insn): Likewise.
11511         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
11512         clarity.
11513         (prev_cc0_setter): Likewise.
11514         (try_split): Rename param "trial" to "uncast_trial" and
11515         reintroduce "insn" as a local rtx_insn * using a checked cast,
11516         dropping checked casts made redundant by this change.
11517         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
11518         rtx to rtx_insn *.
11519         (remove_insn): Rename param "insn" to "uncast_insn" and
11520         reintroduce "insn" as a local rtx_insn * using a checked cast.
11521         (emit_pattern_after_setloc): Likewise for param "after", as
11522         "uncast_after".
11523         (emit_pattern_after): Likewise.  Strengthen local "prev" from
11524         rtx to rtx_insn *.
11525         (emit_pattern_before_setloc): Rename param "before" to
11526         "uncast_before" and reintroduce "before" as a local rtx_insn *
11527         using a checked cast.  Strengthen locals "first", "last" from
11528         rtx to rtx_insn *.
11529         (emit_pattern_before): Likewise rename/cast param "before" to
11530         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
11531         * except.c (copy_reg_eh_region_note_forward): Strengthen param
11532         "first" and local "insn" from rtx to rtx_insn *.
11533         (copy_reg_eh_region_note_backward): Likewise for param "last"
11534         and local "insn".
11535         * expr.c (fixup_args_size_notes): Rename param "last" to
11536         "uncast_last" and reintroduce "last" as a local rtx_insn *
11537         using a checked cast.  Strengthen local "insn" from rtx to
11538         rtx_insn *.
11539         * function.c (set_insn_locations): Strengthen param "insn" from
11540         rtx to rtx_insn *.
11541         (record_insns): Likewise for param "insns" and local "tmp".
11542         (active_insn_between): Rename param "tail" to
11543         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
11544         using a checked cast.
11545         (thread_prologue_and_epilogue_insns): Split out top-level local
11546         rtx "seq" into three different rtx_insn * locals.  Strengthen
11547         local "prologue_seq" from rtx to rtx_insn *.
11548         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
11549         from rtx to rtx_insn *.
11550         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
11551         (priority): Likewise for locals "prev_first", "twin".
11552         (setup_insn_max_reg_pressure): Likewise for param "after".
11553         (sched_setup_bb_reg_pressure_info): Likewise.
11554         (no_real_insns_p): Strengthen params from const_rtx to
11555         const rtx_insn *.
11556         (schedule_block): Strengthen local "next_tail" from rtx to
11557         rtx_insn *.
11558         * ifcvt.c (find_active_insn_before): Strengthen return type and
11559         param "insn" from rtx to rtx_insn *.
11560         (find_active_insn_after): Likewise.
11561         (cond_exec_process_insns): Likewise for param "start" and local "insn".
11562         (cond_exec_process_if_block): Likewise for locals "then_start",
11563         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
11564         (noce_process_if_block): Likewise for local "jump".
11565         (merge_if_block): Likewise for two locals named "end".
11566         (cond_exec_find_if_block): Likewise for local "last_insn".
11567         * jump.c (delete_related_insns): Rename param "insn" to
11568         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
11569         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
11570         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
11571         NULL.
11572         (split_reg): Likewise.
11573         * lra.c (lra_process_new_insns): Likewise.
11574         * modulo-sched.c (permute_partial_schedule): Strengthen param
11575         "last" from rtx to rtx_insn *.
11576         * optabs.c (add_equal_note): Likewise for param "insns" and local
11577         "last_insn".
11578         (expand_binop_directly): Add checked casts to rtx_insn * within
11579         NEXT_INSN (pat) uses.
11580         (expand_unop_direct): Likewise.
11581         (maybe_emit_unop_insn): Likewise.
11582         * recog.c (peep2_attempt): Strengthen locals "last",
11583         "before_try", "x" from rtx to rtx_insn *.
11584         * reorg.c (optimize_skip): Strengthen return type and local
11585         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
11586         and locals "trial", "next_trial" from rtx to rtx_insn *.
11587         * resource.c (next_insn_no_annul): Strengthen return type and
11588         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
11589         rtx_sequence to clarify the code.
11590         (mark_referenced_resources): Add a checked cast to rtx_insn *
11591         within PREV_INSN (x).
11592         (find_dead_or_set_registers): Strengthen return type, param
11593         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
11594         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
11595         to rtx_insn **.
11596         (mark_target_live_regs): Strengthen params "insns" and "target",
11597         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
11598         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
11599         the code.
11600         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
11601         from rtx to rtx_insn *.
11602         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
11603         from rtx to rtx_insn *.
11604         (copy_reg_eh_region_note_backward): Likewise.
11605         (unshare_all_rtl_in_chain): Likewise for sole param.
11606         (dump_rtl_slim): Strengthen second and third params from const_rtx
11607         to const rtx_insn *.
11608         * sched-deps.c (sched_free_deps): Strengthen params "head" and
11609         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
11610         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
11611         "next_tail" from rtx to rtx_insn *.
11612         (begin_move_insn): Likewise for local "next".
11613         * sched-int.h (sched_free_deps): Likewise for first and second
11614         params.
11615         (no_real_insns_p): Strengthen both params from const_rtx to
11616         const rtx_insn *.
11617         (sched_setup_bb_reg_pressure_info): Strengthen second params from
11618         rtx to rtx_insn *.
11619         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
11620         "next_tail".
11621         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
11622         and locals "insn", "tail" from const_rtx to const rtx_insn *.
11623         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
11624         rtx_insn *.
11625         (debug_rtl_slim): Strengthen params "first" and "last" from
11626         const_rtx to const rtx_insn *.
11627         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
11628         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
11629         (convert_to_simple_return): Likewise for param "returnjump".
11630         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
11631         "prologue_seq".
11632         (convert_to_simple_return): Likewise for param "returnjump".
11633         * valtrack.c (propagate_for_debug): Likewise for params
11634         "insn", "last".
11635         * valtrack.h (propagate_for_debug): Likewise for second param.
11636
11637 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11638
11639         * output.h (insn_current_reference_address): Strengthen param
11640         from rtx to rtx_insn *.
11641         * final.c (insn_current_reference_address): Likewise.
11642
11643 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11644
11645         * basic-block.h (inside_basic_block_p): Strengthen param from
11646         const_rtx to const rtx_insn *.
11647         * cfgbuild.c (inside_basic_block_p): Likewise.
11648
11649 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11650
11651         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
11652         rtx_insn *.
11653         (get_trace_info): Likewise for param "insn".
11654         (save_point_p): Likewise.
11655         (maybe_record_trace_start): Likewise for both params.
11656         (maybe_record_trace_start_abnormal): Likewise.
11657         (create_trace_edges): Likewise for sole param and for three of the
11658         locals named "lab".
11659         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
11660         to rtx_insn *, and update a call to pat->element to pat->insn.
11661
11662 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11663
11664         * function.h (struct expr_status): Convert field "x_forced_labels"
11665         from rtx_expr_list * to rtx_insn_list *.
11666
11667         * cfgbuild.c (make_edges): Convert local "x" from an
11668         rtx_expr_list * to an rtx_insn_list *, replacing use of
11669         "element" method with "insn" method.
11670         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
11671         * except.c (sjlj_emit_dispatch_table): Replace use of
11672         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
11673         forced_labels.
11674         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
11675         rtx_expr_list * to an rtx_insn_list *, replacing use of
11676         "element" method with "insn" method.
11677         * reload1.c (set_initial_label_offsets): Likewise for local "x".
11678         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
11679         rtx_insn *, adding a checked cast.  Replace use of
11680         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
11681         forced_labels.
11682         (expand_label): Likewise for local "label_r".
11683
11684 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11685
11686         * function.h (struct rtl_data): Convert field
11687         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
11688         rtx_insn_list *.
11689         * rtl.h (remove_node_from_insn_list): New prototype.
11690
11691         * builtins.c (expand_builtin): When prepending to
11692         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
11693         gen_rtx_EXPR_LIST.
11694         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
11695         to rtx_insn_list *, and use its "insn" method rather than
11696         "element" method.
11697         * cfgrtl.c (delete_insn): Use new function
11698         remove_node_from_insn_list rather than
11699         remove_node_from_expr_list.
11700         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
11701         to rtx_insn_list *, and use its "insn" method rather than
11702         "element" method.
11703         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
11704         * reload1.c (set_initial_label_offsets): Likewise for local "x".
11705         * rtlanal.c (remove_node_from_insn_list): New function, adapted
11706         from remove_node_from_expr_list.
11707         * stmt.c (expand_label): When prepending to
11708         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
11709         gen_rtx_EXPR_LIST.
11710
11711 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11712
11713         * function.h (struct rtl_data): Strengthen fields "x_return_label"
11714         and "x_naked_return_label" from rtx to rtx_code_label *.
11715
11716 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11717
11718         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
11719         (SET_NEXT_INSN): Likewise.
11720         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
11721
11722         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
11723         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
11724         to split out the SEQUENCE from local "bundle", strengthening the
11725         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
11726         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
11727         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
11728         and the type of the elements of the "slot" array from rtx to
11729         rtx_insn *.
11730         (reorg_split_calls): Likewise for locals "insn" and "next", and
11731         the type of the elements of the "slot" array.
11732
11733         * config/frv/frv.c (frv_nops): Likewise for the elements of this
11734         array.
11735         (frv_function_prologue): Likewise for locals "insn", "next",
11736         "last_call".
11737         (frv_register_nop): Introduce a local "nop_insn" to be the
11738         rtx_insn * containing rtx "nop".
11739
11740         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
11741         used as an insn and sometimes as a pattern, so rename it to
11742         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
11743         using it where dealing with the core insn.
11744
11745         * config/picochip/picochip.c (reorder_var_tracking_notes):
11746         Strengthen locals "insn", "next", "last_insn", "queue",
11747         "next_queue", "prev" from rtx to rtx_insn *.
11748
11749         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
11750         the second param is an rtx_insn ** rather than an rtx **.
11751         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
11752         from rtx to rtx_sequence *, and introduce local named "sequence",
11753         using methods of rtx_sequence to clarify the code.
11754         (remove_insn): Introduce local rtx_sequence * named "sequence" and
11755         use its methods.
11756         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
11757         Rename param "after" to "uncast_after", reintroducing "after" as a
11758         local rtx_insn * with a checked cast.
11759         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
11760         reintroducing "after" as a local rtx_insn * with a checked cast.
11761         Strengthen local "last" from rtx to rtx_insn * and remove the
11762         now-redundant checked casts.
11763         (copy_delay_slot_insn): Strengthen return type and param from rtx
11764         to rtx_insn *.
11765
11766         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
11767         "last" from rtx to rtx_insn *.
11768
11769 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
11770
11771         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
11772         param from rtx to rtx_insn *.
11773
11774         * emit-rtl.c (copy_delay_slot_insn): Likewise.
11775
11776         * reorg.c (skip_consecutive_labels): Strengthen return type, param
11777         and local "insn" from rtx to rtx_insn *.
11778         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
11779         (unfilled_slots_next): Likewise.
11780         (function_return_label): Strengthen from rtx to rtx_code_label *.
11781         (function_simple_return_label): Likewise.
11782         (first_active_target_insn): Strengthen return type and param from
11783         rtx to rtx_insn *.
11784         (find_end_label): Strengthen return type from rtx to
11785         rtx_code_label *; strengthen locals as appropriate.
11786         (emit_delay_sequence): Strengthen return type, param "insn" and
11787         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
11788         and local "li" from rtx to rtx_insn_list *, using methods of
11789         rtx_insn_list for clarity and typesafety.
11790         (add_to_delay_list): Strengthen return type and param "insn" from
11791         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
11792         rtx_insn_list * and use methods of rtx_insn_list.
11793         (delete_from_delay_slot): Strengthen return type, param "insn",
11794         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
11795         Strengthen local "seq" from rtx to rtx_sequence *, and local
11796         "delay_list" from rtx to rtx_insn_list *, using methods of
11797         rtx_sequence for clarity and type-safety.
11798         (delete_scheduled_jump): Add checked cast when invoking
11799         delete_from_delay_slot.  Strengthen local "trial" from rtx to
11800         rtx_insn *.
11801         (optimize_skip): Strengthen return type and local "delay_list"
11802         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
11803         rtx_insn *.
11804         (steal_delay_list_from_target): Strengthen return type, param
11805         "delay_list" and local "new_delay_list" from rtx to
11806         rtx_insn_list *.  Strengthen param "seq" from rtx to
11807         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
11808         rtx_insn **.
11809         Split out local "temp" into multiple more-tightly scoped locals:
11810         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
11811         of rtx_insn_list and rtx_sequence for clarity and typesafety.
11812         Strengthen locals named "trial" from rtx to rtx_insn *.
11813         (steal_delay_list_from_fallthrough): Strengthen return type and
11814         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
11815         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
11816         Strengthen local "trial" from rtx to rtx_insn *.
11817         (try_merge_delay_insns): Strength local "merged_insns" from rtx
11818         to rtx_insn_list * and use its methods.  Strengthen local "pat"
11819         from rtx to rtx_sequence * and use its methods.  Strengthen locals
11820         "dtrial" and "new_rtx" from rtx to rtx_insn *.
11821         (get_label_before): Strengthen return type and local "label" from
11822         rtx to rtx_insn *.
11823         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
11824         "next_trial", "next", prev".  Strengthen local "delay_list" from
11825         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
11826         rtx_insn **.
11827         (follow_jumps): Strengthen return type, param "label" and locals
11828         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
11829         (fill_slots_from_thread): Strengthen return type, param
11830         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
11831         "insn", "thread", "opposite_thread" and locals "new_thread",
11832         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
11833         "sequence" from a checked cast to rtx_sequence so that we can call
11834         steal_delay_list_from_target and steal_delay_list_from_fallthrough
11835         with an rtx_sequence *.
11836         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
11837         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
11838         Strengthen local "delay_list" from rtx to rtx_insn_list *.
11839         (relax_delay_slots): Strengthen param "first" and locals "insn",
11840         "next", "trial", "delay_insn", "target_label" from rtx to
11841         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
11842         Introduce a local "trial_seq" for PATTERN (trial) of type
11843         rtx_sequence *, in both cases using methods of rtx_sequence.
11844         (dbr_schedule): Strengthen param "first" and locals "insn",
11845         "next", "epilogue_insn" from rtx to rtx_insn *.
11846
11847 2014-08-28  Richard Biener  <rguenther@suse.de>
11848
11849         PR tree-optimization/62283
11850         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11851         Do not peel loops for alignment where the vector loop likely
11852         doesn't run at least VF times.
11853
11854 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
11855
11856         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
11857         important_candidates.  Consider all important candidates if
11858         IVS doesn't give any result.  Remove check on ivs->upto.
11859         (try_add_cand_for): Call iv_ca_add_use only once.
11860
11861 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11862             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11863             Anna Tikhonova  <anna.tikhonova@intel.com>
11864             Ilya Tocar  <ilya.tocar@intel.com>
11865             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11866             Ilya Verbin  <ilya.verbin@intel.com>
11867             Kirill Yukhin  <kirill.yukhin@intel.com>
11868             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11869
11870         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
11871         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
11872         masking.
11873         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
11874         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
11875         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
11876         (define_insn "*mul<mode>3"): Add EVEX version.
11877
11878 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11879             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11880             Anna Tikhonova  <anna.tikhonova@intel.com>
11881             Ilya Tocar  <ilya.tocar@intel.com>
11882             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11883             Ilya Verbin  <ilya.verbin@intel.com>
11884             Kirill Yukhin  <kirill.yukhin@intel.com>
11885             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11886
11887         * config/i386/sse.md
11888         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
11889         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
11890         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
11891         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
11892         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
11893         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
11894         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
11895         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
11896         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
11897         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
11898         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
11899         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
11900         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
11901         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
11902         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
11903         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
11904
11905 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11906             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11907             Anna Tikhonova  <anna.tikhonova@intel.com>
11908             Ilya Tocar  <ilya.tocar@intel.com>
11909             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11910             Ilya Verbin  <ilya.verbin@intel.com>
11911             Kirill Yukhin  <kirill.yukhin@intel.com>
11912             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11913
11914         * config/i386/sse.md
11915         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
11916         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
11917         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
11918
11919 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11920             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11921             Anna Tikhonova  <anna.tikhonova@intel.com>
11922             Ilya Tocar  <ilya.tocar@intel.com>
11923             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11924             Ilya Verbin  <ilya.verbin@intel.com>
11925             Kirill Yukhin  <kirill.yukhin@intel.com>
11926             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11927
11928         * config/i386/sse.md
11929         (define_mode_iterator VI128_256): New.
11930         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
11931
11932 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11933             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11934             Anna Tikhonova  <anna.tikhonova@intel.com>
11935             Ilya Tocar  <ilya.tocar@intel.com>
11936             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11937             Ilya Verbin  <ilya.verbin@intel.com>
11938             Kirill Yukhin  <kirill.yukhin@intel.com>
11939             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11940
11941         * config/i386/sse.md
11942         (define_mode_iterator VI8_256_512): New.
11943         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
11944         Ditto.
11945         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
11946         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
11947         Ditto.
11948         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
11949
11950 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11951
11952         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
11953         pointer to the cumulative reloc value and return the value for
11954         this reloc instead.
11955         (compute_reloc_for_rtx): Take a const_rtx.  Call
11956         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
11957         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
11958         for_each_rtx for the CONST case.
11959
11960 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11961
11962         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
11963         (mark_constants_in_pattern): ...this new function to iterate over
11964         all the subrtxes.
11965         (mark_constants): Update accordingly.
11966
11967 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11968
11969         * varasm.c: Include rtl-iter.h.
11970         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
11971         Remove the pointer to the cumulative hashval_t and just return
11972         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
11973         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
11974         Accumulate the hashval_ts here instead of const_rtx_hash_1.
11975
11976 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11977
11978         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
11979         Give real type of data parameter.  Remove return value.
11980         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
11981         to iterate over subrtxes.
11982
11983 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11984
11985         * var-tracking.c (use_narrower_mode_test): Turn from being a
11986         for_each_rtx callback to being a function that examines each
11987         subrtx itself.
11988         (adjust_mems): Update accordingly.
11989
11990 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11991
11992         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
11993         callback to being a function that examines each subrtx itself.
11994         Remove handling of null rtxes.
11995         (add_uses): Update accordingly.
11996
11997 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
11998
11999         * var-tracking.c: Include rtl-iter.h.
12000         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
12001         to being a function that examines each subrtx itself.
12002         (use_type): Update accordingly.
12003
12004 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12005
12006         * store-motion.c: Include rtl-iter.h.
12007         (extract_mentioned_regs_1): Delete.
12008         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
12009         for_each_rtx to iterate over subrtxes.
12010
12011 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12012
12013         * sel-sched.c: Include rtl-iter.h
12014         (count_occurrences_1): Delete.
12015         (count_occurrences_equiv): Turn rtxes into const_rtxes.
12016         Use FOR_EACH_SUBRTX rather than for_each_rtx.
12017
12018 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12019
12020         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
12021         * rtlanal.c (tls_referenced_p_1): Delete.
12022         (tls_referenced_p): Take a const_rtx rather than an rtx.
12023         Use FOR_EACH_SUBRTX rather than for_each_rtx.
12024
12025 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12026
12027         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
12028         (for_each_inc_dec): Take an rtx rather than an rtx *.
12029         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
12030         (cselib_record_sets): Likewise.
12031         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
12032         (check_for_inc_dec): Likewise.
12033         * rtlanal.c (for_each_inc_dec_ops): Delete.
12034         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
12035         rather than a pointer to the memory address.  Replace
12036         for_each_inc_dec_ops argument with separate function and data
12037         arguments.  Abort on non-autoinc addresses.
12038         (for_each_inc_dec_find_mem): Delete.
12039         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
12040         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
12041
12042 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12043
12044         * rtl.h (find_all_hard_regs): Declare.
12045         * rtlanal.c (find_all_hard_regs): New function.
12046         (record_hard_reg_uses_1): Delete.
12047         (record_hard_reg_uses): Use find_all_hard_regs.
12048
12049 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12050
12051         * rtl.h (replace_label_data): Delete.
12052         (replace_label): Take the old label, new label and update-nuses flag
12053         as direct arguments.  Return void.
12054         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
12055         * rtlanal.c (replace_label): Update interface as above.  Handle
12056         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
12057         iterator.  Use FOR_EACH_SUBRTX_PTR.
12058
12059 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12060
12061         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
12062         with const_rtx parameters.
12063         * varasm.c (get_pool_constant): Likewise.
12064         * rtlanal.c (rtx_referenced_p_1): Delete.
12065         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
12066         Assert that the rtx we're looking for is nonnull.  Allow searches
12067         for constant pool SYMBOL_REFs.
12068
12069 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12070
12071         * reload1.c: Include rtl-iter.h.
12072         (note_reg_elim_costly): Turn from being a for_each_rtx callback
12073         to being a function that examines each subrtx itself.
12074         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
12075
12076 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12077
12078         * regcprop.c (cprop_find_used_regs_1): Delete.
12079         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
12080
12081 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12082
12083         * regcprop.c: Include rtl-iter.h.
12084         (kill_value): Take a const_rtx.
12085         (kill_autoinc_value): Turn from being a for_each_rtx callback
12086         to being a function that examines each subrtx itself.
12087         (copyprop_hardreg_forward_1): Update accordingly.
12088
12089 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12090
12091         * reg-stack.c: Include rtl-iter.h.
12092         (subst_stack_regs_in_debug_insn): Delete.
12093         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
12094         instead of for_each_rtx.
12095
12096 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12097
12098         * lower-subreg.c (find_decomposable_subregs): Turn from being
12099         a for_each_rtx callback to being a function that examines each
12100         subrtx itself.  Remove handling of null rtxes.
12101         (decompose_multiword_subregs): Update accordingly.
12102
12103 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12104
12105         * lower-subreg.c (adjust_decomposed_uses): Delete.
12106         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
12107         Remove handling of null rtxes.
12108
12109 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12110
12111         * lower-subreg.c: Include rtl-iter.h.
12112         (resolve_subreg_use): Turn from being a for_each_rtx callback
12113         to being a function that examines each subrtx itself.  Remove
12114         handling of null rtxes.
12115         (resolve_reg_notes, resolve_simple_move): Update accordingly.
12116         (decompose_multiword_subregs): Likewise.
12117
12118 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12119
12120         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
12121         to being a function that examines each subrtx itself.
12122         (simplify_using_condition, simplify_using_initial_values): Update
12123         accordingly.
12124
12125 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12126
12127         * loop-iv.c: Include rtl-iter.h.
12128         (find_single_def_src): New function.
12129         (replace_single_def_regs): Turn from being a for_each_rtx callback
12130         to being a function that examines each subrtx itself.
12131         (replace_in_expr, simplify_using_initial_values): Update accordingly.
12132
12133 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12134
12135         * jump.c (eh_returnjump_p_1): Delete.
12136         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
12137         Remove handling of null rtxes.
12138
12139 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12140
12141         * jump.c: Include rtl-iter.h.
12142         (returnjump_p_1): Delete.
12143         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
12144         Remove handling of null rtxes.
12145
12146 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12147
12148         * ira.c: Include rtl-iter.h.
12149         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
12150         to being a function that examines each subrtx itself.  Remove
12151         handling of null rtxes.
12152         (update_equiv_regs): Update call accordingly.
12153
12154 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12155
12156         * fwprop.c: Include rtl-iter.h.
12157         (varying_mem_p): Turn from being a for_each_rtx callback to being
12158         a function that examines each subrtx itself.
12159         (propagate_rtx): Update accordingly.
12160
12161 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12162
12163         * function.c: Include rtl-iter.h
12164         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
12165         callback to being a function that examines each subrtx itself.
12166         Return the changed flag.
12167         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
12168         (instantiate_virtual_regs): Update calls accordingly.
12169
12170 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12171
12172         * final.c: Include rtl-iter.h.
12173         (mark_symbol_ref_as_used): Delete.
12174         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
12175         for_each_rtx.
12176
12177 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12178
12179         * emit-rtl.c: Include rtl-iter.h.
12180         (find_auto_inc): Turn from being a for_each_rtx callback to being
12181         a function that examines each subrtx itself.  Assume the first operand
12182         to an RTX_AUTOINC is the automodified register.
12183         (try_split): Update call accordingly.
12184
12185 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12186
12187         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
12188         Return a bool, inverting the result so that 0/false means "not ok".
12189         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
12190         subrtxes of a CONST.
12191         (mem_loc_descriptor, add_const_value_attribute)
12192         (resolve_addr_in_expr): Update calls accordingly.
12193
12194 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12195
12196         * dwarf2out.c: Include rtl-iter.h.
12197         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
12198         Remove unused data parameter.  Return a bool, inverting the result
12199         so that 0/false means "not ok".
12200         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
12201         instead of for_each_rtx.
12202
12203 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12204
12205         * dse.c: Include rtl-iter.h.
12206         (check_mem_read_rtx): Change void * parameter to real type.
12207         Remove return value.
12208         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
12209         for_each_rtx.  Don't handle null rtxes.
12210
12211 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12212
12213         * df-problems.c: Include rtl-iter.h.
12214         (find_memory): Turn from being a for_each_rtx callback to being
12215         a function that examines each subrtx itself.  Continue to look for
12216         volatile references even after a nonvolatile one has been found.
12217         (can_move_insns_across): Update calls accordingly.
12218
12219 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12220
12221         * ddg.c (walk_mems_2, walk_mems_1): Delete.
12222         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
12223         to iterate over subrtxes.  Return a bool rather than an int.
12224
12225 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12226
12227         * ddg.c: Include rtl-iter.h.
12228         (mark_mem_use_1): Rename to...
12229         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
12230         instead of for_each_rtx.
12231         (mem_read_insn_p): Update accordingly.
12232
12233 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12234
12235         * cse.c (change_cc_mode_args): Delete.
12236         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
12237         a function that examines each subrtx itself.  Take the fields of
12238         change_cc_mode_args as argument and return void.
12239         (cse_change_cc_mode_insn): Update calls accordingly.
12240
12241 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12242
12243         * cse.c (is_dead_reg): Change argument to const_rtx.
12244         (dead_debug_insn_data): Delete.
12245         (is_dead_debug_insn): Expand commentary.  Turn from being a
12246         for_each_rtx callback to being a function that examines
12247         each subrtx itself.  Take the fields of dead_debug_insn_data
12248         as argument.
12249         (delete_trivially_dead_insns): Update call accordingly.
12250
12251 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12252
12253         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
12254         being a for_each_rtx callback to being a function that examines
12255         each subrtx itself.
12256         (cse_extended_basic_block): Update call accordingly.
12257
12258 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12259
12260         * cse.c (check_dependence_data): Delete.
12261         (check_dependence): Change from being a for_each_rtx callback to being
12262         a function that examines all subrtxes itself.  Don't handle null rtxes.
12263         (invalidate): Update call accordingly.
12264
12265 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12266
12267         * cse.c: Include rtl-iter.h.
12268         (approx_reg_cost_1): Delete.
12269         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
12270         Don't handle null rtxes.
12271
12272 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12273
12274         * cfgcleanup.c: Include rtl-iter.h.
12275         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
12276         to being a function that examines each subrtx itself.
12277         (thread_jump): Update accordingly.
12278
12279 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12280
12281         * combine-stack-adj.c: Include rtl-iter.h.
12282         (record_stack_refs_data): Delete.
12283         (record_stack_refs): Turn from being a for_each_rtx callback
12284         to being a function that examines each subrtx itself.
12285         Take a pointer to the reflist.  Invert sense of return value
12286         so that true means success and false means failure.  Don't
12287         handle null rtxes.
12288         (combine_stack_adjustments_for_block): Update accordingly.
12289
12290 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12291
12292         * combine.c (record_truncated_value): Turn from being a for_each_rtx
12293         callback to a function that takes an rtx and returns a bool
12294         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
12295         for_each_rtx.
12296
12297 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12298
12299         * combine.c: Include rtl-iter.h.
12300         (unmentioned_reg_p_1): Delete.
12301         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
12302         Don't handle null rtxes.
12303
12304 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12305
12306         * calls.c: Include rtl-iter.h.
12307         (internal_arg_pointer_based_exp_1): Delete.
12308         (internal_arg_pointer_based_exp): Take a const_rtx.
12309         Use FOR_EACH_SUBRTX to iterate over subrtxes.
12310
12311 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12312
12313         * caller-save.c: Include rtl-iter.h.
12314         (add_used_regs_1): Delete.
12315         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
12316         to iterate over subrtxes.  Assert that any remaining pseudos
12317         have been spilled.
12318
12319 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12320
12321         * bt-load.c: Include rtl-iter.h.
12322         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
12323         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
12324         to iterate over subrtxes.
12325         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
12326         find_btr_use rather than btr_referenced_p.
12327
12328 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12329
12330         * alias.c: Include rtl-iter.h.
12331         (refs_newer_value_cb): Delete.
12332         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
12333
12334 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
12335
12336         * rtl-iter.h: New file.
12337         * rtlanal.c: Include it.
12338         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
12339         (generic_subrtx_iterator <T>::add_single_to_queue)
12340         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
12341         (generic_subrtx_iterator <T>::free_array): New functions.
12342         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
12343         (generic_subrtx_iterator <const_rtx_accessor>)
12344         (generic_subrtx_iterator <rtx_var_accessor>
12345         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
12346         (setup_reg_subrtx_bounds): New function.
12347         (init_rtlanal): Call it.
12348
12349 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
12350
12351         PR target/62261
12352         * config/sh/sh.md (ashlsi3): Handle negative shift count for
12353         TARGET_SHMEDIA.
12354         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
12355
12356 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
12357
12358         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
12359
12360 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12361
12362         * rtl.h (JUMP_LABEL_AS_INSN): New.
12363
12364 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12365
12366         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
12367         rtx_expr_list **.
12368         (alloc_EXPR_LIST): Strengthen return type from rtx to
12369         rtx_expr_list *.
12370         (remove_free_EXPR_LIST_node): Likewise for param.
12371         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
12372         from rtx to rtx_expr_list *.
12373         * sched-int.h (struct deps_desc): Strengthen fields
12374         "pending_read_mems" and "pending_write_mems" from rtx to
12375         rtx_expr_list *.
12376
12377         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
12378         rtx to rtx_expr_list *.
12379         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
12380         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
12381         rtx_expr_list **.
12382         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
12383         from rtx to rtx_expr_list *.
12384         * loop-iv.c (simplify_using_initial_values): Strengthen local
12385         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
12386         "pnote_next" from rtx * to rtx_expr_list **.
12387         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
12388         param "exprp" from rtx * to rtx_expr_list **.
12389         (add_insn_mem_dependence): Strengthen local "mem_list" from
12390         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
12391         to rtx_expr_list *.
12392         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
12393         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
12394         param "old_mems_p" from rtx * to rtx_expr_list **.
12395         * var-tracking.c (struct adjust_mem_data): Strengthen field
12396         "side_effects" from rtx to rtx_expr_list *.
12397         (adjust_insn): Replace NULL_RTX with NULL when assigning to
12398         rtx_expr_list *.
12399         (prepare_call_arguments): Likewise.
12400
12401 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12402
12403         * function.h (struct rtl_data): Strengthen field
12404         "x_stack_slot_list" from rtx to rtx_expr_list *.
12405
12406         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
12407         when assigning to stack_slot_list.
12408
12409 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12410
12411         * function.h (struct rtl_data): Strengthen field
12412         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
12413         * rtl.h (remove_node_from_expr_list): Strengthen second param from
12414         rtx * to rtx_expr_list **.
12415
12416         * cfgbuild.c (make_edges): In loop over
12417         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
12418         rtx_expr_list *, and use methods of the latter class to clarify
12419         the code.
12420         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
12421         rtx_expr_list *, and use methods of the latter class to clarify
12422         the code.
12423         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
12424         * reload1.c (set_initial_label_offsets): Likewise for local "x".
12425         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
12426         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
12427         to rtx_expr_list *.  Use methods of the latter class to clarify
12428         the code.
12429
12430 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12431
12432         * function.h (struct expr_status): Strengthen field
12433         "x_forced_labels" from rtx to rtx_expr_list *.
12434
12435         * cfgbuild.c (make_edges): Split local "x" into two locals,
12436         strengthening one from rtx to rtx_expr_list *, and using methods
12437         of said class.
12438         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
12439         loop over forced_labels, introduce strengthen it from rtx to
12440         rtx_expr_list *, using methods to clarify the code.
12441         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
12442         to rtx_expr_list *, using methods of said class to clarify the
12443         code.
12444         * reload1.c (set_initial_label_offsets): Split local "x" into two
12445         per-loop variables, strengthening the first from rtx to
12446         rtx_expr_list * and using methods.
12447
12448 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12449
12450         * coretypes.h (class rtx_expr_list): Add forward declaration.
12451         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
12452         * gengenrtl.c (special_rtx): Add EXPR_LIST.
12453         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
12454         invariant: GET_CODE (X) == EXPR_LIST.
12455         (is_a_helper <rtx_expr_list *>::test): New.
12456         (rtx_expr_list::next): New.
12457         (rtx_expr_list::element): New.
12458         (gen_rtx_EXPR_LIST): New.
12459
12460 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12461
12462         * varasm.c (mark_constants): Convert a GET_CODE check into a
12463         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
12464         Use methods of rtx_sequence to clarify the code.
12465
12466 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12467
12468         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
12469         local "seq" via a checked cast, and use methods of rtx_sequence
12470         to simplify the code.
12471
12472 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12473
12474         * resource.c (mark_referenced_resources): Strengthen local
12475         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
12476         using methods of rtx_sequence to clarify the code.
12477         (find_dead_or_set_registers): Within the switch statement, convert
12478         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
12479         the JUMP_P handling, introduce another local "seq", adding a
12480         checked cast to rtx_sequence *.  In both cases, use methods of
12481         rtx_sequence to clarify the code.
12482         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
12483         via a checked cast, and use methods of rtx_sequence to simplify
12484         the code.
12485
12486 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12487
12488         * reorg.c (redundant_insn): In two places in the function, replace
12489         a check of GET_CODE with a dyn_cast, introducing local "seq", and
12490         usings methods of rtx_sequence to clarify the code.
12491
12492 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12493
12494         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
12495         local "seq" with a checked cast, and use methods of rtx_sequence
12496         to clarify the code.
12497
12498 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12499
12500         * function.c (contains): Introduce local "seq" for PATTERN (insn),
12501         with a checked cast, in the region for where we know it's a
12502         SEQUENCE.  Use methods of rtx_sequence.
12503
12504 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12505
12506         * final.c (get_attr_length_1): Replace GET_CODE check with a
12507         dyn_cast, introducing local "seq" and the use of methods of
12508         rtx_sequence.
12509         (shorten_branches): Likewise, introducing local "body_seq".
12510         Strengthen local "inner_insn" from rtx to rtx_insn *.
12511         (reemit_insn_block_notes): Replace GET_CODE check with a
12512         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
12513         Use methods of rtx_sequence.
12514         (final_scan_insn): Likewise, introducing local "seq" for when
12515         "body" is known to be a SEQUENCE, using its methods.
12516
12517 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12518
12519         * except.c (can_throw_external): Strengthen local "seq" from rtx
12520         to rtx_sequence *.  Use methods of rtx_sequence.
12521         (insn_nothrow_p): Likewise.
12522
12523 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12524
12525         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
12526         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
12527         Use methods of rtx_sequence.
12528         (scan_trace): Likewise for local "pat".
12529
12530 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12531
12532         * coretypes.h (class rtx_sequence): Add forward declaration.
12533         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
12534         invariant: GET_CODE (X) == SEQUENCE.
12535         (is_a_helper <rtx_sequence *>::test): New.
12536         (is_a_helper <const rtx_sequence *>::test): New.
12537         (rtx_sequence::len): New.
12538         (rtx_sequence::element): New.
12539         (rtx_sequence::insn): New.
12540
12541 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12542
12543         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
12544         rtx_insn_list **.
12545         (alloc_INSN_LIST): Strengthen return type from rtx to
12546         rtx_insn_list *.
12547         (copy_INSN_LIST): Likewise for return type and param.
12548         (concat_INSN_LIST): Likewise for both params and return type.
12549         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
12550         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
12551         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
12552         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
12553
12554         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
12555         "implicit_sets", "control_uses", "clobbers" from rtx to
12556         rtx_insn_list *.
12557         (struct deps_desc): Likewise for fields "pending_read_insns",
12558         "pending_write_insns", "pending_jump_insns",
12559         "last_pending_memory_flush", "last_function_call",
12560         "last_function_call_may_noreturn", "sched_before_next_call",
12561         "sched_before_next_jump".
12562         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
12563         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
12564
12565         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
12566         from rtx to rtx_insn_list *.
12567         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
12568         rtx_insn_list *.
12569
12570         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
12571         to rtx_insn_list **.
12572         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
12573         rtx_insn_list *.
12574         (queue_insn): Likewise for local "link".
12575         (struct haifa_saved_data): Strengthen field "insn_queue" from
12576         rtx * to rtx_insn_list **.
12577         (save_backtrack_point): Update allocation of save->insn_queue to
12578         reflect the strengthening of elements from rtx to rtx_insn_list *.
12579         (queue_to_ready): Strengthen local "link" from rtx to
12580         rtx_insn_list *; use methods "next" and "insn" when traversing the
12581         list.
12582         (early_queue_to_ready): Likewise for locals "link", "next_link",
12583         "prev_link".
12584         (schedule_block): Update allocation of insn_queue to reflect the
12585         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
12586         local "link" from rtx to rtx_insn_list *, and use methods when
12587         working it.
12588         (add_to_speculative_block): Strengthen locals "twins" and
12589         "next_node" from rtx to rtx_insn_list *, and use methods when
12590         working with them.  Strengthen local "twin" from rtx to
12591         rtx_insn *, eliminating a checked cast.
12592         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
12593         from rtx to rtx_insn_list *, and use methods when working with
12594         them.
12595
12596         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
12597         from rtx to rtx_insn_list *, adding a checked cast.
12598         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
12599         rtx_insn_list **.
12600         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
12601         "newlink" from rtx to rtx_insn_list *.  Strengthen local
12602         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
12603         from rtx to rtx_insn *.
12604         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
12605         from rtx to rtx_insn_list *.  Use methods of the latter class.
12606         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
12607         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
12608         (remove_free_INSN_LIST_node): Strengthen return type and local
12609         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
12610         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
12611         rtx_insn_list *, using "insn" method.
12612
12613         * sched-deps.c (add_dependence_list):  Strengthen param "list"
12614         from rtx to rtx_insn_list *, and use methods when working with it.
12615         (add_dependence_list_and_free):  Strengthen param "listp" from
12616         rtx * to rtx_insn_list **.
12617         (remove_from_dependence_list): Strenghten param "listp" from rtx *
12618         to rtx_insn_list **, and use methods when working with *listp.
12619         (remove_from_both_dependence_lists): Strengthen param "listp" from
12620         rtx * to rtx_insn_list **
12621         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
12622         to rtx_insn_list **.  Eliminate local "link", in favor of two new
12623         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
12624         respectively.
12625         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
12626         by introducing local "cond_deps".
12627         (remove_from_deps): Strengthen param "insn" from rtx to
12628         rtx_insn *.
12629
12630         * sched-rgn.c (concat_insn_mem_list): Strengthen param
12631         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
12632         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
12633         Use methods of rtx_insn_list.
12634
12635         * store-motion.c (struct st_expr): Strengthen fields
12636         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
12637         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
12638         rtx_insn_list *.
12639         (find_moveable_store): Split out "tmp" into multiple more-tightly
12640         scoped locals.  Use methods of rtx_insn_list *.
12641         (compute_store_table): Strengthen local "tmp" from rtx to
12642         rtx_insn *.  Use methods of rtx_insn_list *.
12643
12644 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12645
12646         * coretypes.h (class rtx_insn_list): Add forward declaration.
12647         * rtl.h (class rtx_insn_list): New subclass of rtx_def
12648         (is_a_helper <rtx_insn_list *>::test): New.
12649         (rtx_insn_list::next): New.
12650         (rtx_insn_list::insn): New.
12651         (gen_rtx_INSN_LIST): Add prototype.
12652         * emit-rtl.c (gen_rtx_INSN_LIST): New.
12653         * gengenrtl.c (special_rtx): Add INSN_LIST.
12654
12655 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12656
12657         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
12658         "prev" from rtx to rtx_insn *.
12659
12660 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12661
12662         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
12663         functions.  Require merely an rtx for now, not an rtx_insn *.
12664         (BLOCK_FOR_INSN): Likewise.
12665         (INSN_LOCATION): Likewise.
12666         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
12667
12668 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12669
12670         * rtl.h (PATTERN): Convert this macro into a pair of inline
12671         functions, for now, requiring const_rtx and rtx.
12672
12673 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12674
12675         * target.def (unwind_emit): Strengthen param "insn" from rtx to
12676         rtx_insn *.
12677         (final_postscan_insn): Likewise.
12678         (adjust_cost): Likewise.
12679         (adjust_priority): Likewise.
12680         (variable_issue): Likewise.
12681         (macro_fusion_pair_p): Likewise.
12682         (dfa_post_cycle_insn): Likewise.
12683         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
12684         (first_cycle_multipass_issue): Likewise.
12685         (dfa_new_cycle): Likewise.
12686         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
12687         (speculate_insn): Likewise for param "insn".
12688         (gen_spec_check): Likewise for params "insn" and "label".
12689         (get_insn_spec_ds): Likewise for param "insn".
12690         (get_insn_checked_ds): Likewise.
12691         (dispatch_do): Likewise.
12692         (dispatch): Likewise.
12693         (cannot_copy_insn_p): Likewise.
12694         (invalid_within_doloop): Likewise.
12695         (legitimate_combined_insn): Likewise.
12696         (needed): Likewise.
12697         (after): Likewise.
12698
12699         * doc/tm.texi: Automatically updated to reflect changes to
12700         target.def.
12701
12702         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
12703         working with insn.
12704         (schedule_block): Likewise.
12705         (sched_init): Likewise.
12706         (sched_speculate_insn): Strengthen param "insn" from rtx to
12707         rtx_insn *.
12708         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
12709         working with insn.
12710         * hooks.c (hook_bool_rtx_true): Rename to...
12711         hook_bool_rtx_insn_true): ...this, and strengthen first param from
12712         rtx to rtx_insn *.
12713         (hook_constcharptr_const_rtx_null): Rename to...
12714         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
12715         first param from const_rtx to const rtx_insn *.
12716         (hook_bool_rtx_int_false): Rename to...
12717         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
12718         param from rtx to rtx_insn *.
12719         (hook_void_rtx_int): Rename to...
12720         (hook_void_rtx_insn_int): ...this, and strengthen first param from
12721         rtx to rtx_insn *.
12722
12723         * hooks.h (hook_bool_rtx_true): Rename to...
12724         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
12725         rtx to rtx_insn *.
12726         (hook_bool_rtx_int_false): Rename to...
12727         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
12728         param from rtx to rtx_insn *.
12729         (hook_void_rtx_int): Rename to...
12730         (hook_void_rtx_insn_int): ...this, and strengthen first param from
12731         rtx to rtx_insn *.
12732         (hook_constcharptr_const_rtx_null): Rename to...
12733         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
12734         first param from const_rtx to const rtx_insn *.
12735
12736         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
12737         and local "prev" from rtx to rtx_insn *.
12738
12739         * sched-int.h (sched_speculate_insn): Strengthen first param from
12740         rtx to rtx_insn *.
12741
12742         * sel-sched.c (create_speculation_check): Likewise for local "label".
12743         * targhooks.c (default_invalid_within_doloop): Strengthen param
12744         "insn" from const_rtx to const rtx_insn *.
12745         * targhooks.h (default_invalid_within_doloop): Strengthen param
12746         from const_rtx to const rtx_insn *.
12747
12748         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
12749         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
12750
12751         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
12752         "insn".
12753         (arc_invalid_within_doloop): Likewise, with const.
12754
12755         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
12756         (arm_cannot_copy_insn_p): Likewise for param "insn".
12757         (arm_unwind_emit): Likewise.
12758
12759         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
12760         "dep_insn".
12761
12762         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
12763         (c6x_variable_issue): Likewise.  Removed now-redundant checked
12764         cast.
12765         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
12766
12767         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
12768         Likewise for param "insn".
12769         (epiphany_mode_after): Likewise.
12770         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
12771         params "insn", "dep_insn".
12772         (epiphany_mode_needed): Likewise for param "insn".
12773         (epiphany_mode_after): Likewise.
12774
12775         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
12776         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
12777         (ix86_avx_u128_mode_needed): Likewise.
12778         (ix86_i387_mode_needed): Likewise.
12779         (ix86_mode_needed): Likewise.
12780         (ix86_avx_u128_mode_after): Likewise.
12781         (ix86_mode_after): Likewise.
12782         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
12783         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
12784         (ix86_adjust_priority): Likewise for param "insn".
12785         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
12786         (do_dispatch): Likewise.
12787         (has_dispatch): Likewise.
12788         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
12789
12790         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
12791         reflect renaming of default hook implementation from
12792         hook_constcharptr_const_rtx_null to
12793         hook_constcharptr_const_rtx_insn_null.
12794         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
12795         rtx to rtx_insn *.
12796         (ia64_variable_issue): Likewise for param "insn".
12797         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
12798         (ia64_dfa_new_cycle): Likewise.
12799         (ia64_get_insn_spec_ds): Likewise.
12800         (ia64_get_insn_checked_ds): Likewise.
12801         (ia64_speculate_insn): Likewise.
12802         (ia64_gen_spec_check): Likewise for params "insn", "label".
12803         (ia64_asm_unwind_emit): Likewise for param "insn".
12804
12805         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
12806
12807         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
12808         "insn", "def_insn".
12809         (m68k_sched_variable_issue): Likewise for param "insn".
12810
12811         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
12812         "def_insn".
12813
12814         * config/microblaze/microblaze.c (microblaze_adjust_cost):
12815         Likewise for params "insn", "dep".
12816
12817         * config/mips/mips.c (mips_adjust_cost): Likewise.
12818         (mips_variable_issue): Likewise for param "insn".
12819         (mips_final_postscan_insn): Likewise.
12820
12821         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
12822         for params "insn", "dep".
12823
12824         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
12825         "dep_insn".
12826         (pa_adjust_priority): Likewise for param "insn".
12827
12828         * config/picochip/picochip.c (picochip_sched_adjust_cost):
12829         Likewise for params "insn", "dep_insn".
12830
12831         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
12832         param "insn".
12833         (rs6000_variable_issue): Likewise.
12834         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
12835         (rs6000_debug_adjust_cost): Likewise.
12836         (rs6000_adjust_priority): Likewise for param "insn".
12837         (rs6000_use_sched_lookahead_guard): Likewise.
12838         (get_next_active_insn): Likewise for return type and both params.
12839         (redefine_groups): Likewise for params "prev_head_insn", "tail"
12840         and locals "insn", "next_insn".
12841         (pad_groups): Likewise.
12842
12843         * config/s390/s390.c (s390_adjust_priority): Likewise for param
12844         "insn".
12845         (s390_cannot_copy_insn_p): Likewise.
12846         (s390_sched_variable_issue): Likewise for third param, eliminating
12847         checked cast.
12848         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
12849         default hook implementation from hook_constcharptr_const_rtx_null
12850         to hook_constcharptr_const_rtx_insn_null.
12851
12852         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
12853         from rtx to rtx_insn *.
12854         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
12855         (sh_variable_issue): Likewise for param "insn".
12856         (sh_dfa_new_cycle): Likewise.
12857         (sh_mode_needed): Likewise.
12858         (sh_mode_after): Likewise.
12859
12860         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
12861         params "insn", "dep_insn".
12862         (hypersparc_adjust_cost): Likewise.
12863         (sparc_adjust_cost): Likewise.
12864
12865         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
12866         param, eliminated checked cast.
12867         (spu_sched_adjust_cost): Likewise for first and third params.
12868
12869         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
12870         params "insn" and "dep_insn" from rtx to rtx_insn *.
12871
12872         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
12873
12874 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
12875
12876         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
12877         (set_is_load_p): ...this, updating to work on a SET pattern rather
12878         than an insn.
12879         (is_store_insn): Rename to...
12880         (set_is_store_p): ...this, updating to work on a SET pattern
12881         rather than an insn.
12882         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
12883         top of function to where it is needed.  Rewrite the bogus
12884         condition that checks for "insn" and "dep" being PARALLEL to
12885         instead use single_set, introducing locals "insn_set" and
12886         "dep_set".  Given that we only ever returned "cost" for a non-pair
12887         of SETs, bail out early if we don't have a pair of SET.
12888         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
12889         use the new locals "insn_set" and "dep_set", and update calls to
12890         is_load_insn and is_store_insn to be calls to set_is_load_p and
12891         set_is_store_p.
12892
12893 2014-08-27  Guozhi Wei  <carrot@google.com>
12894
12895         PR target/62262
12896         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
12897         amount before using it.
12898
12899 2014-08-27  Richard Biener  <rguenther@suse.de>
12900
12901         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
12902         get_maxval_strlen inside a more useful API.
12903         (gimple_fold_builtin_with_strlen): Remove and fold into ...
12904         (gimple_fold_builtin): ... caller.
12905         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
12906         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
12907         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
12908         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
12909         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
12910         gimple_fold_builtin_sprintf): Adjust to compute maxval
12911         themselves.
12912
12913 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
12914
12915         PR other/62248
12916         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
12917
12918 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12919             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12920             Anna Tikhonova  <anna.tikhonova@intel.com>
12921             Ilya Tocar  <ilya.tocar@intel.com>
12922             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12923             Ilya Verbin  <ilya.verbin@intel.com>
12924             Kirill Yukhin  <kirill.yukhin@intel.com>
12925             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12926
12927         * config/i386/sse.md
12928         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
12929         Use `concat_tg_mode' attribute to determine asm register size.
12930
12931 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12932             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12933             Anna Tikhonova  <anna.tikhonova@intel.com>
12934             Ilya Tocar  <ilya.tocar@intel.com>
12935             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12936             Ilya Verbin  <ilya.verbin@intel.com>
12937             Kirill Yukhin  <kirill.yukhin@intel.com>
12938             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12939
12940         * config/i386/sse.md
12941         (define_mode_iterator VI48_AVX512VL): New.
12942         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
12943         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
12944         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
12945         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
12946         with VI1): Change mode iterator.
12947         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
12948         with VI_ULOADSTORE_BW_AVX512VL): New.
12949         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
12950         with VI_ULOADSTORE_F_AVX512VL): Ditto.
12951         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
12952         with VI1): Change mode iterator.
12953         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
12954         with VI_ULOADSTORE_BW_AVX512VL): New.
12955         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
12956         with VI_ULOADSTORE_F_AVX512VL): Ditto.
12957         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
12958         with VI1): Change mode iterator.
12959         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
12960         with VI_ULOADSTORE_BW_AVX512VL): New.
12961         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
12962         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
12963         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
12964         (define_insn "<avx512>_storedqu<mode>_mask" with
12965         VI48_AVX512VL): New.
12966         (define_insn "<avx512>_storedqu<mode>_mask" with
12967         VI12_AVX512VL): Ditto.
12968
12969 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12970             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12971             Anna Tikhonova  <anna.tikhonova@intel.com>
12972             Ilya Tocar  <ilya.tocar@intel.com>
12973             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12974             Ilya Verbin  <ilya.verbin@intel.com>
12975             Kirill Yukhin  <kirill.yukhin@intel.com>
12976             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12977
12978         * config/i386/sse.md
12979         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
12980         (define_mode_iterator VI48_AVX512BW): New.
12981         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
12982         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
12983         with VI48_AVX2_48_AVX512F): New.
12984         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
12985         with VI2_AVX512VL): Ditto.
12986
12987 2014-08-27  Richard Biener  <rguenther@suse.de>
12988
12989         PR middle-end/62239
12990         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
12991         (fold_builtin_3): Do not fold strcat_chk here.
12992         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
12993         from builtins.c.
12994         (gimple_fold_builtin): Fold strcat_chk here.
12995
12996 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
12997
12998         * dwarf2out.h (dwarf2out_decl): Remove prototype.
12999         * dwarf2out.c (dwarf2out_decl): Make static.
13000
13001 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
13002
13003         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
13004
13005 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13006
13007         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
13008         from rtx to rtx_insn *.
13009         (cselib_lookup_from_insn): Likewise for final param.
13010         (cselib_subst_to_values_from_insn): Likewise.
13011         (cselib_add_permanent_equiv): Likewise.
13012
13013         * cselib.c (cselib_current_insn): Likewise for this variable.
13014         (cselib_subst_to_values_from_insn): Likewise for param "insn".
13015         (cselib_lookup_from_insn): Likewise.
13016         (cselib_add_permanent_equiv): Likewise for param "insn" and local
13017         "save_cselib_current_insn".
13018         (cselib_process_insn): Replace use of NULL_RTX with NULL.
13019
13020         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
13021         from rtx to rtx_insn *.
13022
13023 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13024
13025         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
13026         rtx_insn *.
13027
13028 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13029
13030         * df.h (df_dump_insn_problem_function): Strengthen first param of
13031         this callback from const_rtx to const rtx_insn *.
13032         (struct df_insn_info): Strengthen field "insn" from rtx to
13033         rtx_insn *.
13034         (DF_REF_INSN): Eliminate this function, reinstating the older
13035         macro definition.
13036         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
13037         (df_reg_defined): Likewise.
13038         (df_find_use): Likewise.
13039         (df_reg_used): Likewise.
13040         (df_dump_insn_top): Strengthen param 1 from const_rtx to
13041         const rtx_insn *.
13042         (df_dump_insn_bottom): Likewise.
13043         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
13044         (df_insn_debug_regno): Likewise.
13045         (debug_df_insn): Likewise.
13046         (df_rd_simulate_one_insn): Likewise for param 2.
13047         (df_word_lr_simulate_defs): Likewise for param 1.
13048         (df_word_lr_simulate_uses): Likewise.
13049         (df_md_simulate_one_insn): Likewise for param 2.
13050         (df_simulate_find_noclobber_defs): Likewise for param 1.
13051         (df_simulate_find_defs): Likewise.
13052         (df_simulate_defs): Likewise.
13053         (df_simulate_uses): Likewise.
13054         (df_simulate_one_insn_backwards): Likewise for param 2.
13055         (df_simulate_one_insn_forwards): Likewise.
13056         (df_uses_create): Likewise for param 2.
13057         (df_insn_create_insn_record): Likewise for param 1.
13058         (df_insn_delete): Likewise.
13059         (df_insn_rescan): Likewise.
13060         (df_insn_rescan_debug_internal): Likewise.
13061         (df_insn_change_bb): Likewise.
13062         (df_notes_rescan): Likewise.
13063         * rtl.h (remove_death): Likewise for param 2.
13064         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
13065         const rtx_insn *.
13066         * sched-int.h (reemit_notes): Strengthen param from rtx to
13067         rtx_insn *.
13068         * valtrack.h (propagate_for_debug): Likewise for param 1.
13069
13070         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
13071         local "tmp_rtx" from const_rtx to const rtx_insn *.
13072         * combine.c (remove_death): Strengthen param "insn" from rtx to
13073         rtx_insn *.
13074         (move_deaths): Likewise for local "where_dead".
13075         * cse.c (delete_trivially_dead_insns): Introduce local
13076         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
13077         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
13078         rtx_insn *.
13079         (df_reg_defined): Likewise.
13080         (df_find_use): Likewise.
13081         (df_reg_used): Likewise.
13082         (df_dump_insn_problem_data): Strengthen param "insn" from
13083         const_rtx to const rtx_insn *.
13084         (df_dump_insn_top): Likewise.
13085         (df_dump_insn_bottom): Likewise.
13086         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
13087         (df_insn_debug_regno): Likewise.
13088         (debug_df_insn): Likewise.
13089         (DF_REF_INSN): Delete.
13090         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
13091         from rtx to rtx_insn *.
13092         (df_chain_insn_top_dump): Strengthen param "insn" from
13093         const_rtx to const rtx_insn *.
13094         (df_chain_insn_bottom_dump): Likewise.
13095         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
13096         rtx_insn *.
13097         (df_word_lr_simulate_uses): Likewise.
13098         (df_print_note): Likewise.
13099         (df_remove_dead_and_unused_notes): Likewise.
13100         (df_set_unused_notes_for_mw): Likewise.
13101         (df_set_dead_notes_for_mw): Likewise.
13102         (df_create_unused_note): Likewise.
13103         (df_simulate_find_defs): Likewise.
13104         (df_simulate_find_uses): Likewise.
13105         (df_simulate_find_noclobber_defs): Likewise.
13106         (df_simulate_defs): Likewise.
13107         (df_simulate_uses): Likewise.
13108         (df_simulate_one_insn_backwards): Likewise.
13109         (df_simulate_one_insn_forwards): Likewise.
13110         (df_md_simulate_one_insn): Likewise.
13111         * df-scan.c (df_uses_create): Likewise.
13112         (df_insn_create_insn_record): Likewise.
13113         (df_insn_delete): Likewise.
13114         (df_insn_rescan): Likewise.
13115         (df_insn_rescan_debug_internal): Likewise.
13116         (df_insn_change_bb): Likewise.
13117         (df_notes_rescan): Likewise.
13118         (df_refs_add_to_chains): Likewise.
13119         (df_insn_refs_verify): Likewise.
13120         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
13121         when invoking df_insn_delete.
13122         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
13123         (set_unique_reg_note): Add checked cast.
13124         * final.c (cleanup_subreg_operands): Likewise.
13125         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
13126         "insn" from rtx to rtx_insn *.
13127         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
13128         "last" from rtx to rtx_insn *.
13129         * ira-emit.c (change_regs_in_insn): New function.
13130         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
13131         Invoke change_regs_in_insn rather than change_regs.
13132         * ira.c (update_equiv_regs): Strengthen locals "insn",
13133         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
13134         for_each_rtx_in_insn rather than for_each_rtx.
13135         * recog.c (confirm_change_group): Add checked casts.
13136         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
13137         Add checked cast.
13138         (peep2_fill_buffer): Add checked cast.
13139         * rtlanal.c (remove_note): Likewise.
13140         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
13141         locals "next" "end" from rtx to rtx_insn *.
13142
13143 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13144
13145         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
13146         to rtx_insn *.
13147         (struct reg_use_data): Likewise for field "insn".
13148         (insn_cost): Likewise for param.
13149         (real_insn_for_shadow): Likewise for return type and param.
13150         (increase_insn_priority): Likewise for param 1.
13151         (debug_dependencies): Likewise for both params.
13152
13153         * haifa-sched.c (insn_delay): Likewise for param "insn".
13154         (real_insn_for_shadow): Likewise for return type and param "insn".
13155         (update_insn_after_change): Likewise for param "insn".
13156         (recompute_todo_spec): Likewise for param "next" and locals "pro",
13157         "other".
13158         (insn_cost): Likewise for param "insn".
13159         (increase_insn_priority): Likewise.
13160         (calculate_reg_deaths): Likewise.
13161         (setup_insn_reg_pressure_info): Likewise.
13162         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
13163         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
13164         (model_recompute): Likewise.
13165         (must_restore_pattern_p): Likewise for param "next".
13166         (model_excess_cost): Likewise for param "insn".
13167         (queue_remove): Likewise.
13168         (adjust_priority): Likewise for param "prev".
13169         (update_register_pressure): Likewise for param "insn".
13170         (setup_insn_max_reg_pressure): Likewise for local "insn".
13171         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
13172         (model_add_to_schedule): Likewise.
13173         (model_reset_queue_indices): Likewise for local "insn".
13174         (unschedule_insns_until): Strengthen local "recompute_vec" from
13175         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
13176         "con" from rtx to rtx_insn *.
13177         (restore_last_backtrack_point): Likewise for both locals "x". Add
13178         checked casts.
13179         (estimate_insn_tick): Likewise for param "insn".
13180         (commit_schedule): Likewise for params "prev_head", "tail" and
13181         local "x".
13182         (verify_shadows): Likewise for locals "i1", "i2".
13183         (dump_insn_stream): Likewise for params "head", "tail" and locals
13184         "next_tail", "insn".
13185         (schedule_block): Likewise for locals "insn", "x".  Add a checked
13186         cast.
13187         (fix_inter_tick): Likewise for params "head", "tail".
13188         (create_check_block_twin): Likewise for local "jump".
13189         (haifa_change_pattern): Likewise for param "insn".
13190         (haifa_speculate_insn): Likewise.
13191         (dump_new_block_header): Likewise for params "head", "tail".
13192         (fix_jump_move): Likewise for param "jump".
13193         (move_block_after_check): Likewise.
13194         (sched_init_insn_luid): Likewise for param "insn".
13195         (sched_init_luids): Likewise for local "insn".
13196         (insn_luid): Likewise for param "insn".
13197         (init_h_i_d): Likewise.
13198         (haifa_init_h_i_d): Likewise for local "insn".
13199         (haifa_init_insn): Likewise for param "insn".
13200         * sched-deps.c (add_dependence): Likewise for local "real_pro",
13201         "other".
13202         (create_insn_reg_use): Likewise for param "insn".
13203         (setup_insn_reg_uses): Likewise.  Add a checked cast.
13204         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
13205         "tail" from rtx to rtx_insn *.
13206         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
13207         "insn", "next_tail".
13208
13209 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13210
13211         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
13212         from rtx to rtx_insn *.
13213         (model_add_to_schedule): Likewise for locals "start", "end",
13214         "iter".
13215
13216 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13217
13218         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
13219         rtx_insn *.
13220         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
13221         "to" and locals "insn", "next", "copy".  Remove now-redundant
13222         checked cast.
13223
13224 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13225
13226         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
13227         rtx_insn * and param 4 from rtx * to rtx_insn **.
13228         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
13229         param 2 from rtx * to rtx_insn **.
13230
13231         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
13232         rtx_insn * and final param from rtx * to rtx_insn **.
13233
13234         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
13235         from rtx to rtx_insn *.
13236         (try_head_merge_bb): Likewise for both locals named "move_upto".
13237         * df-problems.c (can_move_insns_across): Likewise for params
13238         "from", "to", "across_from", "across_to" and locals "insn",
13239         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
13240         rtx_insn **.
13241         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
13242         from rtx to rtx_insn *.
13243         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
13244         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
13245         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
13246         rtx_insn *.
13247         (noce_try_abs): Likewise.
13248         (noce_get_condition): Likewise for param "jump".  Strengthen param
13249         "earliest" from rtx * to rtx_insn **.
13250         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
13251         rtx_insn *.
13252         (find_cond_trap): Likewise.
13253         (dead_or_predicable): Likewise for local "earliest".
13254         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
13255         checked cast.
13256         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
13257         and local "prev".  Strengthen param "earliest" from rtx * to
13258         rtx_insn **.
13259         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
13260         Strengthen param "earliest" from rtx * to rtx_insn **.
13261
13262 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13263
13264         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
13265         "to" and local "insn" from rtx to rtx_insn *.
13266
13267 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13268
13269         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
13270         from rtx to rtx_insn *.
13271         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
13272         (code_motion_path_driver): Likewise for local "last_insn".
13273         (simplify_changed_insns): Likewise for local "insn".
13274
13275 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13276
13277         * rtl.h (push_to_sequence): Strengthen param from rtx to
13278         rtx_insn *.
13279         (push_to_sequence2): Likewise for both params.
13280         (delete_insns_since): Likewise for param.
13281         (reorder_insns_nobb): Likewise for all three params.
13282         (set_new_first_and_last_insn): Likewise for both params.
13283
13284         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
13285         rtx_insn *.  Remove now-redundant cast.
13286         (set_last_insn): Likewise.
13287
13288         * builtins.c (expand_builtin_return): Strengthen local
13289         "call_fusage" from rtx to rtx_insn *.
13290         * cfgrtl.c (create_basic_block_structure): Likewise for local
13291         "after".
13292         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
13293         "first", "last" and local "insn".
13294         (delete_insns_since): Likewise for param "from".
13295         (reorder_insns_nobb): Likewise for params "from", "to", "after"
13296         and local "x".
13297         (push_to_sequence): Likewise for param "first" and local "last".
13298         (push_to_sequence2): Likewise for params "first" and "last".
13299         * lra.c (emit_add3_insn): Likewise for local "last".
13300         (lra_emit_add): Likewise.
13301         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
13302         "last_insn".
13303         (process_address_1): Likewise for locals "insn", last".
13304         * modulo-sched.c (ps_first_note): Likewise for return type.
13305         * optabs.c (expand_binop_directly): Likewise for param "last".
13306
13307 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13308
13309         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
13310         to rtx_insn*.
13311         * emit-rtl.c (get_last_insn_anywhere): Likewise.
13312
13313 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13314
13315         * function.h (struct sequence_stack): Strengthen fields "first"
13316         and "last" from rtx to rtx_insn *.
13317         (struct emit_status): Likewise for fields "x_first_insn" and
13318         "x_last_insn".
13319
13320         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
13321         (set_first_insn): Add checked cast.
13322         (get_last_insn): Remove now-redundant checked cast.
13323         (set_last_insn): Add checked cast.
13324
13325         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
13326         "saved_first" and "saved_last" from rtx to rtx_insn *.
13327
13328 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13329
13330         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
13331         (unlink_insn_chain): Strengthen both params from rtx to
13332         rtx_insn *.
13333
13334         * cfgrtl.c (cfg_layout_function_header): Likewise for this
13335         variable.
13336         (unlink_insn_chain): Likewise for params "first" and "last".
13337         Remove now-redundant checked cast.
13338         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
13339         (fixup_reorder_chain): Strengthen local "insn" from rtx to
13340         rtx_insn *.
13341         * emit-rtl.c (link_insn_into_chain): Likewise for all three
13342         params.
13343         (add_insn): Likewise for param "insn" and local "prev".
13344         (add_insn_after_nobb): Likewise for both params and local "next".
13345         (add_insn_before_nobb): Likewise for both params and local "prev".
13346         (add_insn_after): Rename param "after" to "uncast_after",
13347         introducing local "after" with another checked cast.
13348         (add_insn_before): Rename params "insn" and "before", giving them
13349         "uncast_" prefixes, adding the old names back using checked casts.
13350         (emit_note_after): Likewise for param "after".
13351         (emit_note_before): Likewise for param "before".
13352         (emit_label): Add a checked cast.
13353
13354 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13355
13356         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
13357         "insn" from rtx to rtx_insn *.
13358
13359         * cselib.c (cselib_record_sets_hook): Likewise.
13360
13361         * var-tracking.c (add_with_sets): Likewise, renaming back from
13362         "uncast_insn" to "insn" and eliminating the checked cast from rtx
13363         to rtx_insn *.
13364
13365 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13366
13367         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
13368         and "header_" from rtx to rtx_insn *.
13369         (struct basic_block_d): Likewise for field "head_" within "x"
13370         field of union basic_block_il_dependent.
13371         (BB_HEAD): Drop function...
13372         (SET_BB_HEAD): ...and this function in favor of...
13373         (BB_HEAD): ...reinstate macro.
13374         (BB_END): Drop function...
13375         (SET_BB_END): ...and this function in favor of...
13376         (BB_END): ...reinstate macro.
13377         (BB_HEADER): Drop function...
13378         (SET_BB_HEADER): ...and this function in favor of...
13379         (BB_HEADER): ...reinstate macro.
13380
13381         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
13382         (fix_crossing_unconditional_branches): Likewise.
13383         * caller-save.c (save_call_clobbered_regs): Likewise.
13384         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
13385         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
13386         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
13387         (merge_blocks_move_successor_nojumps): Likewise.
13388         (outgoing_edges_match): Update use of for_each_rtx to
13389         for_each_rtx_in_insn.
13390         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
13391         (expand_gimple_cond): Likewise.
13392         (expand_gimple_tailcall): Likewise.
13393         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
13394         SET_BB_END.
13395         (construct_exit_block): Drop use of SET_BB_END.
13396         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
13397         rtx_insn *.
13398         (delete_insn): Rename param "insn" to "uncast_insn", introducing
13399         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
13400         SET_BB_HEAD and SET_BB_END.
13401         (create_basic_block_structure): Drop use of SET_BB_HEAD and
13402         SET_BB_END.
13403         (rtl_delete_block): Drop use of SET_BB_HEAD.
13404         (rtl_split_block): Drop use of SET_BB_END.
13405         (emit_nop_for_unique_locus_between): Likewise.
13406         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
13407         (block_label): Drop use of SET_BB_HEAD.
13408         (fixup_abnormal_edges): Drop use of SET_BB_END.
13409         (record_effective_endpoints): Drop use of SET_BB_HEADER.
13410         (relink_block_chain): Likewise.
13411         (fixup_reorder_chain): Drop use of SET_BB_END.
13412         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
13413         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
13414         rtx_insn **.  Drop use of SET_BB_HEADER.
13415         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
13416         SET_BB_HEAD.
13417         (BB_HEAD): Delete this function.
13418         (SET_BB_HEAD): Likewise.
13419         (BB_END): Likewise.
13420         (SET_BB_END): Likewise.
13421         (BB_HEADER): Likewise.
13422         (SET_BB_HEADER): Likewise.
13423         * emit-rtl.c (add_insn_after):  Rename param "insn" to
13424         "uncast_insn", adding a new local "insn" and a checked cast to
13425         rtx_insn *.  Drop use of SET_BB_END.
13426         (remove_insn): Strengthen locals "next" and "prev" from rtx to
13427         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
13428         (reorder_insns): Drop use of SET_BB_END.
13429         (emit_insn_after_1): Strengthen param "first" and locals "last",
13430         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
13431         (emit_pattern_after_noloc): Add checked cast.
13432         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
13433         (restore_other_notes): Likewise.
13434         (move_insn): Likewise.
13435         (sched_extend_bb): Likewise.
13436         (fix_jump_move): Likewise.
13437         * ifcvt.c (noce_process_if_block): Likewise.
13438         (dead_or_predicable): Likewise.
13439         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
13440         * reg-stack.c (change_stack): Drop use of SET_BB_END.
13441         * sel-sched-ir.c (sel_move_insn): Likewise.
13442         * sel-sched.c (move_nop_to_previous_block): Likewise.
13443
13444         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
13445         SET_BB_END.
13446         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
13447
13448 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13449
13450         * basic-block.h (create_basic_block_structure): Strengthen params
13451         1 "head" and 2 "end" from rtx to rtx_insn *.
13452         * cfgrtl.c (create_basic_block_structure): Likewise.
13453         (rtl_create_basic_block): Update casts from void * to rtx to
13454         rtx_insn *, so that we can pass them as rtx_insn * to
13455         create_basic_block_structure.
13456         * sel-sched-ir.c (sel_create_basic_block): Likewise.
13457
13458 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13459
13460         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
13461         rtx_insn **.
13462         (check_for_inc_dec): Strengthen param "insn" from rtx to
13463         rtx_insn *.
13464
13465         * cselib.h (cselib_process_insn): Likewise.
13466
13467         * cselib.c (cselib_record_sets): Likewise.
13468         (cselib_process_insn): Likewise.
13469
13470         * dse.c (struct insn_info): Likewise for field "insn".
13471         (check_for_inc_dec_1): Likewise for local "insn".
13472         (check_for_inc_dec): Likewise for param "insn".
13473         (scan_insn): Likewise.
13474         (dse_step1): Likewise for local "insn".
13475
13476         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
13477         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
13478
13479 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13480
13481         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
13482         from rtx to rtx_insn *.
13483         (DEP_PRO): Delete this function and...
13484         (SET_DEP_PRO): ...this function in favor of...
13485         (DEP_PRO): ...reinstate this macro.
13486         (DEP_CON): Delete this function and...
13487         (SET_DEP_CON): ...this function in favor of...
13488         (DEP_CON): ...reinstate this old macro.
13489         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
13490         (init_dep): Likewise.
13491         (set_priorities): Likewise for both params.
13492         (sd_copy_back_deps): Likewise for params 1 and 2.
13493
13494         * haifa-sched.c (priority): Likewise for param "insn" and local
13495         "next".
13496         (set_priorities): Likewise for params "head" and "tail" and local
13497         "insn".
13498         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
13499         local "consumer".
13500         (add_to_speculative_block): Add a checked cast.
13501         (create_check_block_twin): Drop use of SET_DEP_CON.
13502         (add_jump_dependencies): Strengthen params "insn" and "jump" from
13503         rtx to rtx_insn *.
13504
13505         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
13506         Drop use of SET_DEP_PRO
13507         (init_dep): Strengthen params "pro" and "con" from rtx to
13508         rtx_insn *.
13509         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
13510         use of SET_DEP_CON.
13511         (DEP_PRO): Delete.
13512         (DEP_CON): Delete.
13513         (SET_DEP_PRO): Delete.
13514         (SET_DEP_CON): Delete.
13515
13516 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13517
13518         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
13519         from rtx to rtx_insn *.
13520         (VINSN_INSN_RTX): Eliminate rvalue function and...
13521         (SET_VINSN_INSN): ...lvalue function in favor of...
13522         (VINSN_INSN_RTX): reinstate this old macro.
13523
13524         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
13525         in favor of VINSN_INSN_RTX.
13526         (VINSN_INSN_RTX): Delete this function.
13527         (SET_VINSN_INSN_RTX): Likewise.
13528
13529 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13530
13531         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
13532         (BND_TO): Delete this function and...
13533         (SET_BND_TO): ...this functions in favor of...
13534         (BND_TO): ...reinstating this macro.
13535         (struct _fence): Strengthen field "executing_insns" from
13536         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
13537         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
13538         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
13539         and param "insn" from rtx to insn_t.
13540         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
13541         rtx_insn *.
13542
13543         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
13544         vec<rtx_insn *> .
13545         (rtx_vec_t): Likewise.
13546         (struct sched_deps_info_def): Strengthen param of "start_insn"
13547         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
13548         "note_mem_dep" callback and first param of "note_dep" callback.
13549
13550         * haifa-sched.c (add_to_speculative_block): Strengthen param
13551         "insn" from rtx to rtx_insn *.
13552         (clear_priorities): Likewise.
13553         (calc_priorities): Likewise for local "insn".
13554
13555         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
13556         Remove redundant checked cast.
13557         (haifa_note_mem_dep): Likewise for param "pending_insn".
13558         (haifa_note_dep): Likewise for param "elem".
13559         (note_mem_dep): Likewise for param "e".
13560         (sched_analyze_1): Add checked casts.
13561         (sched_analyze_2): Likewise.
13562
13563         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
13564         from rtx to rtx_insn *.
13565         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
13566         from vec<rtx> * to vec<rtx_insn *> *.
13567
13568         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
13569         scaffolding.
13570         (flist_add): Strengthen param "executing_insns" from
13571         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
13572         (advance_deps_context): Remove now-redundant checked cast.
13573         (init_fences): Replace uses of NULL_RTX with NULL.
13574         (merge_fences): Strengthen params "last_scheduled_insn" and
13575         "sched_next" from rtx to rtx_insn * and "executing_insns" from
13576         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
13577         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
13578         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
13579         an instruction, rather than doing double-duty as a pattern.
13580         (return_nop_to_pool): Update for change of insn_t.
13581         (deps_init_id): Remove now-redundant checked cast.
13582         (struct sched_scan_info_def): Strengthen param of "init_insn"
13583         callback from rtx to insn_t.
13584         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
13585         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
13586         NULL.
13587         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
13588         "end" from rtx to rtx_insn *.
13589         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
13590         (rtx insn_rtx, bool force_unique_p)
13591         (BND_TO): Delete function.
13592         (SET_BND_TO): Delete function.
13593
13594         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
13595         rtx to rtx_insn *.
13596         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
13597         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
13598         rtx to rtx_insn *.
13599         (undo_transformations): Likewise for param "insn".
13600         (update_liveness_on_insn): Likewise.
13601         (compute_live_below_insn): Likewise for param "insn" and local
13602         "succ".
13603         (update_data_sets): Likewise for param "insn".
13604         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
13605         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
13606         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
13607         rtx_insn *.
13608         (move_cond_jump): Likewise for param "insn".
13609         (move_cond_jump): Drop use of SET_BND_TO.
13610         (compute_av_set_on_boundaries): Likewise.
13611         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
13612         (update_and_record_unavailable_insns): Strengthen local "bb_end"
13613         from rtx to rtx_insn *.
13614         (maybe_emit_renaming_copy): Likewise for param "insn".
13615         (maybe_emit_speculative_check): Likewise.
13616         (handle_emitting_transformations): Likewise.
13617         (remove_insn_from_stream): Likewise.
13618         (code_motion_process_successors): Strengthen local "succ" from rtx
13619         to insn_t.
13620
13621 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13622
13623         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
13624         ilist_t, not _xlist_t;
13625         (ILIST_INSN): Define in terms of new union field "insn".
13626         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
13627         _XLIST_NEXT.
13628         (struct _list_node): Add new field "insn" to the union, of type
13629         insn_t.
13630         (ilist_add): Replace macro with an inline function, requiring an
13631         insn_t.
13632         (ilist_remove): Define this macro directly in terms of
13633         _list_remove, rather than indirectly via _xlist_remove.
13634         (ilist_clear): Likewise, in terms of _list_clear rather than
13635         _xlist_clear.
13636         (ilist_is_in_p): Replace macro with an inline function, requiring
13637         an insn_t.
13638         (_list_iter_cond_insn): New function.
13639         (ilist_iter_remove): Define this macro directly in terms of
13640         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
13641         (ilist_iterator): Define directly in terms of _list_iterator
13642         rather than indirectly through _xlist_iterator.
13643         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
13644         than in terms of _FOR_EACH_X.
13645         (FOR_EACH_INSN_1): Likewise.
13646
13647 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
13648
13649         PR target/60606
13650         PR target/61330
13651         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
13652         DECL_HARD_REGISTER and return for invalid register specifications.
13653         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
13654         DECL_HARD_REGISTER, call expand_one_error_var.
13655         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
13656         CC_REGNUM with non-MODE_CC modes.
13657         (arm_regno_class): Return NO_REGS for PC_REGNUM.
13658
13659 2014-08-26  Marek Polacek  <polacek@redhat.com>
13660
13661         PR c/61271
13662         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
13663
13664 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
13665
13666         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
13667         qi cost; add di cost.
13668         (cortexa57_addrcost_table): Likewise.
13669
13670 2014-08-26  Marek Polacek  <polacek@redhat.com>
13671
13672         PR c/61271
13673         * expr.c (is_aligning_offset): Remove logical not.
13674
13675 2014-08-26  Marek Polacek  <polacek@redhat.com>
13676
13677         PR c/61271
13678         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
13679         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
13680
13681 2014-08-26  Richard Biener  <rguenther@suse.de>
13682
13683         PR tree-optimization/62175
13684         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
13685         expand possibly trapping operations.
13686
13687 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
13688
13689         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
13690         "insn" from rtx to rtx_insn *.
13691         (permute_load): Likewise for param "insn".
13692         (permute_store): Likewise.
13693         (handle_special_swappables): Likewise for local "insn".
13694         (replace_swap_with_copy): Likewise for locals "insn" and
13695         "new_insn".
13696         (rs6000_analyze_swaps): Likewise for local "insn".
13697
13698 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13699
13700         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
13701         to rtx_insn *.
13702
13703 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13704
13705         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
13706         "note_list" from rtx to rtx_insn *.
13707         (BB_NOTE_LIST): Replace this function and...
13708         (SET_BB_NOTE_LIST): ...this function with...
13709         (BB_NOTE_LIST): ...the former macro implementation.
13710
13711         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
13712         local "from_start" from rtx to rtx_insn *.  Strengthen param
13713         "to_endp" from rtx * to rtx_insn **.
13714
13715         * haifa-sched.c (concat_note_lists): Likewise.
13716         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
13717         BB_NOTE_LIST.
13718         (sel_restore_notes): Likewise.
13719         (move_bb_info): Likewise.
13720         (BB_NOTE_LIST): Delete this function.
13721         (SET_BB_NOTE_LIST): Delete this function.
13722         * sel-sched.c (create_block_for_bookkeeping): Eliminate
13723         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
13724
13725 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
13726
13727         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
13728         from rtx * to rtx_insn **.
13729         (reorder2): Likewise.
13730         (dependencies_evaluation_hook): Strengthen params "head", "tail"
13731         from rtx to rtx_insn *.
13732
13733         * doc/tm.texi: Update mechanically for above change to target.def.
13734
13735         * sched-int.h (note_list): Strengthen this variable from rtx to
13736         rtx_insn *.
13737         (remove_notes): Likewise for both params.
13738         (restore_other_notes): Likewise for return type and first param.
13739         (struct ready_list): Strengthen field "vec" from rtx * to
13740         rtx_insn **.
13741         (struct dep_replacement): Strenghten field "insn" from rtx to
13742         rtx_insn *.
13743         (struct deps_desc): Likewise for fields "last_debug_insn",
13744         "last_args_size".
13745         (struct haifa_sched_info): Likewise for callback field
13746         "can_schedule_ready_p"'s param, for first param of "new_ready"
13747         callback field, for both params of "rank" callback field, for
13748         first field of "print_insn" callback field (with a const), for
13749         both params of "contributes_to_priority" callback, for param
13750         of "insn_finishes_block_p" callback, for fields "prev_head",
13751         "next_tail", "head", "tail", for first param of "add_remove_insn"
13752         callback, for first param of "begin_schedule_ready" callback, for
13753         both params of "begin_move_insn" callback, and for second param
13754         of "advance_target_bb" callback.
13755         (add_dependence): Likewise for params 1 and 2.
13756         (sched_analyze): Likewise for params 2 and 3.
13757         (deps_analyze_insn): Likewise for param 2.
13758         (ready_element): Likewise for return type.
13759         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
13760         (try_ready): Strenghten param from rtx to rtx_insn *.
13761         (sched_emit_insn): Likewise for return type.
13762         (record_delay_slot_pair): Likewise for params 1 and 2.
13763         (add_delay_dependencies): Likewise for param.
13764         (contributes_to_priority): Likewise for both params.
13765         (find_modifiable_mems): Likewise.
13766
13767         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
13768         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
13769         "first_older_only_insn" from rtx to rtx_insn *.
13770         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
13771         rtx_insn **.
13772
13773         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
13774         "last_scheduled_iter0" from rtx to rtx_insn *.
13775         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
13776         (c6x_sched_reorder_1): Strengthen param "ready" and locals
13777         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
13778         "insn" from rtx to rtx_insn *.
13779         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
13780         rtx_insn **.
13781         (c6x_sched_reorder2): Strengthen param "ready" and locals
13782         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
13783         "insn" from rtx to rtx_insn *.
13784         (c6x_variable_issue):  Add a checked cast when assigning from insn
13785         to ss.last_scheduled_iter0.
13786         (split_delayed_branch): Strengthen param "insn" and local "i1"
13787         from rtx to rtx_insn *.
13788         (split_delayed_nonbranch): Likewise.
13789         (undo_split_delayed_nonbranch): Likewise for local "insn".
13790         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
13791         "entry_after", "end_packet", "head_insn", "tail_insn",
13792         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
13793         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
13794         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
13795         but add a checked cast on loop->start_label.  Consolidate calls to
13796         avoid assigning result of gen_spkernel to "insn", now an
13797         rtx_insn *.
13798
13799         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
13800         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
13801         rtx to rtx_insn *.
13802         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
13803         rtx_insn **.  Strengthen locals "top", "next" from rtx to
13804         rtx_insn *.
13805         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
13806         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
13807         (add_parameter_dependencies): Strengthen params "call", "head" and
13808         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
13809         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
13810         (add_dependee_for_func_arg): Likewise for param "arg" and local
13811         "insn".
13812         (ix86_dependencies_evaluation_hook): Likewise for params "head",
13813         "tail" and locals "insn", "first_arg".
13814
13815         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
13816         for params "head", "tail" and locals "insn", "next", "next_tail".
13817         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
13818         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
13819         "insn", "lowest", "highest" from rtx to rtx_insn *.
13820         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
13821         rtx_insn **.
13822         (ia64_sched_reorder2): Likewise.
13823
13824         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
13825         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
13826         from rtx * to rtx_insn **.
13827         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
13828         rtx_insn **.
13829         (mep_print_sched_insn): Strengthen param "insn" from rtx to
13830         rtx_insn *.
13831         (mep_sched_reorder): Strengthen param "ready" from rtx * to
13832         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
13833         to rtx_insn *.
13834
13835         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
13836         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
13837         to rtx_insn *.
13838         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
13839         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
13840         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
13841         rtx_insn **.
13842         (vr4130_reorder): Likewise.
13843         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
13844         rtx to rtx_insn *.
13845         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
13846         rtx_insn **.
13847         (mips_sched_reorder): Likewise.
13848         (mips_sched_reorder2): Likewise.
13849
13850         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
13851
13852         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
13853         Strengthen local "tmp" from rtx to rtx_insn *.
13854         (rs6000_sched_reorder2): Likewise.
13855
13856         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
13857         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
13858         (s390_sched_reorder): Strengthen param "ready" from rtx * to
13859         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
13860
13861         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
13862         "tmp2" from rtx to rtx_insn *.
13863         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
13864         Strengthen local "insn" from rtx to rtx_insn *.
13865         (ready_reorder): Strengthen param "ready" from rtx * to
13866         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
13867         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
13868         (sh_reorder2): Likewise.
13869
13870         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
13871         local "insn" from rtx to rtx_insn *.
13872
13873         * haifa-sched.c (note_list): Strengthen this variable from rtx to
13874         rtx_insn *.
13875         (scheduled_insns): Strengthen this variable from vec<rtx> to
13876         vec<rtx_insn *>.
13877         (set_modulo_params): Likewise for locals "i1", "i2".
13878         (record_delay_slot_pair): Likewise for params "i1", "i2".
13879         (add_delay_dependencies): Likewise for param "insn".
13880         (cond_clobbered_p): Likewise.
13881         (recompute_todo_spec): Likewise for local "prev".
13882         (last_scheduled_insn): Likewise for this variable.
13883         (nonscheduled_insns_begin): Likewise.
13884         (model_set_excess_costs): Strengthen param "insns" from rtx * to
13885         rtx_insn **.
13886         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
13887         rtx_insn *.
13888         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
13889         Strengthen local "insn" from rtx to rtx_insn *.
13890         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
13891         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
13892         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
13893         (ready_remove_first): Likewise for return type and local "t".
13894         (ready_element): Likewise for return type.
13895         (ready_remove): Likewise for return type and local "t".
13896         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
13897         (check_clobbered_conditions): Strengthen local "x" from rtx to
13898         rtx_insn *, adding a checked cast.
13899         (schedule_insn): Likewise for param "insn".
13900         (remove_notes): Likewise for params "head", "tail" and locals
13901         "next_tail", "insn", "next".
13902         (struct haifa_saved_data): Likewise for fields
13903         "last_scheduled_insn", "nonscheduled_insns_begin".
13904         (save_backtrack_point): Update for change to field "vec" of
13905         struct ready_list.
13906         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
13907         rtx_insn **.
13908         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
13909         from rtx to rtx_insn *
13910         (resolve_dependencies): Strengthen param "insn" from rtx to
13911         rtx_insn *
13912         (restore_other_notes): Likewise for return type, for param "head"
13913         and local "note_head".
13914         (undo_all_replacements): Likewise for local "insn".
13915         (first_nonscheduled_insn): Likewise for return type and local "insn".
13916         (queue_to_ready): Likewise for local "insn", adding checked casts.
13917         (early_queue_to_ready): Likewise for local "insn".
13918         (debug_ready_list_1): Strengthen local "p" from rtx * to
13919         rtx_insn **.
13920         (move_insn): Strengthen param "insn" and local "note" from rtx to
13921         rtx_insn *
13922         (insn_finishes_cycle_p): Likewise for param "insn".
13923         (max_issue): Likewise for local "insn".
13924         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
13925         to rtx_insn **.
13926         (commit_schedule): Strengthen param "prev_head" and local "insn"
13927         from rtx to rtx_insn *
13928         (prune_ready_list): Likewise for local "insn".
13929         (schedule_block): Likewise for locals "prev_head", "head", "tail",
13930         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
13931         (set_priorities): Likewise for local "prev_head".
13932         (try_ready): Likewise for param "next".
13933         (fix_tick_ready): Likewise.
13934         (change_queue_index): Likewise.
13935         (sched_extend_ready_list): Update for change to field "vec" of
13936         struct ready_list.
13937         (generate_recovery_code): Strengthen param "insn" from rtx to
13938         rtx_insn *.
13939         (begin_speculative_block): Likewise.
13940         (create_check_block_twin): Likewise for param "insn" and locals
13941         "label", "check", "twin".  Introduce local "check_pat" to avoid
13942         "check" being used as a plain rtx before being used as an insn.
13943         (fix_recovery_deps): Add a checked cast to rtx_insn * when
13944         extracting elements from ready_list.
13945         (sched_remove_insn): Strengthen param "insn" from rtx to
13946         rtx_insn *.
13947         (sched_emit_insn): Likewise for return type.
13948         (ready_remove_first_dispatch): Likewise for return type and local
13949         "insn".
13950
13951         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
13952
13953         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
13954         const rtx_insn *.
13955
13956         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
13957         from rtx to rtx_insn *.
13958         (add_dependence_list): Likewise for param "insn".  Add a checked
13959         cast.
13960         (add_dependence_list_and_free): Strengthen param "insn" from rtx
13961         to rtx_insn *.  Strengthen param "list_p" from rtx * to
13962         rtx_insn **.
13963         (chain_to_prev_insn): Strengthen param "insn" and locals
13964         "prec_nonnote", "i" from rtx to rtx_insn *.
13965         (flush_pending_lists): Likewise for param "insn".
13966         (cur_insn): Likewise for this variable.
13967         (haifa_start_insn): Add a checked cast.
13968         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
13969         (sched_analyze_reg): Likewise for param "insn".
13970         (sched_analyze_1): Likewise.
13971         (sched_analyze_2): Likewise.  Add checked casts.
13972         (sched_analyze_insn): Likewise.  Also for local "prev".
13973         (deps_analyze_insn): Likewise for param "insn".
13974         (sched_analyze): Likewise for params "head", "tail" and local "insn".
13975         (add_dependence_1): Likewise for params "insn", "elem".
13976         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
13977         (parse_add_or_inc): Likewise for param "insn".
13978         (find_inc): Likewise for local "inc_cand".
13979         (find_modifiable_mems): Likewise for params "head", "tail" and
13980         locals "insn", "next_tail".
13981
13982         * sched-ebb.c (init_ready_list): Likewise for local "insn".
13983         (begin_schedule_ready): Likewise for param "insn".
13984         (begin_move_insn): Likewise for params "insn" and "last".
13985         (ebb_print_insn): Strengthen param "insn" from const_rtx to
13986         const rtx_insn *.
13987         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
13988         (ebb_contributes_to_priority): Likewise for params "next", "insn".
13989         (ebb_add_remove_insn): Likewise for param "insn".
13990         (advance_target_bb): Likewise.
13991
13992         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
13993         "insn".
13994         (check_live): Likewise for param "insn".
13995         (init_ready_list): Likewise for local "insn".
13996         (can_schedule_ready_p): Likewise for param "insn".
13997         (begin_schedule_ready): Likewise.
13998         (new_ready): Likewise for param "next".
13999         (rgn_print_insn): Likewise for param "insn".
14000         (rgn_rank): Likewise for params "insn1", "insn2".
14001         (contributes_to_priority): Likewise for params "next", "insn".
14002         (rgn_insn_finishes_block_p): Likewise for param "insn".
14003         (add_branch_dependences): Likewise for params "head", "tail" and
14004         locals "insn", "last".
14005         (rgn_add_remove_insn): Likewise for param "insn".
14006         (advance_target_bb): Likewise.
14007
14008         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
14009         const_rtx to const rtx_insn *.
14010
14011         * sel-sched-dump.h (sel_print_insn): Likewise.
14012
14013         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
14014         (deps_init_id): Likewise.
14015
14016         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
14017         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
14018         rtx_insn **.
14019
14020 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14021
14022         * output.h (final_start_function): Strengthen param 1 from rtx to
14023         rtx_insn *.
14024
14025         * final.c (final_start_function): Likewise, renaming back from
14026         "uncast_first" to "first", and dropping the checked cast from rtx
14027         to rtx_insn *.
14028
14029 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14030
14031         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
14032         * final.c (final): Likewise.  Rename param back from
14033         "uncast_first" to "first" and eliminate the checked cast from rtx
14034         to rtx_insn *.
14035
14036 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14037
14038         * output.h (shorten_branches): Strengthen param from rtx to
14039         rtx_insn *.
14040
14041         * final.c (shorten_branches): Likewise, renaming param back from
14042         "uncast_first" to "first", and dropping the checked cast from rtx
14043         to rtx_insn *.
14044
14045         * genattr.c (gen_attr): Likewise when writing out the prototype of
14046         shorten_branches.
14047
14048 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14049
14050         * sched-int.h (struct haifa_sched_info): Strengthen fields
14051         "prev_head" and "next_tail" from rtx to rtx_insn *.
14052
14053 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14054
14055         * rtl.h (rtx_jump_table_data::get_labels): New method.
14056         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
14057         with use of the new rtx_jump_table_data::get_labels method.
14058         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
14059         to rtx_jump_table_data *.  Simplify by using get_labels method.
14060         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
14061         a dyn_cast, introducing local "table", using it to replace
14062         label-lookup logic with a get_labels method call.
14063         (patch_jump_insn): Simplify using get_labels method.
14064         * dwarf2cfi.c (create_trace_edges): Likewise.
14065         * rtlanal.c (label_is_jump_target_p): Likewise.
14066
14067 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14068
14069         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
14070         to rtx_insn *.
14071
14072         * emit-rtl.c (unshare_all_rtl_1): Likewise.
14073         (unshare_all_rtl_again): Likewise, also for local "p".
14074
14075 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14076
14077         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
14078         to rtx_insn *.
14079         * cfgrtl.c (delete_insn_and_edges): Likewise.
14080
14081 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14082
14083         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
14084         from rtx to rtx_insn *.
14085
14086         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
14087
14088 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14089
14090         * function.c (thread_prologue_and_epilogue_insns): Likewise for
14091         locals "returnjump", "epilogue_end", "insn", "next".
14092
14093         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
14094         "returnjump" from rtx * to rtx_insn **.
14095         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
14096
14097 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14098
14099         * basic-block.h (struct edge_def). Strengthen "r" within
14100         union edge_def_insns from rtx to rtx_insn *.
14101
14102         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
14103         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
14104         rtx_insn *.
14105         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
14106         from rtx to rtx_insn *.
14107         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
14108         rtx_insn *.
14109         * postreload-gcse.c (reg_killed_on_edge): Likewise.
14110         (reg_used_on_edge): Likewise.
14111         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
14112         (gt_pch_nx): New overload for rtx_insn *&.
14113         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
14114         from rtx to rtx_insn *.
14115
14116 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14117
14118         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
14119         from rtx to rtx_insn *.
14120         (BB_FOOTER): Replace function with access macro.
14121         (SET_BB_FOOTER): Delete.
14122
14123         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
14124         with BB_FOOTER.
14125         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14126         (emit_barrier_after_bb): Likewise.
14127         (record_effective_endpoints): Likewise.
14128         (relink_block_chain): Likewise.
14129         (fixup_fallthru_exit_predecessor): Likewise.
14130         (cfg_layout_duplicate_bb): Likewise.
14131         (cfg_layout_split_block): Likewise.
14132         (cfg_layout_delete_block): Likewise.
14133         (cfg_layout_merge_blocks): Likewise.
14134         (BB_FOOTER): Delete function.
14135         (SET_BB_FOOTER): Delete function.
14136         * combine.c (update_cfg_for_uncondjump): Replace uses of
14137         SET_BB_FOOTER with BB_FOOTER.
14138
14139 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14140
14141         * except.h (struct eh_landing_pad_d): Strengthen field
14142         "landing_pad" from rtx to rtx_code_label *.
14143
14144         * except.c (sjlj_emit_dispatch_table): Likewise for param
14145         "dispatch_label"
14146         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
14147
14148 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14149
14150         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
14151         first param from rtx to rtx_insn *.
14152         * config/xtensa/xtensa.c (struct machine_function): Likewise for
14153         field "set_frame_ptr_insn".
14154         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
14155         "csend" from rtx to rtx_code_label *.
14156         (xtensa_expand_atomic): Likewise for local "csloop".
14157         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
14158         rtx_insn *.
14159         (xtensa_call_tls_desc): Likewise for return type and locals
14160         "call_insn", "insns".
14161         (xtensa_legitimize_tls_address): Likewise for local "insns".
14162         (xtensa_expand_prologue): Likewise for locals "insn", "first".
14163
14164 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14165
14166         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
14167         first param from rtx to rtx_insn *.
14168         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
14169         "insn".
14170
14171 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14172
14173         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
14174         Strengthen param 1 from rtx to rtx_insn *.
14175         (tilepro_output_cbranch): Likewise.
14176         (tilepro_adjust_insn_length): Likewise.
14177         (tilepro_final_prescan_insn): Likewise for sole param.
14178
14179         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
14180         Likewise for local "last".
14181         (cbranch_predicted_p): Likewise for param "insn".
14182         (tilepro_output_simple_cbranch_with_opcode): Likewise.
14183         (tilepro_output_cbranch_with_opcode): Likewise.
14184         (tilepro_output_cbranch): Likewise.
14185         (frame_emit_load): Likewise for return type and locals "seq",
14186         "insn".
14187         (emit_sp_adjust): Likewise for return type and local "insn".
14188         (tilepro_expand_epilogue): Likewise for locals "last_insn",
14189         "insn".
14190         (tilepro_adjust_insn_length): Likewise for param "insn".
14191         (next_insn_to_bundle): Likewise for return type and params
14192         "r", "end".
14193         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
14194         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
14195         local "new_insns".
14196         (match_addli_pcrel): Likewise for param "insn".
14197         (replace_addli_pcrel): Likewise.
14198         (match_auli_pcrel): Likewise.
14199         (replace_auli_pcrel): Likewise.
14200         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
14201         "next_insn".
14202         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
14203         "queue", "next_queue", "prev".
14204         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
14205         (tilepro_final_prescan_insn): Likewise for param "insn".
14206
14207 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14208
14209         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
14210         Strengthen param 1 from rtx to rtx_insn *.
14211         (tilegx_output_cbranch): Likewise.
14212         (tilegx_adjust_insn_length): Likewise.
14213         (tilegx_final_prescan_insn): Likewise for sole param.
14214
14215         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
14216         or local "last".
14217         (cbranch_predicted_p): Likewise for param "insn".
14218         (tilegx_output_simple_cbranch_with_opcode): Likewise.
14219         (tilegx_output_cbranch_with_opcode): Likewise.
14220         (tilegx_output_cbranch): Likewise.
14221         (frame_emit_load): Likewise for return type.
14222         (set_frame_related_p): Likewise for locals "seq", "insn".
14223         (emit_sp_adjust): Likewise for return type, and for local "insn".
14224         Introduce local "pat" for use in place of "insn" where the latter
14225         isn't an instruction.
14226         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
14227         from rtx to rtx_insn *.
14228         (tilegx_adjust_insn_length): Likewise for param "insn".
14229         (next_insn_to_bundle): Likewise for return type and params "r" and
14230         "end".
14231         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
14232         "end".
14233         (replace_insns): Likewise for params "old_insn", "new_insns".
14234         (replace_mov_pcrel_step1): Likewise for param "insn" and local
14235         "new_insns".
14236         (replace_mov_pcrel_step2): Likewise.
14237         (replace_mov_pcrel_step3): Likewise.
14238         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
14239         "next_insn".
14240         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
14241         "queue", "next_queue", "prev".
14242         (tilegx_output_mi_thunk): Likewise for local "insn".
14243         (tilegx_final_prescan_insn): Likewise for param "insn".
14244
14245 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14246
14247         * config/spu/spu.c (frame_emit_store): Strengthen return type from
14248         rtx to rtx_insn *.
14249         (frame_emit_load): Likewise.
14250         (frame_emit_add_imm): Likewise, also for local "insn".
14251         (spu_expand_prologue): Likewise for local "insn".
14252         (struct spu_bb_info): Likewise for field "prop_jump".
14253         (emit_nop_for_insn): Likewise for param "insn" and local
14254         "new_insn".
14255         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
14256         "hbr_insn".
14257         (spu_emit_branch_hint): Likewise for params "before", "branch" and
14258         locals "hint", "insn".
14259         (get_branch_target): Likewise for param "branch".
14260         (insn_clobbers_hbr): Likewise for param "insn".
14261         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
14262         locals "insn", "before_4", "before_16".
14263         (insert_hbrp): Likewise for local "insn".
14264         (spu_machine_dependent_reorg): Likewise for locals "branch",
14265         "insn", "next", "bbend".
14266         (uses_ls_unit): Likewise for param "insn".
14267         (get_pipe): Likewise.
14268         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
14269         introducing a checked cast.
14270         (spu_sched_adjust_cost): Likewise for params "insn" and
14271         "dep_insn".
14272         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
14273         (spu_sms_res_mii): Likewise.
14274
14275 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14276
14277         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
14278         from rtx to rtx_insn *.
14279         (output_cbranch): Likewise for param 6.
14280         (output_return): Likewise for param 1.
14281         (output_sibcall): Likewise.
14282         (output_v8plus_shift): Likewise.
14283         (output_v8plus_mult): Likewise.
14284         (output_v9branch): Likewise for param 7.
14285         (output_cbcond):  Likewise for param 3.
14286
14287         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
14288         for local "insn".
14289         (sparc_legitimize_pic_address): Likewise.
14290         (sparc_emit_call_insn): Likewise.
14291         (emit_save_or_restore_regs): Likewise.
14292         (emit_window_save): Likewise for return type and local "insn".
14293         (sparc_expand_prologue): Likewise for local "insn".
14294         (sparc_flat_expand_prologue): Likewise.
14295         (output_return): Likewise for param "insn".
14296         (output_sibcall): Likewise for param "insn" and local "delay".
14297         (output_ubranch): Likewise for param "insn".
14298         (output_cbranch): Likewise.
14299         (output_cbcond): Likewise.
14300         (output_v9branch): Likewise.
14301         (output_v8plus_shift): Likewise.
14302         (sparc_output_mi_thunk): Likewise for local "insn".
14303         (get_some_local_dynamic_name): Likewise.
14304         (output_v8plus_mult): Likewise for param "insn".
14305
14306 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14307
14308         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
14309         from rtx to rtx_insn *.
14310         (output_branchy_insn): Likewise for param 3.
14311         (output_far_jump): Likewise for param 1.
14312         (final_prescan_insn): Likewise.
14313         (sh_insn_length_adjustment): Likewise for sole param.
14314
14315         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
14316         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
14317         rtx_code_label *.
14318         (sh_emit_compare_and_set): Likewise for local "lab".
14319         (output_far_jump): Strengthen param "insn" and local "prev" from
14320         rtx to rtx_insn *.
14321         (output_branchy_insn): Likewise for param "insn" and local
14322         "next_insn".
14323         (output_ieee_ccmpeq): Likewise for param "insn".
14324         (struct label_ref_list_d): Strengthen field "label" from rtx to
14325         rtx_code_label *.
14326         (pool_node): Likewise.
14327         (pool_window_label): Likewise for this global.
14328         (add_constant): Likewise for return type and locals "lab", "new_rtx".
14329         (dump_table): Strengthen params "start", "barrier" and local
14330         "scan" from rtx to rtx_insn *.
14331         (broken_move): Likewise for param "insn".
14332         (untangle_mova): Likewise for params "first_mova" and "new_mova".
14333         Strengthen param "first_mova" from rtx * to rtx_insn **.
14334         (mova_p): Likewise for param "insn".
14335         (fixup_mova): Likewise for param "mova".
14336         (find_barrier): Likewise for return type, params "mova" and
14337         "from", and locals "barrier_before_mova", "found_barrier",
14338         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
14339         "label" from rtx to rtx_code_label *.
14340         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
14341         rtx to rtx_insn *.
14342         (sh_reorg): Likewise for locals "link", "scan", "barrier".
14343         (split_branches): Likewise for param "first" and local "insn".
14344         (final_prescan_insn): Likewise for param "insn".
14345         (sequence_insn_p): Likewise for locals "prev", "next".
14346         (sh_insn_length_adjustment): Likewise for param "insn".
14347         (sh_can_redirect_branch): Likewise for local "insn".
14348         (find_r0_life_regions): Likewise for locals "end", "insn".
14349         (sh_output_mi_thunk): Likewise for local "insns".
14350
14351 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14352
14353         * config/score/score.c (score_output_mi_thunk): Strengthen local
14354         "insn" from rtx to rtx_insn *.
14355         (score_prologue): Likewise.
14356
14357 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14358
14359         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
14360         1 from rtx to rtx_insn *.
14361         (s390_emit_jump): Likewise for return type.
14362         (s390_emit_call): Likewise.
14363         (s390_load_got): Likewise.
14364
14365         * config/s390/s390.c (last_scheduled_insn): Likewise for this
14366         variable.
14367         (s390_match_ccmode): Likewise for param "insn".
14368         (s390_emit_jump): Likewise for return type.
14369         (s390_split_branches): Likewise for local "label".
14370         (struct constant): Strengthen field "label" from rtx to
14371         rtx_code_label *.
14372         (struct constant_pool): Likewise for field "label".  Strengthen
14373         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
14374         rtx_insn *.
14375         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
14376         insns.
14377         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
14378         (s390_end_pool): Likewise.
14379         (s390_dump_pool): Likewise for local "insn".
14380         (s390_mainpool_start): Likewise.
14381         (s390_chunkify_start): Likewise.
14382         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
14383         with insns.  Strengthen locals "label", "jump", "barrier", "next",
14384         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
14385         (s390_chunkify_finish): Strengthen local "insn" from rtx to
14386         rtx_insn *.
14387         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
14388         "jump", "label", "next_insn".
14389         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
14390         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
14391         "tbegin_insn".
14392         (s390_load_got): Likewise for return type and local "insns".
14393         (s390_save_gprs_to_fprs): Likewise for local "insn".
14394         (s390_restore_gprs_from_fprs): Likewise.
14395         (pass_s390_early_mach::execute): Likewise.
14396         (s390_emit_prologue): Likewise for local "insns".
14397         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
14398         rtx_code_label *.
14399         (s390_emit_call): Strengthen return type and local "insn" from
14400         rtx to rtx_insn *.
14401         (s390_emit_tpf_eh_return): Likewise for local "insn".
14402         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
14403         "next_insn", introducing locals "s_pat", "rpat" to allow this.
14404         (s390_fix_long_loop_prediction): Likewise for param "insn" and
14405         local "cur_insn".
14406         (s390_non_addr_reg_read_p): Likewise for param "insn".
14407         (find_cond_jump): Likewise for return type and param "insn".
14408         (s390_swap_cmp): Likewise for param "insn".
14409         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
14410         "prev_insn", "next_insn".
14411         (s390_reorg): Likewise for locals "insn", "target".
14412         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
14413         (s390_sched_variable_issue): For now, rename param "insn" to
14414         "uncast_insn", introducing a checked cast.
14415         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
14416         insn.
14417         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
14418         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
14419
14420 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14421
14422         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
14423         param from rtx to rtx_insn *.
14424         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
14425
14426 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14427
14428         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
14429         4 from rtx to rtx_insn *.
14430         (rs6000_final_prescan_insn): Likewise for first param.
14431         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
14432         local "insn".
14433         (rs6000_get_some_local_dynamic_name): Likewise.
14434         (output_cbranch): Likewise for param "insn".
14435         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
14436         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
14437         (rs6000_emit_allocate_stack): Likewise for local "insn".
14438         (load_cr_save): Likewise.
14439         (restore_saved_cr): Likewise.
14440         (restore_saved_lr): Likewise.
14441         (emit_cfa_restores): Likewise.
14442         (rs6000_output_function_epilogue): Likewise for locals "insn" and
14443         "deleted_debug_label".
14444         (rs6000_output_mi_thunk): Likewise for local "insn".
14445         (rs6000_final_prescan_insn): Likewise for param "insn".
14446
14447 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14448
14449         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
14450         Strengthen param "insn" from rtx to rtx_insn *.
14451         * config/picochip/picochip.c (picochip_current_prescan_insn):
14452         Likewise for this variable.
14453         (picochip_final_prescan_insn): Likewise for param "insn".
14454
14455 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14456
14457         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
14458         from rtx to rtx_insn *.
14459         (pa_output_indirect_call): Likewise.
14460         (pa_adjust_insn_length): Likewise.
14461         (pa_attr_length_millicode_call): Likewise.
14462         (pa_attr_length_call): Likewise.
14463         (pa_attr_length_indirect_call): Likewise.
14464
14465         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
14466         "insn".
14467         (pa_attr_length_millicode_call): Likewise.
14468         (pa_attr_length_call): Likewise.
14469         (pa_output_call): Likewise.
14470         (pa_attr_length_indirect_call): Likewise.
14471         (pa_output_indirect_call): Likewise.
14472
14473 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14474
14475         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
14476         Strengthen first param from rtx to rtx_insn *.
14477         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
14478         param "insn".
14479
14480 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14481
14482         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
14483         type from rtx to rtx_insn *.
14484         (mips_expand_call): Likewise.
14485         (mips_adjust_insn_length): Likewise for first param.
14486         (mips_output_conditional_branch): Likewise.
14487         (mips_output_order_conditional_branch): Likewise.
14488         (mips_final_prescan_insn): Likewise.
14489
14490         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
14491         rtx_insn * for the SEQUENCE case.
14492         (SEQ_END): Likewise.
14493         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
14494         (mips_emit_call_insn): Likewise, also for local "insn".
14495         (mips16_gp_pseudo_reg): Likewise for local "scan".
14496         (mips16_build_call_stub): Likewise for return type and for local
14497         "insn".  Introduce a new local "pattern" so that "insn" can indeed
14498         be an insn.
14499         (mips_expand_call): Strengthen return type and local "insn" from
14500         rtx to rtx_insn *.
14501         (mips_block_move_loop): Strengthen local "label" from rtx to
14502         rtx_code_label *.
14503         (mips_expand_synci_loop): Likewise for locals "label",
14504         "end_label".
14505         (mips_set_frame_expr): Strengthen local "insn" from rtx to
14506         rtx_insn *.
14507         (mips16e_collect_argument_saves): Likewise for locals "insn",
14508         "next".
14509         (mips_find_gp_ref): Likewise for param of callback for "pred"
14510         param, and for local "insn".
14511         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
14512         (mips_insn_has_flexible_gp_ref_p): Likewise.
14513         (mips_epilogue_emit_cfa_restores): Likewise for return type and
14514         local "insn".
14515         (mips_epilogue_set_cfa): Likewise for local "insn".
14516         (mips_expand_epilogue): Likewise.
14517         (mips_adjust_insn_length): Likewise for param "insn".
14518         (mips_output_conditional_branch): Likewise.
14519         (mips_output_order_conditional_branch): Likewise.
14520         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
14521         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
14522         "falu2_turn_enabled_insn".
14523         (mips_builtin_branch_and_move): Strengthen locals "true_label",
14524         "done_label" from rtx to rtx_code_label *.
14525         (struct mips16_constant): Likewise for field "label".
14526         (mips16_add_constant): Likewise for return type.
14527         (mips16_emit_constants_1): Strengthen return type and param "insn"
14528         from rtx to rtx_insn *.
14529         (mips16_emit_constants): Likewise for param "insn".
14530         (mips16_insn_length): Likewise.
14531         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
14532         to rtx_code_label *.
14533         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
14534         from rtx to rtx_insn *.
14535         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
14536         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
14537         (r10k_simplify_address): Strengthen param "insn" and local
14538         "def_insn" from rtx to rtx_insn *.
14539         (r10k_safe_address_p): Strengthen param "insn" from rtx to
14540         rtx_insn *.
14541         (r10k_needs_protection_p_1): Update target type of cast of data
14542         from to rtx to rtx_insn *.
14543         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
14544         rtx * to rtx_insn **.
14545         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
14546         rtx_insn *.
14547         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
14548         (mips_call_expr_from_insn): Likewise for param "insn".
14549         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
14550         (mips_find_pic_call_symbol): Likewise for param "insn".
14551         (mips_annotate_pic_calls): Likewise for local "insn".
14552         (mips_sim_insn): Likewise for this variable.
14553         (struct mips_sim): Likewise for field "insn" within elements of
14554         last_set array.
14555         (mips_sim_wait_reg): Likewise for param "insn".
14556         (mips_sim_wait_regs): Likewise.
14557         (mips_sim_wait_units): Likewise.
14558         (mips_sim_wait_insn): Likewise.
14559         (mips_sim_issue_insn): Likewise.
14560         (mips_sim_finish_insn): Likewise.
14561         (mips_seq_time): Likewise for param "seq" and local "insn".
14562         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
14563         locals "first", "second".
14564         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
14565         "last", "last2", "next".
14566         (mips_avoid_hazard): Likewise for params "after", "insn".
14567         (mips_reorg_process_insns): Likewise for locals "insn",
14568         "last_insn", "subinsn", "next_insn".
14569         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
14570         (mips16_split_long_branches): Likewise for locals "insn" "jump",
14571         "jump_sequence".
14572         (mips_output_mi_thunk): Likewise for local "insn".
14573         (mips_final_prescan_insn): Likewise for param "insn".
14574
14575 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14576
14577         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
14578         Strengthen return type and local "insns" from rtx to rtx_insn *.
14579         (microblaze_legitimize_tls_address): Likewise for local "insns".
14580         (microblaze_block_move_loop): Strengthen local "label" from rtx
14581         to rtx_code_label *.
14582         (microblaze_expand_prologue): Strengthen two locals named "insn"
14583         from rtx to rtx_insn *.
14584         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
14585         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
14586         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
14587         to rtx_code_label *.
14588
14589 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14590
14591         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
14592         param from rtx to rtx_insn *.
14593         (mep_reuse_lo): Likewise for third param.
14594         (mep_use_post_modify_p): Likewise for first param.
14595         (mep_core_address_length): Likewise.
14596         (mep_cop_address_length): Likewise.
14597         (mep_final_prescan_insn): Likewise.
14598         (mep_store_data_bypass_p): Likewise for both params.
14599         (mep_mul_hilo_bypass_p): Likewise.
14600         (mep_ipipe_ldc_p): Likewise for param.
14601
14602         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
14603         (mep_rewrite_mult): Likewise.
14604         (mep_rewrite_mulsi3): Likewise.
14605         (mep_rewrite_maddsi3): Likewise.
14606         (mep_reuse_lo_p_1): Likewise.
14607         (mep_reuse_lo_p): Likewise.
14608         (mep_frame_expr): Likewise.
14609         (mep_make_parallel): Likewise for both params.
14610         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
14611         local "insn".
14612         (mep_use_post_modify_p): Likewise for param "insn".
14613         (mep_core_address_length): Likewise.
14614         (mep_cop_address_length): Likewise.
14615         (mep_reg_set_in_function): Likewise for local "insn".
14616         (mep_asm_without_operands_p): Likewise.
14617         (F): Likewise for return type and param "x".
14618         (add_constant): Likewise for local "insn".
14619         (maybe_dead_move): Likewise for return type and local "insn".
14620         (mep_expand_prologue): Likewise for local "insn".
14621         (mep_final_prescan_insn): Likewise for param "insn".
14622         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
14623         "next", "follow", "x".
14624         (mep_insert_repeat_label_last): Likewise for return type, param
14625         "last_insn", and locals "next", "prev".  Strengthen param "label"
14626         from rtx to rtx_code_label *.
14627         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
14628         rtx_insn *.
14629         (struct mep_doloop_end): Likewise for fields "insn" and
14630         "fallthrough".
14631         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
14632         Strengthen local "repeat_label" from rtx to rtx_code_label *.
14633         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
14634         rtx_insn *.
14635         (mep_invert_branch): Likewise for params "insn" and "after".
14636         (mep_reorg_erepeat): Likewise for param "insns" and locals
14637         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
14638         "l" from rtx to rtx_code_label *.
14639         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
14640         from rtx to rtx_insn *.
14641         (mep_reorg_addcombine): Likewise for param "insns" and locals
14642         "i", "n".
14643         (add_sp_insn_p): Likewise for param "insn".
14644         (mep_reorg_noframe): Likewise for param "insns" and locals
14645         "start_frame_insn", "end_frame_insn", "next".
14646         (mep_reorg): Likewise for local "insns".
14647         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
14648         cast.
14649         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
14650         (mep_mul_hilo_bypass_p): Likewise.
14651         (mep_ipipe_ldc_p): Likewise for param "insn".
14652         (mep_make_bundle): Likewise for return type, param "cop" and local
14653         "insn", splitting out the latter into a new local "seq" for when it
14654         is a SEQUENCE rather than an insn.
14655         (core_insn_p): Likewise for param "insn".
14656         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
14657         "last", "first", "note", "prev", "core_insn".
14658
14659 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14660
14661         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
14662         rtx to rtx_insn *.
14663         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
14664         (m68k_final_prescan_insn): Likewise for first param.
14665
14666         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
14667         (m68k_set_frame_related): Likewise for param "insn".
14668         (output_btst): Likewise for param "insn".
14669         (m68k_final_prescan_insn): Likewise.
14670         (m68k_move_to_reg): Likewise for local "insn".
14671         (m68k_call_tls_get_addr): Likewise for local "insns".
14672         (m68k_call_m68k_read_tp): Likewise.
14673         (strict_low_part_peephole_ok): Likewise for param "first_insn".
14674         (m68k_output_mi_thunk): Likewise for local "insn".
14675
14676 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14677
14678         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
14679         first param from rtx to rtx_insn *.
14680         (iq2000_adjust_insn_length): Likewise.
14681         (iq2000_output_conditional_branch): Likewise.
14682         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
14683         "insn" and local "nop_insn".
14684         (iq2000_annotate_frame_insn): Likewise for param "insn".
14685         (iq2000_expand_prologue): Likewise for both locals "insn".
14686         (iq2000_adjust_insn_length): Likewise for param "insn".
14687         (iq2000_output_conditional_branch): Likewise.
14688
14689 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14690
14691         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
14692         "insns" from rtx to rtx_insn *.
14693         (ia64_emit_cond_move): Likewise for locals "insn", "first".
14694         (struct spill_fill_data): Likewise for field "init_after" and for
14695         elements of array field "prev_insn".
14696         (spill_restore_mem): Likewise for locals "insn", "first".
14697         (do_spill): Likewise for local "insn".
14698         (do_restore): Likewise.
14699         (ia64_expand_prologue): Likewise.
14700         (ia64_expand_epilogue): Likewise.
14701         (emit_insn_group_barriers): Likewise for locals "insn",
14702         "last_label".
14703         (emit_all_insn_group_barriers): Likewise for locals "insn",
14704         "last".
14705         (dfa_stop_insn): Likewise for this global.
14706         (dfa_pre_cycle_insn): Likewise.
14707         (ia64_nop): Likewise.
14708         (final_emit_insn_group_barriers): Likewise for locals "insn",
14709         "last".
14710         (emit_predicate_relation_info): Likewise for locals "head", "n",
14711         "insn", "b", "a".
14712         (ia64_reorg): Likewise for local "insn".
14713         (ia64_output_mi_thunk): Likewise.
14714         (expand_vec_perm_interleave_2): Likewise for local "seq".
14715
14716 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14717
14718         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
14719         param 1 "insn" from rtx to rtx_insn *.
14720         (ix86_use_lea_for_mov): Likewise.
14721         (ix86_avoid_lea_for_addr): Likewise.
14722         (ix86_split_lea_for_addr): Likewise.
14723         (ix86_lea_for_add_ok): Likewise.
14724         (ix86_output_call_insn): Likewise.
14725
14726         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
14727         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
14728         (ix86_output_function_epilogue): Likewise for locals "insn",
14729         "deleted_debug_label".
14730         (legitimize_tls_address): Likewise for local "insn".
14731         (get_some_local_dynamic_name): Likewise.
14732         (increase_distance): Likewise for params "prev", "next".
14733         (distance_non_agu_define_in_bb): Likewise for params "insn",
14734         "start" and locals "prev", "next".
14735         (distance_non_agu_define): Likewise for param "insn".
14736         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
14737         locals "next", "prev".
14738         (distance_agu_use): Likewise for param "insn".
14739         (ix86_lea_outperforms): Likewise.
14740         (ix86_ok_to_clobber_flags): Likewise.
14741         (ix86_avoid_lea_for_add): Likewise.
14742         (ix86_use_lea_for_mov): Likewise.
14743         (ix86_avoid_lea_for_addr): Likewise.
14744         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
14745         (ix86_split_lea_for_addr): Likewise for param "insn".
14746         (ix86_lea_for_add_ok): Likewise for param "insn".
14747         (ix86_expand_carry_flag_compare): Likewise for local
14748         "compare_seq".
14749         (ix86_expand_int_movcc): Likewise.
14750         (ix86_output_call_insn): Likewise for param "insn".
14751         (ix86_output_call_insn): Likewise for local "i".
14752         (x86_output_mi_thunk): Introduce local "insn", using it in place
14753         of "tmp" when dealing with insns.
14754         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
14755         "start".
14756         (ix86_pad_returns): Likewise for locals "ret", "prev".
14757         (ix86_count_insn_bb): Likewise for local "insn".
14758         (ix86_pad_short_function): Likewise for locals "ret", "insn".
14759         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
14760         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
14761         (expand_vec_perm_interleave2): Likewise for local "seq".
14762         (expand_vec_perm_vperm2f128_vblend): Likewise.
14763         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
14764         call to for_each_rtx with for_each_rtx_in_insn.
14765
14766 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14767
14768         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
14769         "label" from rtx to rtx_code_label *.
14770         (ix86_expand_prologue): Likewise.
14771         (ix86_expand_split_stack_prologue): Likewise for locals "label",
14772         "varargs_label".
14773         (ix86_split_idivmod): Likewise for locals "end_label" and
14774         "qimode_label".
14775         (ix86_expand_branch): Likewise for local "label2".
14776         (ix86_expand_aligntest): Likewise for return type and local "label".
14777         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
14778         "top_label".
14779         (expand_movmem_epilogue): Likewise for the various locals named
14780         "label".
14781         (expand_setmem_epilogue): Likewise.
14782         (expand_small_movmem_or_setmem): Likewise for local "label".
14783         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
14784         Strengthen param "done_label" from rtx * to rtx_code_label **.
14785         Strengthen locals "loop_label" and "label" from rtx to
14786         rtx_code_label *.
14787         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
14788         Likewise for locals "loop_label", "label".
14789         (ix86_expand_set_or_movmem): Likewise for locals "label",
14790         "jump_around_label", "hot_label".
14791         (ix86_expand_strlensi_unroll_1): Likewise for locals
14792         "align_2_label", align_3_label", "align_4_label", "end_0_label",
14793         "end_2_label".
14794         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
14795         (void ix86_emit_i387_log1p): Likewise for locals "label1",
14796         "label2", "jump_label".
14797         (ix86_expand_sse_compare_and_jump): Likewise for return type and
14798         local "label".
14799         (ix86_expand_lfloorceil): Likewise for local "label".
14800         (ix86_expand_rint): Likewise.
14801         (ix86_expand_floorceildf_32): Likewise.
14802         (ix86_expand_floorceil): Likewise.
14803         (ix86_expand_rounddf_32): Likewise.
14804         (ix86_expand_trunc): Likewise.
14805         (ix86_expand_truncdf_32): Likewise.
14806         (ix86_expand_round): Likewise.
14807
14808 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14809
14810         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
14811         first param from rtx to rtx_insn *.
14812         (h8300_insn_length_from_table): Likewise.
14813         * config/h8300/h8300.c (F): Likewise for return type and param
14814         "x".
14815         (Fpa): Add a checked cast to rtx_insn *.
14816         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
14817         rtx_insn *.
14818         (final_prescan_insn): Likewise for param "insn".
14819         (h8300_binary_length): Likewise.
14820         (h8300_insn_length_from_table): Likewise.
14821
14822 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14823
14824         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
14825         Strengthen first param "insn" from rtx to rtx_insn *.
14826
14827         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
14828         Likewise.
14829         (frame_insn): Likewise for return type.  Introduce local "insn"
14830         for use in place of local "x" for use as an rtx_insn *.
14831         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
14832         (epiphany_expand_prologue): Likewise for local "insn".
14833         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
14834         * config/epiphany/resolve-sw-modes.c
14835         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
14836         "seq".
14837
14838 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14839
14840         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
14841         param from rtx to rtx_insn *.
14842         (c6x_final_prescan_insn): Likewise for first param.
14843
14844         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
14845         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
14846         (c6x_expand_compare): Strengthen local "insns" from rtx to
14847         rtx_insn *.
14848         (c6x_get_unit_specifier): Likewise for param "insn".
14849         (c6x_print_unit_specifier_field): Likewise.
14850         (c6x_final_prescan_insn): Likewise.
14851         (emit_add_sp_const): Likewise for local "insn".
14852         (c6x_expand_prologue): Likewise.
14853
14854 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14855
14856         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
14857         param 1 from rtx to rtx_insn *.
14858         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
14859         the various locals named "insn".
14860         (expand_epilogue_reg_restore): Likewise.
14861         (frame_related_constant_load): Likewise.
14862         (add_to_reg): Likewise.
14863         (emit_link_insn): Likewise.
14864         (do_link): Likewise.
14865         (expand_interrupt_handler_prologue): Likewise.
14866         (branch_dest): Likewise for param "branch".
14867         (asm_conditional_branch): Likewise for param "insn".
14868         (gen_one_bundle): Likewise for elements of param "slot" and local
14869         "t".
14870         (bfin_gen_bundles): Likewise for locals "insn", "next" and
14871         elements of local "slot".
14872         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
14873         "queue", "next_queue", "prev".
14874         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
14875         (add_sched_insns_for_speculation): Likewise for local "insn".
14876
14877 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14878
14879         * config/avr/avr-protos.h (output_movqi): Strengthen first param
14880         from rtx to rtx_insn *.
14881         (output_movhi): Likewise.
14882         (output_movsisf): Likewise.
14883         (avr_out_tstsi): Likewise.
14884         (avr_out_tsthi): Likewise.
14885         (avr_out_tstpsi): Likewise.
14886         (avr_out_compare): Likewise.
14887         (avr_out_compare64): Likewise.
14888         (avr_out_movpsi): Likewise.
14889         (ashlqi3_out): Likewise.
14890         (ashlhi3_out): Likewise.
14891         (ashlsi3_out): Likewise.
14892         (ashrqi3_out): Likewise.
14893         (ashrhi3_out): Likewise.
14894         (ashrsi3_out): Likewise.
14895         (lshrqi3_out): Likewise.
14896         (lshrhi3_out): Likewise.
14897         (lshrsi3_out): Likewise.
14898         (avr_out_ashlpsi3): Likewise.
14899         (avr_out_ashrpsi3): Likewise.
14900         (avr_out_lshrpsi3): Likewise.
14901         (avr_out_fract): Likewise.
14902         (avr_out_sbxx_branch): Likewise.
14903         (avr_out_round): Likewise.
14904         (avr_out_xload): Likewise.
14905         (avr_out_movmem): Likewise.
14906         (adjust_insn_length): Likewise.
14907         (avr_out_lpm): Likewise.
14908         (reg_unused_after): Likewise.
14909         (_reg_unused_after): Likewise.
14910         (avr_jump_mode): Likewise for second param.
14911         (jump_over_one_insn): Likewise for first param.
14912         (avr_final_prescan_insn): Likewise.
14913         (out_shift_with_cnt): Likewise for second param.
14914
14915         * config/avr/avr.c (get_sequence_length): Likewise for param
14916         "insns" and local "insn".
14917         (emit_push_byte): Likewise for local "insn".
14918         (emit_push_sfr): Likewise.
14919         (avr_prologue_setup_frame): Likewise for locals "insn",
14920         "fp_plus_insns", "sp_plus_insns".
14921         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
14922         "sp_plus_insns".
14923         (avr_jump_mode): Likewise for param "insn".
14924         (avr_final_prescan_insn): Likewise.
14925         (avr_find_unused_d_reg): Likewise.
14926         (avr_out_lpm_no_lpmx): Likewise.
14927         (avr_out_lpm): Likewise.
14928         (avr_out_xload): Likewise.
14929         (output_movqi): Likewise.
14930         (output_movhi): Likewise.
14931         (out_movqi_r_mr): Likewise.
14932         (out_movhi_r_mr): Likewise.
14933         (out_movsi_r_mr): Likewise.
14934         (out_movsi_mr_r): Likewise.
14935         (output_movsisf): Likewise.
14936         (avr_out_load_psi): Likewise.
14937         (avr_out_store_psi): Likewise.
14938         (avr_out_movpsi): Likewise.
14939         (out_movqi_mr_r): Likewise.
14940         (avr_out_movhi_mr_r_xmega): Likewise.
14941         (out_movhi_mr_r): Likewise.
14942         (compare_condition): Likewise for param "insn" and local "next".
14943         (compare_sign_p): Likewise for param "insn".
14944         (compare_diff_p): Likewise.
14945         (compare_eq_p): Likewise.
14946         (avr_out_compare): Likewise.
14947         (avr_out_compare64): Likewise.
14948         (avr_out_tsthi): Likewise.
14949         (avr_out_tstpsi): Likewise.
14950         (avr_out_tstsi): Likewise.
14951         (out_shift_with_cnt): Likewise.
14952         (ashlqi3_out): Likewise.
14953         (ashlhi3_out): Likewise.
14954         (avr_out_ashlpsi3): Likewise.
14955         (ashlsi3_out): Likewise.
14956         (ashrqi3_out): Likewise.
14957         (ashrhi3_out): Likewise.
14958         (avr_out_ashrpsi3): Likewise.
14959         (ashrsi3_out): Likewise.
14960         (lshrqi3_out): Likewise.
14961         (lshrhi3_out): Likewise.
14962         (avr_out_lshrpsi3): Likewise.
14963         (lshrsi3_out): Likewise.
14964         (avr_out_fract): Likewise.
14965         (avr_out_round): Likewise.
14966         (avr_adjust_insn_length): Likewise.
14967         (reg_unused_after): Likewise.
14968         (_reg_unused_after): Likewise.
14969         (avr_compare_pattern): Likewise.
14970         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
14971         and locals "branch1", "branch2", "insn2", "jump".
14972         (avr_reorg): Likewise for local "insn".
14973         (avr_2word_insn_p): Likewise for param "insn".
14974         (jump_over_one_insn_p): Likewise.
14975         (avr_out_sbxx_branch): Likewise.
14976         (avr_out_movmem): Likewise.
14977
14978 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
14979
14980         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
14981         param from rtx to rtx_insn *.
14982         (thumb1_final_prescan_insn): Likewise.
14983         (thumb2_final_prescan_insn): Likewise.
14984
14985         * config/arm/arm.c (emit_set_insn): Strengthen return type from
14986         rtx to rtx_insn *.
14987         (struct minipool_node): Likewise for field "insn".
14988         (dump_minipool): Likewise for param "scan".
14989         (create_fix_barrier): Likewise for local "from".  Strengthen local
14990         "label" from rtx to rtx_code_label *.
14991         (push_minipool_barrier): Strengthen param "insn" from rtx to
14992         rtx_insn *.
14993         (push_minipool_fix): Likewise.
14994         (note_invalid_constants): Likewise.
14995         (thumb2_reorg): Likewise for local "insn".
14996         (arm_reorg): Likewise.
14997         (thumb2_final_prescan_insn): Likewise for param
14998         "insn" and local "first_insn".
14999         (arm_final_prescan_insn): Likewise for param "insn" and locals
15000         "start_insn", "this_insn".
15001         (arm_debugger_arg_offset): Likewise for param "insn".
15002         (thumb1_emit_multi_reg_push): Likewise for return type and local
15003         "insn".
15004         (thumb1_final_prescan_insn): Likewise for param "insn".
15005         (thumb_far_jump_used_p): Likewise for local "insn".
15006         (thumb1_expand_prologue): Likewise.
15007         (arm_expand_epilogue_apcs_frame): Likewise.
15008         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
15009         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
15010         from rtx to rtx_code_label *.
15011         (arm_split_atomic_op): Likewise for local "label".
15012         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
15013
15014 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
15015
15016         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
15017         first param from rtx to rtx_insn *.
15018         (arc_verify_short): Likewise.
15019         (arc_short_long): Likewise.
15020         (arc_need_delay): Likewise.
15021
15022         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
15023         "target_insn".
15024         (arc_ccfsm_advance): Likewise for param "insn" and locals
15025         "start_insn", "this_insn".
15026         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
15027         (arc_ccfsm_post_advance): Likewise for param "insn".
15028         (arc_next_active_insn): Likewise for return type and param "insn".
15029         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
15030         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
15031         (output_short_suffix): Likewise for local "insn".
15032         (arc_final_prescan_insn): Likewise for param "insn".  Remove
15033         now-redundant checked cast.
15034         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
15035         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
15036         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
15037         for use where lc_set became an insn.
15038         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
15039         rtx to rtx_insn *.
15040         (arc_get_insn_variants): Likewise for local "prev".
15041         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
15042         "next".
15043         (arc_predicate_delay_insns): Likewise for local "insn".
15044         (arc_pad_return): Likewise for local "prev".  For now, add a
15045         checked cast when extracting the insn from "final_sequence".
15046         (arc_short_long): Likewise for param "insn".
15047         (arc_need_delay): Likewise for param "insn" and local "next".
15048         (arc_label_align): Likewise for locals "prev", "next".
15049
15050 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
15051
15052         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
15053         "insn" from rtx to rtx_insn *.
15054         (alpha_gp_save_rtx): Likewise for local "seq".
15055         (alpha_instantiate_decls): Likewise for local "top".
15056         (get_some_local_dynamic_name): Likewise for local "insn".
15057         (alpha_does_function_need_gp): Likewise.
15058         (set_frame_related_p): Likewise for return type and for locals
15059         "seq" and "insn".
15060         (emit_frame_store_1): Likewise for local "insn".
15061         (alpha_expand_prologue): Likewise for locals "insn", "seq".
15062         (alpha_end_function): Likewise for local "insn".
15063         (alpha_output_mi_thunk_osf): Likewise.
15064         (alphaev4_insn_pipe): Likewise for param "insn".
15065         (alphaev5_insn_pipe): Likewise.
15066         (alphaev4_next_group): Likewise for return type and param 1
15067         "insn".
15068         (alphaev5_next_group): Likewise.
15069         (alpha_align_insns_1): Likewise for return type and param 1 of
15070         callback param "next_group", and for locals "i", "next", "prev",
15071         "where", "where2", "insn".
15072
15073 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
15074
15075         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
15076         rather than modifying the stmt.
15077
15078 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15079
15080         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
15081         cgraph_state conversion.
15082
15083 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
15084
15085         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15086         Strengthen local "insns" from rtx to rtx_insn *.
15087         (aarch64_set_frame_expr): Likewise for local "insn".
15088         (aarch64_save_or_restore_fprs): Likewise.
15089         (aarch64_save_or_restore_callee_save_registers): Likewise.
15090         (aarch64_expand_prologue): Likewise.
15091         (aarch64_expand_epilogue): Likewise.
15092         (aarch64_output_mi_thunk): Likewise.
15093         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
15094         "label2" from rtx to rtx_code_label *.
15095         (aarch64_split_atomic_op): Likewise for local "label".
15096
15097 2014-08-25  Martin Liska  <mliska@suse.cz>
15098
15099         * cgraph.h (symtab_node):
15100         (bool needed_p (void)): created from decide_is_symbol_needed
15101         (bool referred_to_p (void)): created from referred_to_p
15102         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
15103         * cgraph.h (cgraph_node):
15104         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
15105         (void expand (void)): created from expand_function
15106         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
15107         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
15108         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
15109         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
15110         * cgraph.h (varpool_node):
15111         (static void add (tree decl): created from varpool_add_new_variable
15112         * cgraph.h (cgraph_edge):
15113         void remove (void);
15114         (void remove_caller (void)): created from cgraph_edge_remove_caller
15115         (void remove_callee (void)): created from cgraph_edge_remove_callee
15116         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
15117           created from cgraph_set_call_stmt
15118         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
15119         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
15120         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
15121           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
15122         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
15123           created from cgraph_speculative_call_info
15124         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
15125           int freq_scale, bool update_original)): created from cgraph_clone_edge
15126         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
15127         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
15128         (bool recursive_p (void)): created from cgraph_edge_recursive_p
15129         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
15130         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
15131         (static void rebuild_references (void)): created from cgraph_rebuild_references
15132         * cgraph.h (symbol_table):
15133         (create_reference): renamed from add_reference
15134         (maybe_create_reference): renamed from maybe_add_reference
15135         (void register_symbol (symtab_node *node)): new function
15136         (void clear_asm_symbols (void)): new function
15137         (void unregister (symtab_node *node)): new function
15138         (void release_symbol (cgraph_node *node, int uid)): new function
15139         (cgraph_node * allocate_cgraph_symbol (void)): new function
15140         (void initialize (void)): created from cgraph_init
15141         (symtab_node *first_symbol (void)):new function
15142         (asm_node *first_asm_symbol (void)):new function
15143         (symtab_node *first_defined_symbol (void)):new function
15144         (varpool_node *first_variable (void)):new function
15145         (varpool_node *next_variable (varpool_node *node)):new function
15146         (varpool_node *first_static_initializer (void)):new function
15147         (varpool_node *next_static_initializer (varpool_node *node)):new function
15148         (varpool_node *first_defined_variable (void)):new function
15149         (varpool_node *next_defined_variable (varpool_node *node)):new function
15150         (cgraph_node *first_defined_function (void)):new function
15151         (cgraph_node *next_defined_function (cgraph_node *node)):new function
15152         (cgraph_node *first_function (void)):new function
15153         (cgraph_node *next_function (cgraph_node *node)):new function
15154         (cgraph_node *first_function_with_gimple_body (void)):new function
15155         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
15156         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
15157           created from symtab_remove_unreachable_nodes
15158         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
15159         (void process_new_functions (void)): created from cgraph_process_new_functions
15160         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
15161         (bool output_variables (void)): created from varpool_node::output_variables
15162         (void output_asm_statements (void)): created from output_asm_statements
15163         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
15164         (void compile (void)): created from compile
15165         (void output_weakrefs (void)): created from output_weakrefs
15166         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
15167         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
15168           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
15169         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
15170         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
15171           created from cgraph_next_function_with_gimple_body
15172         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
15173           created from cgraph_remove_edge_removal_hook
15174         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
15175           created from cgraph_add_node_removal_hook
15176         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
15177           created from cgraph_remove_node_removal_hook
15178         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
15179           created from varpool_add_node_removal_hook
15180         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
15181           created from varpool_remove_node_removal_hook
15182         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
15183           created from cgraph_add_function_insertion_hook
15184         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
15185           created from cgraph_remove_function_insertion_hook
15186         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
15187           created from varpool_add_variable_insertion_hook
15188         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
15189           created from varpool_remove_variable_insertion_hook
15190         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
15191           created from cgraph_add_edge_duplication_hook
15192         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
15193           created from cgraph_remove_edge_duplication_hook
15194         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
15195           created from cgraph_add_node_duplication_hook
15196         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
15197           created from cgraph_remove_node_duplication_hook
15198         (void call_edge_removal_hooks (cgraph_edge *e)):
15199           created from cgraph_call_edge_removal_hooks
15200         (void call_cgraph_insertion_hooks (cgraph_node *node)):
15201           created from call_function_insertion_hooks
15202         (void call_cgraph_removal_hooks (cgraph_node *node)):
15203           created from cgraph_call_node_removal_hooks
15204         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
15205           created from cgraph_node::call_duplication_hooks
15206         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
15207           created from cgraph_call_edge_duplication_hooks
15208         (void call_varpool_removal_hooks (varpool_node *node)):
15209           created from varpool_call_node_removal_hooks
15210         (void call_varpool_insertion_hooks (varpool_node *node)):
15211           created from varpool_call_variable_insertion_hooks
15212         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
15213           created from insert_to_assembler_name_hash
15214         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
15215           created from unlink_from_assembler_name_hash
15216         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
15217           created from symtab_prevail_in_asm_name_hash
15218         (void symtab_initialize_asm_name_hash (void)):
15219           created from symtab_initialize_asm_name_hash
15220         (void change_decl_assembler_name (tree decl, tree name)):
15221           created from change_decl_assembler_name
15222         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
15223         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
15224           created from decl_assembler_name_hash
15225         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
15226           created from decl_assembler_name_equal
15227         (static hashval_t hash_node_by_assembler_name (const void *p)):
15228           created from hash_node_by_assembler_name
15229         (static int eq_assembler_name (const void *p1, const void *p2)):
15230           created from eq_assembler_name
15231
15232 2014-08-25  Marek Polacek  <polacek@redhat.com>
15233
15234         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
15235
15236 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
15237
15238         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
15239         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
15240         SWI1248_AVX512BW mode iterator.
15241
15242 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
15243
15244         PR target/62111
15245         * config/sh/predicates.md (general_extend_operand): Disable
15246         TRUNCATE before reload completes.
15247
15248 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
15249
15250         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
15251
15252 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
15253
15254         PR target/61996
15255         * config/sh/sh.opt (musermode): Allow negative form.
15256         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
15257         targets that don't support it.
15258         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
15259         Document -mno-usermode option.
15260
15261 2014-08-24  Kito Cheng  <kito@0xlab.org>
15262
15263         * system.h (CALLER_SAVE_PROFITABLE): Poison.
15264         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
15265         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
15266         * doc/tm.texi: Regenerate.
15267
15268 2014-08-24  Kito Cheng  <kito@0xlab.org>
15269
15270         * ira.c: Fix typo in comment.
15271
15272 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
15273
15274         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
15275         Deprecate c++1y. Change language to reflect greater confidence in C++14.
15276
15277 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
15278
15279         PR target/62038
15280         * config/pa/pa.c (pa_output_function_epilogue): Don't set
15281         last_address when the current function is a thunk.
15282         (pa_asm_output_mi_thunk): When we don't have named sections or they
15283         are not being used, check that thunk can reach the stub table with a
15284         short branch.
15285
15286 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
15287
15288         * web.c (union_match_dups): Strengthen param "insn" from rtx to
15289         rtx_insn *.
15290         (pass_web::execute): Likewise for local "insn".
15291
15292 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
15293
15294         * var-tracking.c (struct micro_operation_def): Strengthen field
15295         "insn" from rtx to rtx_insn *.
15296         (struct emit_note_data_def): Likewise.
15297         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
15298         (vt_stack_adjustments): Likewise for local "insn".
15299         (adjust_insn): Likewise for param "insn".
15300         (val_store): Likewise.
15301         (val_resolve): Likewise.
15302         (struct count_use_info): Likewise for field "insn".
15303         (log_op_type): Likewise for param "insn".
15304         (reverse_op): Likewise.
15305         (prepare_call_arguments): Likewise.
15306         (add_with_sets):  The initial param takes an insn, but we can't
15307         yet strengthen it from rtx to rtx_insn * since it's used as a
15308         cselib_record_sets_hook callback.  For now rename initial param
15309         from "insn" to "uncast_insn", and introduce a local "insn" of
15310         the stronger rtx_insn * type, with a checked cast.
15311         (compute_bb_dataflow): Strengthen local "insn" from rtx to
15312         rtx_insn *.
15313         (emit_note_insn_var_location): Likewise.
15314         (emit_notes_for_changes): Likewise.
15315         (emit_notes_for_differences): Likewise.
15316         (next_non_note_insn_var_location): Likewise for return type and
15317         for param "insn".
15318         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
15319         (vt_initialize): Likewise for local "insn".
15320         (delete_debug_insns): Likewise for locals "insn" and "next".
15321
15322 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
15323
15324         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
15325         rtx_insn *.
15326         (mark_constant_pool): Likewise for local "insn".
15327
15328 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
15329
15330         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
15331         rtx to rtx_insn *.
15332         (dead_debug_promote_uses): Likewise.
15333         (dead_debug_insert_temp): Likewise.
15334
15335 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
15336
15337         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
15338         from const_rtx to const rtx_insn *.
15339         (store_killed_after): Likewise.  Strengthen locals "last", "act"
15340         from rtx to rtx_insn *.
15341         (store_killed_before): Strengthen param "insn" from const_rtx to
15342         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
15343         (find_moveable_store): Strengthen param "insn" from rtx to
15344         rtx_insn *.
15345         (compute_store_table): Likewise for local "insn".
15346         (insert_insn_start_basic_block): Likewise for param "insn" and
15347         locals "prev", "before", "insn".
15348         (insert_store): For now, add a checked cast to rtx_insn * on the
15349         result of gen_move_insn.
15350         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
15351         to rtx_insn *.
15352         (replace_store_insn): Likewise.  For now, add a checked cast to
15353         rtx_insn * on the result of gen_move_insn.
15354
15355 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15356
15357         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
15358         rtx_insn *.
15359         (expand_sjlj_dispatch_table): Likewise.
15360
15361 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15362
15363         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
15364         "insn" from rtx to rtx_insn *.
15365
15366 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15367
15368         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
15369         "insn" from rtx to rtx_insn *.
15370         (dup_block_and_redirect): Likewise for param 3 "before".
15371
15372         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
15373         from rtx to rtx_insn *.
15374         (move_insn_for_shrink_wrap): Likewise.
15375         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
15376         (dup_block_and_redirect): Likewise for param "before" and local
15377         "insn".
15378         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
15379         "end".
15380         (convert_to_simple_return): Likewise for local "start".
15381
15382         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
15383         Strengthen local "insn" from rtx to rtx_insn *, for use when
15384         invoking requires_stack_frame_p.
15385
15386 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15387
15388         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
15389         rtx_insn *.
15390         (speculate_expr): Likewise for locals "orig_insn_rtx",
15391         "spec_insn_rtx".
15392         (eq_transformed_insns): Likewise for locals "i1", "i2".
15393         (check_for_new_jump): Likewise for return type and local "end".
15394         (find_new_jump): Likewise for return type and local "jump".
15395         (sel_split_edge): Likewise for local "jump".
15396         (sel_create_recovery_block): Likewise.
15397         (sel_redirect_edge_and_branch_force): Likewise.
15398         (sel_redirect_edge_and_branch): Likewise.
15399
15400 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15401
15402         * sel-sched.c (substitute_reg_in_expr): Strengthen local
15403         "new_insn" from rtx to rtx_insn *.
15404         (create_insn_rtx_with_rhs): Likewise for return type and for local
15405         "insn_rtx".
15406         (create_insn_rtx_with_lhs): Likewise.
15407         (create_speculation_check): Likewise for local "insn_rtx".
15408         (implicit_clobber_conflict_p): Likewise for local "insn".
15409         (get_expr_cost): Likewise.
15410         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
15411         (move_cond_jump): Likewise for locals "next", "prev", "link",
15412         "head", "from", "to".
15413
15414 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15415
15416         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
15417         "next" from rtx to rtx_insn *.
15418         (find_conditional_protection): Likewise for local "next".
15419         (is_conditionally_protected): Likewise for local "insn1".
15420         (is_pfree): Likewise for locals "insn1", "insn2".
15421
15422 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15423
15424         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
15425         from rtx to rtx_insn *.
15426
15427         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
15428         locals "insn1", "insn2" from rtx to rtx_insn *.
15429         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
15430         locals "insn", "prev", "last_jump", "next_tail".
15431         (schedule_ebb): Likewise for params "head", "tail".
15432         (schedule_ebbs): Likewise for locals "tail", "head".
15433
15434         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
15435         to rtx_insn on "last_insn" in one of the invocations of
15436         schedule_ebb.
15437
15438 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15439
15440         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
15441         "elem", "insn" from rtx to rtx_insn *.
15442         (change_spec_dep_to_hard): Likewise.
15443         (get_back_and_forw_lists): Likewise for local "con".
15444         (sd_add_dep): Likewise for locals "elem", "insn".
15445         (sd_resolve_dep): Likewise for locals "pro", "con".
15446         (sd_unresolve_dep): Likewise.
15447         (sd_delete_dep): Likewise.
15448         (chain_to_prev_insn): Likewise for local "pro".
15449         (find_inc): Likewise for locals "pro", "con".
15450
15451 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15452
15453         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
15454         to rtx_insn *.
15455         (reg_set_between_p): Strengthen local "insn" from const_rtx to
15456         const rtx_insn *.
15457         (modified_between_p): Strengthen local "insn" from rtx to
15458         rtx_insn *.
15459         (remove_reg_equal_equiv_notes_for_regno): Likewise.
15460         (keep_with_call_p): Strengthen local "i2" from const_rtx to
15461         const rtx_insn *.
15462
15463 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15464
15465         * resource.c (next_insn_no_annul): Strengthen local "next" from
15466         rtx to rtx_insn *.
15467         (mark_referenced_resources): Likewise for local "insn".
15468
15469 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15470
15471         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
15472         to rtx_insn *.
15473         (find_reloads): Likewise for param 1.
15474         (subst_reloads): Likewise for sole param.
15475         (find_equiv_reg): Likwise for param 2.
15476         (regno_clobbered_p): Likwise for param 2.
15477         (reload): Likewise for param 1.
15478
15479         * caller-save.c (save_call_clobbered_regs): Strengthen local
15480         "insn" from rtx to rtx_insn *.
15481         (insert_one_insn): Likewise for local "insn".
15482
15483         * reload.c (this_insn): Likewise for this global.
15484         (find_reloads): Likewise for param "insn".
15485         (find_reloads_toplev): Likewise.
15486         (find_reloads_address): Likewise.
15487         (subst_reg_equivs): Likewise.
15488         (update_auto_inc_notes): Likewise.
15489         (find_reloads_address_1): Likewise.
15490         (find_reloads_subreg_address): Likewise.
15491         (subst_reloads): Likewise.
15492         (find_equiv_reg): Likewise, also for local "p".
15493         (regno_clobbered_p): Likewise for param "insn".
15494
15495         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
15496         array.
15497         (spill_reg_store): Likewise for the elements of this array.
15498         (remove_init_insns): Likewise for local "equiv_insn".
15499         (will_delete_init_insn_p): Likewise for param "insn".
15500         (reload): Likewise for param ""first" and local "insn".
15501         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
15502         rtx_insn *.
15503         (calculate_elim_costs_all_insns): Likewise.
15504         (delete_caller_save_insns): Likewise.
15505         (spill_failure): Likewise for param "insn".
15506         (delete_dead_insn): Likewise.
15507         (set_label_offsets): Likewise.
15508         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
15509         "prev_insn".
15510         (elimination_costs_in_insn): Likewise for param "insn".
15511         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
15512         when referring to an insn.
15513         (set_initial_label_offsets): Likewise.
15514         (set_offsets_for_label): Strengthen param "insn" from rtx to
15515         rtx_insn *.
15516         (init_eliminable_invariants): Likewise for param "first" and local
15517         "insn".
15518         (fixup_eh_region_note): Likewise for param "insn".
15519         (reload_as_needed): Likewise for locals "prev", "insn",
15520         "old_next", "old_prev", "next".
15521         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
15522         "last".
15523         (reload_inheritance_insn): Strengthen elements of this array from
15524         rtx to rtx_insn *.
15525         (failed_reload): Likewise for param "insn".
15526         (choose_reload_regs): Likewise for local "insn".  Replace use of
15527         NULL_RTX with NULL when referring to an insn.
15528         (input_reload_insns): Strengthen elements of this array from rtx
15529         to rtx_insn *.
15530         (other_input_address_reload_insns): Likewise for this global.
15531         (other_input_reload_insns): Likewise for this global.
15532         (input_address_reload_insns): Likwise for the elements of this
15533         array.
15534         (inpaddr_address_reload_insns): Likwise for the elements of this
15535         array.
15536         (output_reload_insns): Likewise for the elements of this array.
15537         (output_address_reload_insns): Likewise for the elements of this
15538         array.
15539         (outaddr_address_reload_insns): Likewise for the elements of this
15540         array.
15541         (operand_reload_insns): Likewise for this global.
15542         (other_operand_reload_insns): Likewise for this global.
15543         (other_output_reload_insns): Likewise for the elements of this
15544         array.
15545         (new_spill_reg_store): Likewise for the elements of this
15546         array.
15547         (emit_input_reload_insns): Likewise for locals "insn", "temp".
15548         Strengthen local "where" from rtx * to rtx_insn **.
15549         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
15550         from rtx to rtx_insn *.
15551         (do_input_reload): Likewise for local "insn".
15552         (do_output_reload): Likewise for local "insn".
15553         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
15554         (emit_insn_if_valid_for_reload): Likewise for return type and local
15555         "last".  Add checked cast to rtx_insn when returning "insn" since
15556         this has been through emit_insn.
15557         (gen_reload): Strengthen return type and locals "last", "insn", "set"
15558         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
15559         returning "insn" since it's been through
15560         emit_insn_if_valid_for_reload at this point.
15561         (delete_output_reload): Strengthen param "insn" and locals
15562         "output_reload_insn", "i2" from rtx to rtx_insn *.
15563         (delete_address_reloads): Likewise for params "dead_insn",
15564         "current_insn" and locals "prev", "next".
15565         (delete_address_reloads_1): Likewise for params "dead_insn",
15566         "current_insn" and locals "prev", "i2".
15567         (inc_for_reload): Likewise for locals "last", "add_insn".
15568         (add_auto_inc_notes): Strengthen param "insn" from rtx to
15569         rtx_insn *.
15570
15571         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
15572         param of this duplicate of the prototype from reload.h
15573
15574 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15575
15576         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
15577         rtx to rtx_insn *.
15578         (regstat_bb_compute_calls_crossed): Likewise.
15579
15580 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15581
15582         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
15583         to rtx_insn *.
15584         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
15585         with an insn.
15586         (regrename_analyze): Strengthen local "insn" from rtx to
15587         rtx_insn *.
15588         (scan_rtx_reg): Likewise for param "insn".
15589         (scan_rtx_address): Likewise.
15590         (scan_rtx): Likewise.
15591         (restore_operands): Likewise.
15592         (record_out_operands): Likewise.
15593         (build_def_use): Likewise for local "insn".  Replace use of
15594         NULL_RTX with NULL when dealing with an insn.
15595
15596 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15597
15598         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
15599         * reginfo.c (reg_scan): Likewise, also for local "insn".
15600         (reg_scan_mark_refs): Likewise for param "insn".
15601         (init_subregs_of_mode): Likewise for local "insn".
15602
15603 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15604
15605         * regcprop.c (struct queued_debug_insn_change): Strengthen field
15606         "insn" from rtx to rtx_insn *.
15607         (replace_oldest_value_reg): Likewise for param "insn".
15608         (replace_oldest_value_addr): Likewise.
15609         (replace_oldest_value_mem): Likewise.
15610         (apply_debug_insn_changes): Likewise for local "last_insn".
15611         (copyprop_hardreg_forward_1): Likewise for local "insn".
15612
15613 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15614
15615         * reg-stack.c (next_flags_user): Strengthen return type and param
15616         "insn" from rtx to rtx_insn *.
15617         (straighten_stack): Likewise for param "insn".
15618         (check_asm_stack_operands): Likewise.
15619         (remove_regno_note): Likewise.
15620         (emit_pop_insn): Likewise for return type, param "insn", local
15621         "pop_insn".
15622         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
15623         "limit" from rtx to rtx_insn *.
15624         (swap_to_top): Likewise for param "insn".
15625         (move_for_stack_reg): Likewise.
15626         (move_nan_for_stack_reg): Likewise.
15627         (swap_rtx_condition): Likewise.
15628         (compare_for_stack_reg): Likewise.
15629         (subst_all_stack_regs_in_debug_insn): Likewise.
15630         (subst_stack_regs_pat): Likewise, and local "insn2".
15631         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
15632         rtx_insn *.
15633         (subst_stack_regs): Likewise.
15634         (change_stack): Likewise.
15635         (convert_regs_1): Likewise for locals "insn", "next".
15636
15637 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15638
15639         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
15640         rtx_insn *.
15641         (combine_set_extension): Likewise for param "curr_insn".
15642         (transform_ifelse): Likewise for param "def_insn".
15643         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
15644         from vec<rtx> * to vec<rtx_insn *> *.
15645         (is_cond_copy_insn): Likewise for param "insn".
15646         (struct ext_state): Strengthen the four vec fields from vec<rtx>
15647         to vec<rtx_insn *>.
15648         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
15649         local "def_insn" from rtx to rtx_insn *.
15650         (get_sub_rtx): Likewise for param "def_insn".
15651         (merge_def_and_ext): Likewise.
15652         (combine_reaching_defs): Likewise.
15653         (add_removable_extension): Likewise for param "insn".
15654         (find_removable_extensions): Likewise for local "insn".
15655         (find_and_remove_re): Likewise for locals "curr_insn" and
15656         "def_insn".  Strengthen locals "reinsn_del_list" and
15657         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
15658
15659 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15660
15661         * recog.c (split_insn): Strengthen param "insn" and locals
15662         "first", "last" from rtx to rtx_insn *.
15663         (split_all_insns): Likewise for locals "insn", "next".
15664         (split_all_insns_noflow): Likewise.
15665
15666 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15667
15668         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
15669         const rtx_insn *.
15670         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
15671         (debug_rtx_find): Likewise for param 1 "x".
15672
15673         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
15674         const_rtx to const rtx_insn *.  Likewise for local "insn".
15675         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
15676         (debug_rtx_find): Likewise for param 1 "x".
15677         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
15678         from const_rtx to const rtx_insn * within the appropriate cases of
15679         the switch statement.
15680
15681         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
15682         Strengthen local "insns" from rtx to rtx_insn * since this is
15683         passed to a call to debug_rtx_list.
15684
15685 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15686
15687         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
15688         to rtx_insn *.
15689
15690         * function.c (stack_protect_epilogue): Add checked cast to
15691         rtx_insn for now when invoking predict_insn_def.
15692
15693         * predict.c (predict_insn): Strengthen param "insn" from rtx to
15694         rtx_insn *.
15695         (predict_insn_def): Likewise.
15696         (rtl_predict_edge): Likewise for local "last_insn".
15697         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
15698         const rtx_insn *.
15699         (combine_predictions_for_insn): Strengthen param "insn" from rtx
15700         to rtx_insn *.
15701         (bb_estimate_probability_locally): Likewise for local "last_insn".
15702         (expensive_function_p): Likewise for local "insn".
15703
15704         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
15705         local "jmp", since this is used when invoking predict_insn_def.
15706
15707 2014-08-22  Marek Polacek  <polacek@redhat.com>
15708
15709         PR c++/62199
15710         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
15711
15712 2014-08-22  Marek Polacek  <polacek@redhat.com>
15713
15714         PR c/61271
15715         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
15716         a comparison in parens.
15717         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
15718         in parens.
15719
15720 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15721
15722         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
15723         rtx_insn *.
15724
15725         * cprop.c (fis_get_condition): Likewise.
15726
15727         * postreload.c (reload_cse_regs): Likewise for param "first".
15728         (reload_cse_simplify): Likewise for param "insn".
15729         (reload_cse_regs_1): Likewise for local "insn".
15730         (reload_cse_simplify_set): Likewise for param "insn".
15731         (reload_cse_simplify_operands): Likewise.
15732         (struct reg_use): Likewise for field "insn".
15733         (reload_combine_purge_insn_uses): Likewise for param "insn".
15734         (fixup_debug_insns): Likewise for params "from", "to" and local
15735         "insn".
15736         (try_replace_in_use): Likewise for local "use_insn".
15737         (reload_combine_recognize_const_pattern): Likewise for param
15738         "insn" and locals "add_moved_after_insn", "use_insn".
15739         (reload_combine_recognize_pattern): Likewise for param "insn" and
15740         local "prev".
15741         (reload_combine): Likewise for locals "insn", "prev".
15742         (reload_combine_note_use): Likewise for param "insn".
15743         (move2add_use_add2_insn): Likewise.
15744         (move2add_use_add3_insn): Likewise.
15745         (reload_cse_move2add): Likewise, also for local "next".
15746         (move2add_note_store): Likewise for local "insn".
15747
15748 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15749
15750         * postreload-gcse.c (struct occr): Strengthen field "insn" from
15751         rtx to rtx_insn *.
15752         (struct unoccr): Likewise.
15753         (struct modifies_mem): Likewise.
15754         (alloc_mem): Likewise for local "insn".
15755         (insert_expr_in_table): Likewise for param "insn".
15756         (dump_expr_hash_table_entry): Likewise for local "insn".
15757         (oprs_unchanged_p): Likewise for param "insn".
15758         (load_killed_in_block_p): Likewise for local "setter".
15759         (record_last_reg_set_info): Likewise for param "insn".
15760         (record_last_reg_set_info_regno): Likewise.
15761         (record_last_mem_set_info): Likewise.
15762         (record_last_set_info): Likewise for local "last_set_insn".
15763         (record_opr_changes): Likewise for param "insn".
15764         (hash_scan_set): Likewise.
15765         (compute_hash_table): Likewise for local "insn".
15766         (get_avail_load_store_reg): Likewise for param "insn".
15767         (eliminate_partially_redundant_load): Likewise, also for locals
15768         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
15769         RTX for insns.
15770         (eliminate_partially_redundant_loads): Likewise for local "insn".
15771
15772 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15773
15774         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
15775         rtx to rtx_insn *.
15776         (expand_binop): Likewise for locals "entry_last", "last", "insns"
15777         (expand_twoval_unop): Likewise for locals entry_last", "last".
15778         (expand_twoval_binop): Likewise.
15779         (expand_twoval_binop_libfunc): Likewise for local "insns".
15780         (widen_leading): Likewise for local "last".
15781         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
15782         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
15783         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
15784         (expand_parity): Likewise for locals "last" and "seq".
15785         (expand_ffs): Likewise for local "seq".  Strengthen local
15786         "nonzero_label" from rtx to rtx_code_label *.
15787         (expand_absneg_bit): Strengthen local "insns" from rtx to
15788         rtx_insn *.
15789         (expand_unop_direct): Likewise for local "last".
15790         (expand_unop): Likewise for locals "last", "insns".
15791         (expand_abs_nojump): Likewise for local "last".
15792         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
15793         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
15794         rtx_insn *.
15795         (expand_copysign_absneg): Strengthen local "label" from rtx to
15796         rtx_code_label *.
15797         (expand_copysign_bit): Strengthen local "insns" from rtx to
15798         rtx_insn *.
15799         (struct no_conflict_data): Likewise for fields "first", "insn".
15800         (emit_libcall_block_1): Likewise for param "insns" and locals
15801         "next", "last", "insn".
15802         (emit_libcall_block): For now, add a checked cast to rtx_insn *
15803         on "insns" when invoking emit_libcall_block_1.  Ultimately we
15804         want to strengthen insns itself.
15805         (prepare_cmp_insn): Strengthen local "last" from rtx to
15806         rtx_insn *.
15807         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
15808         (prepare_float_lib_cmp): Likewise for local "insns".
15809         (emit_conditional_move): Likewise for local "last".
15810         (emit_conditional_add): Likewise.
15811         (have_sub2_insn): Likewise for local "seq".
15812         (expand_float): Likewise for local "insns".  Strengthen locals
15813         "label", "neglabel" from rtx to rtx_code_label *.
15814         (expand_fix): Likewise for locals "last", "insn", "insns" (to
15815         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
15816         (expand_fixed_convert): Likewise for local "insns" (to
15817         rtx_insn *).
15818         (expand_sfix_optab): Likewise for local "last".
15819         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
15820         to rtx_code_label *.
15821         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
15822         from rtx to rtx_insn *.
15823         (expand_atomic_fetch_op): Likewise for local "insn".
15824         (maybe_legitimize_operand_same_code): Likewise for local "last".
15825         (maybe_legitimize_operands): Likewise.
15826
15827 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15828
15829         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
15830         "insn" from rtx to rtx_insn *.
15831         (ps_rtl_insn): Likewise for return type.
15832         (doloop_register_get): Likewise for params "head", "tail" and
15833         locals "insn", "first_insn_not_to_check".
15834         (schedule_reg_move): Likewise for local "this_insn".
15835         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
15836         of gen_move_insn for now.
15837         (reset_sched_times): Strengthen local "insn" from rtx to
15838         rtx_insn *.
15839         (permute_partial_schedule): Likewise.
15840         (duplicate_insns_of_cycles): Likewise for local "u_insn".
15841         (dump_insn_location): Likewise for param "insn".
15842         (loop_canon_p): Likewise for local "insn".
15843         (sms_schedule): Likewise.
15844         (print_partial_schedule): Likewise.
15845         (ps_has_conflicts): Likewise.
15846
15847 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15848
15849         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
15850         "tailp" from rtx * to rtx_insn **.
15851
15852         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
15853         from rtx to rtx_insn *.
15854         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
15855         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
15856         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
15857         rtx to rtx_insn *.
15858         * modulo-sched.c (const_iteration_count): Strengthen return type
15859         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
15860         use of NULL_RTX with NULL when working with insns.
15861         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
15862         to rtx_insn *.
15863         (sms_schedule): Likewise.
15864         * sched-rgn.c (init_ready_list): Likewise, also for locals
15865         "src_head" and "src_next_tail".
15866         (compute_block_dependences): Likewise.
15867         (free_block_dependencies): Likewise.
15868         (debug_rgn_dependencies): Likewise.
15869         (free_rgn_deps): Likewise.
15870         (compute_priorities): Likewise.
15871         (schedule_region): Likewise.
15872         * sel-sched.c (find_ebb_boundaries): Likewise.
15873
15874         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
15875         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
15876
15877 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15878
15879         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
15880         from rtx to rtx_insn *.
15881         (new_seginfo): Likewise for param "insn".
15882         (create_pre_exit): Likewise for locals "last_insn",
15883         "before_return_copy", "return_copy".
15884         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
15885         "mode_set".
15886
15887 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
15888
15889         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
15890         from rtx to rtx_insn *.
15891         (lra_push_insn): Likewise for 1st param.
15892         (lra_push_insn_and_update_insn_regno_info): Likewise.
15893         (lra_pop_insn): Likewise for return type.
15894         (lra_invalidate_insn_data): Likewise for 1st param.
15895         (lra_set_insn_deleted): Likewise.
15896         (lra_delete_dead_insn): Likewise.
15897         (lra_process_new_insns): Likewise for first 3 params.
15898         (lra_set_insn_recog_data): Likewise for 1st param.
15899         (lra_update_insn_recog_data): Likewise.
15900         (lra_set_used_insn_alternative): Likewise.
15901         (lra_invalidate_insn_regno_info): Likewise.
15902         (lra_update_insn_regno_info): Likewise.
15903         (lra_former_scratch_operand_p): Likewise.
15904         (lra_eliminate_regs_1): Likewise.
15905         (lra_get_insn_recog_data): Likewise.
15906
15907         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
15908         rtx to rtx_insn *.
15909
15910         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
15911         "mv1" and "mv2".
15912         (substitute_within_insn): New.
15913         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
15914         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
15915         Replace call to "substitute" with call to substitute_within_insn.
15916
15917         * lra-constraints.c (curr_insn): Strengthen from rtx to
15918         rtx_insn *.
15919         (get_equiv_with_elimination): Likewise for param "insn".
15920         (match_reload): Strengthen params "before" and "after" from rtx *
15921         to rtx_insn **.
15922         (emit_spill_move): Likewise for return type.  Add a checked cast
15923         to rtx_insn * on result of gen_move_insn for now.
15924         (check_and_process_move): Likewise for local "before".  Replace
15925         NULL_RTX with NULL when referring to insns.
15926         (process_addr_reg): Strengthen params "before" and "after" from
15927         rtx * to rtx_insn **.
15928         (insert_move_for_subreg): Likewise.
15929         (simplify_operand_subreg): Strengthen locals "before" and "after"
15930         from rtx to rtx_insn *.
15931         (process_address_1): Strengthen params "before" and "after" from
15932         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
15933         rtx to rtx_insn *.
15934         (process_address): Strengthen params "before" and "after" from
15935         rtx * to rtx_insn **.
15936         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
15937         (curr_insn_transform): Strengthen locals "before" and "after"
15938         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
15939         to insns.
15940         (loc_equivalence_callback): Update cast of "data", changing
15941         resulting type from rtx to rtx_insn *.
15942         (substitute_pseudo_within_insn): New.
15943         (inherit_reload_reg): Strengthen param "insn" from rtx to
15944         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
15945         NULL when referring to insns.  Add a checked cast to rtx_insn *
15946         when using usage_insn to invoke lra_update_insn_regno_info.
15947         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
15948         likewise for locals "restore", "save".  Add checked casts to
15949         rtx_insn * when using usage_insn to invoke
15950         lra_update_insn_regno_info and lra_process_new_insns.  Replace
15951         NULL_RTX with NULL when referring to insns.
15952         (split_if_necessary): Strengthen param "insn" from rtx to
15953         rtx_insn *.
15954         (update_ebb_live_info): Likewise for params "head", "tail" and local
15955         "prev_insn".
15956         (get_last_insertion_point): Likewise for return type and local "insn".
15957         (get_live_on_other_edges): Likewise for local "last".
15958         (inherit_in_ebb): Likewise for params "head", "tail" and locals
15959         "prev_insn", "next_insn", "restore".
15960         (remove_inheritance_pseudos): Likewise for local "prev_insn".
15961         (undo_optional_reloads): Likewise for local "insn".
15962
15963         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
15964         "insn".
15965         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
15966         insns.
15967         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
15968         rtx_insn *.
15969         (spill_pseudos): Likewise for local "insn".
15970         (init_elimination): Likewise.
15971         (process_insn_for_elimination): Likewise for param "insn".
15972
15973         * lra-lives.c (curr_insn): Likewise.;
15974
15975         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
15976         (remove_pseudos): Likewise for param "insn".
15977         (spill_pseudos): Likewise for local "insn".
15978         (lra_final_code_change): Likewise for locals "insn", "curr".
15979
15980         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
15981         (lra_set_insn_deleted): Likewise.
15982         (lra_delete_dead_insn): Likewise, and for local "prev".
15983         (new_insn_reg): Likewise for param "insn".
15984         (lra_set_insn_recog_data): Likewise.
15985         (lra_update_insn_recog_data): Likewise.
15986         (lra_set_used_insn_alternative): Likewise.
15987         (get_insn_freq): Likewise.
15988         (invalidate_insn_data_regno_info): Likewise.
15989         (lra_invalidate_insn_regno_info): Likewise.
15990         (lra_update_insn_regno_info): Likewise.
15991         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
15992         vec<rtx_insn *>.
15993         (lra_push_insn_1): Strengthen param "insn" from rtx to
15994         rtx_insn *.
15995         (lra_push_insn): Likewise.
15996         (lra_push_insn_and_update_insn_regno_info): Likewise.
15997         (lra_pop_insn): Likewise for return type and local "insn".
15998         (push_insns): Likewise for params "from", "to", and local "insn".
15999         (setup_sp_offset): Likewise for params "from", "last" and locals
16000         "before", "insn".
16001         (lra_process_new_insns): Likewise for params "insn", "before",
16002         "after" and local "last".
16003         (struct sloc): Likewise for field "insn".
16004         (lra_former_scratch_operand_p): Likewise for param "insn".
16005         (remove_scratches): Likewise for locals "insn", "last".
16006         (check_rtl): Likewise for local "insn".
16007         (add_auto_inc_notes): Likewise for param "insn".
16008         (update_inc_notes): Likewise for local "insn".
16009         (lra): Replace NULL_RTX with NULL when referring to insn.
16010
16011 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16012
16013         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
16014         to rtx_insn *.
16015         (resolve_reg_notes): Likewise.
16016         (resolve_simple_move): Likewise for return type, param "insn", and
16017         locals "insns", "minsn".
16018         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
16019         (resolve_use): Likewise.
16020         (resolve_debug): Likewise.
16021         (find_decomposable_shift_zext): Likewise.
16022         (resolve_shift_zext): Likewise for return type, param "insn", and
16023         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
16024         (decompose_multiword_subregs): Likewise for local "insn",
16025         "orig_insn", "decomposed_shift", "end".
16026
16027 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16028
16029         * basic-block.h (basic_block split_edge_and_insert): Strengthen
16030         param "insns" from rtx to rtx_insn *.
16031
16032         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
16033         rtx to rtx_insn *.
16034         (struct iv_to_split): Likewise.
16035         (loop_exit_at_end_p): Likewise for local "insn".
16036         (split_edge_and_insert): Likewise for param "insns".
16037         (compare_and_jump_seq): Likewise for return type, param "cinsn",
16038         and locals "seq", "jump".
16039         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
16040         "branch_code"; update invocations of compare_and_jump_seq to
16041         eliminate NULL_RTX in favor of NULL.
16042         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
16043         rtx to rtx_insn *.
16044         (reset_debug_uses_in_loop): Likewise.
16045         (analyze_insn_to_expand_var): Likewise for param "insn".
16046         (analyze_iv_to_split_insn): Likewise.
16047         (analyze_insns_in_loop): Likewise for local "insn".
16048         (insert_base_initialization): Likewise for param
16049         "insn" and local "seq".
16050         (split_iv): Likewise for param "insn" and local "seq".
16051         (expand_var_during_unrolling): Likewise for param "insn".
16052         (insert_var_expansion_initialization): Likewise for local "seq".
16053         (combine_var_copies_in_loop_exit): Likewise.
16054         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
16055         "insn".
16056         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
16057         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
16058         "next".
16059
16060 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16061
16062         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
16063         rtx_insn *.
16064         (iv_analyze_result): Likewise.
16065         (iv_analyze_expr): Likewise.
16066         (biv_p): Likewise.
16067
16068         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
16069         local "def_insn" from rtx to rtx_insn *.
16070         (get_biv_step_1): Likewise for local "insn".
16071         (iv_analyze_expr): Likewise for param "insn".
16072         (iv_analyze_def): Likewise for local "insn".
16073         (iv_analyze_op): Likewise for param "insn".
16074         (iv_analyze): Likewise.
16075         (iv_analyze_result): Likewise.
16076         (biv_p): Likewise.
16077         (suitable_set_for_replacement): Likewise.
16078         (simplify_using_initial_values): Likewise for local "insn".
16079         (iv_number_of_iterations): Likewise for param "insn".
16080         (check_simple_exit): Add checked cast to rtx_insn when invoking
16081         iv_number_of_iterations for now (until get_condition is
16082         strengthened).
16083
16084         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
16085         "insn" from rtx to rtx_insn *.
16086         (analyze_insns_in_loop): Likewise for local "insn".
16087
16088 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16089
16090         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
16091         to rtx_insn *.
16092         (struct invariant): Likewise.
16093         (hash_invariant_expr_1): Likewise for param "insn".
16094         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
16095         (find_exits): Likewise for local "insn".
16096         (create_new_invariant): Likewise for param "insn".
16097         (check_dependencies): Likewise.
16098         (find_invariant_insn): Likewise.
16099         (record_uses): Likewise.
16100         (find_invariants_insn): Likewise.
16101         (find_invariants_bb): Likewise for local "insn".
16102         (get_pressure_class_and_nregs): Likewise for param "insn".
16103         (calculate_loop_reg_pressure): Likewise for local "insn".
16104
16105 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16106
16107         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
16108         to rtx_insn *.
16109         (add_test): Likewise for locals "seq", "jump".
16110         (doloop_modify): Likewise for locals "sequence", "jump_insn".
16111
16112 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16113
16114         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
16115         rtx_insn *.
16116         (rebuild_jump_labels_chain): Likewise for param "chain".
16117
16118         * cfgexpand.c (pass_expand::execute): Add checked cast to
16119         rtx_insn * when calling rebuild_jump_labels_chain in region where
16120         we know e->insns.r is non-NULL.
16121
16122         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
16123         rtx_insn *.
16124         (rebuild_jump_labels): Likewise.
16125         (rebuild_jump_labels_chain): Likewise for param "chain".
16126         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
16127         (init_label_info): Likewise for param "f".
16128         (maybe_propagate_label_ref): Likewise for params "jump_insn",
16129         "prev_nonjump_insn".
16130         (mark_all_labels): Likewise for param "f" and locals "insn",
16131         "prev_nonjump_insn".
16132
16133 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16134
16135         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
16136         from rtx to rtx_insn *insn.
16137         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
16138         (ira_add_allocno_copy): Likewise.
16139         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
16140         rtx to rtx_insn *.
16141         (ira_create_copy): Likewise.
16142         (ira_add_allocno_copy): Likewise.
16143         (create_bb_allocnos): Likewise for local "insn".
16144         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
16145         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
16146         process_regs_for_copy for rtx_insn * param.
16147         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
16148         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
16149         process_regs_for_copy for rtx_insn * param.
16150         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
16151         * ira-costs.c (record_reg_classes): Likewise for param "insn".
16152         (record_operand_costs): Likewise.
16153         (scan_one_insn): Likewise for return type, and for param "insn".
16154         (process_bb_for_costs): Likewise for local "insn".
16155         (process_bb_node_for_hard_reg_moves): Likewise.
16156         * ira-emit.c (struct move): Likewise for field "insn".
16157         (create_move): Eliminate use of NULL_RTX when dealing with an
16158         rtx_insn *.
16159         (emit_move_list): Strengthen return type and locals "result",
16160         "insn" from rtx to rtx_insn *insn.
16161         (emit_moves): Likewise for locals "insns", "tmp".
16162         (ira_emit): Likewise for local "insn".
16163         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
16164         "insn".
16165         (find_call_crossed_cheap_reg): Likewise.
16166         (process_bb_node_lives): Likewise for local "insn".
16167         * ira.c (decrease_live_ranges_number): Likewise.
16168         (compute_regs_asm_clobbered): Likewise.
16169         (build_insn_chain): Likewise.
16170         (find_moveable_pseudos): Likewise, also locals "def_insn",
16171         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
16172         to rtx_insn **.  Add a checked cast when assigning from
16173         "closest_use" into closest_uses array in a region where we know
16174         it's a non-NULL insn.
16175         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
16176         to rtx_insn *.
16177         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
16178         "last_interesting_insn", "uin".
16179         (move_unallocated_pseudos): Likewise for locals "def_insn",
16180         "move_insn", "newinsn".
16181
16182 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16183
16184         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
16185         Strengthen locals "done_label", "do_error" from rtx to
16186         rtx_code_label *.
16187         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
16188         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
16189         rtx_code_label *.
16190         (ubsan_expand_si_overflow_neg_check): Likewise for locals
16191         "done_label", "do_error" to rtx_code_label * and local  "last" to
16192         rtx_insn *.
16193         (ubsan_expand_si_overflow_mul_check): Likewise for locals
16194         "done_label", "do_error", "large_op0", "small_op0_large_op1",
16195         "one_small_one_large", "both_ops_large", "after_hipart_neg",
16196         "after_lopart_neg", "do_overflow", "hipart_different"  to
16197         rtx_code_label * and local  "last" to rtx_insn *.
16198
16199 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16200
16201         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
16202         "insn" and "move_insn" from rtx to rtx_insn *.
16203
16204 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16205
16206         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
16207         rtx_insn *.
16208         (cheap_bb_rtx_cost_p): Likewise.
16209         (first_active_insn): Likewise for return type and local "insn".
16210         (last_active_insn):  Likewise for return type and locals "insn",
16211         "head".
16212         (struct noce_if_info): Likewise for fields "jump", "insn_a",
16213         "insn_b".
16214         (end_ifcvt_sequence): Likewise for return type and locals "insn",
16215         "seq".
16216         (noce_try_move): Likewise for local "seq".
16217         (noce_try_store_flag): Likewise.
16218         (noce_try_store_flag_constants): Likewise.
16219         (noce_try_addcc): Likewise.
16220         (noce_try_store_flag_mask): Likewise.
16221         (noce_try_cmove): Likewise.
16222         (noce_try_minmax): Likewise.
16223         (noce_try_abs): Likewise.
16224         (noce_try_sign_mask): Likewise.
16225         (noce_try_bitop): Likewise.
16226         (noce_can_store_speculate_p): Likewise for local "insn".
16227         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
16228         seq".
16229         (check_cond_move_block): Likewise for local "insn".
16230         (cond_move_convert_if_block): Likewise.
16231         (cond_move_process_if_block): Likewise for locals "seq",
16232         "loc_insn".
16233         (noce_find_if_block): Likewise for local "jump".
16234         (merge_if_block): Likewise for local "last".
16235         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
16236         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
16237         (block_has_only_trap): Likewise for return type and local "trap".
16238         (find_if_case_1): Likewise for local "jump".
16239         (dead_or_predicable): Likewise for locals "head", "end", "jump",
16240         "insn".
16241
16242 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16243
16244         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
16245         "last_insn", "loop_end" from rtx to rtx_insn *.
16246
16247         * hw-doloop.c (scan_loop): Likewise for local "insn".
16248         (discover_loop): Likewise for param "tail_insn".
16249         (discover_loops): Likewise for local "tail".
16250
16251         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
16252         cast to rtx_insn * when assigning from an rtx local to a
16253         hwloop_info's "last_insn" field.
16254
16255 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16256
16257         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
16258         (add_delay_dependencies): Strengthen local "pro" from rtx to
16259         rtx_insn *.
16260         (recompute_todo_spec): Likewise.
16261         (dep_cost_1): Likewise for locals "insn", "used".
16262         (schedule_insn): Likewise for local "dbg".
16263         (schedule_insn): Likewise for locals "pro", "next".
16264         (unschedule_insns_until): Likewise for local "con".
16265         (restore_pattern): Likewise for local "next".
16266         (estimate_insn_tick): Likewise for local "pro".
16267         (resolve_dependencies): Likewise for local "next".
16268         (fix_inter_tick): Likewise.
16269         (fix_tick_ready): Likewise for local "pro".
16270         (add_to_speculative_block): Likewise for locals "check", "twin",
16271         "pro".
16272         (sched_extend_bb): Likewise for locals "end", "insn".
16273         (init_before_recovery): Likewise for local "x".
16274         (sched_create_recovery_block): Likewise for local "barrier".
16275         (create_check_block_twin): Likewise for local "pro".
16276         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
16277         "consumer".
16278         (unlink_bb_notes): Update for change to type of bb_header.
16279         Strengthen locals "prev", "label", "note", "next" from rtx to
16280         rtx_insn *.
16281         (clear_priorities): Likewise for local "pro".
16282
16283 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16284
16285         * gcse.c (struct occr): Strengthen field "insn" from rtx to
16286         rtx_insn *.
16287         (test_insn): Likewise for this global.
16288         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
16289         const rtx_insn *.
16290         (oprs_anticipatable_p): Likewise.
16291         (oprs_available_p): Likewise.
16292         (insert_expr_in_table): Strengthen param "insn" from  rtx to
16293         rtx_insn *.
16294         (hash_scan_set): Likewise.
16295         (hash_scan_clobber): Likewise.
16296         (hash_scan_call): Likewise.
16297         (hash_scan_insn): Likewise.
16298         (compute_hash_table_work): Likewise for local "insn".
16299         (process_insert_insn): Likewise for return type and local "pat".
16300         (insert_insn_end_basic_block): Likewise for locals "new_insn",
16301         "pat", "pat_end", "maybe_cc0_setter".
16302         (pre_edge_insert): Likewise for local "insn".
16303         (pre_insert_copy_insn): Likewise for param "insn".
16304         (pre_insert_copies): Likewise for local "insn".
16305         (struct set_data): Likewise for field "insn".
16306         (single_set_gcse): Likewise for param "insn".
16307         (gcse_emit_move_after): Likewise.
16308         (pre_delete): Likewise for local "insn".
16309         (update_bb_reg_pressure): Likewise for param "from" and local
16310         "insn".
16311         (should_hoist_expr_to_dom): Likewise for param "from".
16312         (hoist_code): Likewise for local "insn".
16313         (get_pressure_class_and_nregs): Likewise for param "insn".
16314         (calculate_bb_reg_pressure): Likewise for local "insn".
16315         (compute_ld_motion_mems): Likewise.
16316
16317 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16318
16319         * genpeep.c (main): Rename param back from "uncast_ins1" to
16320         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
16321         checked cast.
16322
16323         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
16324
16325 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
16326
16327         PR target/62195
16328         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
16329         documentation to state it is only for VSX operations.
16330
16331         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
16332         constraint only active if VSX.
16333
16334         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
16335         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
16336         (lfiwzx): Likewise.
16337
16338 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16339
16340         * fwprop.c (single_def_use_dom_walker::before_dom_children):
16341         Strengthen local "insn" from rtx to rtx_insn *.
16342         (use_killed_between): Likewise for param "target_insn".
16343         (all_uses_available_at): Likewise for param "target_insn" and
16344         local "next".
16345         (update_df_init): Likewise for params "def_insn", "insn".
16346         (update_df): Likewise for param "insn".
16347         (try_fwprop_subst): Likewise for param "def_insn" and local
16348         "insn".
16349         (free_load_extend): Likewise for param "insn".
16350         (forward_propagate_subreg): Likewise for param "def_insn" and
16351         local "use_insn".
16352         (forward_propagate_asm): Likewise for param "def_insn" and local
16353         "use_insn".
16354         (forward_propagate_and_simplify): Likewise for param "def_insn"
16355         and local "use_insn".
16356         (forward_propagate_into): Likewise for locals "def_insn" and
16357         "use_insn".
16358
16359 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16360
16361         * function.c (emit_initial_value_sets): Strengthen local "seq"
16362         from rtx to rtx_insn *.
16363         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
16364         local "seq".
16365         (instantiate_virtual_regs): Likewise for local "insn".
16366         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
16367         (reorder_blocks_1): Likewise for param "insns" and local "insn".
16368         (expand_function_end): Likewise for locals "insn" and "seq".
16369         (epilogue_done): Likewise for local "insn".
16370         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
16371         "last", "trial".
16372         (reposition_prologue_and_epilogue_notes): Likewise for locals
16373         "insn", "last", "note", "first".
16374         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
16375         (pass_match_asm_constraints::execute): Likewise for local "insn".
16376
16377 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16378
16379         * output.h (final_scan_insn): Strengthen return type from rtx to
16380         rtx_insn *.
16381         (final_forward_branch_p): Likewise for param.
16382         (current_output_insn): Likewise for this global.
16383
16384         * final.c (rtx debug_insn): Likewise for this variable.
16385         (current_output_insn): Likewise.
16386         (get_attr_length_1): Rename param "insn" to "uncast_insn",
16387         adding "insn" back in as an rtx_insn * with a checked cast, so
16388         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
16389         first param.
16390         (compute_alignments): Strengthen local "label" from rtx to
16391         rtx_insn *.
16392         (shorten_branches): Rename param from "first" to "uncast_first",
16393         introducing a new local rtx_insn * "first" using a checked cast to
16394         effectively strengthen "first" from rtx to rtx_insn * without
16395         affecting the type signature.  Strengthen locals "insn", "seq",
16396         "next", "label" from rtx to rtx_insn *.
16397         (change_scope): Strengthen param "orig_insn" and local "insn" from
16398         rtx to rtx_insn *.
16399         (final_start_function): Rename param from "first" to "uncast_first",
16400         introducing a new local rtx_insn * "first" using a checked cast to
16401         effectively strengthen "first" from rtx to rtx_insn * without
16402         affecting the type signature.  Strengthen local "insn" from rtx to
16403         rtx_insn *.
16404         (dump_basic_block_info): Strengthen param "insn" from rtx to
16405         rtx_insn *.
16406         (final): Rename param from "first" to "uncast_first",
16407         introducing a new local rtx_insn * "first" using a checked cast to
16408         effectively strengthen "first" from rtx to rtx_insn * without
16409         affecting the type signature.  Strengthen locals "insn", "next"
16410         from rtx to rtx_insn *.
16411         (output_alternate_entry_point): Strengthen param "insn" from rtx to
16412         rtx_insn *.
16413         (call_from_call_insn): Strengthen param "insn" from rtx to
16414         rtx_call_insn *.
16415         (final_scan_insn): Rename param from "insn" to "uncast_insn",
16416         introducing a new local rtx_insn * "insn" using a checked cast to
16417         effectively strengthen "insn" from rtx to rtx_insn * without
16418         affecting the type signature.  Strengthen return type and locals
16419         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
16420         now-redundant checked cast to rtx_insn * from both invocations of
16421         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
16422         introducing a local "call_insn" for use when invoking
16423         call_from_call_insn.
16424         (notice_source_line): Strengthen param "insn" from rtx to
16425         rtx_insn *.
16426         (leaf_function_p): Likewise for local "insn".
16427         (final_forward_branch_p): Likewise.
16428         (leaf_renumber_regs): Likewise for param "first".
16429         (rest_of_clean_state): Likewise for locals "insn" and "next".
16430         (self_recursive_call_p): Likewise for param "insn".
16431         (collect_fn_hard_reg_usage): Likewise for local "insn".
16432         (get_call_fndecl): Likewise for param "insn".
16433         (get_call_cgraph_rtl_info): Likewise.
16434         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
16435         introducing a new local rtx_insn * "insn" using a checked cast to
16436         effectively strengthen "insn" from rtx to rtx_insn * without
16437         affecting the type signature.
16438
16439         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
16440         cast when assigning from param "insn" to current_output_insn.
16441         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
16442         so that we can assign it back to current_output_insn.
16443
16444 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16445
16446         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
16447         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
16448         atmxt540s and atmxt540sreva devices.
16449         * config/avr/avr-tables.opt: Regenerate.
16450         * config/avr/t-multilib: Regenerate.
16451         * doc/avr-mmcu.texi: Regenerate.
16452
16453 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16454
16455         * expr.c (convert_move): Strengthen local "insns" from rtx to
16456         rtx_insn *.
16457         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
16458         "top_label" from rtx to rtx_code_label *.
16459         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
16460         rtx_insn *.
16461         (emit_single_push_insn): Likewise for locals "prev", "last".
16462         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
16463         to rtx_code_label *.
16464         (store_constructor): Likewise for locals "loop_start", "loop_end".
16465         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
16466         rtx_insn *.
16467         (expand_expr_real_2): Likewise.
16468         (expand_expr_real_1): Strengthen local "label" from rtx to
16469         rtx_code_label *.
16470
16471 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16472
16473         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
16474         from rtx to rtx_insn *.
16475         (store_bit_field_1): Likewise.
16476         (extract_bit_field_1): Likewise.
16477         (expand_mult_const): Likewise for local "insns".
16478         (expmed_mult_highpart): Strengthen local "label" from rtx to
16479         rtx_code_label *.
16480         (expand_smod_pow2): Likewise.
16481         (expand_sdiv_pow2): Likewise.
16482         (expand_divmod): Strengthen locals "last", "insn" from rtx to
16483         rtx_insn *.  Strengthen locals "label", "label1", "label2",
16484         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
16485         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
16486         (emit_store_flag): Likewise.
16487         (emit_store_flag_force): Strengthen local "label" from rtx to
16488         rtx_code_label *.
16489         (do_cmp_and_jump): Likewise for param "label".
16490
16491 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16492
16493         * explow.c (force_reg): Strengthen local "insn" from rtx to
16494         rtx_insn *.
16495         (adjust_stack_1): Likewise.
16496         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
16497         "final_label", "available_label", "space_available" from rtx to
16498         rtx_code_label *.
16499         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
16500         (anti_adjust_stack_and_probe): Likewise.
16501
16502 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16503
16504         * except.h (sjlj_emit_function_exit_after): Strengthen param
16505         "after" from rtx to rtx_insn *.  This is only called with
16506         result of get_last_insn (in function.c) so type-change should be
16507         self-contained.
16508
16509         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
16510         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
16511         to rtx_insn *.  These fields are only used from except.c so this
16512         type-change should be self-contained to this patch.
16513
16514         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
16515         local "last" from rtx to rtx_insn *.
16516         (dw2_build_landing_pads): Likewise for local "seq".
16517         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
16518         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
16519         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
16520         rtx to rtx_insn *.
16521         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
16522         to rtx_insn *.
16523         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
16524         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
16525         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
16526         referring to an insn.  Strengthen local "dispatch_label" from
16527         rtx to rtx_code_label *.
16528         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
16529         rtx_insn *.
16530         (expand_eh_return): Strengthen local "around_label" from
16531         rtx to rtx_code_label *.
16532         (convert_to_eh_region_ranges): Strengthen locals "iter",
16533         "last_action_insn", "first_no_action_insn",
16534         "first_no_action_insn_before_switch",
16535         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
16536
16537 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16538
16539         * dwarf2out.c (last_var_location_insn): Strengthen this variable
16540         from rtx to rtx_insn *.
16541         (cached_next_real_insn): Likewise.
16542         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
16543         working with insns.
16544         (dwarf2out_var_location): Strengthen locals "next_real",
16545         "next_note", "expected_next_loc_note", "last_start", "insn" from
16546         rtx to rtx_insn *.
16547
16548 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16549
16550         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
16551         from rtx to rtx_insn *.
16552         (create_pseudo_cfg): Likewise for local "insn".
16553
16554 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16555
16556         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
16557         from rtx to rtx_insn *.
16558         (df_bb_regno_last_def_find): Likewise.
16559
16560         * df-problems.c (df_rd_bb_local_compute): Likewise.
16561         (df_lr_bb_local_compute): Likewise.
16562         (df_live_bb_local_compute): Likewise.
16563         (df_chain_remove_problem): Likewise.
16564         (df_chain_create_bb): Likewise.
16565         (df_word_lr_bb_local_compute): Likewise.
16566         (df_remove_dead_eq_notes): Likewise for param "insn".
16567         (df_note_bb_compute): Likewise for local "insn".
16568         (simulate_backwards_to_point): Likewise.
16569         (df_md_bb_local_compute): Likewise.
16570
16571         * df-scan.c (df_scan_free_bb_info): Likewise.
16572         (df_scan_start_dump): Likewise.
16573         (df_scan_start_block): Likewise.
16574         (df_install_ref_incremental): Likewise for local "insn".
16575         (df_insn_rescan_all): Likewise.
16576         (df_reorganize_refs_by_reg_by_insn): Likewise.
16577         (df_reorganize_refs_by_insn_bb): Likewise.
16578         (df_recompute_luids): Likewise.
16579         (df_bb_refs_record): Likewise.
16580         (df_update_entry_exit_and_calls): Likewise.
16581         (df_bb_verify): Likewise.
16582
16583 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16584
16585         * ddg.h (struct ddg_node): Strengthen fields "insn" and
16586         "first_note" from rtx to rtx_insn *.
16587         (get_node_of_insn): Likewise for param 2 "insn".
16588         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
16589
16590         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
16591         rtx_insn *.
16592         (mem_write_insn_p): Likewise.
16593         (mem_access_insn_p): Likewise.
16594         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
16595         (def_has_ccmode_p): Likewise for param "insn".
16596         (add_cross_iteration_register_deps): Likewise for locals
16597         "def_insn" and "use_insn".
16598         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
16599         (build_intra_loop_deps): Likewise for local "src_insn".
16600         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
16601         to rtx_insn *.
16602         (get_node_of_insn): Likewise for param "insn".
16603
16604 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16605
16606         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
16607         (deletable_insn_p): Strengthen param "insn" from rtx to
16608         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
16609         find_call_stack_args, since this is guarded by CALL_P (insn).
16610         (marked_insn_p): Strengthen param "insn" from rtx to
16611         rtx_insn *.
16612         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
16613         invoking find_call_stack_args, since this is guarded by
16614         CALL_P (insn).
16615         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
16616         rtx_insn *; we know this is an insn since this was called by
16617         mark_nonreg_stores.
16618         (mark_nonreg_stores_2): Likewise.
16619         (mark_nonreg_stores): Strengthen param "insn" from rtx to
16620         rtx_insn *.
16621         (find_call_stack_args): Strengthen param "call_insn" from rtx to
16622         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
16623         to rtx_insn *.
16624         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
16625         from rtx to rtx_insn *.
16626         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
16627         "next", "ref_insn".
16628         (delete_unmarked_insns): Likewise for locals "insn", "next".
16629         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
16630         (mark_reg_dependencies): Likewise for param "insn".
16631         (rest_of_handle_ud_dce): Likewise for local "insn".
16632         (word_dce_process_block): Likewise.
16633         (dce_process_block): Likewise.
16634
16635 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16636
16637         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
16638         from rtx to rtx_insn *.
16639         (struct change_cc_mode_args): Likewise for field "insn".
16640         (this_insn): Strengthen from rtx to rtx_insn *.
16641         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
16642         with insn.
16643         (validate_canon_reg): Strengthen param "insn" from rtx to
16644         rtx_insn *.
16645         (canon_reg): Likewise.
16646         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
16647         dealing with insn.
16648         (record_jump_equiv): Strengthen param "insn" from rtx to
16649         rtx_insn *.
16650         (try_back_substitute_reg): Likewise, also for locals "prev",
16651         "bb_head".
16652         (find_sets_in_insn): Likewise for param "insn".
16653         (canonicalize_insn): Likewise.
16654         (cse_insn): Likewise.  Add a checked cast.
16655         (invalidate_from_clobbers): Likewise for param "insn".
16656         (invalidate_from_sets_and_clobbers): Likewise.
16657         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
16658         dealing with insn.
16659         (cse_prescan_path): Strengthen local "insn" from rtx to
16660         rtx_insn *.
16661         (cse_extended_basic_block): Likewise for locals "insn" and
16662         "prev_insn".
16663         (cse_main): Likewise for param "f".
16664         (check_for_label_ref): Likewise for local "insn".
16665         (set_live_p): Likewise for second param ("insn").
16666         (insn_live_p): Likewise for first param ("insn") and for local
16667         "next".
16668         (cse_change_cc_mode_insn): Likewise for first param "insn".
16669         (cse_change_cc_mode_insns): Likewise for first and second params
16670         "start" and "end".
16671         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
16672         and "end".
16673         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
16674         "cc_src_insn".
16675
16676 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16677             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16678             Anna Tikhonova  <anna.tikhonova@intel.com>
16679             Ilya Tocar  <ilya.tocar@intel.com>
16680             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16681             Ilya Verbin  <ilya.verbin@intel.com>
16682             Kirill Yukhin  <kirill.yukhin@intel.com>
16683             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16684
16685         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
16686         New.
16687         * config/i386/sse.md
16688         (define_mode_iterator VI248_AVX2): Delete.
16689         (define_mode_iterator VI2_AVX2_AVX512BW): New.
16690         (define_mode_iterator VI48_AVX2): Ditto.
16691         (define_insn <shift_insn><mode>3): Delete.
16692         (define_insn "<shift_insn><mode>3<mask_name>" with
16693         VI2_AVX2_AVX512BW): New.
16694         (define_insn "<shift_insn><mode>3<mask_name>" with
16695         VI48_AVX2): Ditto.
16696
16697 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16698             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16699             Anna Tikhonova  <anna.tikhonova@intel.com>
16700             Ilya Tocar  <ilya.tocar@intel.com>
16701             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16702             Ilya Verbin  <ilya.verbin@intel.com>
16703             Kirill Yukhin  <kirill.yukhin@intel.com>
16704             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16705
16706         * config/i386/sse.md
16707         (define_mode_iterator VI4F_BRCST32x2): New.
16708         (define_mode_attr 64x2_mode): Ditto.
16709         (define_mode_attr 32x2mode): Ditto.
16710         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
16711         with VI4F_BRCST32x2): Ditto.
16712         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
16713         with V16FI mode iterator): Ditto.
16714         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
16715         with V16FI): Ditto.
16716         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
16717         with VI8F_BRCST64x2): Ditto.
16718
16719 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16720             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16721             Anna Tikhonova  <anna.tikhonova@intel.com>
16722             Ilya Tocar  <ilya.tocar@intel.com>
16723             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16724             Ilya Verbin  <ilya.verbin@intel.com>
16725             Kirill Yukhin  <kirill.yukhin@intel.com>
16726             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16727
16728         * config/i386/sse.md
16729         (define_mode_iterator VI8_AVX512VL): New.
16730         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
16731
16732 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
16733
16734         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
16735         (define_mode_iterator V48_AVX512VL): New.
16736         (define_mode_iterator V12_AVX512VL): Ditto.
16737         (define_insn <avx512>_load<mode>_mask): Split into two similar
16738         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
16739         Refactor output template.
16740         (define_insn "<avx512>_store<mode>_mask"): Ditto.
16741
16742 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16743
16744         * cprop.c (struct occr): Strengthen field "insn" from rtx to
16745         rtx_insn *.
16746         (reg_available_p): Likewise for param "insn".
16747         (insert_set_in_table): Likewise.
16748         (hash_scan_set): Likewise.
16749         (hash_scan_insn): Likewise.
16750         (make_set_regs_unavailable): Likewise.
16751         (compute_hash_table_work): Likewise for local "insn".
16752         (reg_not_set_p): Strengthen param "insn" from const_rtx to
16753         const rtx_insn *.
16754         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
16755         (try_replace_reg): Likewise.
16756         (find_avail_set): Likewise.
16757         (cprop_jump): Likewise for params "setcc", "jump".
16758         (constprop_register): Likewise for param "insn".
16759         (cprop_insn): Likewise.
16760         (do_local_cprop): Likewise.
16761         (local_cprop_pass): Likewise for local "insn".
16762         (bypass_block): Likewise for params "setcc" and "jump".
16763         (bypass_conditional_jumps): Likewise for locals "setcc" and
16764         "insn".
16765         (one_cprop_pass): Likewise for local "insn".
16766
16767 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16768
16769         * compare-elim.c (struct comparison_use): Strengthen field "insn"
16770         from rtx to rtx_insn *.
16771         (struct comparison): Likewise, also for field "prev_clobber".
16772         (conforming_compare): Likewise for param "insn".
16773         (arithmetic_flags_clobber_p): Likewise.
16774         (find_flags_uses_in_insn): Likewise.
16775         (find_comparison_dom_walker::before_dom_children): Likewise for
16776         locals "insn", "next", "last_clobber".
16777         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
16778
16779 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
16780
16781         * combine-stack-adj.c (struct csa_reflist): Strengthen field
16782         "insn" from rtx to rtx_insn *.
16783         (single_set_for_csa): Likewise for param "insn".
16784         (record_one_stack_ref): Likewise.
16785         (try_apply_stack_adjustment): Likewise.
16786         (struct record_stack_refs_data): Likewise for field "insn".
16787         (maybe_move_args_size_note): Likewise for params "last" and "insn".
16788         (prev_active_insn_bb): Likewise for return type and param "insn".
16789         (next_active_insn_bb): Likewise.
16790         (force_move_args_size_note): Likewise for params "prev" and "last"
16791         and locals "test", "next_candidate", "prev_candidate".
16792         (combine_stack_adjustments_for_block): Strengthen locals
16793         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
16794         rtx_insn *.
16795
16796 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16797
16798         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
16799         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
16800         (subst_insn): Likewise for this variable.
16801         (added_links_insn): Likewise.
16802         (struct insn_link): Likewise for field "insn".
16803         (alloc_insn_link): Likewise for param "insn".
16804         (struct undobuf): Likewise for field "other_insn".
16805         (find_single_use): Likewise for param "insn" and local "next".
16806         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
16807         (delete_noop_moves): Likewise for locals "insn", "next".
16808         (create_log_links): Likewise for locals "insn", "use_insn".
16809         Strengthen local "next_use" from rtx * to rtx_insn **.
16810         (insn_a_feeds_b): Likewise for params "a", "b".
16811         (combine_instructions): Likewise for param "f" and locals "insn",
16812         "next", "prev", "first", "last_combined_insn", "link", "link1",
16813         "temp".  Replace use of NULL_RTX with NULL when referring to
16814         insns.
16815         (setup_incoming_promotions): Likewise for param "first"
16816         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
16817         (can_combine_p): Likewise for params "insn", "i3", "pred",
16818         "pred2", "succ", "succ2" and for local "p".
16819         (combinable_i3pat): Likewise for param "i3".
16820         (cant_combine_insn_p): Likewise for param "insn".
16821         (likely_spilled_retval_p): Likewise.
16822         (adjust_for_new_dest): Likewise.
16823         (update_cfg_for_uncondjump): Likewise, also for local "insn".
16824         (try_combine): Likewise for return type and for params "i3", "i2",
16825         "i1", "i0", "last_combined_insn", and for locals "insn",
16826         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
16827         "i0_insn".  Eliminate local "tem" in favor of new locals
16828         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
16829         checked cast for now to rtx_insn * on the return type of
16830         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
16831         insns.
16832         (find_split_point): Strengthen param "insn" from rtx to
16833         rtx_insn *.
16834         (simplify_set): Likewise for local "other_insn".
16835         (recog_for_combine): Likewise for param "insn".
16836         (record_value_for_reg): Likewise.
16837         (record_dead_and_set_regs_1): Likewise for local
16838         "record_dead_insn".
16839         (record_dead_and_set_regs): Likewise for param "insn".
16840         (record_promoted_value): Likewise.
16841         (check_promoted_subreg): Likewise.
16842         (get_last_value_validate): Likewise.
16843         (reg_dead_at_p): Likewise.
16844         (move_deaths): Likewise for param "to_insn".
16845         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
16846         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
16847         in favor of new locals "tem_note" and "tem_insn", the latter being
16848         an rtx_insn *.
16849         (distribute_links): Strengthen locals "place", "insn" from rtx to
16850         rtx_insn *.
16851
16852 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16853
16854         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
16855         than a const_rtx.
16856         (can_delete_label_p): Require a const rtx_code_label * rather than
16857         a const_rtx.
16858         (delete_insn): Add checked cast to rtx_code_label * when we know
16859         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
16860         rtx to rtx_insn *.
16861         (delete_insn_chain): Strengthen locals "prev" and "current" from
16862         rtx to rtx_insn *.  Add a checked cast when assigning from
16863         "finish" (strengthening the params will come later).  Add a
16864         checked cast to rtx_note * in region where we know
16865         NOTE_P (current).
16866         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
16867         rtx_insn *.
16868         (compute_bb_for_insn): Likewise.
16869         (free_bb_for_insn): Likewise for local "insn".
16870         (compute_bb_for_insn): Likewise.
16871         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
16872         local "insn" from rtx to rtx_insn *
16873         (flow_active_insn_p): Require a const rtx_insn * rather than a
16874         const_rtx.
16875         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
16876         rtx_insn *.
16877         (can_fallthru): Likewise for locals "insn" and "insn2".
16878         (bb_note): Likewise for local "note".
16879         (first_insn_after_basic_block_note): Likewise for local "note" and
16880         for return type.
16881         (rtl_split_block): Likewise for locals "insn" and "next".
16882         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
16883         "end".
16884         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
16885         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
16886         "prev", "tmp".
16887         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
16888         them), "kill_from", "barrier", "new_insn".
16889         (patch_jump_insn): Likewise for params "insn", "old_label".
16890         (redirect_branch_edge): Likewise for locals "old_label", "insn".
16891         (force_nonfallthru_and_redirect): Likewise for locals "insn",
16892         "old_label", "new_label".
16893         (rtl_tidy_fallthru_edge): Likewise for local "q".
16894         (rtl_split_edge): Likewise for locals "before", "last".
16895         (commit_one_edge_insertion): Likewise for locals "before",
16896         "after", "insns", "tmp", "last", adding a checked cast where
16897         currently necessary.
16898         (commit_edge_insertions): Likewise.
16899         (rtl_dump_bb): Likewise for locals "insn", "last".
16900         (print_rtl_with_bb): Likewise for local "x".
16901         (rtl_verify_bb_insns): Likewise for local "x".
16902         (rtl_verify_bb_pointers): Likewise for local "insn".
16903         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
16904         "head", "end".
16905         (rtl_verify_fallthru): Likewise for local "insn".
16906         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
16907         (purge_dead_edges): Likewise for local "insn".
16908         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
16909         (skip_insns_after_block): Likewise for return type and for locals
16910         "insn", "last_insn", "next_head", "prev".
16911         (record_effective_endpoints): Likewise for locals "next_insn",
16912         "insn", "end".
16913         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
16914         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
16915         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
16916         (duplicate_insn_chain): For now, add checked cast from rtx to
16917         rtx_insn * when returning insn.
16918         (cfg_layout_duplicate_bb): Likewise for local "insn".
16919         (cfg_layout_delete_block): Likewise for locals "insn", "next",
16920         "prev", "remaints".
16921         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
16922         (rtl_block_empty_p): Likewise.
16923         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
16924         "split_point", "last".
16925         (rtl_block_ends_with_call_p): Likewise for local "insn".
16926         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
16927         const rtx_insn *.
16928         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
16929         "split_at_insn" from rtx to rtx_insn *.
16930         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
16931         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
16932         to const rtx_insn *.
16933         (rtl_account_profile_record): Likewise.
16934
16935 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16936
16937         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
16938         rtx to rtx_insn *.
16939         (average_num_loop_insns): Likewise.
16940         (init_set_costs): Likewise for local "seq".
16941         (seq_cost): Likewise for param "seq", from const_rtx to const
16942         rtx_insn *.
16943
16944 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16945
16946         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
16947         rtx to rtx_insn *.
16948
16949 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16950
16951         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
16952         "f1" and "f2" from rtx * to rtx_insn **.
16953         (flow_find_head_matching_sequence): Likewise.
16954
16955         * cfgcleanup.c (try_simplify_condjump): Strengthen local
16956         "cbranch_insn" from rtx to rtx_insn *.
16957         (thread_jump): Likewise for local "insn".
16958         (try_forward_edges): Likewise for local "last".
16959         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
16960         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
16961         "real_b_end".
16962         (can_replace_by): Likewise for params "i1", "i2".
16963         (old_insns_match_p): Likewise.
16964         (merge_notes): Likewise.
16965         (walk_to_nondebug_insn): Likewise for param "i1".
16966         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
16967         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
16968         "afterlast1", "afterlast2" from rtx to rtx_insn *.
16969         (flow_find_head_matching_sequence): Strengthen params "f1" and
16970         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
16971         "last1", "last2", "beforelast1", "beforelast2" from rtx to
16972         rtx_insn *.
16973         (outgoing_edges_match): Likewise for locals "last1", "last2".
16974         (try_crossjump_to_edge): Likewise for local "insn".
16975         Replace call to for_each_rtx with for_each_rtx_in_insn.
16976
16977         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
16978         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
16979         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
16980         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
16981         (try_optimize_cfg): Strengthen local "last" from rtx to
16982         rtx_insn *.
16983         (delete_dead_jumptables): Likewise for locals "insn", "next",
16984         "label".
16985
16986         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
16987         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
16988         "rtx else_first_tail", to reflect the basic-block.h changes above.
16989
16990 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16991
16992         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
16993         rtx_insn *.
16994         (purge_dead_tablejump_edges): Likewise.
16995         (find_bb_boundaries): Likewise for locals "insn", "end",
16996         "flow_transfer_insn".
16997
16998 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
16999
17000         * caller-save.c (save_call_clobbered_regs): Strengthen locals
17001         "ins" and "prev" from rtx to rtx_insn *.
17002
17003 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17004
17005         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
17006         rtx_insn *.
17007         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
17008         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
17009         "scan_start".
17010         (load_register_parameters): Likewise for local "before_arg".
17011         (check_sibcall_argument_overlap): Likewise for param "insn".
17012         (expand_call): Likewise for locals "normal_call_insns",
17013         "tail_call_insns", "insns", "before_call", "after_args",
17014         "before_arg", "last", "prev".  Strengthen one of the "last" from
17015         rtx to rtx_call_insn *.
17016         (fixup_tail_calls): Strengthen local "insn" from rtx to
17017         rtx_insn *.
17018         (emit_library_call_value_1): Likewise for locals "before_call" and
17019         "last".
17020
17021 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17022
17023         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
17024         and "last" from rtx to rtx_insn *.
17025         (expand_builtin_nonlocal_goto): Likewise for local "insn".
17026         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
17027         rtx_call_insn *.
17028         (expand_errno_check): Strengthen local "lab" from rtx to
17029         rtx_code_label *.
17030         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
17031         rtx_insn *.
17032         (expand_builtin_mathfn_2): Likewise.
17033         (expand_builtin_mathfn_ternary): Likewise.
17034         (expand_builtin_mathfn_3): Likewise.
17035         (expand_builtin_interclass_mathfn): Likewise for local "last".
17036         (expand_builtin_int_roundingfn): Likewise for local "insns".
17037         (expand_builtin_int_roundingfn_2): Likewise.
17038         (expand_builtin_strlen): Likewise for local "before_strlen".
17039         (expand_builtin_strncmp): Likewise for local "seq".
17040         (expand_builtin_signbit): Likewise for local "last".
17041         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
17042         from rtx to rtx_code_label *.
17043         (expand_stack_restore):  Strengthen local "prev" from rtx to
17044         rtx_insn *.
17045
17046 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17047
17048         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
17049         to rtx_insn *.
17050         (struct btr_def_s): Likewise.
17051         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
17052         const rtx_insn *.
17053         (add_btr_def): Likewise.
17054         (new_btr_user): Likewise.
17055         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
17056         rtx to rtx_insn *.
17057         (link_btr_uses): Likewise.
17058         (move_btr_def): Likewise for locals "insp", "old_insn",
17059         "new_insn".  Add checked cast to rtx_insn * for now on result of
17060         gen_move_insn.
17061         (can_move_up): Strengthen param "insn" from const_rtx to
17062         const rtx_insn *.
17063
17064 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17065
17066         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
17067         rtx_insn *.
17068         (get_uncond_jump_length): Likewise for locals "label", "jump".
17069         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
17070         "jump", "insn".
17071         (add_labels_and_missing_jumps): Likewise for local "new_jump".
17072         (fix_up_fall_thru_edges): Likewise for local "old_jump".
17073         (find_jump_block): Likewise for local "insn".
17074         (fix_crossing_conditional_branches): Likewise for locals
17075         "old_jump", "new_jump".
17076         (fix_crossing_unconditional_branches): Likewise for locals
17077         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
17078         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
17079
17080 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17081
17082         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
17083         rtx to rtx_insn *.
17084         (struct mem_insn): Likewise for field "insn".
17085         (reg_next_use): Strengthen from rtx * to rtx_insn **.
17086         (reg_next_inc_use): Likewise.
17087         (reg_next_def): Likewise.
17088         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
17089         from rtx to rtx_insn *.
17090         (move_insn_before): Likewise for param "next_insn" and local "insns".
17091         (attempt_change): Likewise for local "mov_insn".
17092         (try_merge): Likewise for param "last_insn".
17093         (get_next_ref): Likewise for return type and local "insn".
17094         Strengthen param "next_array" from rtx * to rtx_insn **.
17095         (parse_add_or_inc): Strengthen param "insn" from rtx to
17096         rtx_insn *.
17097         (find_inc): Likewise for locals "insn" and "other_insn" (three of
17098         the latter).
17099         (merge_in_block): Likewise for locals "insn", "curr",
17100         "other_insn".
17101         (pass_inc_dec::execute): Update allocations of the arrays to
17102         reflect the stronger types.
17103
17104 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17105
17106         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
17107         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
17108         from rtx to rtx_code_label *.
17109
17110 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17111
17112         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
17113         to rtx_insn *.
17114
17115 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
17116
17117         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
17118         generated a warning and prevented bootstrapping the compiler.
17119
17120 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17121
17122         * rtl.h (delete_related_insns): Strengthen return type from rtx to
17123         rtx_insn *.
17124
17125         * jump.c (delete_related_insns): Likewise, also for locals "next"
17126         and "prev".
17127
17128 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17129
17130         * genautomata.c (output_internal_insn_latency_func): When writing
17131         the function "internal_insn_latency" to insn-automata.c,
17132         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
17133         allowing the optional guard function of (define_bypass) clauses to
17134         expect a pair of rtx_insn *, rather than a pair of rtx.
17135         (output_insn_latency_func): When writing the function
17136         "insn_latency", add an "uncast_" prefix to params "insn" and
17137         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
17138         using checked casts from the params, thus enabling the above
17139         change to the generated "internal_insn_latency" function.
17140
17141 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
17142
17143         PR tree-optimization/62091
17144         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
17145         handle correctly arrays.
17146         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
17147         inheritance binfos.
17148         (record_known_type): Walk into inner type.
17149         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
17150         condition on no type changes.
17151
17152 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17153
17154         * genattrtab.c (write_attr_get): Within the generated get_attr_
17155         functions, rename param "insn" to "uncast_insn" and reintroduce
17156         "insn" as an local rtx_insn * using a checked cast, so that "insn"
17157         is an rtx_insn * within insn-attrtab.c
17158
17159 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17160
17161         * output.h (peephole): Strengthen return type from rtx to
17162         rtx_insn *.
17163         * rtl.h (delete_for_peephole): Likewise for both params.
17164         * genpeep.c (main): In generated "peephole" function, strengthen
17165         return type and local "insn" from rtx to rtx_insn *.  For now,
17166         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
17167         rtx_insn *, with a checked cast.
17168         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
17169         locals "insn", "next", "prev" from rtx to rtx_insn *.
17170
17171 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
17172
17173         PR tree-optimization/62112
17174         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
17175         * gimple-iterator.h (gsi_replace): Return bool.
17176         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
17177         moved from ref_may_alias_global_p.
17178         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
17179         New overloads.
17180         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
17181         (stmt_kills_ref_p_1): Rename...
17182         (stmt_kills_ref_p): ... to this.
17183         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
17184         stmt_kills_ref_p): Declare.
17185         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
17186         Move the self-assignment case...
17187         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
17188
17189 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17190
17191         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
17192
17193         * emit-rtl.c (try_split): Likewise, also for locals "before" and
17194         "after".  For now, don't strengthen param "trial", which requires
17195         adding checked casts when returning it.
17196
17197 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17198
17199         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
17200         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
17201         "var_location" hook from rtx to rtx_insn *.
17202         (debug_nothing_rtx): Delete in favor of...
17203         (debug_nothing_rtx_code_label): New prototype.
17204         (debug_nothing_rtx_rtx): Delete unused prototype.
17205         (debug_nothing_rtx_insn): New prototype.
17206
17207         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
17208         invoking debug_hooks->var_location (in two places, one in a NOTE
17209         case of a switch statement, the other guarded by a CALL_P
17210         conditional.  Add checked cast to rtx_code_label * when invoking
17211         debug_hooks->label (within CODE_LABEL case of switch statement).
17212
17213         * dbxout.c (dbx_debug_hooks): Update "label" hook from
17214         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
17215         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
17216         (xcoff_debug_hooks): Likewise.
17217         * debug.c (do_nothing_debug_hooks): Likewise.
17218         (debug_nothing_rtx): Delete in favor of...
17219         (debug_nothing_rtx_insn): New function.
17220         (debug_nothing_rtx_rtx): Delete unused function.
17221         (debug_nothing_rtx_code_label): New function.
17222         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
17223         debug_nothing_rtx to debug_nothing_rtx_code_label.
17224         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
17225         to rtx_insn *.
17226         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
17227         debug_nothing_rtx to debug_nothing_rtx_insn.
17228         (sdbout_label): Strengthen param "insn" from rtx to
17229         rtx_code_label *.
17230         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
17231         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
17232         "var_location" hook from debug_nothing_rtx to
17233         debug_nothing_rtx_insn.
17234
17235 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17236
17237         * recog.h (insn_output_fn): Update this function typedef to match
17238         the changes below to the generated output functions, strengthening
17239         the 2nd param from rtx to rtx_insn *.
17240
17241         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
17242         insn when invoking an output function, to match the new signature
17243         of insn_output_fn with a stronger second param.
17244
17245         * genconditions.c (write_header): In the generated code for
17246         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
17247         to match the other changes in this patch.
17248
17249         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
17250         the generated "gen_" functions from rtx to rtx_insn * within their
17251         implementations.
17252
17253         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
17254         the subfunctions within the generated "recog_", "split", "peephole2"
17255         function trees from rtx to rtx_insn *.  For now, the top-level
17256         generated functions ("recog", "split", "peephole2") continue to
17257         take a plain rtx for "insn", to avoid introducing dependencies on
17258         other patches.  Rename this 2nd param from "insn" to
17259         "uncast_insn", and reintroduce "insn" as a local variable of type
17260         rtx_insn *, initialized at the top of the generated function with
17261         a checked cast on "uncast_insn".
17262         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
17263         the generated "gen_" functions from rtx to rtx_insn * within their
17264         prototypes.
17265
17266         * genoutput.c (process_template): Strengthen the 2nd param within
17267         the generated "output_" functions "insn" from rtx to rtx_insn *.
17268
17269 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
17270
17271         * tree-profile.c (tree_profiling): Skip external functions
17272         when doing coverage instrumentation.
17273         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
17274
17275 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17276
17277         * config/rs6000/altivec.h (vec_cpsgn): New #define.
17278         (vec_mergee): Likewise.
17279         (vec_mergeo): Likewise.
17280         (vec_cntlz): Likewise.
17281         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
17282         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
17283         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
17284         VMRGEW, and VMRGOW.
17285         * doc/extend.texi: Document various forms of vec_cpsgn,
17286         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
17287         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
17288         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
17289         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
17290         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
17291
17292 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17293
17294         * config/rs6000/rs6000.c (context.h): New include.
17295         (tree-pass.h): Likewise.
17296         (make_pass_analyze_swaps): New decl.
17297         (rs6000_option_override): Register pass_analyze_swaps.
17298         (swap_web_entry): New subsclass of web_entry_base (df.h).
17299         (special_handling_values): New enum.
17300         (union_defs): New function.
17301         (union_uses): Likewise.
17302         (insn_is_load_p): Likewise.
17303         (insn_is_store_p): Likewise.
17304         (insn_is_swap_p): Likewise.
17305         (rtx_is_swappable_p): Likewise.
17306         (insn_is_swappable_p): Likewise.
17307         (chain_purpose): New enum.
17308         (chain_contains_only_swaps): New function.
17309         (mark_swaps_for_removal): Likewise.
17310         (swap_const_vector_halves): Likewise.
17311         (adjust_subreg_index): Likewise.
17312         (permute_load): Likewise.
17313         (permute_store): Likewise.
17314         (handle_special_swappables): Likewise.
17315         (replace_swap_with_copy): Likewise.
17316         (dump_swap_insn_table): Likewise.
17317         (rs6000_analyze_swaps): Likewise.
17318         (pass_data_analyze_swaps): New pass_data.
17319         (pass_analyze_swaps): New rtl_opt_pass.
17320         (make_pass_analyze_swaps): New function.
17321         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
17322
17323 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17324
17325         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
17326         type from rtx to rtx_insn *.
17327         (create_copy_of_insn_rtx): Likewise.
17328         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
17329         (create_copy_of_insn_rtx): Likewise, also for local "res".
17330
17331 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17332
17333         * rtl.h (find_first_parameter_load): Strengthen return type from
17334         rtx to rtx_insn *.
17335         * rtlanal.c (find_first_parameter_load): Strengthen return type
17336         from rtx to rtx_insn *.  Add checked cast for now, to postpone
17337         strengthening the params.
17338
17339 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17340
17341         PR fortran/44054
17342         * diagnostic.c: Set default caret.
17343         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
17344         line is needed.
17345         * diagnostic.h (struct diagnostic_context):
17346
17347 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17348
17349         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
17350         (sel_bb_head): Strengthen return type insn_t (currently just an
17351         rtx) to rtx_insn *.
17352         (sel_bb_end): Likewise.
17353
17354         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
17355         (sel_bb_head): Strengthen return type and local "head" from
17356         insn_t (currently just an rtx) to rtx_insn *.
17357         (sel_bb_end): Likewise for return type.
17358         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
17359         working with insn.
17360
17361 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
17362
17363         * basic-block.h (get_last_bb_insn): Strengthen return type from
17364         rtx to rtx_insn *.
17365         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
17366         end".
17367
17368 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17369
17370         PR fortran/44054
17371         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
17372         to here ...
17373         (diagnostic_report_diagnostic): ... from here.
17374         * toplev.c (general_init): Move code to c-family.
17375
17376 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17377
17378         * df.h (web_entry_base): Replace existing struct web_entry with a
17379         new class web_entry_base with only the predecessor member.
17380         (unionfind_root): Remove declaration and move to class member.
17381         (unionfind_union): Remove declaration and move to friend
17382         function.
17383         (union_defs): Remove declaration.
17384         * web.c (web_entry_base::unionfind_root): Modify to be member
17385         function and adjust accessors.
17386         (unionfind_union): Modify to be friend function and adjust
17387         accessors.
17388         (web_entry): New subclass of web_entry_base containing the reg
17389         member.
17390         (union_match_dups): Modify for struct -> class changes.
17391         (union_defs): Likewise.
17392         (entry_register): Likewise.
17393         (pass_web::execute): Likewise.
17394
17395 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
17396
17397         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
17398         builtin define __VEC_ELEMENT_REG_ORDER__.
17399
17400 2014-08-20  Martin Jambor  <mjambor@suse.cz>
17401             Wei Mi  <wmi@google.com>
17402
17403         PR ipa/60449
17404         PR middle-end/61776
17405         * tree-ssa-operands.c (update_stmt_operands): Remove
17406         MODIFIED_NORETURN_CALLS.
17407         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
17408         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
17409         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
17410         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
17411         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
17412         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
17413         (gimple_call_set_ctrl_altering): New func.
17414         (gimple_call_ctrl_altering_p): Ditto.
17415         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
17416         (make_blocks): Use gimple_call_initialize_ctrl_altering.
17417         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
17418         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
17419         remove MODIFIED_NORETURN_CALLS.
17420
17421 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
17422
17423         * coverage.c (coverage_compute_profile_id): Return non-0;
17424         also handle symbols with unique name.
17425         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
17426
17427 2014-08-20  Steve Ellcey  <sellcey@mips.com>
17428
17429         PR middle-end/49191
17430         * doc/sourcebuild.texi (non_strict_align): New.
17431
17432 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
17433
17434         * cgraphunit.c (ipa_passes, compile): Reshedule
17435         symtab_remove_unreachable_nodes passes; update comments.
17436         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
17437         TODO_remove_functions before the pass; the functions ought to be
17438         already removed.
17439         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
17440         TODO_remove_functions.
17441         * passes.c (pass_data_early_local_passes): Do not schedule function
17442         removal.
17443         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
17444
17445 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17446
17447         PR c/59304
17448         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
17449         before setting the option.
17450         * diagnostic.c (diagnostic_classify_diagnostic): Record
17451         command-line status.
17452
17453 2014-08-20  Richard Biener  <rguenther@suse.de>
17454
17455         PR lto/62190
17456         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
17457         to build uint{16,32,64}_type_node.
17458
17459 2014-08-20  Terry Guo  <terry.guo@arm.com>
17460
17461         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
17462         with immediate_operand.
17463
17464 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
17465
17466         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
17467         "insn" from an as_a to a safe_as_a, for the case when "insn" is
17468         NULL.
17469
17470 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17471
17472         PR preprocessor/51303
17473         * incpath.c (remove_duplicates): Use cpp_warning.
17474
17475 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17476
17477         PR c/60975
17478         PR c/53063
17479         * doc/options.texi (CPP): Document it.
17480         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
17481         * optc-gen.awk: Handle CPP.
17482         * opth-gen.awk: Likewise.
17483
17484 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17485
17486         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
17487         rtx_insn *.
17488         (duplicate_insn_chain): Likewise.
17489         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
17490         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
17491         checked cast for now (until we can strengthen the params in the
17492         same way).
17493         (duplicate_insn_chain): Likewise.
17494
17495 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17496
17497         * rtl.h (next_cc0_user): Strengthen return type from rtx to
17498         rtx_insn *.
17499         (prev_cc0_setter): Likewise.
17500
17501         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
17502         rtx_insn *, adding checked casts for now as necessary.
17503         (prev_cc0_setter): Likewise.
17504
17505 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17506
17507         * expr.h (emit_move_insn): Strengthen return type from rtx to
17508         rtx_insn *.
17509         (emit_move_insn_1): Likewise.
17510         (emit_move_complex_push): Likewise.
17511         (emit_move_complex_parts): Likewise.
17512
17513         * expr.c (emit_move_via_integer): Strengthen return type from rtx
17514         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
17515         with insns.
17516         (emit_move_complex_push): Strengthen return type from rtx to
17517         rtx_insn *.
17518         (emit_move_complex): Likewise, also for local "ret".
17519         (emit_move_ccmode): Likewise.
17520         (emit_move_multi_word): Likewise for return type and locals
17521         "last_insn", "seq".
17522         (emit_move_insn_1): Likewise for return type and locals "result",
17523         "ret".
17524         (emit_move_insn): Likewise for return type and local "last_insn".
17525         (compress_float_constant): Likewise.
17526
17527 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17528
17529         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
17530         from rtx to rtx_insn *.
17531
17532         * rtl.h (emit_insn_before): Likewise.
17533         (emit_insn_before_noloc): Likewise.
17534         (emit_insn_before_setloc): Likewise.
17535         (emit_jump_insn_before): Likewise.
17536         (emit_jump_insn_before_noloc): Likewise.
17537         (emit_jump_insn_before_setloc): Likewise.
17538         (emit_call_insn_before): Likewise.
17539         (emit_call_insn_before_noloc): Likewise.
17540         (emit_call_insn_before_setloc): Likewise.
17541         (emit_debug_insn_before): Likewise.
17542         (emit_debug_insn_before_noloc): Likewise.
17543         (emit_debug_insn_before_setloc): Likewise.
17544         (emit_label_before): Likewise.
17545         (emit_insn_after): Likewise.
17546         (emit_insn_after_noloc): Likewise.
17547         (emit_insn_after_setloc): Likewise.
17548         (emit_jump_insn_after): Likewise.
17549         (emit_jump_insn_after_noloc): Likewise.
17550         (emit_jump_insn_after_setloc): Likewise.
17551         (emit_call_insn_after): Likewise.
17552         (emit_call_insn_after_noloc): Likewise.
17553         (emit_call_insn_after_setloc): Likewise.
17554         (emit_debug_insn_after): Likewise.
17555         (emit_debug_insn_after_noloc): Likewise.
17556         (emit_debug_insn_after_setloc): Likewise.
17557         (emit_label_after): Likewise.
17558         (emit_insn): Likewise.
17559         (emit_debug_insn): Likewise.
17560         (emit_jump_insn): Likewise.
17561         (emit_call_insn): Likewise.
17562         (emit_label): Likewise.
17563         (gen_clobber): Likewise.
17564         (emit_clobber): Likewise.
17565         (gen_use): Likewise.
17566         (emit_use): Likewise.
17567         (emit): Likewise.
17568
17569         (emit_barrier_before): Strengthen return type from rtx to
17570         rtx_barrier *.
17571         (emit_barrier_after): Likewise.
17572         (emit_barrier): Likewise.
17573
17574         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
17575         from rtx to rtx_insn *.  Add checked casts for now when converting
17576         "last" from rtx to rtx_insn *.
17577         (emit_insn_before_noloc): Likewise for return type.
17578         (emit_jump_insn_before_noloc): Likewise.
17579         (emit_call_insn_before_noloc): Likewise.
17580         (emit_debug_insn_before_noloc): Likewise.
17581         (emit_barrier_before): Strengthen return type and local "insn"
17582         from rtx to rtx_barrier *.
17583         (emit_label_before): Strengthen return type from rtx to
17584         rtx_insn *.  Add checked cast for now when returning param
17585         (emit_pattern_after_noloc): Strengthen return type from rtx to
17586         rtx_insn *.  Add checked casts for now when converting "last" from
17587         rtx to rtx_insn *.
17588         (emit_insn_after_noloc): Strengthen return type from rtx to
17589         rtx_insn *.
17590         (emit_jump_insn_after_noloc): Likewise.
17591         (emit_call_insn_after_noloc): Likewise.
17592         (emit_debug_insn_after_noloc): Likewise.
17593         (emit_barrier_after): Strengthen return type from rtx to
17594         rtx_barrier *.
17595         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
17596         Add checked cast for now when converting "label" from rtx to
17597         rtx_insn *.
17598         (emit_pattern_after_setloc): Strengthen return type from rtx to
17599         rtx_insn *.  Add checked casts for now when converting "last" from
17600         rtx to rtx_insn *.
17601         (emit_pattern_after): Strengthen return type from rtx to
17602         rtx_insn *.
17603         (emit_insn_after_setloc): Likewise.
17604         (emit_insn_after): Likewise.
17605         (emit_jump_insn_after_setloc): Likewise.
17606         (emit_jump_insn_after): Likewise.
17607         (emit_call_insn_after_setloc): Likewise.
17608         (emit_call_insn_after): Likewise.
17609         (emit_debug_insn_after_setloc): Likewise.
17610         (emit_debug_insn_after): Likewise.
17611         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
17612         when converting "last" from rtx to rtx_insn *.
17613         (emit_pattern_before): Strengthen return type from rtx to
17614         rtx_insn *.
17615         (emit_insn_before_setloc): Likewise.
17616         (emit_insn_before): Likewise.
17617         (emit_jump_insn_before_setloc): Likewise.
17618         (emit_jump_insn_before): Likewise.
17619         (emit_call_insn_before_setloc): Likewise.
17620         (emit_call_insn_before): Likewise.
17621         (emit_debug_insn_before_setloc): Likewise.
17622         (emit_debug_insn_before): Likewise.
17623         (emit_insn): Strengthen return type and locals "last", "insn",
17624         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
17625         within cases where we know we have an insn.
17626         (emit_debug_insn): Likewise.
17627         (emit_jump_insn): Likewise.
17628         (emit_call_insn): Strengthen return type and local "insn" from rtx
17629         to rtx_insn *.
17630         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
17631         a checked cast to rtx_insn * for now on "label".
17632         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
17633         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
17634         (emit_use): Likewise.
17635         (gen_use): Likewise, also for local "seq".
17636         (emit): Likewise for return type and local "insn".
17637         (rtx_insn): Likewise for return type and local "new_rtx".
17638
17639         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
17640         from rtx to rtx_barrier *.
17641
17642         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
17643         changed return type from rtx to rtx_insn *, we must update
17644         "emit_fn" type, and this in turn means updating...
17645         (frame_insn): ...this.  Strengthen return type from rtx to
17646         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
17647
17648 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17649
17650         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
17651         rtx to rtx_jump_table_data *.  Also for local.
17652         * rtl.h (emit_jump_table_data): Likewise.
17653
17654 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17655
17656         * basic-block.h (create_basic_block_structure): Strengthen third
17657         param "bb_note" from rtx to rtx_note *.
17658         * rtl.h (emit_note_before): Strengthen return type from rtx to
17659         rtx_note *.
17660         (emit_note_after): Likewise.
17661         (emit_note): Likewise.
17662         (emit_note_copy): Likewise.  Also, strengthen param similarly.
17663         * function.h (struct rtl_data): Strengthen field
17664         "x_stack_check_probe_note" from rtx to rtx_note *.
17665
17666         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
17667         from rtx to rtx_note *.
17668         * cfgrtl.c (create_basic_block_structure): Strengthen third param
17669         "bb_note" from rtx to rtx_note *.
17670         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
17671         when calling emit_note_copy.
17672         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
17673         rtx_note *.
17674         (emit_note_after): Likewise.
17675         (emit_note_before): Likewise.
17676         (emit_note_copy): Likewise.  Also, strengthen param similarly.
17677         (emit_note): Likewise.
17678         * except.c (emit_note_eh_region_end): Likewise for return type.
17679         Strengthen local "next" from rtx to rtx_insn *.
17680         (convert_to_eh_region_ranges): Strengthen local "note"
17681         from rtx to rtx_note *.
17682         * final.c (change_scope): Likewise.
17683         (reemit_insn_block_notes): Likewise, for both locals named "note".
17684         Also, strengthen local "insn" from rtx to rtx_insn *.
17685         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
17686         rtx to rtx_note *.
17687         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
17688         strengthen local "seq" from rtx to rtx_insn *.
17689         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
17690         to rtx_note *.
17691         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
17692         vec<rtx_note *>.
17693         (get_bb_note_from_pool): Strengthen return type from rtx to
17694         rtx_note *.
17695         (sel_create_basic_block): Strengthen local "new_bb_note" from
17696         insn_t to rtx_note *.
17697         * var-tracking.c (emit_note_insn_var_location): Strengthen local
17698         "note" from rtx to rtx_note *.
17699         (emit_notes_in_bb): Likewise.
17700
17701 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17702
17703         * function.h (struct rtl_data): Strengthen field
17704         "x_parm_birth_insn" from rtx to rtx_insn *.
17705         * function.c (struct assign_parm_data_all): Strengthen fields
17706         "first_conversion_insn" and "last_conversion_insn" from rtx to
17707         rtx_insn *.
17708
17709 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17710
17711         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
17712         to rtx_insn *; also for local "var_end_seq".
17713         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
17714         (maybe_cleanup_end_of_block): Likewise for param "last" and local
17715         "insn".
17716         (expand_gimple_cond): Likewise for locals "last2" and "last".
17717         (mark_transaction_restart_calls): Likewise for local "insn".
17718         (expand_gimple_stmt): Likewise for return type and locals "last"
17719         and "insn".
17720         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
17721         (avoid_complex_debug_insns): Likewise for param "insn".
17722         (expand_debug_locations): Likewise for locals "insn", "last",
17723         "prev_insn" and "insn2".
17724         (expand_gimple_basic_block): Likewise for local "last".
17725         (construct_exit_block): Likewise for locals "head", "end",
17726         "orig_end".
17727         (pass_expand::execute): Likewise for locals "var_seq",
17728         "var_ret_seq", "next".
17729
17730 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17731
17732         * asan.h (asan_emit_stack_protection): Strengthen return type from
17733         rtx to rtx_insn *.
17734         * asan.c (asan_emit_stack_protection): Likewise.  Add local
17735         "insns" to hold the return value.
17736
17737 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17738
17739         * basic-block.h (bb_note): Strengthen return type from rtx to
17740         rtx_note *.
17741         * sched-int.h (bb_note): Likewise.
17742         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
17743
17744 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17745
17746         * rtl.h (make_insn_raw): Strengthen return type from rtx to
17747         rtx_insn *.
17748
17749         * emit-rtl.c (make_insn_raw): Strengthen return type and local
17750         "insn" from rtx to rtx_insn *.
17751         (make_debug_insn_raw): Strengthen return type from rtx to
17752         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
17753         (make_jump_insn_raw):  Strengthen return type from rtx to
17754         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
17755         (make_call_insn_raw):  Strengthen return type from rtx to
17756         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
17757         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
17758         callback from rtx to rtx_insn *; likewise for local "insn" and
17759         "next", adding a checked cast to rtx_insn in the relevant cases of
17760         the switch statement.
17761         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
17762         callback from rtx to rtx_insn *.
17763         (emit_pattern_after_setloc): Likewise.
17764         (emit_pattern_after): Likewise.
17765         (emit_pattern_before_setloc): Likewise.
17766         (emit_pattern_before): Likewise.
17767
17768 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17769
17770         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
17771         rtx_call_insn *.
17772         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
17773         accepting an rtx_insn *.
17774         (last_call_insn): Strengthen return type from rtx to
17775         rtx_call_insn *.
17776
17777 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17778
17779         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
17780         "insns" from rtx to rtx_insn *.
17781         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
17782         locals "insn" and "prev".
17783
17784 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17785
17786         * rtl.h (tablejump_p): Strengthen third param from rtx * to
17787         rtx_jump_table_data **.
17788
17789         * cfgbuild.c (make_edges): Introduce local "table", using it in
17790         place of "tmp" for jump table data.
17791         (find_bb_boundaries): Strengthen local "table" from rtx to
17792         rtx_jump_table_data *.
17793         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
17794         (outgoing_edges_match): Likewise for locals "table1" and "table2".
17795         (try_crossjump_to_edge): Likewise.
17796         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
17797         "table".
17798         (patch_jump_insn): Introduce local "table", using it in place of
17799         "tmp" for jump table data.
17800         (force_nonfallthru_and_redirect): Introduce local "table", so that
17801         call to tablejump_p can receive an rtx_jump_table_data **.  Update
17802         logic around the call to overwrite "note" appropriately if
17803         tablejump_p returns non-zero.
17804         (get_last_bb_insn): Introduce local "table", using it in place of
17805         "tmp" for jump table data.
17806         * dwarf2cfi.c (create_trace_edges): Likewise.
17807
17808         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
17809         from rtx to rtx_jump_table_data *.
17810         (create_fix_barrier): Strengthen local "tmp" from rtx to
17811         rtx_jump_table_data *.
17812         (arm_reorg): Likewise for local "table".
17813
17814         * config/s390/s390.c (s390_chunkify_start): Likewise.
17815
17816         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
17817
17818         * jump.c (delete_related_insns): Strengthen local "lab_next" from
17819         rtx to rtx_jump_table_data *.
17820
17821         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
17822         rtx_jump_table_data **.  Add a checked cast when writing through
17823         the pointer: we know there that local "table" is non-NULL and that
17824         JUMP_TABLE_DATA_P (table) holds.
17825         (label_is_jump_target_p): Introduce local "table", using it in
17826         place of "tmp" for jump table data.
17827
17828 2014-08-19  Marek Polacek  <polacek@redhat.com>
17829
17830         PR c++/62153
17831         * doc/invoke.texi: Document -Wbool-compare.
17832
17833 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17834
17835         * rtl.h (entry_of_function): Strengthen return type from rtx to
17836         rtx_insn *.
17837         * cfgrtl.c (entry_of_function): Likewise.
17838
17839 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17840
17841         * emit-rtl.h (get_insns): Strengthen return type from rtx to
17842         rtx_insn *, adding a checked cast for now.
17843         (get_last_insn): Likewise.
17844
17845 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17846
17847         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
17848         rtx_code_label *.
17849
17850         * emit-rtl.c (gen_label_rtx): Likewise.
17851
17852 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17853
17854         * rtl.h (previous_insn): Strengthen return type from rtx to
17855         rtx_insn *.
17856         (next_insn): Likewise.
17857         (prev_nonnote_insn): Likewise.
17858         (prev_nonnote_insn_bb): Likewise.
17859         (next_nonnote_insn): Likewise.
17860         (next_nonnote_insn_bb): Likewise.
17861         (prev_nondebug_insn): Likewise.
17862         (next_nondebug_insn): Likewise.
17863         (prev_nonnote_nondebug_insn): Likewise.
17864         (next_nonnote_nondebug_insn): Likewise.
17865         (prev_real_insn): Likewise.
17866         (next_real_insn): Likewise.
17867         (prev_active_insn): Likewise.
17868         (next_active_insn): Likewise.
17869
17870         * emit-rtl.c (next_insn): Strengthen return type from rtx to
17871         rtx_insn *, adding a checked cast.
17872         (previous_insn): Likewise.
17873         (next_nonnote_insn): Likewise.
17874         (next_nonnote_insn_bb): Likewise.
17875         (prev_nonnote_insn): Likewise.
17876         (prev_nonnote_insn_bb): Likewise.
17877         (next_nondebug_insn): Likewise.
17878         (prev_nondebug_insn): Likewise.
17879         (next_nonnote_nondebug_insn): Likewise.
17880         (prev_nonnote_nondebug_insn): Likewise.
17881         (next_real_insn): Likewise.
17882         (prev_real_insn): Likewise.
17883         (next_active_insn): Likewise.
17884         (prev_active_insn): Likewise.
17885
17886         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
17887         param "stepfunc" so that it returns an rtx_insn * rather than an
17888         rtx, to track the change to prev_nonnote_insn_bb, which is the
17889         only function this is called with.
17890         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
17891
17892 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
17893
17894         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
17895         assert.
17896
17897 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17898
17899         * coretypes.h (class rtx_debug_insn): Add forward declaration.
17900         (class rtx_nonjump_insn): Likewise.
17901         (class rtx_jump_insn): Likewise.
17902         (class rtx_call_insn): Likewise.
17903         (class rtx_jump_table_data): Likewise.
17904         (class rtx_barrier): Likewise.
17905         (class rtx_code_label): Likewise.
17906         (class rtx_note): Likewise.
17907
17908         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
17909         adding the invariant DEBUG_INSN_P (X).
17910         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
17911         the invariant NONJUMP_INSN_P (X).
17912         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
17913         the invariant JUMP_P (X).
17914         (class rtx_call_insn): New, a subclass of rtx_insn, adding
17915         the invariant CALL_P (X).
17916         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
17917         invariant JUMP_TABLE_DATA_P (X).
17918         (class rtx_barrier): New, a subclass of rtx_insn, adding the
17919         invariant BARRIER_P (X).
17920         (class rtx_code_label): New, a subclass of rtx_insn, adding
17921         the invariant LABEL_P (X).
17922         (class rtx_note): New, a subclass of rtx_insn, adding
17923         the invariant NOTE_P(X).
17924         (is_a_helper <rtx_debug_insn *>::test): New.
17925         (is_a_helper <rtx_nonjump_insn *>::test): New.
17926         (is_a_helper <rtx_jump_insn *>::test): New.
17927         (is_a_helper <rtx_call_insn *>::test): New.
17928         (is_a_helper <rtx_jump_table_data *>::test): New functions,
17929         overloaded for both rtx and rtx_insn *.
17930         (is_a_helper <rtx_barrier *>::test): New.
17931         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
17932         for both rtx and rtx_insn *.
17933         (is_a_helper <rtx_note *>::test): New.
17934
17935 2014-08-19  Marek Polacek  <polacek@redhat.com>
17936
17937         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
17938         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
17939         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
17940         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
17941
17942 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17943
17944         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
17945         rtx_insn *.  To help with transition, for now, convert from an
17946         access macro into a pair of functions: BND_TO, returning an
17947         rtx_insn *, and...
17948         (SET_BND_TO): New function, for use where BND_TO is used as an
17949         lvalue.
17950
17951         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
17952         SET_BND_TO.
17953         (BND_TO): New function, adding a checked cast.
17954         (SET_BND_TO): New function.
17955
17956         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
17957         SET_BND_TO.
17958         (compute_av_set_on_boundaries): Likewise.
17959
17960 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
17961
17962         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
17963         destination if it is used in source.
17964         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
17965         (*popcount<mode>2_falsedep_1): Likewise.
17966
17967 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
17968
17969         PR other/62168
17970         * configure.ac: Set install_gold_as_default to no first.
17971         * configure: Regenerated.
17972
17973 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17974
17975         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
17976         "note_list" field will eventually be an rtx_insn *.  To help with
17977         transition, for now, convert from an access macro into a pair of
17978         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
17979         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
17980         used as an lvalue.
17981
17982         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
17983         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
17984
17985         * sel-sched-ir.c (init_bb): Likewise.
17986         (sel_restore_notes): Likewise.
17987         (move_bb_info): Likewise.
17988         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
17989         (SET_BB_NOTE_LIST): New function.
17990
17991 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
17992
17993         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
17994         field will eventually be an rtx_insn *.  To help with transition,
17995         for now, convert from an access macro into a pair of functions:
17996         VINSN_INSN_RTX, returning an rtx_insn *, and...
17997         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
17998         is used as an lvalue.
17999
18000         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
18001         SET_VINSN_INSN_RTX where it's used as an lvalue.
18002         (VINSN_INSN_RTX): New function.
18003         (SET_VINSN_INSN_RTX): New function.
18004
18005 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
18006
18007         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
18008         eventually be rtx_insn *, but to help with transition, for now,
18009         convert from an access macro into a pair of functions: DEP_PRO
18010         returning an rtx_insn * and...
18011         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
18012         lvalue, returning an rtx&.
18013         (DEP_CON): Analogous changes to DEP_PRO above.
18014         (SET_DEP_CON): Likewise.
18015
18016         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
18017         an lvalue to SET_DEP_CON.
18018         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
18019         (sd_copy_back_deps): Likewise for DEP_CON.
18020         (DEP_PRO): New function, adding a checked cast for now.
18021         (DEP_CON): Likewise.
18022         (SET_DEP_PRO): New function.
18023         (SET_DEP_CON): Likewise.
18024
18025 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
18026
18027         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
18028         (extra_options): Add i386/cygwin.opt.
18029         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
18030         (CPP_SPEC): Accept -pthread.
18031         (LINK_SPEC): Ditto.
18032         (GOMP_SELF_SPECS): Update comment.
18033         * config/i386/cygwin.opt: New file for -pthread flag.
18034
18035 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
18036
18037         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
18038         * df.h (DF_REF_INSN): Convert from a macro to a function, so
18039         that we can return an rtx_insn *.
18040
18041 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
18042
18043         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
18044         when building executables, not DLLs.  Add --large-address-aware
18045         under the same conditions.
18046         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
18047         when building executables, not DLLs.  Add --large-address-aware
18048         under the same conditions when using -m32.
18049
18050         * config/i386/cygwin-stdint.h: Throughout, make type
18051         definitions dependent on target architecture, not host.
18052
18053 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
18054
18055         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
18056         the return type from rtx to rtx_insn *,  which will enable various
18057         conversions in followup patches.  For now this is is done by a
18058         checked cast.
18059         (NEXT_INSN): Likewise.
18060         (SET_PREV_INSN): Convert to an inline function.  This is intended
18061         for use as an lvalue, and so returns an rtx& to allow in-place
18062         modification.
18063         (SET_NEXT_INSN): Likewise.
18064
18065 2014-07-08  Mark Wielaard  <mjw@redhat.com>
18066
18067         PR debug/59051
18068         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
18069
18070 2014-08-19  Marek Polacek  <polacek@redhat.com>
18071
18072         PR c/61271
18073         * cgraphunit.c (handle_alias_pairs): Fix condition.
18074
18075 2014-08-19  Richard Biener  <rguenther@suse.de>
18076
18077         * gimple-fold.c (fold_gimple_assign): Properly build a
18078         null-pointer constant when devirtualizing addresses.
18079
18080 2014-07-07  Mark Wielaard  <mjw@redhat.com>
18081
18082         * dwarf2out.c (decl_quals): New function.
18083         (modified_type_die): Take one cv_quals argument instead of two,
18084         one for const and one for volatile.
18085         (add_type_attribute): Likewise.
18086         (generic_parameter_die): Call add_type_attribute with one modifier
18087         argument.
18088         (base_type_for_mode): Likewise.
18089         (add_bounds_info): Likewise.
18090         (add_subscript_info): Likewise.
18091         (gen_array_type_die): Likewise.
18092         (gen_descr_array_type_die): Likewise.
18093         (gen_entry_point_die): Likewise.
18094         (gen_enumeration_type_die): Likewise.
18095         (gen_formal_parameter_die): Likewise.
18096         (gen_subprogram_die): Likewise.
18097         (gen_variable_die): Likewise.
18098         (gen_const_die): Likewise.
18099         (gen_field_die): Likewise.
18100         (gen_pointer_type_die): Likewise.
18101         (gen_reference_type_die): Likewise.
18102         (gen_ptr_to_mbr_type_die): Likewise.
18103         (gen_inheritance_die): Likewise.
18104         (gen_subroutine_type_die): Likewise.
18105         (gen_typedef_die): Likewise.
18106         (force_type_die): Likewise.
18107
18108 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18109
18110         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
18111         if unset.
18112         * configure: Regenerate.
18113
18114 2014-08-19  Richard Biener  <rguenther@suse.de>
18115
18116         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
18117         DECL_EXTERNALs in BLOCKs as non-references.
18118         * tree-streamer-out.c (streamer_write_chain): Likewise.
18119
18120 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18121             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18122             Anna Tikhonova  <anna.tikhonova@intel.com>
18123             Ilya Tocar  <ilya.tocar@intel.com>
18124             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18125             Ilya Verbin  <ilya.verbin@intel.com>
18126             Kirill Yukhin  <kirill.yukhin@intel.com>
18127             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18128
18129         * config/i386/sse.md
18130         (define_mode_iterator VI48_AVX512F): Delete.
18131         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
18132         (define_mode_iterator VI2_AVX512VL): Ditto.
18133         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
18134         Delete.
18135         (define_insn
18136         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
18137         New.
18138         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
18139         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
18140         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
18141         with VI48_AVX512F_AVX512VL): New.
18142         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
18143         with VI2_AVX512VL): Ditto.
18144
18145 2014-08-19  Marek Polacek  <polacek@redhat.com>
18146
18147         * doc/invoke.texi: Document -Wc99-c11-compat.
18148
18149 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
18150
18151         * rtl.h (PREV_INSN): Split macro in two: the existing one,
18152         for rvalues, and...
18153         (SET_PREV_INSN): New macro, for use as an lvalue.
18154         (NEXT_INSN, SET_NEXT_INSN): Likewise.
18155
18156         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
18157         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
18158         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
18159         (fixup_abnormal_edges): Likewise.
18160         (unlink_insn_chain): Likewise.
18161         (fixup_reorder_chain): Likewise.
18162         (cfg_layout_delete_block): Likewise.
18163         (cfg_layout_merge_blocks): Likewise.
18164         * combine.c (update_cfg_for_uncondjump): Likewise.
18165         * emit-rtl.c (link_insn_into_chain): Likewise.
18166         (remove_insn): Likewise.
18167         (delete_insns_since): Likewise.
18168         (reorder_insns_nobb): Likewise.
18169         (emit_insn_after_1): Likewise.
18170         * final.c (rest_of_clean_state): Likewise.
18171         (final_scan_insn): Likewise.
18172         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
18173         * haifa-sched.c (concat_note_lists): Likewise.
18174         (remove_notes): Likewise.
18175         (restore_other_notes): Likewise.
18176         (move_insn): Likewise.
18177         (unlink_bb_notes): Likewise.
18178         (restore_bb_notes): Likewise.
18179         * jump.c (delete_for_peephole): Likewise.
18180         * optabs.c (emit_libcall_block_1): Likewise.
18181         * reorg.c (emit_delay_sequence): Likewise.
18182         (fill_simple_delay_slots): Likewise.
18183         * sel-sched-ir.c (sel_move_insn): Likewise.
18184         (sel_remove_insn): Likewise.
18185         (get_bb_note_from_pool): Likewise.
18186         * sel-sched.c (move_nop_to_previous_block): Likewise.
18187
18188         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
18189         * config/c6x/c6x.c (gen_one_bundle): Likewise.
18190         (c6x_gen_bundles): Likewise.
18191         (hwloop_optimize): Likewise.
18192         * config/frv/frv.c (frv_function_prologue): Likewise.
18193         (frv_register_nop): Likewise.
18194         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
18195         (ia64_reorg): Likewise.
18196         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
18197         (mep_make_bundle): Likewise.
18198         (mep_bundle_insns): Likewise.
18199         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
18200         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
18201         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
18202
18203 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
18204
18205         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
18206         return type from rtx to rtx_insn *.
18207         (BB_END): Likewise.
18208         (BB_HEADER): Likewise.
18209         (BB_FOOTER): Likewise.
18210         (SET_BB_HEAD): Convert to a function.
18211         (SET_BB_END): Likewise.
18212         (SET_BB_HEADER): Likewise.
18213         (SET_BB_FOOTER): Likewise.
18214
18215         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
18216         Strengthen the return type from rtx to rtx_insn *.  For now, this
18217         is done by adding a checked cast, but this will eventually
18218         become a field lookup.
18219         (BB_END): Likewise.
18220         (BB_HEADER): Likewise.
18221         (BB_FOOTER): Likewise.
18222         (SET_BB_HEAD): New function, from macro of same name.  This is
18223         intended for use as an lvalue, and so returns an rtx& to allow
18224         in-place modification.
18225         (SET_BB_END): Likewise.
18226         (SET_BB_HEADER): Likewise.
18227         (SET_BB_FOOTER): Likewise.
18228
18229 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
18230
18231         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
18232         for rvalues, and...
18233         (SET_BB_HEAD): New macro, for use as a lvalue.
18234         (BB_END, SET_BB_END): Likewise.
18235         (BB_HEADER, SET_BB_HEADER): Likewise.
18236         (BB_FOOTER, SET_BB_FOOTER): Likewise.
18237
18238         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
18239         of BB_* macros into SET_BB_* macros.
18240         (fix_crossing_unconditional_branches): Likewise.
18241         * caller-save.c (save_call_clobbered_regs): Likewise.
18242         (insert_one_insn): Likewise.
18243         * cfgbuild.c (find_bb_boundaries): Likewise.
18244         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
18245         (outgoing_edges_match): Likewise.
18246         (try_optimize_cfg): Likewise.
18247         * cfgexpand.c (expand_gimple_cond): Likewise.
18248         (expand_gimple_tailcall): Likewise.
18249         (expand_gimple_basic_block): Likewise.
18250         (construct_exit_block): Likewise.
18251         * cfgrtl.c (delete_insn): Likewise.
18252         (create_basic_block_structure): Likewise.
18253         (rtl_delete_block): Likewise.
18254         (rtl_split_block): Likewise.
18255         (emit_nop_for_unique_locus_between): Likewise.
18256         (rtl_merge_blocks): Likewise.
18257         (block_label): Likewise.
18258         (try_redirect_by_replacing_jump): Likewise.
18259         (emit_barrier_after_bb): Likewise.
18260         (fixup_abnormal_edges): Likewise.
18261         (record_effective_endpoints): Likewise.
18262         (relink_block_chain): Likewise.
18263         (fixup_reorder_chain): Likewise.
18264         (fixup_fallthru_exit_predecessor): Likewise.
18265         (cfg_layout_duplicate_bb): Likewise.
18266         (cfg_layout_split_block): Likewise.
18267         (cfg_layout_delete_block): Likewise.
18268         (cfg_layout_merge_blocks): Likewise.
18269         * combine.c (update_cfg_for_uncondjump): Likewise.
18270         * emit-rtl.c (add_insn_after): Likewise.
18271         (remove_insn): Likewise.
18272         (reorder_insns): Likewise.
18273         (emit_insn_after_1): Likewise.
18274         * haifa-sched.c (get_ebb_head_tail): Likewise.
18275         (restore_other_notes): Likewise.
18276         (move_insn): Likewise.
18277         (sched_extend_bb): Likewise.
18278         (fix_jump_move): Likewise.
18279         * ifcvt.c (noce_process_if_block): Likewise.
18280         (dead_or_predicable): Likewise.
18281         * ira.c (update_equiv_regs): Likewise.
18282         * reg-stack.c (change_stack): Likewise.
18283         * sel-sched-ir.c (sel_move_insn): Likewise.
18284         * sel-sched.c (move_nop_to_previous_block): Likewise.
18285
18286         * config/c6x/c6x.c (hwloop_optimize): Likewise.
18287         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
18288
18289 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
18290
18291         * rtl.h (for_each_rtx_in_insn): New function.
18292         * rtlanal.c (for_each_rtx_in_insn): Likewise.
18293
18294 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
18295
18296         * coretypes.h (class rtx_insn): Add forward declaration.
18297
18298         * rtl.h: Include is-a.h.
18299         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
18300         workaround to ensure gengtype knows inheritance is occurring,
18301         whilst continuing to use the pre-existing special-casing for
18302         rtx_def.
18303         (class rtx_insn): New subclass of rtx_def, adding the
18304         invariant that we're dealing with something we can sanely use
18305         INSN_UID, NEXT_INSN, PREV_INSN on.
18306         (is_a_helper <rtx_insn *>::test): New.
18307         (is_a_helper <const rtx_insn *>::test): New.
18308
18309 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
18310
18311         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
18312
18313 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
18314
18315         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
18316         comdats as extern.
18317
18318 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
18319
18320         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
18321         to BUILT_IN_UNREACHABLE.
18322
18323 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
18324
18325         PR target/62011
18326         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
18327         New tune flag.
18328         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
18329         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
18330         (ffs<mode>2): Do not expand with tzcnt for
18331         TARGET_AVOID_FALSE_DEP_FOR_BMI.
18332         (ffssi2_no_cmove): Ditto.
18333         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
18334         (ctz<mode>2): New expander.
18335         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
18336         (*ctz<mode>2_falsedep): New insn.
18337         (*ctz<mode>2): Rename from ctz<mode>2.
18338         (clz<mode>2_lzcnt): New expander.
18339         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
18340         (*clz<mode>2_lzcnt_falsedep): New insn.
18341         (*clz<mode>2): Rename from ctz<mode>2.
18342         (popcount<mode>2): New expander.
18343         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
18344         (*popcount<mode>2_falsedep): New insn.
18345         (*popcount<mode>2): Rename from ctz<mode>2.
18346         (*popcount<mode>2_cmp): Remove.
18347         (*popcountsi2_cmp_zext): Ditto.
18348
18349 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
18350
18351         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
18352         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
18353         * config/microblaze/microblaze.h
18354         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
18355
18356 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
18357
18358         PR other/62168
18359         * configure.ac: Set install_gold_as_default to no for
18360         --enable-gold=no.
18361         * configure: Regenerated.
18362
18363 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
18364
18365         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
18366         * config.in: Add undef of HAVE_isl.
18367         * configure: Regenerate.
18368         * configure.ac: Add definition of HAVE_isl.
18369         * graphite-blocking.c: Add checking of HAVE_isl.
18370         * graphite-dependences.c: Likewise.
18371         * graphite-interchange.c: Likewise.
18372         * graphite-isl-ast-to-gimple.c: Likewise.
18373         * graphite-optimize-isl.c: Likewise.
18374         * graphite-poly.c: Likewise.
18375         * graphite-scop-detection.c: Likewise.
18376         * graphite-sese-to-poly.c: Likewise.
18377         * graphite.c: Likewise.
18378         * toplev.c: Replace the checking of HAVE_cloog with the checking
18379         of HAVE_isl.
18380
18381 2014-08-18  Richard Biener  <rguenther@suse.de>
18382
18383         PR tree-optimization/62090
18384         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
18385         (fold_builtin_3): Do not fold snprintf.
18386         (fold_builtin_4): Likewise.
18387         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
18388         moved from builtins.c.
18389         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
18390         (gimple_fold_builtin): Do not fold sprintf here.
18391
18392 2014-08-18  Richard Biener  <rguenther@suse.de>
18393
18394         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
18395         code to ...
18396         (maybe_canonicalize_mem_ref_addr): ... this function.
18397         (fold_stmt_1): Apply it here before all simplification.
18398
18399 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
18400
18401         PR ipa/61800
18402         * cgraph.h (cgraph_node::create_indirect_edge): Add
18403         compute_indirect_info param.
18404         * cgraph.c (cgraph_node::create_indirect_edge): Compute
18405         indirect_info only when it is required.
18406         * cgraphclones.c (cgraph_clone_edge): Do not recompute
18407         indirect_info fore cloned indirect edge.
18408
18409 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18410             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18411             Anna Tikhonova  <anna.tikhonova@intel.com>
18412             Ilya Tocar  <ilya.tocar@intel.com>
18413             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18414             Ilya Verbin  <ilya.verbin@intel.com>
18415             Kirill Yukhin  <kirill.yukhin@intel.com>
18416             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18417
18418         * config/i386/sse.md
18419         (define_mode_iterator VI8_AVX2_AVX512BW): New.
18420         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
18421
18422 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18423             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18424             Anna Tikhonova  <anna.tikhonova@intel.com>
18425             Ilya Tocar  <ilya.tocar@intel.com>
18426             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18427             Ilya Verbin  <ilya.verbin@intel.com>
18428             Kirill Yukhin  <kirill.yukhin@intel.com>
18429             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18430
18431         * config/i386/sse.md
18432         (define_mode_iterator VF1_AVX512VL): New.
18433         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
18434         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
18435         New.
18436
18437 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18438             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18439             Anna Tikhonova  <anna.tikhonova@intel.com>
18440             Ilya Tocar  <ilya.tocar@intel.com>
18441             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18442             Ilya Verbin  <ilya.verbin@intel.com>
18443             Kirill Yukhin  <kirill.yukhin@intel.com>
18444             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18445
18446         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
18447         * config/i386/i386.md
18448         (define_code_iterator any_float): New.
18449         (define_code_attr floatsuffix): New.
18450         * config/i386/sse.md
18451         (define_mode_iterator VF1_128_256VL): New.
18452         (define_mode_iterator VF2_512_256VL): New.
18453         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
18454         TARGET check.
18455         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
18456         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
18457         New.
18458         (define_mode_attr qq2pssuff): New.
18459         (define_mode_attr sselongvecmode): New.
18460         (define_mode_attr sselongvecmodelower): New.
18461         (define_mode_attr sseintvecmode3): New.
18462         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
18463         New.
18464         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
18465         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
18466         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
18467         (define_insn "ufloatv2siv2df2<mask_name>"): New.
18468
18469 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18470             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18471             Anna Tikhonova  <anna.tikhonova@intel.com>
18472             Ilya Tocar  <ilya.tocar@intel.com>
18473             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18474             Ilya Verbin  <ilya.verbin@intel.com>
18475             Kirill Yukhin  <kirill.yukhin@intel.com>
18476             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18477
18478         * config/i386/sse.md
18479         (define_mode_iterator VF2_AVX512VL): New.
18480         (define_mode_attr sseintvecmode2): New.
18481         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
18482         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
18483         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
18484         (define_insn
18485         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
18486         Ditto.
18487         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
18488         Ditto.
18489         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
18490         Ditto.
18491
18492 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18493             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18494             Anna Tikhonova  <anna.tikhonova@intel.com>
18495             Ilya Tocar  <ilya.tocar@intel.com>
18496             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18497             Ilya Verbin  <ilya.verbin@intel.com>
18498             Kirill Yukhin  <kirill.yukhin@intel.com>
18499             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18500
18501         * config/i386/i386.md
18502         (define_insn "*movoi_internal_avx"): Add evex version.
18503         (define_insn "*movti_internal"): Ditto.
18504
18505 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18506             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18507             Anna Tikhonova  <anna.tikhonova@intel.com>
18508             Ilya Tocar  <ilya.tocar@intel.com>
18509             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18510             Ilya Verbin  <ilya.verbin@intel.com>
18511             Kirill Yukhin  <kirill.yukhin@intel.com>
18512             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18513
18514         * config/i386/i386.md
18515         (define_attr "isa"): Add avx512dq, noavx512dq.
18516         (define_attr "enabled"): Ditto.
18517         * config/i386/sse.md
18518         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
18519
18520 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18521             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18522             Anna Tikhonova  <anna.tikhonova@intel.com>
18523             Ilya Tocar  <ilya.tocar@intel.com>
18524             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18525             Ilya Verbin  <ilya.verbin@intel.com>
18526             Kirill Yukhin  <kirill.yukhin@intel.com>
18527             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18528
18529         * config/i386/i386.c
18530         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
18531         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
18532         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
18533         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
18534         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
18535         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
18536         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
18537         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
18538         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
18539         * config/i386/sse.md
18540         (define_mode_iterator VMOVE): Allow V4TI mode.
18541         (define_mode_iterator V_AVX512VL): New.
18542         (define_mode_iterator V): New handling for AVX512VL.
18543         (define_insn "avx512f_load<mode>_mask"): Delete.
18544         (define_insn "<avx512>_load<mode>_mask"): New.
18545         (define_insn "avx512f_store<mode>_mask"): Delete.
18546         (define_insn "<avx512>_store<mode>_mask"): New.
18547
18548
18549 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
18550
18551         PR sanitizer/62089
18552         * asan.c (instrument_derefs): Fix bitfield check.
18553
18554 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
18555
18556         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
18557         * config/rs6000/htm.md (ttest): Remove clobber.
18558         * config/rs6000/predicates.md (any_mask_operand): New predicate.
18559         (and_operand): Reformat.
18560         (and_2rld_operand): New predicate.
18561         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
18562         parameter.
18563         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
18564         parameter.  Handle AND directly.
18565         (rs6000_split_logical_di): Remove last parameter.
18566         (rs6000_split_logical): Remove last parameter.  Remove obsolete
18567         comment.
18568         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
18569         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
18570         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
18571         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
18572         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
18573         and 5 anonymous splitters):  Delete.
18574         (and<mode>3): New expander.
18575         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
18576         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
18577         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
18578         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
18579         (floatdisf2_internal1): Remove clobbers.
18580         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
18581         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
18582         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
18583         (and<mode>3 for BOOL_128): Remove clobber.
18584         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
18585         rs6000_split_logical.
18586         (*bool<mode>3_internal for BOOL_128): Adjust call of
18587         rs6000_split_logical.
18588         (*boolc<mode>3_internal1 for BOOL_128,
18589         *boolc<mode>3_internal2 for BOOL_128,
18590         *boolcc<mode>3_internal1 for BOOL_128,
18591         *boolcc<mode>3_internal2 for BOOL_128,
18592         *eqv<mode>3_internal1 for BOOL_128,
18593         *eqv<mode>3_internal2 for BOOL_128,
18594         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
18595         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
18596         clobber.
18597         (*vec_reload_and_reg_<mptrsize>): Delete.
18598
18599 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
18600
18601         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
18602         and split, *boolccsi3_internal3 and split): Delete.
18603         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
18604         *boolccdi3_internal3 and split): Delete.
18605         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
18606         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
18607
18608 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
18609
18610         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
18611         and split, *boolcsi3_internal3 and split): Delete.
18612         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
18613         *boolcdi3_internal3 and split): Delete.
18614         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
18615
18616 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
18617
18618         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
18619         <'u'>: Also support printing the low-order 16 bits.
18620         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
18621         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
18622         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
18623         *booldi3_internal3 and split): Delete.
18624         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
18625         *bool<mode>3_dot2): New.
18626         (two anonymous define_splits for non_logical_cint_operand): Merge.
18627
18628 2014-08-17  Marek Polacek  <polacek@redhat.com>
18629             Manuel López-Ibáñez  <manu@gcc.gnu.org>
18630
18631         PR c/62059
18632         * diagnostic.c (adjust_line): Add gcc_checking_assert.
18633         (diagnostic_show_locus): Don't print caret diagnostic
18634         if a column is larger than the line_width.
18635
18636 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
18637
18638         * common.opt: Make the ISL AST generator to be the main code generator
18639         of Graphite.
18640
18641 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
18642
18643         * wide-int.h (generic_wide_int): Declare as class instead of struct.
18644
18645 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
18646
18647         PR target/61641
18648         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
18649         Declare.
18650         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
18651         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
18652         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
18653         Define.
18654         * config/pa/pa.md (begin_brtab): Delete insn.
18655         (end_brtab): Likewise.
18656
18657 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18658
18659         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
18660
18661 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
18662
18663         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
18664         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
18665         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
18666         (get_dynamic_type): Remove.
18667         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
18668         (clear_speculation): Bring to ipa-deivrt.h
18669         (get_class_context): Rename to ...
18670         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
18671         (contains_type_p): Update.
18672         (get_dynamic_type): Rename to ...
18673         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
18674         (possible_polymorphic_call_targets): UPdate.
18675         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
18676         * ipa-prop.c (ipa_analyze_call_uses): Update.
18677
18678 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
18679
18680         * doc/invoke.texi (SH options): Document missing processor variant
18681         options.  Remove references to Hitachi.  Undocument deprecated mspace
18682         option.
18683
18684 2014-08-15  Jason Merrill  <jason@redhat.com>
18685
18686         * tree.c (type_hash_canon): Uncomment assert.
18687
18688 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18689
18690         * input.h (in_system_header_at): Add comment.
18691
18692 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18693
18694         PR fortran/44054
18695         * diagnostic.c (build_message_string): Make it extern.
18696         * diagnostic.h (build_message_string): Make it extern.
18697
18698 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
18699
18700         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
18701         load/store from/to non-floating class pseudo.
18702
18703 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18704
18705         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
18706
18707 2014-08-15  Richard Biener  <rguenther@suse.de>
18708
18709         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
18710         (get_constraint_for_ssa_var): Remove dead code.
18711         (get_constraint_for_1): Adjust.
18712         (find_what_var_points_to): Likewise.
18713         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
18714
18715 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
18716
18717         PR target/61878
18718         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
18719         (_mm512_mask_cmpge_epu32_mask): Ditto.
18720         (_mm512_cmpge_epu32_mask): Ditto.
18721         (_mm512_mask_cmpge_epi64_mask): Ditto.
18722         (_mm512_cmpge_epi64_mask): Ditto.
18723         (_mm512_mask_cmpge_epu64_mask): Ditto.
18724         (_mm512_cmpge_epu64_mask): Ditto.
18725         (_mm512_mask_cmple_epi32_mask): Ditto.
18726         (_mm512_cmple_epi32_mask): Ditto.
18727         (_mm512_mask_cmple_epu32_mask): Ditto.
18728         (_mm512_cmple_epu32_mask): Ditto.
18729         (_mm512_mask_cmple_epi64_mask): Ditto.
18730         (_mm512_cmple_epi64_mask): Ditto.
18731         (_mm512_mask_cmple_epu64_mask): Ditto.
18732         (_mm512_cmple_epu64_mask): Ditto.
18733         (_mm512_mask_cmplt_epi32_mask): Ditto.
18734         (_mm512_cmplt_epi32_mask): Ditto.
18735         (_mm512_mask_cmplt_epu32_mask): Ditto.
18736         (_mm512_cmplt_epu32_mask): Ditto.
18737         (_mm512_mask_cmplt_epi64_mask): Ditto.
18738         (_mm512_cmplt_epi64_mask): Ditto.
18739         (_mm512_mask_cmplt_epu64_mask): Ditto.
18740         (_mm512_cmplt_epu64_mask): Ditto.
18741         (_mm512_mask_cmpneq_epi32_mask): Ditto.
18742         (_mm512_mask_cmpneq_epu32_mask): Ditto.
18743         (_mm512_cmpneq_epu32_mask): Ditto.
18744         (_mm512_mask_cmpneq_epi64_mask): Ditto.
18745         (_mm512_cmpneq_epi64_mask): Ditto.
18746         (_mm512_mask_cmpneq_epu64_mask): Ditto.
18747         (_mm512_cmpneq_epu64_mask): Ditto.
18748         (_mm512_castpd_ps): Ditto.
18749         (_mm512_castpd_si512): Ditto.
18750         (_mm512_castps_pd): Ditto.
18751         (_mm512_castps_si512): Ditto.
18752         (_mm512_castsi512_ps): Ditto.
18753         (_mm512_castsi512_pd): Ditto.
18754         (_mm512_castpd512_pd128): Ditto.
18755         (_mm512_castps512_ps128): Ditto.
18756         (_mm512_castsi512_si128): Ditto.
18757         (_mm512_castpd512_pd256): Ditto.
18758         (_mm512_castps512_ps256): Ditto.
18759         (_mm512_castsi512_si256): Ditto.
18760         (_mm512_castpd128_pd512): Ditto.
18761         (_mm512_castps128_ps512): Ditto.
18762         (_mm512_castsi128_si512): Ditto.
18763         (_mm512_castpd256_pd512): Ditto.
18764         (_mm512_castps256_ps512): Ditto.
18765         (_mm512_castsi256_si512): Ditto.
18766         (_mm512_cmpeq_epu32_mask): Ditto.
18767         (_mm512_mask_cmpeq_epu32_mask): Ditto.
18768         (_mm512_mask_cmpeq_epu64_mask): Ditto.
18769         (_mm512_cmpeq_epu64_mask): Ditto.
18770         (_mm512_cmpgt_epu32_mask): Ditto.
18771         (_mm512_mask_cmpgt_epu32_mask): Ditto.
18772         (_mm512_mask_cmpgt_epu64_mask): Ditto.
18773         (_mm512_cmpgt_epu64_mask): Ditto.
18774         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
18775         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
18776         * config/i386/i386.c (enum ix86_builtins): Add
18777         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
18778         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
18779         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
18780         (bdesc_args): Add __builtin_ia32_si512_256si,
18781         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
18782         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
18783         __builtin_ia32_pd512_pd.
18784         (ix86_expand_args_builtin): Handle new FTYPEs.
18785         * config/i386/sse.md (castmode): Add 512-bit modes.
18786         (AVX512MODE2P): New.
18787         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
18788         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
18789
18790 2014-08-15  Richard Biener  <rguenther@suse.de>
18791
18792         * fold-const.c (tree_swap_operands_p): Put all constants
18793         last, also strip sign-changing NOPs when considering further
18794         canonicalization.  Canonicalize also when optimizing for size.
18795
18796 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18797
18798         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
18799         one_match > zero_match case to just before simple_sequence.
18800
18801 2014-08-15  Richard Biener  <rguenther@suse.de>
18802
18803         * data-streamer.h (streamer_string_index, string_for_index):
18804         Remove.
18805         * data-streamer-out.c (streamer_string_index): Make static.
18806         * data-streamer-in.c (string_for_index): Likewise.
18807         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
18808         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
18809
18810 2014-08-15  Richard Biener  <rguenther@suse.de>
18811
18812         PR tree-optimization/62031
18813         * tree-data-ref.c (dr_analyze_indices): Do not set
18814         DR_UNCONSTRAINED_BASE.
18815         (dr_may_alias_p): All indirect accesses have to go the
18816         formerly DR_UNCONSTRAINED_BASE path.
18817         * tree-data-ref.h (struct indices): Remove
18818         unconstrained_base member.
18819         (DR_UNCONSTRAINED_BASE): Remove.
18820
18821 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
18822
18823         PR middle-end/62092
18824         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
18825         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
18826         in OMP_CLAUSE_MAP in some outer target region.
18827
18828 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
18829
18830         * tree-ssa-loop-ivopts.c (ivopts_data): New field
18831         name_expansion_cache.
18832         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
18833         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
18834         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
18835         (difference_cannot_overflow_p): New parameter.  Use affine
18836         expansion for equality check.
18837         (iv_elimination_compare_lt): Pass new argument.
18838
18839 2014-08-14  DJ Delorie  <dj@redhat.com>
18840
18841         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
18842         variables to the accumulator.
18843
18844         * config/rl78/predicates.md (rl78_near_mem_operand): New.
18845         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
18846         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
18847         with far-far moves.
18848
18849         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
18850         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
18851         (umulqihi3_virt): Likewise.
18852         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
18853         (umulqihi3_real): Likewise.
18854
18855         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
18856
18857 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
18858
18859         PR tree-optimization/62091
18860         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
18861         function_entry_reached.
18862         (walk_aliased_vdefs): Clear it here.
18863         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
18864
18865 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
18866
18867         * ipa-utils.h (compare_virtual_tables): Declare.
18868         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
18869
18870 2014-08-14  Marek Polacek  <polacek@redhat.com>
18871
18872         DR 458
18873         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
18874         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
18875
18876 2014-08-14  Tom de Vries  <tom@codesourcery.com>
18877
18878         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
18879
18880 2014-08-14  Tom de Vries  <tom@codesourcery.com>
18881
18882         PR rtl-optimization/62004
18883         PR rtl-optimization/62030
18884         * ifcvt.c (rtx_interchangeable_p): New function.
18885         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
18886         * emit-rtl.h (mem_attrs_eq_p): Declare.
18887
18888 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
18889
18890         * graphite-scop-detection.c:
18891         Add inclusion of cp-tree.h.
18892         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
18893         in case they are pointers to object types
18894
18895 2014-08-14  Richard Biener  <rguenther@suse.de>
18896
18897         * BASE-VER: Change to 5.0.0
18898
18899 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18900             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18901             Anna Tikhonova  <anna.tikhonova@intel.com>
18902             Ilya Tocar  <ilya.tocar@intel.com>
18903             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18904             Ilya Verbin  <ilya.verbin@intel.com>
18905             Kirill Yukhin  <kirill.yukhin@intel.com>
18906             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18907
18908         * config/i386/sse.md (define_mode_attr avx512): New.
18909         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
18910         V4DI modes.
18911         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
18912         (define_mode_attr ssse3_avx2): Ditto.
18913         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
18914         (define_mode_attr avx2_avx512bw): New.
18915         (define_mode_attr ssedoublemodelower): New.
18916         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
18917         V32HI, V64QI modes.
18918         (define_mode_attr ssebytemode): Allow V8DI modes.
18919         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
18920         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
18921         (define_mode_attr ssePSmode2): New.
18922         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
18923         V16HI, V32HI modes.
18924         (define_mode_attr dbpsadbwmode): New.
18925         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
18926         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
18927         (vi8_sse4_1_avx2_avx512): New.
18928         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
18929         mode attribute.
18930         (define_mode_attr blendbits): Move before its immediate use.
18931
18932 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18933             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18934             Anna Tikhonova  <anna.tikhonova@intel.com>
18935             Ilya Tocar  <ilya.tocar@intel.com>
18936             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18937             Ilya Verbin  <ilya.verbin@intel.com>
18938             Kirill Yukhin  <kirill.yukhin@intel.com>
18939             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18940
18941         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
18942         * config/i386/subst.md
18943         (define_mode_iterator SUBST_V): Update.
18944         (define_mode_iterator SUBST_A): Ditto.
18945         (define_subst_attr "mask_operand7"): New.
18946         (define_subst_attr "mask_operand10"): New.
18947         (define_subst_attr "mask_operand_arg34") : New.
18948         (define_subst_attr "mask_expand_op3"): New.
18949         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
18950         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
18951         (define_subst_attr "mask_avx512vl_condition"): New.
18952         (define_subst_attr "round_mask_operand4"): Ditto.
18953         (define_subst_attr "round_mask_scalar_op3"): Delete.
18954         (define_subst_attr "round_mask_op4"): New.
18955         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
18956         V16SImode.
18957         (define_subst_attr "round_modev8sf_condition"): New.
18958         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
18959         <MODE>mode.
18960         (define_subst_attr "round_saeonly_mask_operand4"): New.
18961         (define_subst_attr "round_saeonly_mask_op4"): New.
18962         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
18963         V8DImode, V16SImode.
18964         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
18965         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
18966         (define_subst_attr "mask_expand4_args"): New.
18967         (define_subst "mask_expand4"): New.
18968
18969 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18970             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18971             Anna Tikhonova  <anna.tikhonova@intel.com>
18972             Ilya Tocar  <ilya.tocar@intel.com>
18973             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18974             Ilya Verbin  <ilya.verbin@intel.com>
18975             Kirill Yukhin  <kirill.yukhin@intel.com>
18976             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
18977
18978         * config/i386/i386.md
18979         (define_attr "isa"): Add avx512bw,noavx512bw.
18980         (define_attr "enabled"): Ditto.
18981         (define_split): Add 32/64-bit mask logic.
18982         (define_insn "*k<logic>qi"): New.
18983         (define_insn "*k<logic>hi"): New.
18984         (define_insn "*anddi_1"): Add mask version.
18985         (define_insn "*andsi_1"): Ditto.
18986         (define_insn "*<code><mode>_1"): Ditto.
18987         (define_insn "*<code>hi_1"): Ditto.
18988         (define_insn "kxnor<mode>"): New.
18989         (define_insn "kunpcksi"): New.
18990         (define_insn "kunpckdi"): New.
18991         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
18992         (define_insn "*one_cmplhi2_1"): Ditto.
18993
18994 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18995             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
18996             Anna Tikhonova  <anna.tikhonova@intel.com>
18997             Ilya Tocar  <ilya.tocar@intel.com>
18998             Andrey Turetskiy  <andrey.turetskiy@intel.com>
18999             Ilya Verbin  <ilya.verbin@intel.com>
19000             Kirill Yukhin  <kirill.yukhin@intel.com>
19001             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19002
19003         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
19004         V32HImode.
19005
19006 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19007             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19008             Anna Tikhonova  <anna.tikhonova@intel.com>
19009             Ilya Tocar  <ilya.tocar@intel.com>
19010             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19011             Ilya Verbin  <ilya.verbin@intel.com>
19012             Kirill Yukhin  <kirill.yukhin@intel.com>
19013             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19014
19015         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
19016         registers.
19017         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
19018         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
19019         xmm/ymm16+ when availble.
19020         * config/i386/i386.h
19021         (HARD_REGNO_NREGS): Add mask regs.
19022         (VALID_AVX512F_REG_MODE): Ditto.
19023         (VALID_AVX512F_REG_MODE) : Define.
19024         (VALID_MASK_AVX512BW_MODE): Ditto.
19025         (reg_class) (MASK_REG_P(X)): Define.
19026         * config/i386/i386.md: Do not split long moves with mask register,
19027         use kmovb if avx512bw is availible.
19028         (movdi_internal): Handle mask registers.
19029
19030 2014-08-14  Richard Biener  <rguenther@suse.de>
19031
19032         PR tree-optimization/62081
19033         * tree-ssa-loop.c (pass_fix_loops): New pass.
19034         (pass_tree_loop::gate):  Do not fixup loops here.
19035         * tree-pass.h (make_pass_fix_loops): Declare.
19036         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
19037
19038 2014-08-14  Richard Biener  <rguenther@suse.de>
19039
19040         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
19041         (type_hash_canon): ... this and avoid 2nd lookup for the add.
19042
19043 2014-08-14  Richard Biener  <rguenther@suse.de>
19044
19045         PR tree-optimization/62090
19046         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
19047         (fold_builtin_2): Do not fold sprintf.
19048         (fold_builtin_3): Likewise.
19049         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
19050         moved from builtins.c.
19051         (gimple_fold_builtin): Fold sprintf.
19052
19053 2014-08-14  Richard Biener  <rguenther@suse.de>
19054
19055         PR rtl-optimization/62079
19056         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
19057         run cleanup_cfg.
19058
19059 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
19060
19061         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
19062         current_function_decl.
19063
19064 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
19065
19066         * cgraph.c (cgraph_node::function_symbol): Fix wrong
19067         cgraph_function_node to cgraph_node::function_symbol
19068         refactoring.
19069
19070 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
19071
19072         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
19073         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
19074
19075 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
19076
19077         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
19078         warning.
19079
19080 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
19081
19082         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
19083         generator.
19084
19085 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
19086
19087         PR target/62025
19088         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
19089         any registers that are used in mem_insn.
19090
19091 2014-08-12  Steve Ellcey  <sellcey@mips.com>
19092
19093         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
19094
19095 2014-08-12  Steve Ellcey  <sellcey@mips.com>
19096
19097         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
19098         (MULTILIB_DIRNAMES): Ditto.
19099         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
19100         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
19101         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
19102         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
19103         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
19104         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
19105
19106 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19107
19108         PR target/61413
19109         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
19110         of __ARM_SIZEOF_WCHAR_T.
19111
19112 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19113
19114         PR target/62098
19115         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
19116         Remove unnecessary attributes.
19117
19118 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
19119
19120         * internal-fn.c (init_internal_fns): Fix off-by-one.
19121
19122 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19123             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19124             Anna Tikhonova  <anna.tikhonova@intel.com>
19125             Ilya Tocar  <ilya.tocar@intel.com>
19126             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19127             Ilya Verbin  <ilya.verbin@intel.com>
19128             Kirill Yukhin  <kirill.yukhin@intel.com>
19129             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19130
19131         * config/i386/i386.c (standard_sse_constant_opcode): Use
19132         vpxord/vpternlog if avx512 is availible.
19133
19134 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19135
19136         PR middle-end/62103
19137         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
19138         bitfields, that is when size doesn't match the size of type or the
19139         size of the constructor.
19140
19141 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
19142
19143         * config/rs6000/constraints.md (wh constraint): New constraint,
19144         for FP registers if direct move is available.
19145         (wi constraint): New constraint, for VSX/FP registers that can
19146         handle 64-bit integers.
19147         (wj constraint): New constraint for VSX/FP registers that can
19148         handle 64-bit integers for direct moves.
19149         (wk constraint): New constraint for VSX/FP registers that can
19150         handle 64-bit doubles for direct moves.
19151         (wy constraint): Make documentation match implementation.
19152
19153         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
19154         scalar_in_vmx_p field to simplify tests of whether SFmode or
19155         DFmode can go in the Altivec registers.
19156         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
19157         (rs6000_setup_reg_addr_masks): Likewise.
19158         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
19159         field, and wh/wi/wj/wk constraints.
19160         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
19161         the wh/wi/wj/wk constraints.
19162         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
19163         upper registers, prefer VSX registers unless the operation is a
19164         memory operation with REG+OFFSET addressing.
19165
19166         * config/rs6000/vsx.md (VSr mode attribute): Add support for
19167         DImode.  Change SFmode to use ww constraint instead of d to allow
19168         SF registers in the upper registers.
19169         (VSr2): Likewise.
19170         (VSr3): Likewise.
19171         (VSr5): Fix thinko in comment.
19172         (VSa): New mode attribute that is an alternative to wa, that
19173         returns the VSX register class that a mode can go in, but may not
19174         be the preferred register class.
19175         (VS_64dm): New mode attribute for appropriate register classes for
19176         referencing 64-bit elements of vectors for direct moves and normal
19177         moves.
19178         (VS_64reg): Likewise.
19179         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
19180         register allocator to only registers the data type can handle.
19181         (vsx_le_perm_load_<mode>): Likewise.
19182         (vsx_le_perm_store_<mode>): Likewise.
19183         (vsx_xxpermdi2_le_<mode>): Likewise.
19184         (vsx_xxpermdi4_le_<mode>): Likewise.
19185         (vsx_lxvd2x2_le_<mode>): Likewise.
19186         (vsx_lxvd2x4_le_<mode>): Likewise.
19187         (vsx_stxvd2x2_le_<mode>): Likewise.
19188         (vsx_add<mode>3): Likewise.
19189         (vsx_sub<mode>3): Likewise.
19190         (vsx_mul<mode>3): Likewise.
19191         (vsx_div<mode>3): Likewise.
19192         (vsx_tdiv<mode>3_internal): Likewise.
19193         (vsx_fre<mode>2): Likewise.
19194         (vsx_neg<mode>2): Likewise.
19195         (vsx_abs<mode>2): Likewise.
19196         (vsx_nabs<mode>2): Likewise.
19197         (vsx_smax<mode>3): Likewise.
19198         (vsx_smin<mode>3): Likewise.
19199         (vsx_sqrt<mode>2): Likewise.
19200         (vsx_rsqrte<mode>2): Likewise.
19201         (vsx_tsqrt<mode>2_internal): Likewise.
19202         (vsx_fms<mode>4): Likewise.
19203         (vsx_nfma<mode>4): Likewise.
19204         (vsx_eq<mode>): Likewise.
19205         (vsx_gt<mode>): Likewise.
19206         (vsx_ge<mode>): Likewise.
19207         (vsx_eq<mode>_p): Likewise.
19208         (vsx_gt<mode>_p): Likewise.
19209         (vsx_ge<mode>_p): Likewise.
19210         (vsx_xxsel<mode>): Likewise.
19211         (vsx_xxsel<mode>_uns): Likewise.
19212         (vsx_copysign<mode>3): Likewise.
19213         (vsx_float<VSi><mode>2): Likewise.
19214         (vsx_floatuns<VSi><mode>2): Likewise.
19215         (vsx_fix_trunc<mode><VSi>2): Likewise.
19216         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
19217         (vsx_x<VSv>r<VSs>i): Likewise.
19218         (vsx_x<VSv>r<VSs>ic): Likewise.
19219         (vsx_btrunc<mode>2): Likewise.
19220         (vsx_b2trunc<mode>2): Likewise.
19221         (vsx_floor<mode>2): Likewise.
19222         (vsx_ceil<mode>2): Likewise.
19223         (vsx_<VS_spdp_insn>): Likewise.
19224         (vsx_xscvspdp): Likewise.
19225         (vsx_xvcvspuxds): Likewise.
19226         (vsx_float_fix_<mode>2): Likewise.
19227         (vsx_set_<mode>): Likewise.
19228         (vsx_extract_<mode>_internal1): Likewise.
19229         (vsx_extract_<mode>_internal2): Likewise.
19230         (vsx_extract_<mode>_load): Likewise.
19231         (vsx_extract_<mode>_store): Likewise.
19232         (vsx_splat_<mode>): Likewise.
19233         (vsx_xxspltw_<mode>): Likewise.
19234         (vsx_xxspltw_<mode>_direct): Likewise.
19235         (vsx_xxmrghw_<mode>): Likewise.
19236         (vsx_xxmrglw_<mode>): Likewise.
19237         (vsx_xxsldwi_<mode>): Likewise.
19238         (vsx_xscvdpspn): Tighten constraints to only use register classes
19239         the types use.
19240         (vsx_xscvspdpn): Likewise.
19241         (vsx_xscvdpspn_scalar): Likewise.
19242
19243         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
19244         wj, and wk constraints.
19245         (GPR_REG_CLASS_P): New helper macro for register classes targeting
19246         general purpose registers.
19247
19248         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
19249         direct moves.
19250         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
19251         DImode instead of wm.  Use wk constraint for direct move of DFmode
19252         instead of wm.
19253         (extendsidi2_lfiwax): Likewise.
19254         (lfiwax): Likewise.
19255         (lfiwzx): Likewise.
19256         (movdi_internal64): Likewise.
19257
19258         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
19259         wk constraints. Make the wy constraint documentation match them
19260         implementation.
19261
19262 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
19263
19264         Replacement of isl_int by isl_val
19265         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
19266         (compute_bounds_for_param): use isl_val instead of isl_int
19267         (compute_bounds_for_loop): likewise
19268         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
19269         (build_linearized_memory_access): use isl_val instead of isl_int
19270         (pdr_stride_in_loop): likewise
19271         * graphite-optimize-isl.c:
19272         (getPrevectorMap): use isl_val instead of isl_int
19273         * graphite-poly.c:
19274         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
19275         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
19276         (extern the_isl_ctx): declare
19277         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
19278         (extract_affine_gmp): likewise
19279         (wrap): likewise
19280         (build_loop_iteration_domains): likewise
19281         (add_param_constraints): likewise
19282
19283 2014-08-11  Richard Biener  <rguenther@suse.de>
19284
19285         PR tree-optimization/62075
19286         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
19287         handle uses in patterns.
19288
19289 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19290             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19291             Anna Tikhonova  <anna.tikhonova@intel.com>
19292             Ilya Tocar  <ilya.tocar@intel.com>
19293             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19294             Ilya Verbin  <ilya.verbin@intel.com>
19295             Kirill Yukhin  <kirill.yukhin@intel.com>
19296             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19297
19298         * common/config/i386/i386-common.c
19299         (OPTION_MASK_ISA_AVX512VL_SET): Define.
19300         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
19301         (ix86_handle_option): Handle OPT_mavx512vl.
19302         * config/i386/cpuid.h (bit_AVX512VL): Define.
19303         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
19304         set -mavx512vl accordingly.
19305         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19306         OPTION_MASK_ISA_AVX512VL.
19307         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
19308         (ix86_option_override_internal): Define PTA_AVX512VL, handle
19309         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
19310         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
19311         * config/i386/i386.h (TARGET_AVX512VL): Define.
19312         (TARGET_AVX512VL_P(x)): Ditto.
19313         * config/i386/i386.opt: Add mavx512vl.
19314
19315 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
19316
19317         PR tree-optimization/62073
19318         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
19319         a basic block.
19320
19321 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19322             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19323             Anna Tikhonova  <anna.tikhonova@intel.com>
19324             Ilya Tocar  <ilya.tocar@intel.com>
19325             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19326             Ilya Verbin  <ilya.verbin@intel.com>
19327             Kirill Yukhin  <kirill.yukhin@intel.com>
19328             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19329
19330         * common/config/i386/i386-common.c
19331         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
19332         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
19333         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
19334         (ix86_handle_option): Handle OPT_mavx512bw.
19335         * config/i386/cpuid.h (bit_AVX512BW): Define.
19336         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
19337         set -mavx512bw accordingly.
19338         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19339         OPTION_MASK_ISA_AVX512BW.
19340         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
19341         (ix86_option_override_internal): Define PTA_AVX512BW, handle
19342         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
19343         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
19344         * config/i386/i386.h (TARGET_AVX512BW): Define.
19345         (TARGET_AVX512BW_P(x)): Ditto.
19346         * config/i386/i386.opt: Add mavx512bw.
19347
19348 2014-08-11  Richard Biener  <rguenther@suse.de>
19349
19350         PR tree-optimization/62070
19351         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
19352         Remove SSA checking.
19353
19354 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
19355
19356         * asan.c (asan_check_flags): New enum.
19357         (build_check_stmt_with_calls): Removed function.
19358         (build_check_stmt): Split inlining logic to
19359         asan_expand_check_ifn.
19360         (instrument_derefs): Rename parameter.
19361         (instrument_mem_region_access): Rename parameter.
19362         (instrument_strlen_call): Likewise.
19363         (asan_expand_check_ifn): New function.
19364         (asan_instrument): Remove old code.
19365         (pass_sanopt::execute): Change handling of
19366         asan-instrumentation-with-call-threshold.
19367         (asan_clear_shadow): Fix formatting.
19368         (asan_function_start): Likewise.
19369         (asan_emit_stack_protection): Likewise.
19370         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
19371         Update description.
19372         * internal-fn.c (expand_ASAN_CHECK): New function.
19373         * internal-fn.def (ASAN_CHECK): New internal function.
19374         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
19375         Update description.
19376         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
19377         * tree.c: Small comment fix.
19378
19379 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
19380
19381         * gimple.c (gimple_call_fnspec): Support internal functions.
19382         (gimple_call_return_flags): Use const.
19383         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
19384         * internal-fn.def: Add fnspec information.
19385         * internal-fn.h (internal_fn_fnspec): New function.
19386         (init_internal_fns): Declare new function.
19387         * internal-fn.c (internal_fn_fnspec_array): New global variable.
19388         (init_internal_fns): New function.
19389         * tree-core.h: Update macro call.
19390         * tree.c (build_common_builtin_nodes): Initialize internal fns.
19391
19392 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
19393
19394         * lto-streamer.h (struct output_block::symbol): Change from
19395         struct symtab_node to plain symtab_node.
19396         (referenced_from_this_partition_p): Change first parameter
19397         from struct symtab_node to plain symtab_node.
19398
19399 2014-08-10  Marek Polacek  <polacek@redhat.com>
19400
19401         PR c/51849
19402         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
19403
19404 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
19405
19406         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
19407         DECL correctly; do not give up on types in static storage.
19408
19409 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
19410
19411         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
19412
19413 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
19414
19415         * graphite-isl-ast-to-gimple.c:
19416         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
19417
19418         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
19419
19420 2014-08-08  Guozhi Wei  <carrot@google.com>
19421
19422         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
19423
19424 2014-08-08  Cary Coutant  <ccoutant@google.com>
19425
19426         * dwarf2out.c (get_skeleton_type_unit): Remove.
19427         (output_skeleton_debug_sections): Remove skeleton type units.
19428         (output_comdat_type_unit): Likewise.
19429         (dwarf2out_finish): Likewise.
19430
19431 2014-08-07  Yi Yang  <ahyangyi@google.com>
19432
19433         * predict.c (expr_expected_value_1): Remove the redundant assignment.
19434
19435 2014-08-08  Richard Biener  <rguenther@suse.de>
19436
19437         * lto-streamer.h (struct lto_input_block): Make it a class
19438         with a constructor.
19439         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
19440         (struct lto_function_header, struct lto_simple_header,
19441         struct lto_simple_header_with_strings,
19442         struct lto_decl_header, struct lto_function_header): Make
19443         a simple inheritance hieararchy.  Remove unused fields.
19444         (struct lto_asm_header): Remove.
19445         * lto-streamer-out.c (produce_asm): Adjust.
19446         (lto_output_toplevel_asms): Likewise.
19447         (produce_asm_for_decls): Likewise.
19448         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
19449         * data-streamer-in.c (string_for_index): Likewise.
19450         * ipa-inline-analysis.c (inline_read_section): Likewise.
19451         * ipa-prop.c (ipa_prop_read_section): Likewise.
19452         (read_replacements_section): Likewise.
19453         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
19454         * lto-section-in.c (lto_create_simple_input_block): Likewise.
19455         (lto_destroy_simple_input_block): Likewise.
19456         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
19457         (lto_input_toplevel_asms): Likewise.
19458
19459 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
19460             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
19461             Anna Tikhonova  <anna.tikhonova@intel.com>
19462             Ilya Tocar  <ilya.tocar@intel.com>
19463             Andrey Turetskiy  <andrey.turetskiy@intel.com>
19464             Ilya Verbin  <ilya.verbin@intel.com>
19465             Kirill Yukhin  <kirill.yukhin@intel.com>
19466             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
19467
19468         * common/config/i386/i386-common.c
19469         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
19470         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
19471         (ix86_handle_option): Handle OPT_mavx512dq.
19472         * config/i386/cpuid.h (bit_AVX512DQ): Define.
19473         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
19474         set -mavx512dq accordingly.
19475         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19476         OPTION_MASK_ISA_AVX512DQ.
19477         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
19478         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
19479         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
19480         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
19481         * config/i386/i386.h (TARGET_AVX512DQ): Define.
19482         (TARGET_AVX512DQ_P(x)): Ditto.
19483         * config/i386/i386.opt: Add mavx512dq.
19484
19485 2014-08-08  Richard Biener  <rguenther@suse.de>
19486
19487         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
19488         target_percent, target_percent_s): Export.
19489         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
19490         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
19491         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
19492         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
19493         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
19494         Move to gimple-fold.c.
19495         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
19496         strcat and strcpy.
19497         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
19498         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
19499         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
19500         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
19501         (rewrite_call_expr_array): Remove.
19502         (fold_builtin_sprintf_chk): Likewise.
19503         (fold_builtin_snprintf_chk): Likewise.
19504         (fold_builtin_varargs): Remove handling of sprintf_chk,
19505         vsprintf_chk, snprintf_chk and vsnprintf_chk.
19506         (gimple_fold_builtin_sprintf_chk): Remove.
19507         (gimple_fold_builtin_snprintf_chk): Likewise.
19508         (gimple_fold_builtin_varargs): Likewise.
19509         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
19510         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
19511         * gimple.c (gimple_seq_add_seq_without_update): New function.
19512         * gimple.h (gimple_seq_add_seq_without_update): Declare.
19513         * gimple-fold.c: Include output.h.
19514         (gsi_replace_with_seq_vops): New function, split out from ...
19515         (gimplify_and_update_call_from_tree): ... here.
19516         (replace_call_with_value): New function.
19517         (replace_call_with_call_and_fold): Likewise.
19518         (var_decl_component_p): Moved from builtins.c.
19519         (gimple_fold_builtin_memory_op): Moved from builtins.c
19520         fold_builtin_memory_op and rewritten to GIMPLE.
19521         (gimple_fold_builtin_memset): Likewise.
19522         (gimple_fold_builtin_strcpy): Likewise.
19523         (gimple_fold_builtin_strncpy): Likewise.
19524         (gimple_fold_builtin_strcat): Likewise.
19525         (gimple_fold_builtin_fputs): Likewise.
19526         (gimple_fold_builtin_memory_chk): Likewise.
19527         (gimple_fold_builtin_stxcpy_chk): Likewise.
19528         (gimple_fold_builtin_stxncpy_chk): Likewise.
19529         (gimple_fold_builtin_snprintf_chk): Likewise.
19530         (gimple_fold_builtin_sprintf_chk): Likewise.
19531         (gimple_fold_builtin_strlen): New function.
19532         (gimple_fold_builtin_with_strlen): New function split out from
19533         gimple_fold_builtin.
19534         (gimple_fold_builtin): Change signature and handle
19535         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
19536         here.  Call gimple_fold_builtin_with_strlen.
19537         (gimple_fold_call): Adjust.
19538
19539 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
19540
19541         * calls.c (precompute_arguments): Check
19542         promoted_for_signed_and_unsigned_p and set the promoted mode.
19543         (promoted_for_signed_and_unsigned_p): New function.
19544         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
19545         and set the promoted mode.
19546         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
19547         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
19548         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
19549
19550
19551 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
19552
19553         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
19554         instead of SUBREG_PROMOTED_UNSIGNED_SET.
19555         (expand_call): Likewise.
19556         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
19557         to get promoted mode.
19558         * combine.c (record_promoted_value): Skip > 0 comparison with
19559         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
19560         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
19561         of SUBREG_PROMOTED_UNSIGNED_P.
19562         (convert_modes): Likewise.
19563         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
19564         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
19565         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
19566         SUBREG_PROMOTED_UNSIGNED_SET.
19567         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
19568         instead of SUBREG_PROMOTED_UNSIGNED_SET.
19569         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
19570         SUBREG_PROMOTED_SET.
19571         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
19572         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
19573         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
19574         of SUBREG_PROMOTED_UNSIGNED_P.
19575         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
19576         (SUBREG_PROMOTED_SET): New define.
19577         (SUBREG_PROMOTED_GET): Likewise.
19578         (SUBREG_PROMOTED_SIGN): Likewise.
19579         (SUBREG_PROMOTED_SIGNED_P): Likewise.
19580         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
19581         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
19582         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
19583         instead of SUBREG_PROMOTED_UNSIGNED_GET.
19584         (nonzero_bits1): Skip > 0 comparison with the results as
19585         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
19586         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
19587         of !SUBREG_PROMOTED_UNSIGNED_P.
19588         * simplify-rtx.c (simplify_unary_operation_1): Use new
19589         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
19590         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
19591         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
19592         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
19593
19594 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
19595
19596         * ipa-devirt.c: Include gimple-pretty-print.h
19597         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
19598         further tests.
19599         (decl_maybe_in_construction_p): Fix conditional on cdtor check
19600         (get_polymorphic_call_info): Fix return value
19601         (type_change_info): New sturcture based on ipa-prop
19602         variant.
19603         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
19604         based on ipa-prop variant.
19605         (extr_type_from_vtbl_ptr_store): New function
19606         based on ipa-prop variant.
19607         (record_known_type): New function.
19608         (check_stmt_for_type_change): New function.
19609         (get_dynamic_type): New function.
19610         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
19611         * tree-ssa-pre.c: ipa-utils.h
19612         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
19613         machinery; sanity check with ipa-prop devirtualization.
19614         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
19615         polymorphic flag.
19616
19617 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
19618
19619         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
19620         * alias.c, cfgexpand.c, cgraphbuild.c,
19621         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
19622         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
19623         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
19624         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
19625         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
19626         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19627         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
19628         dse.c, except.c, gengtype.c, gimple-expr.c,
19629         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
19630         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
19631         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
19632         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
19633         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
19634         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
19635         pointer-set.h.
19636         * pointer-set.c: Remove file.
19637         * pointer-set.h: Remove file.
19638
19639 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19640
19641         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
19642         * config/arm/types.md (f_sels, f_seld): Delete.
19643
19644 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19645
19646         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
19647         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
19648         (aarch64_movdi_<mode>high): Likewise.
19649         (aarch64_mov<mode>high_di): Likewise.
19650         (aarch64_movdi_<mode>low): Likewise.
19651         (aarch64_mov<mode>low_di): Likewise.
19652         (aarch64_movtilow_tilow): Likewise.
19653         Add comment explaining usage of fp,simd attributes and of
19654         TARGET_FLOAT and TARGET_SIMD.
19655
19656 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
19657             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19658
19659         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
19660         Use MOVN when one of the half-words is 0xffff.
19661
19662 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
19663
19664         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
19665
19666 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19667
19668         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
19669         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
19670         (rfs_str): String corresponding to RFS_* constants.
19671         (rank_for_schedule_stats_t): New typedef.
19672         (rank_for_schedule_stats): New static variable.
19673         (rfs_result): New static function.
19674         (rank_for_schedule): Track statistics for deciding heuristics.
19675         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
19676         static functions.
19677         (ready_sort): Use them for debug printouts.
19678         (schedule_block): Init statistics state.  Print statistics on
19679         rank_for_schedule decisions.
19680
19681 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19682
19683         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
19684
19685 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
19686
19687         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
19688         constraint.
19689
19690 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
19691
19692         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
19693         function to not conflict.
19694         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
19695         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
19696         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
19697         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
19698         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
19699         of pointer_map.
19700
19701 2014-08-07  Marek Polacek  <polacek@redhat.com>
19702
19703         * fold-const.c (fold_binary_loc): Add folding of
19704         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
19705
19706 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
19707
19708         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
19709         instead of type size.
19710         (ASM_FINISH_DECLARE_OBJECT): Likewise.
19711
19712 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
19713
19714         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
19715         (*thumb1_movqi_insn): Likewise.
19716         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
19717
19718 2014-08-07  Tom de Vries  <tom@codesourcery.com>
19719
19720         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
19721         (glibc_2_11_or_earlier): Remove effective-target keywords.
19722
19723 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
19724
19725         * config/arm/arm.c (bdesc_2arg): Fix typo.
19726         (arm_atomic_assign_expand_fenv): Remove The default implementation.
19727
19728 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
19729
19730         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
19731
19732 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
19733
19734         PR debug/61923
19735         * haifa-sched.c (advance_one_cycle): Fix dump.
19736         (schedule_block): Don't advance cycle if we are already at the
19737         beginning of the cycle.
19738
19739 2014-08-06  Martin Jambor  <mjambor@suse.cz>
19740
19741         PR ipa/61393
19742         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
19743
19744 2014-08-06  Richard Biener  <rguenther@suse.de>
19745
19746         PR lto/62034
19747         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
19748         SCCs here.
19749         (lto_input_tree): Pop SCCs here.
19750
19751 2014-08-06  Richard Biener  <rguenther@suse.de>
19752
19753         PR tree-optimization/61320
19754         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
19755         handle misaligned loads.
19756
19757 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
19758
19759         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
19760         (aarch64_expand_vec_perm_const): Check for dup before zip.
19761
19762 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19763
19764         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
19765         CONST_INT_P instead of GET_CODE and compare.
19766         (aarch64_select_cc_mode): Likewise.
19767         (aarch64_print_operand): Likewise.
19768         (aarch64_rtx_costs): Likewise.
19769         (aarch64_simd_valid_immediate): Likewise.
19770         (aarch64_simd_check_vect_par_cnst_half): Likewise.
19771         (aarch64_simd_emit_pair_result_insn): Likewise.
19772
19773 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
19774
19775         * gdbhooks.py (find_gcc_source_dir): New helper function.
19776         (class PassNames): New class, locating and parsing passes.def.
19777         (class BreakOnPass): New command "break-on-pass".
19778
19779 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
19780
19781         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
19782         getting olde.
19783
19784 2014-08-05  Richard Biener  <rguenther@suse.de>
19785
19786         PR rtl-optimization/61672
19787         * emit-rtl.h (mem_attrs_eq_p): Declare.
19788         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
19789         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
19790         * cfgcleanup.c (merge_memattrs): Likewise.
19791         Include emit-rtl.h.
19792
19793 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19794
19795         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
19796         rather than singleton vectors.
19797         (vqdmlsls_lane_s32): Likewise.
19798
19799 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19800
19801         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
19802         Use VSDQ_HSI mode iterator.
19803         (aarch64_sqrdmulh_laneq<mode>): Likewise.
19804         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
19805         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
19806         Use BUILTIN_VDQHS macro.
19807         (sqrdmulh_laneq): Likewise.
19808         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
19809         (vqdmlals_laneq_s32): Likewise.
19810         (vqdmlslh_laneq_s16): Likewise.
19811         (vqdmlsls_laneq_s32): Likewise.
19812         (vqdmulhh_laneq_s16): Likewise.
19813         (vqdmulhs_laneq_s32): Likewise.
19814         (vqrdmulhh_laneq_s16): Likewise.
19815         (vqrdmulhs_laneq_s32): Likewise.
19816
19817 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19818
19819         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
19820         (vmuld_laneq_f64): Likewise.
19821         (vmuls_laneq_f32): Likewise.
19822         (vmul_n_f64): Likewise.
19823         (vmuld_lane_f64): Reimplement in C.
19824         (vmuls_lane_f32): Likewise.
19825
19826 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19827
19828         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
19829         to reservation.
19830         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
19831
19832 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19833
19834         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
19835         (rbitsi2): Likewise.
19836         (*arm_rev): Set predicable and predicable_short_it attributes.
19837
19838 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19839
19840         * convert.c (convert_to_integer): Guard transformation to lrint by
19841         -fno-math-errno.
19842
19843 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
19844
19845         * config/aarch64/aarch64-builtins.c
19846         (aarch64_simd_builtin_type_mode): Delete.
19847         (v8qi_UP): Remap to V8QImode.
19848         (v4hi_UP): Remap to V4HImode.
19849         (v2si_UP): Remap to V2SImode.
19850         (v2sf_UP): Remap to V2SFmode.
19851         (v1df_UP): Remap to V1DFmode.
19852         (di_UP): Remap to DImode.
19853         (df_UP): Remap to DFmode.
19854         (v16qi_UP):V16QImode.
19855         (v8hi_UP): Remap to V8HImode.
19856         (v4si_UP): Remap to V4SImode.
19857         (v4sf_UP): Remap to V4SFmode.
19858         (v2di_UP): Remap to V2DImode.
19859         (v2df_UP): Remap to V2DFmode.
19860         (ti_UP): Remap to TImode.
19861         (ei_UP): Remap to EImode.
19862         (oi_UP): Remap to OImode.
19863         (ci_UP): Map to CImode.
19864         (xi_UP): Remap to XImode.
19865         (si_UP): Remap to SImode.
19866         (sf_UP): Remap to SFmode.
19867         (hi_UP): Remap to HImode.
19868         (qi_UP): Remap to QImode.
19869         (aarch64_simd_builtin_datum): Make mode a machine_mode.
19870         (VAR1): Build builtin name.
19871         (aarch64_init_simd_builtins): Remove dead code.
19872
19873 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
19874
19875         * graphite-isl-ast-to-gimple.c:
19876         (set_options): New function.
19877         (scop_to_isl_ast): Add calling of set_options.
19878
19879 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
19880
19881         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
19882         (analyze_iv_to_split_insn): Don't initialize them.
19883         (get_ivts_expr): Removed.
19884         (allocate_basic_variable, insert_base_initialization): Use
19885         SET_SRC instead of *get_ivts_expr.
19886         (split_iv): Use &SET_SRC instead of get_ivts_expr.
19887
19888 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
19889
19890         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
19891         (translate_isl_ast_for_loop): Add checking of the
19892         flag_loop_parallelize_all.
19893         (ast_build_before_for): New function.
19894         (scop_to_isl_ast): Add checking of the
19895         flag_loop_parallelize_all.
19896         * graphite-dependences.c: Move the defenition of the
19897         scop_get_dependences from graphite-optimize-isl.c to this file.
19898         (apply_schedule_on_deps): Add checking of the ux's emptiness.
19899         (carries_deps): Add checking of the x's value.
19900         * graphite-optimize-isl.c: Move the defenition of the
19901         scop_get_dependences to graphite-dependences.c.
19902         * graphite-poly.h: Add declarations of scop_get_dependences
19903         and carries_deps.
19904
19905 2014-08-04  Rohit  <rohitarulraj@freescale.com>
19906
19907         PR target/60102
19908         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
19909         names.
19910         (alt_reg_names): Likewise.
19911         (rs6000_dwarf_register_span): For SPE high registers, replace
19912         dwarf register numbers with GCC hard register numbers.
19913         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
19914         (rs6000_dbx_register_number): For SPE high registers, return dwarf
19915         register number for the corresponding GCC hard register number.
19916         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
19917         newly added GCC hard register numbers for SPE high registers.
19918         (DWARF_FRAME_REGISTERS):  Likewise.
19919         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
19920         (DWARF_FRAME_REGNUM): Likewise.
19921         (FIXED_REGISTERS): Likewise.
19922         (CALL_USED_REGISTERS): Likewise.
19923         (CALL_REALLY_USED_REGISTERS): Likewise.
19924         (REG_ALLOC_ORDER): Likewise.
19925         (enum reg_class): Likewise.
19926         (REG_CLASS_NAMES): Likewise.
19927         (REG_CLASS_CONTENTS): Likewise.
19928         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
19929
19930 2014-08-04  Richard Biener  <rguenther@suse.de>
19931
19932         * gimple-fold.h (gimple_fold_builtin): Remove.
19933         * gimple-fold.c (gimple_fold_builtin): Make static.
19934         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
19935         fold_stmt, not gimple_fold_builtin.
19936
19937 2014-08-04  Martin Liska <mliska@suse.cz>
19938
19939         * cgraph.h (csi_end_p): Removed.
19940         (csi_next): Likewise.
19941         (csi_node): Likewise.
19942         (csi_start): Likewise.
19943         (cgraph_node_in_set_p): Likewise.
19944         (cgraph_node_set_size): Likewise.
19945         (vsi_end_p): Likewise.
19946         (vsi_next): Likewise.
19947         (vsi_node): Likewise.
19948         (vsi_start): Likewise.
19949         (varpool_node_set_size): Likewise.
19950         (cgraph_node_set_nonempty_p): Likewise.
19951         (varpool_node_set_nonempty_p): Likewise.
19952         * cgraphunit.c (cgraph_process_new_functions): vec replaces
19953         cgraph_node_set.
19954         * ipa-inline-transform.c: Likewise.
19955         * ipa-utils.c (cgraph_node_set_new): Removed.
19956         (cgraph_node_set_add): Likewise.
19957         (cgraph_node_set_remove): Likewise.
19958         (cgraph_node_set_find): Likewise.
19959         (dump_cgraph_node_set): Likewise.
19960         (debug_cgraph_node_set): Likewise.
19961         (free_cgraph_node_set): Likewise.
19962         (varpool_node_set_new): Likewise.
19963         (varpool_node_set_add): Likewise.
19964         (varpool_node_set_remove): Likewise.
19965         (varpool_node_set_find): Likewise.
19966         (dump_varpool_node_set): Likewise.
19967         (free_varpool_node_set): Likewise.
19968         (debug_varpool_node_set): Likewise.
19969         * tree-emutls.c (struct tls_var_data):
19970         (emutls_index): Removed.
19971         (emutls_decl): Likewise.
19972         (gen_emutls_addr): Function implementation uses newly added
19973         hash_map<varpool_node *, tls_var_data>.
19974         (clear_access_vars): Likewise.
19975         (create_emultls_var): Likewise.
19976         (ipa_lower_emutls): Likewise.
19977         (reset_access): New function.
19978
19979 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
19980
19981         * config/i386/i386.c (ix86_option_override_internal): Add
19982         PTA_RDRND and PTA_MOVBE for bdver4.
19983
19984 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19985             James Greenhalgh  <james.greenhalgh@arm.com>
19986
19987         * doc/md.texi (clrsb): Document.
19988         (clz): Change reference to x into operand 1.
19989         (ctz): Likewise.
19990         (popcount): Likewise.
19991
19992 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19993
19994         PR target/61713
19995         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
19996         move to subtarget in serial version if result is ignored.
19997
19998 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19999             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20000
20001         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
20002         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
20003         (sched_analyze_insn): Update use of try_group_insn to
20004         sched_macro_fuse_insns.
20005         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
20006         arguments that are not conditional jumps.
20007
20008 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
20009
20010         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
20011         family information. Handle BTVER2 cpu with cpuid family value.
20012
20013 2014-08-04  Tom de Vries  <tom@codesourcery.com>
20014
20015         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
20016         (glibc_2_11_or_earlier): Document effective-target keywords.
20017
20018 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
20019
20020         * ipa-devirt.c (odr_type_warn_count): Add type.
20021         (possible_polymorphic_call_targets): Set it.
20022         (ipa_devirt): Use it.
20023
20024 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
20025
20026         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
20027         Document.
20028         * ipa-devirt.c: Include hash-map.h
20029         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
20030         (clear_speculation): Break out of ...
20031         (get_class_context): ... here; speed up handling obviously useless
20032         speculations.
20033         (odr_type_warn_count, decl_warn_count): New structures.
20034         (final_warning_record): New structure.
20035         (final_warning_records): New static variable.
20036         (possible_polymorphic_call_targets): Cleanup handling of
20037         speculative info; do not build speculation when user do not care;
20038         record info about warnings when asked for.
20039         (add_decl_warning): New function.
20040         (type_warning_cmp): New function.
20041         (decl_warning_cmp): New function.
20042         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
20043         (gate): Enable pass when warnings are requested.
20044         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
20045         options.
20046
20047 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
20048
20049         * hash-map.h (default_hashmap_traits::mark_key_deleted):
20050         Fix cast.
20051         (hash_map::remove): New method.
20052         (hash_map::traverse): New method.
20053         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
20054         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
20055         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
20056         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
20057         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
20058         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
20059         pointer_map.
20060
20061 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
20062
20063         * hash-set.h: new File.
20064         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
20065         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
20066         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
20067         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
20068         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
20069         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
20070         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
20071         varpool.c: Use hash_set instead of pointer_set.
20072
20073 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
20074
20075         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
20076
20077 2014-08-01  Jiong Wang <jiong.wang@arm.com>
20078
20079         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
20080         for frame access when strict_p is false.
20081
20082 2014-08-01  Renlin Li <renlin.li@arm.com>
20083 2014-08-01  Jiong Wang <jiong.wang@arm.com>
20084
20085         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
20086         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
20087         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
20088         Declaration.
20089         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
20090         predicate.
20091         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
20092         aarch64_mem_pair_offset.
20093
20094 2014-08-01  Jiong Wang <jiong.wang@arm.com>
20095
20096         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
20097         offset.
20098         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
20099         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
20100
20101 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
20102
20103         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
20104
20105 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
20106
20107         PR regression/61510
20108         * cgraphunit.c (analyze_functions): Use get_create rather than get
20109         for decls which are clones of abstract functions.
20110
20111 2014-08-01  Martin Liska  <mliska@suse.cz>
20112
20113         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
20114         * ipa-prop.h (count_formal_params): Global function created from static.
20115         * ipa-prop.c (count_formal_params): Likewise.
20116         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
20117         profiles for semantically equivalent functions.
20118         * passes.c (do_per_function): If we load body of a function
20119         during WPA, this condition should behave same.
20120         * varpool.c (ctor_for_folding): More tolerant assert for variable
20121         aliases created during WPA.
20122
20123 2014-08-01  Martin Liska  <mliska@suse.cz>
20124
20125         * doc/invoke.texi (Options That Control Optimization): Documentation
20126         for -foptimize-strlen introduced. Optimization levels default options
20127         fixed.
20128
20129 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
20130
20131         * opts.c (common_handle_option): Handle -fsanitize=alignment.
20132         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
20133         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
20134         type to bool.
20135         * stor-layout.h (min_align_of_type): New prototype.
20136         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
20137         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
20138         check.
20139         * ubsan.c: Include builtins.h.
20140         (ubsan_expand_bounds_ifn): Change return type to bool,
20141         always return true.
20142         (ubsan_expand_null_ifn): Change return type to bool, change
20143         argument to gimple_stmt_iterator *.  Handle both null and alignment
20144         sanitization, take type from ckind argument's type rather than
20145         first argument.
20146         (instrument_member_call): Removed.
20147         (instrument_mem_ref): Remove t argument, add mem and base arguments.
20148         Handle both null and alignment sanitization, don't say whole
20149         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
20150         call instead of 2 argument.
20151         (instrument_null): Adjust instrument_mem_ref caller.  Don't
20152         instrument calls here.
20153         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
20154         like SANITIZE_NULL.
20155         * stor-layout.c (min_align_of_type): New function.
20156         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
20157         Or it into SANITIZE_UNDEFINED.
20158         * doc/invoke.texi (-fsanitize=alignment): Document.
20159
20160 2014-07-31  Andi Kleen  <ak@linux.intel.com>
20161
20162         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
20163
20164 2014-07-31  Andi Kleen  <ak@linux.intel.com>
20165
20166         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
20167         inchash.
20168         (vn_reference_compute_hash): Dito.
20169         (vn_nary_op_compute_hash): Dito.
20170         (vn_phi_compute_hash): Dito.
20171         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
20172
20173 2014-07-31  Andi Kleen  <ak@linux.intel.com>
20174
20175         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
20176         Rename to inchash:add_expr_commutative. Convert to inchash.
20177         (iterative_hash_hashable_expr): Rename to
20178         inchash:add_hashable_expr. Convert to inchash.
20179         (avail_expr_hash): Dito.
20180
20181 2014-07-31  Andi Kleen  <ak@linux.intel.com>
20182
20183         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
20184         Convert to inchash.
20185
20186 2014-07-31  Andi Kleen  <ak@linux.intel.com>
20187
20188         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
20189
20190 2014-07-31  Andi Kleen  <ak@linux.intel.com>
20191
20192         * Makefile.in (OBJS): Add rtlhash.o
20193         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
20194         (loc_checksum): Dito.
20195         (loc_checksum_ordered): Dito.
20196         (hash_loc_operands): Dito.
20197         (hash_locs): Dito.
20198         (hash_loc_list): Dito.
20199         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
20200         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
20201         * rtlhash.c: New file.
20202         * rtlhash.h: New file.
20203
20204 2014-07-31  Andi Kleen  <ak@linux.intel.com>
20205
20206         * inchash.h (inchash): Change inchash class to namespace.
20207         (class hash): ... Rename from inchash.
20208         (add_object): Move from macro to class template.
20209         * lto-streamer-out.c (hash_tree): Change inchash
20210         to inchash::hash.
20211         * tree.c (build_type_attribute_qual_variant): Dito.
20212         (type_hash_list): Dito.
20213         (attribute_hash_list): Dito.
20214         (iterative_hstate_expr): Rename to inchash::add_expr
20215         (build_range_type_1): Change inchash to inchash::hash
20216         and use hash::add_expr.
20217         (build_array_type_1): Dito.
20218         (build_function_type): Dito
20219         (build_method_type_directly): Dito.
20220         (build_offset_type): Dito.
20221         (build_complex_type): Dito.
20222         (make_vector_type): Dito.
20223         * tree.h (iterative_hash_expr): Dito.
20224
20225 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
20226
20227         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
20228
20229 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
20230
20231         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
20232         correct alphabetical position.
20233         (vpaddd_f64): Rewrite using builtins.
20234         (vpaddd_s64): Move to correct alphabetical position.
20235         (vpaddd_u64): New.
20236
20237 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
20238
20239         PR target/61844
20240         * config/sh/sh.c (sh_legitimate_address_p,
20241         sh_legitimize_reload_address): Handle reg+reg address modes when
20242         ALLOW_INDEXED_ADDRESS is false.
20243         * config/sh/predicates.md (general_movsrc_operand,
20244         general_movdst_operand): Likewise.
20245
20246 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
20247
20248         * config/aarch64/aarch64-builtins.c
20249         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
20250         BYTES_BIG_ENDIAN.
20251
20252 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
20253
20254         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
20255         the generated mask based on BYTES_BIG_ENDIAN.
20256         (aarch64_simd_check_vect_par_cnst_half): New.
20257         * config/aarch64/aarch64-protos.h
20258         (aarch64_simd_check_vect_par_cnst_half): New.
20259         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
20260         the check out to aarch64_simd_check_vect_par_cnst_half.
20261         (vect_par_cnst_lo_half): Likewise.
20262         * config/aarch64/aarch64-simd.md
20263         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
20264         (move_hi_quad_<mode>): Always generate a low mask.
20265
20266 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
20267
20268         * doc/invoke.texi (AVR Options): Add documentation about
20269         __AVR_DEVICE_NAME__ built-in macro.
20270
20271 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
20272
20273         PR target/61948
20274         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
20275         constraints are satisfied.
20276         (<shift>di3_neon): Likewise.
20277
20278 2014-07-31  Richard Biener  <rguenther@suse.de>
20279
20280         PR tree-optimization/61964
20281         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
20282         by structural equality.
20283
20284 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
20285
20286         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
20287         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
20288         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
20289         New enums.
20290         * gcc.c (sanitize_spec_function): Support new option.
20291         (SANITIZER_SPEC): Remove now redundant check.
20292         * opts.c (common_handle_option): Support new option.
20293         (finish_options): Check for incompatibilities.
20294         * toplev.c (process_options): Split userspace-specific checks.
20295
20296 2014-07-31  Richard Biener  <rguenther@suse.de>
20297
20298         * lto-streamer.h (struct output_block): Remove global.
20299         (struct data_in): Remove labels, num_named_labels and
20300         num_unnamed_labels.
20301         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
20302         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
20303
20304 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
20305
20306         PR c++/60517
20307         * common.opt (-Wreturn-local-addr): Moved from c.opt.
20308         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
20309         (isolate_path): New argument to avoid inserting a trap.
20310         (find_implicit_erroneous_behaviour): Handle returning the address
20311         of a local variable.
20312         (find_explicit_erroneous_behaviour): Likewise.
20313
20314 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
20315
20316         PR lto/61868
20317         * toplev.c (init_random_seed): Move piece of code never called to
20318         set_random_seed.
20319         (set_random_seed): see above.
20320
20321 2014-07-31  Tom de Vries  <tom@codesourcery.com>
20322
20323         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
20324
20325 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
20326
20327         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
20328         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
20329
20330 2014-07-31  Richard Biener  <rguenther@suse.de>
20331
20332         * data-streamer.h (streamer_write_data_stream): Declare here,
20333         renamed from ...
20334         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
20335         * lto-cgraph.c (lto_output_node): Adjust.
20336         (lto_output_varpool_node): Likewise.
20337         * data-streamer-out.c (streamer_string_index): Likewise.
20338         (streamer_write_data_stream, lto_append_block): Move from ...
20339         * lto-section-out.c (lto_output_data_stream,
20340         lto_append_block): ... here.
20341
20342 2014-07-30  Mike Stump  <mikestump@comcast.net>
20343
20344         * configure.ac: Also check for popen.
20345         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
20346         * configure: Regenerate.
20347         * config.in:  Regenerate.
20348
20349 2014-07-30  Martin Jambor  <mjambor@suse.cz>
20350
20351         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
20352         parameter to gimple.
20353
20354 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20355
20356         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
20357         address as second parameter to __tpf_eh_return routine.
20358
20359 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
20360
20361         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
20362         Thumb2.
20363
20364 2014-07-30  Tom Tromey  <tromey@redhat.com>
20365
20366         PR c/59855
20367         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
20368         * doc/extend.texi (Type Attributes): Document designated_init
20369         attribute.
20370
20371 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
20372
20373         * graphite-isl-ast-to-gimple.c:
20374         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
20375         (gcc_expression_from_isl_expression): Pass type to
20376         gcc_expression_from_isl_ast_expr_id.
20377
20378 2014-07-30  Richard Biener  <rguenther@suse.de>
20379
20380         * lto-streamer.h (lto_write_data): New function.
20381         * langhooks.c (lhd_append_data): Do not free block.
20382         * lto-section-out.c (lto_write_data): New function writing
20383         raw data to the current section.
20384         (lto_write_stream): Adjust for langhook semantic change.
20385         (lto_destroy_simple_output_block): Write header directly.
20386         * lto-opts.c (lto_write_options): Write options directly.
20387         * lto-streamer-out.c (produce_asm): Write heaeder directly.
20388         (lto_output_toplevel_asms): Likewise.
20389         (copy_function_or_variable): Copy data directly.
20390         (write_global_references): Output index table directly.
20391         (lto_output_decl_state_refs): Likewise.
20392         (write_symbol): Write data directly.
20393         (produce_symtab): Adjust.
20394         (produce_asm_for_decls): Output header and refs directly.
20395
20396 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
20397
20398         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
20399         to speculative_targets
20400         (get_class_context): Fix handling of contextes without outer type;
20401         avoid matching non-polymorphic types in LTO.
20402         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
20403         parameter to speculative_targetsp; handle speculation.
20404         (dump_possible_polymorphic_call_targets): Update dumping.
20405
20406 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
20407
20408         * common.opt (Wodr): Enable by default.
20409
20410 2014-07-29  Olivier Hainque  <hainque@adacore.com>
20411
20412         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
20413
20414 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
20415
20416         PR bootstrap/61914
20417         * gengtype.c (strtoken): New function.
20418         (create_user_defined_type): Replace strtok with strtoken.
20419
20420 2014-07-29  Nathan Sidwell  <nathan@acm.org>
20421
20422         * gcov-io.c (gcov_var): Make hidden.
20423         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
20424         (gcov_do_dump): Declare.
20425         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
20426
20427 2014-07-29  Martin Jambor  <mjambor@suse.cz>
20428
20429         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
20430         parameter to gimple.
20431         (sra_modify_assign): Likewise.
20432
20433 2014-07-29  Richard Biener  <rguenther@suse.de>
20434
20435         PR middle-end/52478
20436         * expr.c (expand_expr_real_2): Revert last change.
20437
20438 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
20439
20440         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
20441         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
20442         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
20443         call.
20444         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
20445         (contains_type_p): Forward declare.
20446         (polymorphic_call_target_hasher::hash): Hash speculative info.
20447         (polymorphic_call_target_hasher::equal): Compare speculative info.
20448         (get_class_context): Handle speuclation.
20449         (contains_type_p): Update.
20450         (get_polymorphic_call_info_for_decl): Update.
20451         (walk_ssa_copies): Break out from ...
20452         (get_polymorphic_call_info): ... here; set speculative context
20453         before giving up.
20454         * ipa-prop.c (ipa_write_indirect_edge_info,
20455         ipa_read_indirect_edge_info): Stream speculative context.
20456         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
20457         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
20458         SPECULATIVE_MAYBE_DERIVED_TYPE).
20459         (possible_polymorphic_call_targets overriders): Update.
20460         (dump_possible_polymorphic_call_targets overriders): Update.
20461         (dump_possible_polymorphic_call_target_p overriders): Update.
20462
20463 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
20464
20465         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
20466         ipa-devirt path; fix thinko there.
20467
20468 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
20469
20470         * config/i386/i386.c (ix86_return_in_memory): Replace one
20471         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
20472
20473 2014-07-28  Marek Polacek  <polacek@redhat.com>
20474
20475         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
20476
20477 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
20478
20479         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
20480         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
20481         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
20482         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
20483         (USE_LD_AS_NEEDED): Likewise.
20484         (ASM_APP_ON): Likewise.
20485         (ASM_APP_OFF): Likewise.
20486         (TARGET_POSIX_IO): Likewise.
20487         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
20488         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
20489         (USE_LD_AS_NEEDED): Likewise.
20490         (ASM_APP_ON): Likewise.
20491         (ASM_APP_OFF): Likewise.
20492         (TARGET_POSIX_IO): Likewise.
20493
20494 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
20495
20496         PR middle-end/61734
20497         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
20498         operators other than the equality operators.
20499
20500 2014-07-28  Richard Biener  <rguenther@suse.de>
20501
20502         PR middle-end/52478
20503         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
20504         sure to register SImode ones, not only >= word_mode ones.
20505         * expr.c (expand_expr_real_2): When expanding -ftrapv
20506         binops do not use OPTAB_LIB_WIDEN.
20507
20508 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
20509
20510         PR middle-end/61919
20511         * tree-outof-ssa.c (insert_partition_copy_on_edge)
20512         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
20513         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
20514         inserting them in the insn stream.
20515
20516 2014-07-28  Marek Polacek  <polacek@redhat.com>
20517
20518         PR middle-end/61913
20519         * common.opt (Wodr): Add Var.
20520
20521 2014-07-28  Richard Biener  <rguenther@suse.de>
20522
20523         PR tree-optimization/61921
20524         * tree-ssa-structalias.c (create_variable_info_for_1): Check
20525         if there is a varpool node before dereferencing it.
20526
20527 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
20528
20529         * graphite-sese-to-poly.c:
20530         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
20531         id of the pbb), which contains pointer to the pbb1.
20532
20533         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
20534
20535 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
20536
20537         * graphite-isl-ast-to-gimple.c:
20538         (graphite_create_new_guard): New function.
20539         (translate_isl_ast_node_if): New function.
20540         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
20541
20542         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
20543
20544 2014-07-27  Anthony Green  <green@moxielogic.com>
20545
20546         * config.gcc: Add moxie-*-moxiebox* configuration.
20547         * config/moxie/moxiebox.h: New file.
20548
20549 2014-07-26  Andrew Pinski  <apinski@cavium.com>
20550
20551         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
20552         from the read only register.
20553
20554 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
20555
20556         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
20557         as the allocation class if it isn't likely to be spilled.
20558
20559 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
20560
20561         * rtl.h (tls_referenced_p): Declare.
20562         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
20563         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
20564         (mips_cannot_force_const_mem): Use tls_referenced_p.
20565         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
20566         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
20567         instead of pa_tls_referenced_p.
20568         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
20569         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
20570         (pa_legitimate_constant_p): Likewise.
20571         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
20572         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
20573         (rs6000_cannot_force_const_mem, rs6000_emit_move)
20574         (rs6000_address_for_altivec): Use tls_referenced_p instead of
20575         rs6000_tls_referenced_p.
20576         (rs6000_tls_symbol_ref_1): Delete.
20577
20578 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
20579
20580         PR target/44551
20581         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
20582         Optimize inverse of a VEC_CONCAT.
20583
20584 2014-07-25  Xinliang David Li  <davidxl@google.com>
20585
20586         * params.def: New parameter.
20587         * coverage.c (get_coverage_counts): Check new flag.
20588         (coverage_compute_profile_id): Check new flag.
20589         (coverage_begin_function): Check new flag.
20590         (coverage_end_function): Check new flag.
20591         * value-prof.c (coverage_node_map_initialized_p): New function.
20592         (init_node_map): Populate map with all functions.
20593         * doc/invoke.texi: Document new parameter.
20594
20595 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
20596             Richard Biener <rguenther@suse.de>
20597
20598         * lto-streamer-out.c (struct sccs): Turn to ...
20599         (class DFS): ... this one; refactor the DFS walk so it can
20600         be re-done on per-SCC basis.
20601         (DFS::DFS): New constructor.
20602         (DFS::~DFS): New destructor.
20603         (hash_tree): Add new MAP argument holding in-SCC hash values;
20604         remove POINTER_TYPE hashing hack.
20605         (scc_entry_compare): Rename to ...
20606         (DFS::scc_entry_compare): ... this one.
20607         (hash_scc): Rename to ...
20608         (DFS::hash_scc): ... this one; pass output_block instead
20609         of streamer_cache; work harder to get unique and stable SCC
20610         hashes.
20611         (DFS_write_tree): Rename to ...
20612         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
20613         (lto_output_tree): Update.
20614
20615 2014-07-25  Andi Kleen  <ak@linux.intel.com>
20616
20617         * lto-streamer-out.c (hash_tree): Convert to inchash.
20618
20619 2014-07-25  Andi Kleen  <ak@linux.intel.com>
20620
20621         * tree.c (build_type_attribute_qual_variant): Use inchash.
20622         (type_hash_list): Dito.
20623         (attribute_hash_list): Dito
20624         (iterative_hstate_expr): Dito.
20625         (iterative_hash_expr): Dito.
20626         (build_range_type_1): Dito.
20627         (build_array_type_1): Dito.
20628         (build_function_type): Dito.
20629         (build_method_type_directly): Dito.
20630         (build_offset_type): Dito.
20631         (build_complex_type): Dito.
20632         (make_vector_type): Dito.
20633         * tree.h (iterative_hash_expr): Add compat wrapper.
20634         (iterative_hstate_expr): Add.
20635
20636 2014-07-25  Andi Kleen  <ak@linux.intel.com>
20637
20638         * Makefile.in (OBJS): Add inchash.o.
20639         (PLUGIN_HEADERS): Add inchash.h.
20640         * ipa-devirt.c: Include inchash.h.
20641         * lto-streamer-out.c: Dito.
20642         * tree-ssa-dom.c: Dito.
20643         * tree-ssa-pre.c: Dito.
20644         * tree-ssa-sccvn.c: Dito.
20645         * tree-ssa-tail-merge.c: Dito.
20646         * asan.c: Dito.
20647         * tree.c (iterative_hash_hashval_t): Move to ...
20648         (iterative_hash_host_wide_int): Move to ...
20649         * inchash.c: Here. New file.
20650         * tree.h (iterative_hash_hashval_t): Move to ...
20651         (iterative_hash_host_wide_int): Move to ...
20652         * inchash.h: Here. New file.
20653
20654 2014-07-25  Richard Biener  <rguenther@suse.de>
20655
20656         PR middle-end/61762
20657         PR middle-end/61894
20658         * fold-const.c (native_encode_int): Add and handle offset
20659         parameter to do partial encodings of expr.
20660         (native_encode_fixed): Likewise.
20661         (native_encode_real): Likewise.
20662         (native_encode_complex): Likewise.
20663         (native_encode_vector): Likewise.
20664         (native_encode_string): Likewise.
20665         (native_encode_expr): Likewise.
20666         * fold-const.c (native_encode_expr): Add offset parameter
20667         defaulting to -1.
20668         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
20669         (fold_ctor_reference): Handle all reads from tcc_constant
20670         ctors.
20671
20672 2014-07-25  Richard Biener  <rguenther@suse.de>
20673
20674         * tree-inline.c (estimate_move_cost): Mark speed_p argument
20675         as possibly unused.
20676
20677 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
20678
20679         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
20680
20681 2014-07-24  Kyle McMartin  <kyle@redhat.com>
20682
20683         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
20684
20685 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20686
20687         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
20688         Add prototype.
20689         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
20690         function.
20691         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
20692         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
20693         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
20694
20695 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20696
20697         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
20698         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
20699         aggregate types.  Instead, *all* aggregate types, except for single-
20700         element or homogeneous float/vector aggregates, are quadword-aligned
20701         if required by their type alignment.  Issue -Wpsabi note when a type
20702         is now treated differently than before.
20703
20704 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20705
20706         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
20707         does not fit fully into floating-point registers, and there is still
20708         space in the register parameter area, use GPRs to pass those parts
20709         of the argument.  Issue -Wpsabi note if any parameter is now treated
20710         differently than before.
20711         (rs6000_arg_partial_bytes): Update.
20712
20713 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
20714
20715         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
20716
20717 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
20718
20719         * rtl.h (target_rtl): Remove lang_dependent_initialized.
20720         * toplev.c (initialize_rtl): Don't use it.  Move previously
20721         "language-dependent" calls to...
20722         (backend_init): ...here.
20723         (lang_dependent_init_target): Don't set lang_dependent_initialized.
20724         Assert that RTL initialization hasn't happend yet.
20725
20726 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
20727
20728         PR rtl-optimization/61629
20729         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
20730         they have already been initialized.
20731
20732 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
20733
20734         PR middle-end/61268
20735         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
20736         DECL_INCOMING_RTL and entry_parm.
20737         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
20738         * calls.c (load_register_parameters): Likewise argument values.
20739         (emit_library_call_value_1, store_one_arg): Likewise argument
20740         save areas.
20741         * config/i386/i386.c (assign_386_stack_local): Likewise the local
20742         stack slot.
20743         * explow.c (validize_mem): Modify the argument in-place.
20744
20745 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
20746
20747         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
20748         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
20749
20750 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
20751
20752         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
20753         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
20754
20755 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
20756
20757         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
20758         (aarch64_save_callee_saves): New parameter "skip_wb".
20759         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
20760
20761 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
20762
20763         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
20764         "wb_candidate2".
20765         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
20766
20767 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
20768
20769         * graphite-isl-ast-to-gimple.c:
20770         (graphite_create_new_loop): Add calling of isl_id_free to properly
20771         decrement reference counts.
20772
20773         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
20774
20775 2014-07-24  Martin Liska  <mliska@suse.cz>
20776         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
20777         function used.
20778         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
20779         (rs6000_code_end): Likewise.
20780
20781 2014-07-24  Martin Liska  <mliska@suse.cz>
20782
20783         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
20784         symtab_node funtion used.
20785         (rs6000_xcoff_declare_object_name): Likewise.
20786
20787 2014-07-24  Martin Liska  <mliska@suse.cz>
20788
20789         * cgraphunit.c (compile): Correct function used.
20790
20791 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
20792
20793         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
20794         as non-indexable.
20795
20796 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
20797
20798         PR lto/61802
20799         * varasm.c (bss_initializer_p): Handle offlined ctors.
20800         (align_variable, get_variable_align): Likewise.
20801         (make_decl_one_only): Likewise.
20802         (default_binds_local_p_1): Likewise.
20803         (decl_binds_to_current_def_p): Likewise.
20804         (get_variable_section): Get constructor if it is offlined.
20805         (assemble_variable_contents): Sanity check that the caller
20806         streamed in the ctor in LTO.
20807
20808 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
20809
20810         * graphite-isl-ast-to-gimple.c:
20811         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
20812         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
20813         isl_ast_op_pdiv_r to the different case.
20814
20815         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
20816
20817 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20818
20819         PR middle-end/61876
20820         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
20821         when flag_errno_math is on.
20822
20823 2014-07-24  Martin Liska  <mliska@suse.cz>
20824
20825         * cgraph.h (varpool_node):
20826         (availability get_availability (void)):
20827         created from cgraph_variable_initializer_availability
20828         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
20829         created from: cgraph_variable_initializer_availability
20830         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
20831         (void finalize_named_section_flags (void)):
20832         created from varpool_finalize_named_section_flags
20833         (bool assemble_decl (void)): created from varpool_assemble_decl
20834         (void analyze (void)): created from varpool_analyze_node
20835         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
20836         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
20837         (void remove_initializer (void)): created from varpool_remove_initializer
20838         (tree get_constructor (void)): created from varpool_get_constructor
20839         (bool externally_visible_p (void)): created from varpool_externally_visible_p
20840         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
20841         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
20842         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
20843         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
20844         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
20845         (static bool output_variables (void)): created from varpool_output_variables
20846         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
20847         created from varpool_extra_name_alias
20848         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
20849         (static void dump_varpool (FILE *f)): created from dump_varpool
20850         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
20851         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
20852         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
20853         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
20854         (void assemble_aliases (void)): created from assemble_aliases
20855
20856 2014-07-24  Martin Liska  <mliska@suse.cz>
20857
20858         * cgraph.h (symtab_node):
20859         (void register_symbol (void)): created from symtab_register_node
20860         (void remove (void)): created from symtab_remove_node
20861         (void dump (FILE *f)): created from dump_symtab_node
20862         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
20863         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
20864         (struct ipa_ref *add_reference (symtab_node *referred_node,
20865         enum ipa_ref_use use_type)): created from add_reference
20866         (struct ipa_ref *add_reference (symtab_node *referred_node,
20867         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
20868         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
20869         gimple stmt)): created from maybe_add_reference
20870         (bool semantically_equivalent_p (symtab_node *target)): created from
20871         symtab_semantically_equivalent_p
20872         (void remove_from_same_comdat_group (void)): created from
20873         remove_from_same_comdat_group
20874         (void add_to_same_comdat_group (symtab_node *old_node)): created from
20875         symtab_add_to_same_comdat_group
20876         (void dissolve_same_comdat_group_list (void)): created from
20877         symtab_dissolve_same_comdat_group_list
20878         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
20879         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
20880         created from symtab_alias_ultimate_target
20881         (inline symtab_node *next_defined_symbol (void)): created from
20882         symtab_next_defined_symbol
20883         (bool resolve_alias (symtab_node *target)): created from
20884         symtab_resolve_alias
20885         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
20886         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
20887         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
20888         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
20889         (void set_section (const char *section)): created from set_section_1
20890         (enum availability get_availability (void)): created from symtab_node_availability
20891         (void make_decl_local (void)): created from symtab_make_decl_local
20892         (bool real_symbol_p (void)): created from symtab_read_node
20893         (can_be_discarded_p (void)): created from symtab_can_be_discarded
20894         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
20895         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
20896         symtab_in_same_comdat_p;
20897         (bool address_taken_from_non_vtable_p (void)): created from
20898         address_taken_from_non_vtable_p
20899         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
20900         (static void dump_table (FILE *)): created from dump_symtab
20901         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
20902         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
20903         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
20904         symtab_used_from_object_file_p
20905         (void dump_base (FILE *)): created from dump_symtab_base
20906         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
20907         (void unregister (void)): created from symtab_unregister_node
20908         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
20909         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
20910         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
20911         symtab_nonoverwritable_alias_1
20912         * cgraph.h (cgraph_node):
20913         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
20914         created from cgraph_remove_node_and_inline_clones
20915         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
20916         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
20917         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
20918         (cgraph_node *function_symbol (enum availability *avail = NULL)):
20919         created from cgraph_function_node
20920         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
20921         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
20922         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
20923         created from cgraph_create_clone
20924         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
20925         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
20926         created from cgraph_create_virtual_clone
20927         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
20928         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
20929         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
20930         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
20931         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
20932         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
20933         created from cgraph_function_version_info
20934         (struct cgraph_function_version_info *insert_new_function_version (void)):
20935         created from insert_new_cgraph_node_version
20936         (struct cgraph_function_version_info *function_version (void)): created from
20937         get_cgraph_node_version
20938         (void analyze (void)): created from analyze_function
20939         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
20940         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
20941         tree real_alias) cgraph_add_thunk
20942         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
20943         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
20944         created from cgraph_function_or_thunk_node
20945         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
20946         created from expand_thunk
20947         (void reset (void)): created from cgraph_reset_node
20948         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
20949         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
20950         (void remove (void)): created from cgraph_remove_node
20951         (void dump (FILE *f)): created from dump_cgraph_node
20952         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
20953         (bool get_body (void)): created from cgraph_get_body
20954         (void release_body (void)): created from cgraph_release_function_body
20955         (void unnest (void)): created from cgraph_unnest_node
20956         (void make_local (void)): created from cgraph_make_node_local
20957         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
20958         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
20959         gcov_type count, int freq)): created from cgraph_create_edge
20960         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
20961         gcov_type count, int freq)): created from cgraph_create_indirect_edge
20962         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
20963         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
20964         created from cgraph_create_edge_including_clones
20965         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
20966         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
20967         (void remove_callers (void)): created from cgraph_node_remove_callers
20968         (void remove_callees (void)): created from cgraph_node_remove_callees
20969         (enum availability get_availability (void)): created from cgraph_function_body_availability
20970         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
20971         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
20972         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
20973         (void call_duplication_hooks (cgraph_node *node2)): created from
20974         cgraph_call_node_duplication_hooks
20975         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
20976         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
20977         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
20978         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
20979         (void call_function_insertion_hooks (void)):
20980         created from cgraph_call_function_insertion_hooks
20981         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
20982         (bool local_p (void)): created from cgraph_local_node
20983         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
20984         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
20985         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
20986         (inline bool only_called_directly_or_aliased_p (void)):
20987         created from cgraph_only_called_directly_or_aliased_p
20988         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
20989         created from cgraph_will_be_removed_from_program_if_no_direct_calls
20990         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
20991         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
20992         (bool can_remove_if_no_direct_calls_p (void)):
20993         created from cgraph_can_remove_if_no_direct_calls_p
20994         (inline bool has_gimple_body_p (void)):
20995         created from cgraph_function_with_gimple_body_p
20996         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
20997         (static void dump_cgraph (FILE *f)): created from dump_cgraph
20998         (static inline void debug_cgraph (void)): created from debug_cgraph
20999         (static void record_function_versions (tree decl1, tree decl2)):
21000         created from record_function_versions
21001         (static void delete_function_version (tree decl)):
21002         created from delete_function_version
21003         (static void add_new_function (tree fndecl, bool lowered)):
21004         created from cgraph_add_new_function
21005         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
21006         (static cgraph_node * create (tree decl)): created from cgraph_create_node
21007         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
21008         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
21009         (static cgraph_node *get_for_asmname (tree asmname)):
21010         created from cgraph_node_for_asm
21011         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
21012         created from cgraph_same_body_alias
21013         (static bool used_from_object_file_p_worker (cgraph_node *node,
21014         void *): new function
21015         (static bool non_local_p (cgraph_node *node, void *)):
21016         created from cgraph_non_local_node_p_1
21017         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
21018         created from verify_cgraph
21019         (static bool make_local (cgraph_node *node, void *)):
21020         created from cgraph_make_node_local
21021         (static cgraph_node *create_alias (tree alias, tree target)):
21022         created from cgraph_create_function_alias
21023         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
21024         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
21025         created from cgraph_create_edge_1
21026         * cgraph.h (varpool_node):
21027         (void remove (void)): created from varpool_remove_node
21028         (void dump (FILE *f)): created from dump_varpool_node
21029
21030 2014-07-24  Richard Biener  <rguenther@suse.de>
21031
21032         PR ipa/61823
21033         * tree-ssa-structalias.c (create_variable_info_for_1):
21034         Use varpool_get_constructor.
21035         (create_variable_info_for): Likewise.
21036
21037 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
21038
21039         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
21040         subtract outgoing area size when restoring stack_pointer_rtx.
21041
21042 2014-07-24  Nick Clifton  <nickc@redhat.com>
21043
21044         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
21045         that operations are taking place in parallel.
21046         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
21047
21048 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
21049
21050         * omp-low.c (extract_omp_for_data): Add missing break statement.
21051
21052 2014-07-24  Richard Biener  <rguenther@suse.de>
21053
21054         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
21055         * tree-inline.c (estimate_move_cost): Add speed_p parameter
21056         and adjust MOVE_RATIO query accordingly.
21057         (estimate_num_insns): Adjust callers.
21058         * ipa-prop.c (ipa_populate_param_decls): Likewise.
21059         * ipa-cp.c (gather_context_independent_values,
21060         estimate_local_effects): Likewise.
21061         * ipa-split.c (consider_split): Likewise.
21062
21063 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
21064
21065         * config/i386/driver-i386.c: Remove names of unused arguments and
21066         unnecessary unused attributes.
21067         * config/i386/host-mingw32.c: Likewise.
21068         * config/i386/i386.c: Likewise.
21069         * config/i386/winnt-stubs.c: Likewise.
21070         * config/i386/winnt.c: Likewise.
21071
21072 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21073
21074         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
21075         (aarch64_gen_loadwb_pair): New helper function.
21076         (aarch64_expand_epilogue): Simplify code using new helper functions.
21077         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
21078
21079 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21080
21081         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
21082         (aarch64_gen_storewb_pair): New helper function.
21083         (aarch64_expand_prologue): Simplify code using new helper functions.
21084         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
21085
21086 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21087
21088         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
21089         Rename to aarch64_save_callee_saves, remove restore code.
21090         (aarch64_restore_callee_saves): New function.
21091
21092 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21093
21094         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
21095         (aarch64_save_callee_saves): New function to handle reg save
21096         for both core and vectore regs.
21097
21098 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21099
21100         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
21101         (aarch64_gen_store_pair): New helper function.
21102         (aarch64_save_or_restore_callee_save_registers)
21103         (aarch64_save_or_restore_fprs): Use new helper functions.
21104
21105 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21106
21107         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
21108         (aarch64_save_or_restore_callee_save_registers)
21109         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
21110
21111 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21112
21113         * config/aarch64/aarch64.c
21114         (aarch64_save_or_restore_callee_save_registers)
21115         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
21116
21117 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21118
21119         * config/aarch64/aarch64.c
21120         (aarch64_save_or_restore_callee_save_registers)
21121         (aarch64_save_or_restore_fprs): Remove 'increment'.
21122
21123 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21124
21125         * config/aarch64/aarch64.c
21126         (aarch64_save_or_restore_callee_save_registers)
21127         (aarch64_save_or_restore_fprs): Use register offset in
21128         cfun->machine->frame.reg_offset.
21129
21130 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21131
21132         * config/aarch64/aarch64.c
21133         (aarch64_save_or_restore_callee_save_registers)
21134         (aarch64_save_or_restore_fprs): Remove base_rtx.
21135
21136 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21137
21138         * config/aarch64/aarch64.c
21139         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
21140         to 'start_offset'.  Remove local variable 'start_offset'.
21141
21142 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21143
21144         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
21145         type to HOST_WIDE_INT.
21146
21147 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21148
21149         * config/aarch64/aarch64.c (aarch64_expand_prologue)
21150         (aarch64_save_or_restore_fprs)
21151         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
21152
21153 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21154
21155         * config/arm/t-rtems-eabi: Add
21156         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
21157         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
21158         mbig-endian/mthumb/march=armv7-r, and
21159         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
21160         multilibs.
21161
21162 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21163             Chris Johns <chrisj@rtems.org>
21164             Joel Sherrill <joel.sherrill@oarcorp.com>
21165
21166         * config.gcc: Add nios2-*-rtems*.
21167         * config/nios2/rtems.h: New file.
21168         * gcc/config/nios2/t-rtems: New file.
21169
21170 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
21171
21172         PR target/61396
21173         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
21174         constant numbers, not general constants.
21175         (rs6000_expand_vector_init): Ditto.
21176
21177 2014-07-23  Nathan Sidwell  <nathan@acm.org>
21178
21179         * gcov-tool.c (gcov_list): Declare here.
21180         (set_gcov_list): Remove.
21181         (gcov_output_files): Set gcov_list directly.
21182
21183 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
21184
21185         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
21186
21187 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
21188
21189         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
21190         callee-saved registers are available for padding purpose
21191         and r3 is not mandatory, then prefer use those callee-saved
21192         instead of r3.
21193
21194 2014-07-23  Richard Biener  <rguenther@suse.de>
21195
21196         * params.def (PARAM_MAX_COMBINE_INSNS): New.
21197         * combine.c: Include statistics.h and params.h.
21198         (combine_instructions): Guard three and four insn combines
21199         with max-combine-insns value.  Record statistics for combines
21200         performed.
21201         * doc/invoke.texi (max-combine-insns): Document new param.
21202
21203 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
21204
21205         * graphite-isl-ast-to-gimple.c:
21206         (translate_isl_ast_node_block): New function.
21207         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
21208
21209         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
21210         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
21211
21212 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
21213
21214         * graphite-isl-ast-to-gimple.c:
21215         (get_max_schedule_dimensions): New function.
21216         (extend_schedule): Likewise.
21217         (generate_isl_schedule): Add calling of extend_schedule and
21218         get_max_schedule_dimensions.
21219
21220 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21221
21222         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
21223         (case UNSPEC): Handle UNSPEC_RBIT.
21224
21225 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21226
21227         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
21228         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
21229
21230 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21231
21232         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
21233
21234 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
21235
21236         * graphite-isl-ast-to-gimple.c:
21237         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
21238         (ivs_params_clear):
21239         (build_iv_mapping): New function.
21240         (translate_isl_ast_node_user): Likewise.
21241         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
21242
21243         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
21244         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
21245         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
21246
21247 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
21248
21249         PR target/55701
21250         * config/arm/arm.md (setmem): New pattern.
21251         * config/arm/arm-protos.h (struct tune_params): New fields.
21252         (arm_gen_setmem): New prototype.
21253         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
21254         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
21255         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
21256         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
21257         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
21258         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
21259         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
21260         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
21261         (arm_const_inline_cost): New function.
21262         (arm_block_set_max_insns): New function.
21263         (arm_block_set_non_vect_profit_p): New function.
21264         (arm_block_set_vect_profit_p): New function.
21265         (arm_block_set_unaligned_vect): New function.
21266         (arm_block_set_aligned_vect): New function.
21267         (arm_block_set_unaligned_non_vect): New function.
21268         (arm_block_set_aligned_non_vect): New function.
21269         (arm_block_set_vect, arm_gen_setmem): New functions.
21270
21271 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
21272
21273         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
21274
21275 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
21276
21277         PR target/61855
21278         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
21279         out of #ifdef __OPTIMIZE__.
21280
21281 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
21282
21283         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
21284         different trapping status if -fnon-call-exceptions is enabled.
21285
21286 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
21287
21288         * expr.c (store_field): Handle VOIDmode for calls that return values
21289         in multiple locations.
21290
21291 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21292
21293         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
21294         (altivec_vsldoi_<mode>): Likewise.
21295
21296 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
21297
21298         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
21299         to the number of characters in the line.
21300
21301 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
21302
21303         * graphite-isl-ast-to-gimple.c: Add using of
21304         build_nonstandard_integer_type instead of int128_integer_type_node.
21305
21306 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
21307
21308         * toplev.c (output_stack_usage): Adjust the location of the warning.
21309
21310 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
21311
21312         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
21313         (*membar_storeload): Disable for LEON3.
21314
21315 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21316
21317         PR rtl-optimization/61461
21318         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
21319
21320 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
21321
21322         PR target/61794
21323         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
21324         Fix instruction constraint.
21325         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
21326
21327 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
21328
21329         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
21330
21331 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
21332
21333         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
21334         GNU coding standards.
21335         (nds32_register_move_cost): Likewise.
21336         (nds32_memory_move_cost): Likewise.
21337         (nds32_address_cost): Likewise.
21338
21339 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21340
21341         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
21342
21343 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
21344
21345         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
21346         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
21347         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
21348         (HAVE_sync_compare_and_swapqi): Define.
21349         (HAVE_sync_compare_and_swaphi): Likewise.
21350         (HAVE_sync_compare_and_swapsi): Likewise.
21351
21352 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
21353
21354         * config/mips/p5600.md: Add missing cpu tests.
21355
21356 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21357
21358         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
21359         (vmla_f64): Likewise.
21360         (vfms_f64): Likewise.
21361         (vmls_f64): Likewise.
21362
21363 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21364
21365         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
21366         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
21367
21368 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21369
21370         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
21371         (vmlal_high_lane_s32): Likewise.
21372         (vmlal_high_lane_u16): Likewise.
21373         (vmlal_high_lane_u32): Likewise.
21374         (vmlsl_high_lane_s16): Likewise.
21375         (vmlsl_high_lane_s32): Likewise.
21376         (vmlsl_high_lane_u16): Likewise.
21377         (vmlsl_high_lane_u32): Likewise.
21378
21379 2014-07-17  Terry Guo  <terry.guo@arm.com>
21380
21381         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
21382         (alus_reg): Renamed to alus_sreg.
21383         * config/arm/arm-fixed.md: Change type of non-dsp instructions
21384         from alu_reg to alu_sreg.  Change type of dsp instructions from
21385         alu_reg to alu_dsp_reg.
21386         * config/arm/thumb1.md: Likewise.
21387         * config/arm/thumb2.md: Likewise.
21388         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
21389         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
21390         with alu_sreg and alus_sreg.
21391         * config/arm/arm1026ejs.md (alu_op): Likewise.
21392         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
21393         * config/arm/arm926ejs.md (9_alu_op): Likewise.
21394         * config/arm/fa526.md (526_alu_op): Likewise.
21395         * config/arm/fa606te.md (606te_alu_op): Likewise.
21396         * config/arm/fa626te.md (626te_alu_op): Likewise.
21397         * config/arm/fa726te.md (726te_alu_op): Likewise.
21398         * config/arm/fmp626.md (mp626_alu_op): Likewise.
21399         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
21400         alu_sreg, alu_dsp_reg and alus_sreg.
21401         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
21402         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
21403         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
21404         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
21405         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
21406         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
21407         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
21408         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
21409         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
21410         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
21411         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
21412         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
21413         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
21414         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
21415         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
21416         alus_reg to alus_sreg.
21417
21418 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
21419
21420         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
21421         infinity format.
21422
21423 2014-07-17  Richard Biener  <rguenther@suse.de>
21424
21425         PR rtl-optimization/61801
21426         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
21427         don't set reg_pending_barrier if it appears in a debug-insn.
21428
21429 2014-07-16  DJ Delorie  <dj@redhat.com>
21430
21431         * config/rx/rx.c (rx_option_override): Fix alignment values.
21432         (rx_align_for_label): Likewise.
21433
21434 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
21435
21436         PR target/61737.
21437         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
21438         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
21439         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
21440         functions.
21441         (cris_print_index, cris_print_operand, cris_constant_index_p)
21442         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
21443         (cris_address_cost): Ditto last CONSTANT_P.
21444         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
21445         callers changed.  Yield cris_offsettable_symbol for non-PIC
21446         constant symbolic expressions including labels.  Yield cris_unspec
21447         for all unspecs.
21448         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
21449         target to pic_offset_table_rtx for calls that will likely go
21450         through PLT, const0_rtx when they can't.  All callers changed.
21451         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
21452         symbolic expressions to be PICified.  Remove second, redundant,
21453         assert on can_create_pseudo_p returning non-zero.  Use
21454         replace_equiv_address_nv, not replace_equiv_address, for final
21455         operand update.
21456         * config/cris/cris.md ("movsi"): Move variable t to pattern
21457         toplevel. Adjust assert for new cris_symbol_type member.  Use
21458         CONSTANT_P instead of CONSTANT_ADDRESS_P.
21459         ("*movsi_internal") <case 9>: Make check for valid unspec operands
21460         for lapc stricter.
21461         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
21462         ("call", "call_value"): Use second incoming operand as a marker
21463         for pic-offset-table-register being used.
21464         ("*expanded_call_non_v32", "*expanded_call_v32")
21465         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
21466         second incoming operand to CALL, match cris_call_type_marker.
21467         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
21468         ("*expanded_call_side"): Ditto.  Fix typo in comment.
21469         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
21470         CONSTANT_P.
21471         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
21472         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
21473         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
21474         users changed.  Add members cris_offsettable_symbol and cris_unspec.
21475         (cris_symbol_type): Rename from cris_pic_symbol_type.
21476         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
21477         just CONSTANT_P.
21478         * config/cris/cris-protos.h (cris_symbol_type_of,
21479         cris_expand_pic_call_address): Adjust prototypes.
21480         (cris_legitimate_constant_p): New prototype.
21481
21482         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
21483         an existing tmake_file.  Don't add t-slibgcc and t-linux.
21484
21485 2014-07-17  Jason Merrill  <jason@redhat.com>
21486
21487         PR c++/61623
21488         * symtab.c (symtab_remove_from_same_comdat_group): Also
21489         set_comdat_group to NULL_TREE.
21490         (verify_symtab): Fix diagnostic.
21491
21492 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
21493
21494         PR target/61662
21495         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
21496
21497 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
21498
21499         Support location tracking for built-in macro tokens
21500         * input.h (is_location_from_builtin_token): New function declaration.
21501         * input.c (is_location_from_builtin_token): New function definition.
21502         * toplev.c (general_init): Tell libcpp what the pre-defined
21503         spelling location for built-in tokens is.
21504
21505 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
21506
21507         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
21508         on the FUNCTION_DECL.
21509
21510 2014-07-16  Richard Biener  <rguenther@suse.de>
21511
21512         PR other/61782
21513         * doc/extend.texi (always_inline): Clarify.
21514
21515 2014-07-15  Eric Christopher  <echristo@gmail.com>
21516
21517         * doc/invoke.texi (Link Options): Document -z option.
21518
21519 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
21520
21521         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
21522         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
21523
21524 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
21525
21526         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
21527
21528 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
21529
21530         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
21531         varpool_assemble_decl.
21532         * varpool.c (varpool_assemble_decl): Assert that node->definition is
21533         true.
21534
21535 2014-07-15  Michael Matz  <matz@suse.de>
21536
21537         PR rtl-optimization/61772
21538         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
21539
21540 2014-07-15  Richard Biener  <rguenther@suse.de>
21541
21542         * opts.c (default_options_table): Disable bit-ccp at -Og.
21543
21544 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
21545
21546         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
21547
21548 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
21549
21550         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
21551         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
21552         call langhook for unknown declaration.
21553         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
21554         * tree.h (DECL_ARGUMENTS): Update.
21555         * print-tree.c (print_node): Update.
21556         * tree-core.h (tree_decl_non_common): Remove arguments.
21557         (tree_function_decl): Add arguments.
21558
21559 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
21560
21561         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
21562
21563 2014-07-14  Richard Biener  <rguenther@suse.de>
21564
21565         PR tree-optimization/61779
21566         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
21567         simplifying a condition.
21568
21569 2014-07-14  Richard Biener  <rguenther@suse.de>
21570
21571         * builtins.c (c_strlen): Make only_value == 2 really only
21572         affect warning generation.
21573
21574 2014-07-14  Richard Biener  <rguenther@suse.de>
21575
21576         PR tree-optimization/61757
21577         PR tree-optimization/61783
21578         PR tree-optimization/61787
21579         * tree-ssa-dom.c (record_equality): Revert canonicalization
21580         change and add comment.
21581         (propagate_rhs_into_lhs): Revert previous fix, removing
21582         loop depth restriction again.
21583
21584 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21585
21586         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
21587         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
21588         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
21589         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
21590         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
21591         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
21592         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
21593
21594 2014-07-14  Richard Biener  <rguenther@suse.de>
21595
21596         * cgraph.h (decl_in_symtab_p): Make inline.
21597
21598 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
21599
21600         PR middle-end/61294
21601         * doc/invoke.texi (-Wmemset-transposed-args): Document.
21602
21603         PR target/61656
21604         * config/i386/i386.c (classify_argument): Don't merge classes above
21605         number of words.
21606
21607 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
21608
21609         * cgraph.h (symtab_node): Add nonzero_address.
21610         (decl_in_symtab_p): Break out from ...
21611         (symtab_get_node): ... here.
21612         * fold-const.c: Include cgraph.h
21613         (tree_single_nonzero_warnv_p): Use symtab to determine
21614         if symbol is non-zero.
21615         * symtab.c (symtab_node::nonzero_address): New method.
21616
21617 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
21618
21619         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
21620         forgotten in previous commit.
21621
21622 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
21623
21624         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
21625         on builtin types.
21626         * ipa-devirt.c: Include stor-layout.h and intl.h
21627         (odr_subtypes_equivalent_p): New function.
21628         (warn_odr): New function.
21629         (warn_type_mismatch): New function.
21630         (odr_types_equivalent_p): New function.
21631         (add_type_duplicate): Use it.
21632         * common.opt (Wodr): New flag.
21633         * doc/invoke.texi (Wodr): Document new warning.
21634
21635 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
21636
21637         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
21638         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
21639         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
21640         (varpool_get_constructor): Push CTORS_IN timevar.
21641         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
21642
21643 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
21644
21645         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
21646         Remove VOID_FTYPE_PUSHORT.
21647         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
21648         Change code to USHORT_FTYPE_VOID.
21649         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
21650         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
21651         (ix86_atomic_assign_expand_fenv): Update for
21652         __builtin_ia32_fnstsw changes.
21653         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
21654         (fnstsw): Change operand 0 to nonimmediate operand.
21655
21656 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
21657
21658         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
21659         (varpool_get_constructor): New function.
21660         (varpool_ctor_useable_for_folding_p): Break out from ...
21661         (ctor_for_folding): ... here; use varpool_get_constructor.
21662         (varpool_assemble_decl): Likewise.
21663         * lto-streamer.h (struct output_block): Turn cgraph_node
21664         to symbol filed.
21665         (lto_input_variable_constructor): Declare.
21666         * ipa-visibility.c (function_and_variable_visibility): Use
21667         varpool_get_constructor.
21668         * cgraph.h (varpool_get_constructor): Declare.
21669         (varpool_ctor_useable_for_folding_p): New function.
21670         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
21671         parameter; return error_mark_node for non-trivial constructors.
21672         (lto_write_tree_1, DFS_write_tree): Update use of
21673         get_symbol_initial_value.
21674         (output_function): Update initialization of symbol.
21675         (output_constructor): New function.
21676         (copy_function): Rename to ..
21677         (copy_function_or_variable): ... this one; handle vars too.
21678         (lto_output): Output variable sections.
21679         * lto-streamer-in.c (input_constructor): New function.
21680         (lto_read_body): Rename from ...
21681         (lto_read_body_or_constructor): ... this one; handle vars too.
21682         (lto_input_variable_constructor): New function.
21683         * ipa-prop.c (ipa_prop_write_jump_functions,
21684         ipa_prop_write_all_agg_replacement): Update.
21685         * lto-cgraph.c (compute_ltrans_boundary): Use it.
21686         (output_cgraph_opt_summary): Set symbol to NULL.
21687
21688 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
21689
21690         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
21691         non-polymorphic types.
21692         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
21693         * ipa-devirt.c (types_same_for_odr): Do not explode when one
21694         of types is not polymorphic.
21695
21696 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
21697
21698         * lra-constraints.c (remove_inheritance_pseudos): Process
21699         destination pseudo too.
21700
21701 2014-07-11  Rong Xu  <xur@google.com>
21702
21703         * gcov-tool.c (gcov_output_files): Fix build error introduced in
21704         commit r212448.
21705
21706 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
21707
21708         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
21709         * config/avr/avr-devices.c (AVR_MCU): Same.
21710         (avr_mcu_types): add text start value to end of device list.
21711         * config/avr/avr-mcus.def: Add text section start for all devices.
21712         (ata5782): Add new avr5 device.
21713         (ata5831): Same.
21714         * config/avr/avr-tables.opt: Regenerate.
21715         * config/avr/avr.h: Add declaration for text section start handler.
21716         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
21717         SPEC functions.
21718         (LINK_SPEC): Include text section start handler to linker spec.
21719         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
21720         pass -Ttext option to linker if the text section start for the device
21721         is not zero.
21722         * config/avr/t-multilib: Regenerate.
21723         * doc/avr-mmcu.texi: Regenerate.
21724
21725 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
21726
21727         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
21728         * config/rs6000/aix52.h (LINK_SPEC): Same.
21729         * config/rs6000/aix53.h (LINK_SPEC): Same.
21730         * config/rs6000/aix61.h (LINK_SPEC): Same.
21731         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
21732
21733 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
21734
21735         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
21736         (graphite_verify): New function.
21737         (ivs_params_clear): New function.
21738         (gcc_expression_from_isl_ast_expr_id): New function.
21739         (gcc_expression_from_isl_expr_int): New function.
21740         (binary_op_to_tree): New function.
21741         (ternary_op_to_tree): New function.
21742         (unary_op_to_tree): New function.
21743         (nary_op_to_tree): New function.
21744         (gcc_expression_from_isl_expr_op): New function.
21745         (gcc_expression_from_isl_expression): New function.
21746         (graphite_create_new_loop): New function.
21747         (translate_isl_ast_for_loop): New function.
21748         (get_upper_bound): New function.
21749         (graphite_create_new_loop_guard): New function.
21750         (translate_isl_ast_node_for): New function.
21751         (translate_isl_ast): New function.
21752         (add_parameters_to_ivs_params): New function.
21753         (scop_to_isl_ast): New parameter ip.
21754         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
21755
21756 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
21757
21758         * config/xtensa/predicates.md (call expander): Update for
21759         DECL_SECTION_NAME being string.
21760
21761 2014-07-11  Richard Biener  <rguenther@suse.de>
21762
21763         PR middle-end/61473
21764         * builtins.c (fold_builtin_memory_op): Inline memory moves that
21765         can be implemented with a single load followed by a single store.
21766         (c_strlen): Only warn when only_value is not 2.
21767
21768 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
21769
21770         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
21771
21772 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
21773
21774         PR target/61561
21775         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
21776         (*movhi_bytes): Likewise.
21777         (*arm_movqi_insn): Likewise.
21778
21779 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
21780
21781         PR target/56858
21782         * config/alpha/alpha.c: Include tree-pass.h, context.h
21783         and pass_manager.h.
21784         (pass_data_handle_trap_shadows): New pass.
21785         (pass_handle_trap_shadows::gate): New pass gate function.
21786         (make_pass_handle_trap_shadows): New function.
21787         (rest_of_handle_trap_shadows): Ditto.
21788
21789         (alpha_align_insns_1): Rename from alpha_align_insns.
21790         (pass_data_align_insns): New pass.
21791         (pass_align_insns::gate): New pass gate function.
21792         (make_pass_aling_insns): New function.
21793         (rest_of_align_insns): Ditto.
21794         (alpha_align_insns): Ditto.
21795
21796         (alpha_option_override): Declare handle_trap_shadows info
21797         and align_insns_info.  Register handle_trap_shadows and align_insns
21798         passes here.
21799         (alpha_reorg): Do not call alpha_trap_shadows and
21800         alpha_align_insn from here.
21801
21802         (alpha_pad_function_end): Do not skip BARRIERs.
21803
21804 2014-07-10  Rong Xu  <xur@google.com>
21805
21806         Add gcov-tool: an offline gcda profile processing tool support.
21807         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
21808         (gcov_is_error): Ditto.
21809         (gcov_read_string): Ditto.
21810         (gcov_read_sync): Ditto.
21811         * gcov-io.h: Move counter defines to gcov-counter.def.
21812         * gcov-dump.c (tag_counters): Use gcov-counter.def.
21813         * coverage.c: Ditto.
21814         * gcov-tool.c: Offline gcda profile processing tool.
21815         (unlink_gcda_file): Remove one gcda file.
21816         (unlink_profile_dir): Remove gcda files from the profile path.
21817         (gcov_output_files): Output gcda files to an output dir.
21818         (profile_merge): Merge two profiles in directory.
21819         (print_merge_usage_message): Print merge usage.
21820         (merge_usage): Print merge usage and exit.
21821         (do_merge): Driver for profile merge sub-command.
21822         (profile_rewrite): Rewrite profile.
21823         (print_rewrite_usage_message): Print rewrite usage.
21824         (rewrite_usage): Print rewrite usage and exit.
21825         (do_rewrite): Driver for profile rewrite sub-command.
21826         (print_usage): Print gcov-info usage and exit.
21827         (print_version): Print gcov-info version.
21828         (process_args): Process arguments.
21829         (main): Main routine for gcov-tool.
21830         * Makefile.in: Build and install gcov-tool.
21831         * gcov-counter.def: New file split from gcov-io.h.
21832         * doc/gcc.texi: Include gcov-tool.texi.
21833         * doc/gcov-tool.texi: Document for gcov-tool.
21834
21835 2014-07-10  Richard Biener  <rguenther@suse.de>
21836
21837         PR tree-optimization/61757
21838         * tree-ssa-dom.c (loop_depth_of_name): Restore.
21839         (propagate_rhs_into_lhs): Revert part of last change.
21840
21841 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
21842
21843         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
21844         FUNCTION_DECLs.
21845
21846 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
21847
21848         PR middle-end/53590
21849         * function.c (allocate_struct_function): Revert r188667 change.
21850
21851         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
21852
21853 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
21854
21855         * doc/install.texi: Remove links to defunct package providers for
21856         Solaris.
21857
21858 2014-07-09  Tom de Vries  <tom@codesourcery.com>
21859
21860         * final.c (get_call_fndecl): Declare.
21861         (self_recursive_call_p): New function.
21862         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
21863
21864 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21865
21866         * ipa-devirt.c (record_node): Walk through aliases.
21867
21868 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21869
21870         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
21871
21872 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21873
21874         Revert:
21875         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
21876
21877 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21878
21879         * ipa-visibility.c (function_and_variable_visibility): Remove
21880         temporary hack disabling local aliases on AIX.
21881
21882 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21883
21884         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
21885         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
21886
21887 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21888
21889         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
21890         * rs6000/rs6000.c: Inline output of .set instruction.
21891         (declare_alias_data): New struct.
21892         (rs6000_declare_alias): New function.
21893         (rs6000_xcoff_declare_function_name): Use it.
21894         (rs6000_xcoff_declare_object_name): New function.
21895         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
21896         (ASM_OUTPUT_DEF): Turn to empty definition.
21897
21898 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
21899
21900         PR bootstrap/61679
21901         * hash-table.h: use hash_table::value_type instead of
21902         Descriptor::value_type in the return types of several methods.
21903
21904 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
21905
21906         * tree-pass.h (pass_data): Remove has_execute member.
21907         * passes.c (execute_one_pass): Don't check pass->has_execute.
21908         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
21909         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
21910         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
21911         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
21912         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
21913         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
21914         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
21915         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
21916         gimple-low.c, gimple-ssa-isolate-paths.c,
21917         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
21918         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
21919         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
21920         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
21921         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
21922         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
21923         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
21924         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
21925         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
21926         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
21927         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
21928         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
21929         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
21930         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
21931         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
21932         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
21933         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
21934         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
21935         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
21936         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
21937         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
21938         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
21939         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
21940         web.c: Remove initializer for pass_data::has_execute.
21941
21942 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
21943
21944         * graphite-htab.h: Use hash_map instead of hash_table.
21945         * graphite-clast-to-gimple.c: Adjust.
21946         * passes.c: Use hash_map instead of hash_table.
21947         * sese.c: Likewise.
21948         * sese.h: Remove now unused code.
21949
21950 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
21951
21952         PR target/61599
21953         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
21954         than zero.
21955
21956 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
21957
21958         PR rtl-optimization/61673
21959         * combine.c (simplify_comparison): Test just mode's sign bit
21960         in tmode rather than the sign bit and any bits above it.
21961
21962 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
21963
21964         * graphite-isl-ast-to-gimple.c (generate_isl_context):
21965         Add __isl_give to the declaration.
21966         (generate_isl_schedule): Likewise.
21967         (scop_to_isl_ast): Likewise.
21968
21969 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21970
21971         * config/arm/arm.c (cortexa5_extra_costs): New table.
21972         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
21973
21974 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
21975
21976         PR tree-optimization/61725
21977         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
21978         range, use range_includes_zerop_p instead of integer_zerop on
21979         vr0->min, only use log2 of max if min is not negative.
21980
21981 2014-07-08  Richard Biener  <rguenther@suse.de>
21982
21983         * tree-ssa-dom.h (loop_depth_of_name): Remove.
21984         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
21985         restriction on loop depth difference.
21986         (record_equality): Likewise.
21987         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
21988         (loop_depth_of_name): Remove.
21989         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
21990         restriction on loop depth difference.
21991         (init_copy_prop): Likewise.
21992
21993 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
21994
21995         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
21996         parameter.
21997         (walk_aliased_vdefs): Likewise.
21998         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
21999         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
22000         (detect_type_change_from_memory_writes): Check if entry was reached.
22001
22002 2014-07-08  Richard Biener  <rguenther@suse.de>
22003
22004         PR tree-optimization/61681
22005         * tree-ssa-structalias.c (find_what_var_points_to): Expand
22006         NONLOCAL inside ESCAPED.
22007
22008 2014-07-08  Richard Biener  <rguenther@suse.de>
22009
22010         PR tree-optimization/61680
22011         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
22012         Handle properly all read-write dependences with group accesses.
22013
22014 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
22015
22016         PR tree-optimization/61576
22017         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
22018         block containing reduction statement is predecessor of phi basi block.
22019
22020 2014-07-08  Marek Polacek  <polacek@redhat.com>
22021
22022         PR c/60226
22023         * fold-const.c (round_up_loc): Change the parameter type.
22024         Remove assert.
22025         * fold-const.h (round_up_loc): Adjust declaration.
22026         * stor-layout.c (finalize_record_size): Check for too large types.
22027
22028 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
22029
22030         * symtab.c: Include calls.h.
22031         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
22032
22033 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
22034
22035         * config/rs6000/rs6000.c (output_vec_const_move): Handle
22036         little-endian code generation.
22037         * config/rs6000/spe.md (spe_evmergehi): Rename to...
22038         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
22039         (spe_evmergehilo): Rename to...
22040         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
22041         (spe_evmergelo): Rename to...
22042         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
22043         (spe_evmergelohi): Rename to...
22044         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
22045         (spe_evmergehi, spe_evmergehilo): New expanders.
22046         (spe_evmergelo, spe_evmergelohi): Likewise.
22047         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
22048         (*frob_tf_ti): Likewise.
22049         (*frob_<mode>_di_2): Likewise.
22050         (*frob_tf_di_8_2): Likewise.
22051         (*frob_di_<mode>): Likewise.
22052         (*frob_ti_tf): Likewise.
22053         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
22054         (*frob_ti_<mode>_8_2): Likewise.
22055         (*frob_ti_tf_2): Likewise.
22056         (mov_si<mode>_e500_subreg0): Rename to...
22057         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
22058         endianness only.
22059         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
22060         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
22061         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
22062         the big endianness only.
22063         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
22064         (*mov_si<mode>_e500_subreg0_2): Rename to...
22065         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
22066         big big endianness only.
22067         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
22068         (*mov_si<mode>_e500_subreg4): Rename to...
22069         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
22070         endianness only.
22071         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
22072         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
22073         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
22074         the big endianness only.
22075         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
22076         pattern.
22077         (*mov_si<mode>_e500_subreg4_2): Rename to...
22078         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
22079         endianness only.
22080         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
22081         (*mov_sitf_e500_subreg8): Rename to...
22082         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
22083         endianness only.
22084         (*mov_sitf_e500_subreg8_le): New instruction pattern.
22085         (*mov_sitf_e500_subreg8_2): Rename to...
22086         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
22087         endianness only.
22088         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
22089         (*mov_sitf_e500_subreg12): Rename to...
22090         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
22091         endianness only.
22092         (*mov_sitf_e500_subreg12_le): New instruction pattern.
22093         (*mov_sitf_e500_subreg12_2): Rename to...
22094         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
22095         endianness only.
22096         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
22097
22098 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
22099
22100         * asan.c (instrument_strlen_call): Do not instrument first byte
22101         in strlen if already instrumented.
22102
22103 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22104
22105         * config/arm/arm.opt (mwords-little-endian): Delete.
22106         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
22107         of TARGET_LITTLE_WORDS.
22108         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
22109         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
22110         warning.
22111         * doc/invoke.texi: Remove references to -mwords-little-endian.
22112
22113 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
22114
22115         * expmed.c (struct init_expmed_rtl): Change all fields but
22116         pow2 and cint from struct rtx_def to rtx.
22117         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
22118         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
22119         at the end again.
22120
22121 2014-07-06  Marek Polacek  <polacek@redhat.com>
22122
22123         PR c/6940
22124         * doc/invoke.texi: Document -Wsizeof-array-argument.
22125
22126 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
22127
22128         * wide-int.h (wide_int_storage): Change declaration from struct
22129         to class.
22130
22131 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
22132
22133         * cgraph.c (cgraph_create_indirect_edge): Update call of
22134         get_polymorphic_call_info.
22135         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
22136         (possible_polymorphic_call_targets): Add parameter call.
22137         (decl_maybe_in_construction_p): New predicate.
22138         (get_polymorphic_call_info): Add parameter call;
22139         use decl_maybe_in_construction_p.
22140         * gimple-fold.c (fold_gimple_assign): Update use of
22141         possible_polymorphic_call_targets.
22142         (gimple_fold_call): Likewise.
22143         * ipa-prop.c: Inlcude calls.h
22144         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
22145         (param_type_may_change_p): New predicate.
22146         (detect_type_change_from_memory_writes): Break out from ...
22147         (detect_type_change): ... this one; use param_type_may_change_p.
22148         (detect_type_change_ssa): Use param_type_may_change_p.
22149         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
22150
22151 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
22152
22153         PR target/49423
22154         * config/arm/arm-protos.h (arm_legitimate_address_p,
22155         arm_is_constant_pool_ref): Add prototypes.
22156         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
22157         (arm_is_constant_pool_ref) New function.
22158         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
22159         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
22160         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
22161         operand. Remove pool_range and neg_pool_range attributes.
22162         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
22163         pool_range and neg_pool_range attributes.
22164         * config/arm/constraints.md (Uh): New constraint.
22165         (Uq): Don't allow constant pool references.
22166
22167 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
22168
22169         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
22170         (move_lo_quad_internal_be_<mode>): Likewise.
22171         (move_lo_quad_<mode>): Convert to define_expand.
22172         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
22173         (aarch64_simd_move_hi_quad_be_<mode>): New.
22174         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
22175         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
22176         (aarch64_combinez_be<mode>): New.
22177         (aarch64_combine<mode>): Convert to define_expand.
22178         (aarch64_combine_internal<mode>): New.
22179         (aarch64_simd_combine<mode>): Remove bogus RTL description.
22180
22181 2014-07-04  Tom de Vries  <tom@codesourcery.com>
22182
22183         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
22184         combination of earlyclobber and read/write modifiers.
22185
22186 2014-07-04  Tom de Vries  <tom@codesourcery.com>
22187
22188         * config/aarch64/aarch64-simd.md
22189         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
22190
22191 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
22192
22193         PR target/61714
22194         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
22195
22196 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
22197
22198         PR middle-end/61654
22199         * cgraphunit.c (expand_thunk): Call free_dominance_info.
22200
22201         PR tree-optimization/61684
22202         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
22203         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
22204
22205 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22206             Kito Cheng  <kito@0xlab.org>
22207             Monk Chiang  <sh.chiang04@gmail.com>
22208
22209         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
22210         (nds32_symbol_load_store_p): Move to ...
22211         (nds32_fp_as_gp_check_available): Move to ...
22212         * config/nds32/nds32-fp-as-gp.c: ... here.
22213         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
22214         extern declaration.
22215
22216 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22217             Kito Cheng  <kito@0xlab.org>
22218             Monk Chiang  <sh.chiang04@gmail.com>
22219
22220         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
22221         (nds32_expand_store_multiple): Move to ...
22222         (nds32_expand_movmemqi): Move to ...
22223         * config/nds32/nds32-memory-manipulation.c: ... here.
22224
22225 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22226             Kito Cheng  <kito@0xlab.org>
22227             Monk Chiang  <sh.chiang04@gmail.com>
22228
22229         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
22230         (nds32_output_casesi_pc_relative): Move to ...
22231         (nds32_output_casesi): Move to ...
22232         (nds32_mem_format): Move to ...
22233         (nds32_output_16bit_store): Move to ...
22234         (nds32_output_16bit_load): Move to ...
22235         (nds32_output_32bit_store): Move to ...
22236         (nds32_output_32bit_load): Move to ...
22237         (nds32_output_32bit_load_s): Move to ...
22238         (nds32_output_stack_push): Move to ...
22239         (nds32_output_stack_pop): Move to ...
22240         * config/nds32/nds32-md-auxiliary.c: ... here.
22241
22242 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22243             Ling-Hua Tseng  <uranus@tinlans.org>
22244
22245         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
22246         the purpose of this file.
22247
22248 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22249             Kito Cheng  <kito@0xlab.org>
22250             Monk Chiang  <sh.chiang04@gmail.com>
22251
22252         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
22253         (nds32_address_cost): Move implementation to ...
22254         * config/nds32/nds32-cost.c: ... here.
22255         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
22256         (nds32_address_cost_impl): Declare.
22257
22258 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22259             Kito Cheng  <kito@0xlab.org>
22260             Monk Chiang  <sh.chiang04@gmail.com>
22261
22262         * config/nds32/nds32.c
22263         (nds32_consecutive_registers_load_store_p): Move to ...
22264         (nds32_valid_multiple_load_store): Move to ...
22265         (nds32_valid_stack_push_pop): Move to ...
22266         (nds32_can_use_bclr_p): Move to ...
22267         (nds32_can_use_bset_p): Move to ...
22268         (nds32_can_use_btgl_p): Move to ...
22269         (nds32_can_use_bitci_p): Move to ...
22270         * config/nds32/nds32-predicates.c: ... here.
22271
22272 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22273             Kito Cheng  <kito@0xlab.org>
22274             Monk Chiang  <sh.chiang04@gmail.com>
22275
22276         * config/nds32/nds32.c
22277         (nds32_expand_builtin_null_ftype_reg): Move to ...
22278         (nds32_expand_builtin_reg_ftype_imm): Move to ...
22279         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
22280         (nds32_init_builtins): Move implementation to ...
22281         (nds32_expand_builtin): Move implementation to ...
22282         * config/nds32/nds32-intrinsic.c: ... here.
22283         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
22284         (nds32_expand_builtin_impl): Declare.
22285
22286 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22287             Kito Cheng  <kito@0xlab.org>
22288             Monk Chiang  <sh.chiang04@gmail.com>
22289
22290         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
22291         (nds32_emit_section_tail_template): Move to ...
22292         (nds32_emit_isr_jmptbl_section): Move to ...
22293         (nds32_emit_isr_vector_section): Move to ...
22294         (nds32_emit_isr_reset_conten): Move to ...
22295         (nds32_check_isr_attrs_conflict): Move to ...
22296         (nds32_construct_isr_vectors_information): Move to ...
22297         (nds32_asm_file_start): Move implementation to ...
22298         (nds32_asm_file_end): Move implementation to ...
22299         * config/nds32/nds32-isr.c: ... here.
22300         * config/nds32/nds32-protos.h
22301         (nds32_check_isr_attrs_conflict): Declare.
22302         (nds32_construct_isr_vectors_information): Declare.
22303         (nds32_asm_file_start_for_isr): Declare.
22304         (nds32_asm_file_end_for_isr): Declare.
22305
22306 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22307             Kito Cheng  <kito@0xlab.org>
22308             Monk Chiang  <sh.chiang04@gmail.com>
22309
22310         * config.gcc (nds32*): Add new modules to extra_objs.
22311         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
22312         (nds32be-*-*): Likewise.
22313         * config/nds32/nds32-cost.c: New file.
22314         * config/nds32/nds32-fp-as-gp.c: New file.
22315         * config/nds32/nds32-intrinsic.c: New file.
22316         * config/nds32/nds32-isr.c: New file.
22317         * config/nds32/nds32-md-auxiliary.c: New file.
22318         * config/nds32/nds32-memory-manipulation.c: New file.
22319         * config/nds32/nds32-pipelines-auxiliary.c: New file.
22320         * config/nds32/nds32-predicates.c: New file.
22321         * config/nds32/t-nds32: New file.
22322
22323 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
22324
22325         PR tree-optimization/61682
22326         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
22327         using cases and when one of the operands is equal to 1.
22328
22329 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
22330
22331         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
22332         ashr<mode>3): Correct mode of operands[2].
22333         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
22334         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
22335         Correct mode of operands[2].  Fix split condition.
22336
22337 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
22338
22339         * arm.md (arch): Add armv6_or_vfpv3.
22340         (arch_enabled): Add test for the above.
22341         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
22342         on VFP9.
22343         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
22344
22345 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
22346
22347         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
22348         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
22349         HWI 1 and negate the unsigned value.
22350         * expmed.c (expand_sdiv_pow2): For modes wider than word always
22351         use AND instead of shift.
22352         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
22353
22354 2014-07-03  Marek Polacek  <polacek@redhat.com>
22355
22356         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
22357         (-fsanitize=float-divide-by-zero): Move to the table with
22358         -fsanitize=undefined suboptions.
22359         (-fsanitize=float-cast-overflow): Likewise.
22360
22361 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
22362
22363         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
22364         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
22365         endianness.
22366
22367 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22368
22369         * loop-invariant.c (struct invariant): Add a new member: eqno;
22370         (find_identical_invariants): Update eqno;
22371         (create_new_invariant): Init eqno;
22372         (get_inv_cost): Compute comp_cost with eqno;
22373
22374 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
22375
22376         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
22377         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
22378         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
22379         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
22380         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
22381
22382 2014-07-02  Christian Bruel  <christian.bruel@st.com>
22383
22384         PR target/29349
22385         PR target/53513
22386         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
22387         (make_preds_opaque): Delete.
22388         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
22389         (commit_mode_sets): New function.
22390         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
22391         Process all modes at once.
22392         * basic-block.h (pre_edge_lcm_avs): Declare.
22393         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
22394         Call clear_aux_for_edges. Fix comments.
22395         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
22396         (pre_edge_rev_lcm): Idem.
22397         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
22398         parameter.
22399         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
22400         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
22401         Idem.
22402         * config/i386/i386.c (x96_emit_mode_set): Idem.
22403         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
22404         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
22405         (fpscr_toggle) Disallow from delay slot.
22406         * target.def (emit_mode_set): Add prev_mode parameter.
22407         * doc/tm.texi: Regenerate.
22408
22409 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22410
22411         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
22412         variable i.
22413
22414 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
22415
22416         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
22417         vtable_pointer_value_to_vtable): Constify.
22418         (contains_polymorphic_type_p): Declare.
22419         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
22420         vtable_pointer_value_to_vtable): Constify.
22421         (contains_polymorphic_type_p): New predicate.
22422         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
22423         polymorphic types.
22424         (ipa_set_ancestor_jf): Likewise.
22425         (detect_type_change): Return false in easy cases.
22426         (compute_complex_assign_jump_func): Require type to contain
22427         polymorphic type.
22428         (compute_known_type_jump_func): Likewise.
22429
22430 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
22431
22432         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
22433         Remove.
22434         (type_in_anonymous_namespace_p): Constify argument.
22435         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
22436         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
22437         (main_odr_variant): New function.
22438         (hash_type_name): Make static; update assert; do not ICE on
22439         non-records.
22440         (types_same_for_odr): Bring here from tree.c; simplify and remove
22441         old structural comparing code that doesn't work for templates.
22442         (odr_hasher::equal): Update assert.
22443         (add_type_duplicate): Return true when bases should be computed;
22444         replace incomplete loader by complete; do not output duplicated
22445         warnings; do not ICE on non-records; set odr_violated flag.
22446         (get_odr_type): Be ready to replace incomplete type by complete
22447         one; work on ODR variants instead of main variants; reorder item
22448         in array so bases have still smaller indexes.
22449         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
22450         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
22451
22452 2014-07-01  Cary Coutant  <ccoutant@google.com>
22453
22454         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
22455         lookup.
22456         (resolve_addr_in_expr): When replacing the rtx in a location list
22457         entry, get a new address table entry.
22458         (dwarf2out_finish): Call index_location_lists even if there are no
22459         addr_index_table entries yet.
22460
22461 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
22462
22463         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
22464         change for not being obvious.
22465
22466 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
22467
22468         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
22469         unused argument.
22470
22471 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22472
22473         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
22474         (vcagt_f64): Likewise.
22475         (vcale_f64): Likewise.
22476         (vcaled_f64): Likewise.
22477         (vcales_f32): Likewise.
22478         (vcalt_f64): Likewise.
22479         (vcaltd_f64): Likewise.
22480         (vcalts_f32): Likewise.
22481
22482 2014-07-01  Marek Polacek  <polacek@redhat.com>
22483
22484         * doc/invoke.texi: Document -Wint-conversion.
22485
22486 2014-07-01  Marek Polacek  <polacek@redhat.com>
22487
22488         PR c/58286
22489         * doc/invoke.texi: Document -Wincompatible-pointer-types.
22490
22491 2014-07-01  Martin Liska  <mliska@suse.cz>
22492
22493         IPA REF alias refactoring
22494         * cgraph.h (iterate_direct_aliases): New function.
22495         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
22496         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
22497         FOR_EACH_ALIAS added.
22498         (cgraph_for_node_and_aliases): Likewise.
22499         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
22500         * ipa-inline.c (reset_edge_caches): Likewise.
22501         (update_caller_keys): Likewise.
22502         * trans-mem.c (ipa_tm_execute): Likewise.
22503         *varpool.c (varpool_analyze_node): Likewise.
22504         (varpool_for_node_and_aliases): Likewise.
22505         * ipa-ref.h (first_alias): New function.
22506         (last_alias): Likewise.
22507         (has_aliases_p): Likewise.
22508         * ipa-ref.c (ipa_ref::remove_reference): Removal function
22509         is sensitive to IPA_REF_ALIASes.
22510         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
22511         are put at the beginning of the list.
22512         (symtab_node::iterate_direct_aliases): New function.
22513
22514 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
22515
22516         Revert:
22517         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
22518         type is complete.
22519         (write_ts_type_common_tree_pointers): Do not stream fields not set
22520         for incomplete types; do not stream duplicated fields for variants;
22521         sanity check that variant and type match.
22522         (write_ts_type_non_common_tree_pointers): Likewise.
22523         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
22524         TYPE_SIZE whether type is complete.
22525         (lto_input_ts_type_common_tree_pointers): Do same changes as in
22526         write_ts_type_common_tree_pointers
22527         (lto_input_ts_type_non_common_tree_pointers): Likewise.
22528
22529 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
22530
22531         * var-tracking.c (add_stores): Return instead of asserting if old
22532         and new values for conditional store are the same.
22533
22534 2014-06-30  Richard Henderson  <rth@redhat.com>
22535
22536         PR rtl-opt/61608
22537         PR target/39284
22538         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
22539         the cfg if there were any changes.
22540         * passes.def: Revert move of peephole2 after reorder_blocks;
22541         move duplicate_computed_gotos before peephole2.
22542
22543 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
22544
22545         * except.c (emit_note_eh_region_end): New helper function.
22546         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
22547         emit EH_REGION_END note.
22548         * jump.c (cleanup_barriers): Do not split a call and its
22549         corresponding CALL_ARG_LOCATION note.
22550
22551 2014-06-30  Jeff Law  <law@redhat.com>
22552
22553         PR tree-optimization/61607
22554         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
22555         deeper into the SSA_NAME_VALUE chain.
22556
22557 2014-06-30  Marek Polacek  <polacek@redhat.com>
22558
22559         * convert.c (convert_to_integer): Don't instrument conversions if the
22560         function has no_sanitize_undefined attribute.
22561         * ubsan.c: Don't run the ubsan pass if the function has
22562         no_sanitize_undefined attribute.
22563
22564 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
22565
22566         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
22567         -fsanitize=undefined suboptions.
22568
22569 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
22570
22571         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
22572         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
22573         against bigendian and adjust indices.
22574
22575 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
22576
22577         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
22578
22579 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22580
22581         PR target/61633
22582         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
22583         Add alternative; make early clobber.  Adjust both split patterns
22584         to use operand 0 as the working register.
22585
22586 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
22587
22588         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
22589         as ira_object_id_map might be NULL, or 1.
22590
22591 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22592
22593         * loop-invariant.c (get_inv_cost): Handle register class.
22594         (gain_for_invariant): Check the register pressure of the inv
22595         and its overlapped register class, other than all.
22596
22597 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
22598
22599         * doc/invoke.texi (Optimize Options): Fix descriptions of
22600         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
22601
22602 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
22603
22604         * doc/extend.texi (Function Attributes): Update 'naked' attribute
22605         documentation.
22606
22607 2014-06-29  Tobias Grosser <tobias@grosser.es>
22608
22609         PR bootstrap/61650
22610         * graphite-isl-ast-to-gimple.c: Add missing guards.
22611
22612 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
22613
22614         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
22615         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
22616         * flag-types.h: Add new enum fgraphite_generator.
22617         * graphite-isl-ast-to-gimple.c: New.
22618         * graphite-isl-ast-to-gimple.h: New.
22619         * graphite.c (graphite_transform_loops): Add choice of Graphite
22620         code generator, which depends on flag_graphite_code_gen.
22621
22622 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
22623
22624         * graphite-dependences.c (subtract_commutative_associative_deps):
22625         Add NULL checking of the following variables: must_raw_no_source,
22626         may_raw_no_source, must_war_no_source, may_war_no_source,
22627         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
22628         must_war, may_war, must_waw, may_waw.
22629
22630 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
22631
22632         * graphite-clast-to-gimple.c: gloog is renamed to
22633         graphite_regenerate_ast_cloog.  gloog_error is renamed to
22634         graphite_regenerate_error.
22635         * graphite-clast-to-gimple.h: The definition of the struct
22636         bb_pbb_def is moved to graphite-htab.h.
22637         Add inclusion of the hash-table.h.
22638         * graphite-htab.h: The declaration of the function gloog is moved
22639         to graphite-clast-to-gimple.h and renamed to
22640         graphite_regenerate_ast_cloog.
22641         * graphite.c (graphite_transform_loops): gloog is renamed
22642         to graphite_regenerate_ast_cloog.
22643
22644 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
22645
22646         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
22647         type is complete.
22648         (write_ts_type_common_tree_pointers): Do not stream fields not set
22649         for incomplete types; do not stream duplicated fields for variants;
22650         sanity check that variant and type match.
22651         (write_ts_type_non_common_tree_pointers): Likewise.
22652         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
22653         TYPE_SIZE whether type is complete.
22654         (lto_input_ts_type_common_tree_pointers): Do same changes as in
22655         write_ts_type_common_tree_pointers
22656         (lto_input_ts_type_non_common_tree_pointers): Likewise.
22657
22658 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
22659
22660         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
22661
22662 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
22663
22664         * tree-inline.c (remap_type_1): Do not duplicate fields
22665         that are shared in between type and its main variant.
22666
22667 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
22668
22669         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
22670         of the type.
22671         (ipa_set_ancestor_jf) Likewise.
22672         (check_stmt_for_type_change): Check that we work on main variant.
22673         (detect_type_change): Look into main variant.
22674         (compute_known_type_jump_func): Check that main variant has BINFO.
22675
22676 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
22677
22678         * ipa-devirt.c (set_type_binfo): New function.
22679         (add_type_duplicate): Use it.
22680         (get_odr_type): Sanity check that binfos points to main variants.
22681         (get_class_context): Be sure the context's outer_type is main variant.
22682         (contains_type_p): Walk main variant.
22683         (get_polymorphic_call_info_for_decl): Set outer_type to be
22684         main variant.
22685         (get_polymorphic_call_info): Likewise.
22686         (possible_polymorphic_call_targets): Sanity check that we operate
22687         on main variant.
22688
22689 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
22690
22691         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
22692
22693 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22694
22695         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
22696         accidental change due to wide-int branch merge.
22697
22698 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22699
22700         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
22701         compressed debug support.
22702         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
22703         * configure: Regenerate.
22704         * config.in: Regenerate.
22705         * common.opt (compressed_debug_sections): New enum.
22706         (gz, gz=): New options.
22707         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
22708         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
22709         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
22710         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
22711         LINK_COMPRESS_DEBUG_SPEC.
22712         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
22713         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
22714         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
22715         (Debugging Options): Document -gz[=type].
22716
22717 2014-06-27  Martin Jambor  <mjambor@suse.cz>
22718
22719         PR ipa/61160
22720         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
22721         args_to_skip, use those from node instead.  Copy args_to_skip and
22722         combined_args_to_skip from node to the new thunk.
22723         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
22724         (cgraph_create_virtual_clone): Moved computation of
22725         combined_args_to_skip...
22726         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
22727
22728 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
22729
22730         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
22731         redundant diagnostic machinary.
22732
22733 2014-06-27  Richard Biener  <rguenther@suse.de>
22734
22735         * tree-ssa-math-opts.c (bswap_replace): Fix
22736         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
22737
22738 2014-06-27  Martin Liska  <mliska@suse.cz>
22739
22740         * gimple.h (gimple_location_safe): New function introduced.
22741         * cgraphunit.c (walk_polymorphic_call_targets): Usage
22742         of gimple_location_safe replaces gimple_location.
22743         (gimple_fold_call): Likewise.
22744         * ipa-devirt.c (ipa_devirt): Likewise.
22745         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
22746         * ipa.c (walk_polymorphic_call_targets): Likewise.
22747         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
22748
22749 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
22750
22751         PR tree-optimization/57233
22752         PR tree-optimization/61299
22753         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
22754         functions.
22755         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
22756         would be lowered to scalar shifts, check if corresponding
22757         shifts and vector BIT_IOR_EXPR are supported and don't lower
22758         or lower just to narrower vector type in that case.
22759         * expmed.c (expand_shift_1): Fix up handling of vector
22760         shifts and rotates.
22761
22762 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
22763
22764         PR target/61586
22765         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
22766
22767 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
22768
22769         * doc/invoke.texi (-fsemantic-interposition): Document.
22770         * common.opt (fsemantic-interposition): New flag.
22771         * varasm.c (decl_replaceable_p): Use it.
22772
22773 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22774
22775         PR target/61542
22776         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
22777         extraction other than index 3.
22778
22779 2014-06-26  Teresa Johnson  <tejohnson@google.com>
22780
22781         * doc/invoke.texi: Fix typo.
22782         * dumpfile.c: Add support for documented -fdump-* options
22783         optimized/missed/note/optall.
22784
22785 2014-06-26  Martin Jambor  <mjambor@suse.cz>
22786
22787         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
22788         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
22789         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
22790         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
22791         * opts.c (default_options_optimization): Set
22792         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
22793         * doc/invoke.texi (allow-load-data-races)
22794         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
22795         (allow-store-data-races): Document the new default.
22796
22797 2014-06-26  Martin Jambor  <mjambor@suse.cz>
22798
22799         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
22800         renamed to ipa_impossible_devirt_target.  Fix typo.
22801         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
22802         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
22803         ipa_impossible_devirt_target.
22804
22805 2014-06-26  Richard Biener  <rguenther@suse.de>
22806
22807         PR tree-optimization/61607
22808         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
22809         explaining why we restrict copies on loop depth.
22810         * tree-ssa-dom.c (cprop_operand): Remove restriction on
22811         on loop depth.
22812         (record_equivalences_from_phis): Instead add it here.
22813
22814 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
22815
22816         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
22817         (LTO_WRAPPER_OBJS): New variable.
22818         (lto-wrapper$(exeext)): Use it.
22819         * collect2.c: Include "collect-utils.h".
22820         (verbose, debug): Remove variables.
22821         (at_file_supplied): No longer static.
22822         (tool_name): New variable.
22823         (do_wait, fork_execute, maybe_unlink): Don't declare.
22824         (tool_cleanup): No longer static.
22825         (notice): Remove function.
22826         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
22827         fork_execute calls.
22828         (collect_wait, do_wait, collect_execute): Remove functions.
22829         (maybe_unlink): No longer static.
22830         * collect2.h (verbose, debug): Don't declare.
22831         (at_file_supplied): Declare.
22832         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
22833         changed.
22834         (collect_execute): Replace with implementation from collect2, plus a
22835         new arg use_atfile.  All callers changed.
22836         (collect_wait): Replace with implementation from collect2.
22837         (maybe_unlink_file): Remove function.
22838         (fork_execute): Replace with implementation from collect2, plus a
22839         new arg use_atfile.  All callers changed.
22840         (do_wait): Add call to utils_cleanup to the error path.
22841         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
22842         (tool_cleanup): Adjust declarations.
22843         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
22844         * tlink.c: Include "collect-utils.h".
22845         (tlink_execute): New arg use_atfile.  All callers changed.
22846         (tlink_init, tlink_execute): Remove declarations.
22847
22848         * collect-utils.c (save_temps): New variable.
22849         (do_wait): Use it instead of debug.  Use fatal_error.
22850         * collect-utils.h (save_temps): Declare.
22851         * collect2.c (verbose): Rename from vflag.  All uses changed.
22852         (tool_cleanup): New function, copied from collect_atexit.
22853         (collect_atexit, handler): Just call it.
22854         * collect2.h (verbose): Declaration renamed from vflag.
22855         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
22856         debug.
22857
22858         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
22859         (lto-wrapper$(exeext)): Link with collect-utils.o.
22860         * collect-utils.c: New file.
22861         * collect-utils.h: New file.
22862         * lto-wrapper.c: Include "collect-utils.h".
22863         (args_name): Delete variable.
22864         (tool_name): New variable.
22865         (tool_cleanup): New function.
22866         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
22867         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
22868         (fork_execute): Remove functions.
22869
22870 2014-06-26  Nick Clifton  <nickc@redhat.com>
22871
22872         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
22873
22874         * doc/extend.texi (Function Attributes): Fix typo in description
22875         of RX vector attribute.
22876
22877 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
22878
22879         * config.gcc (supported_defaults): Error when passing either
22880         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
22881
22882 2014-06-26  Richard Biener  <rguenther@suse.de>
22883
22884         * tree-ssa-dom.c (cprop_operand): Remove restriction on
22885         propagating volatile pointers.
22886
22887 2014-06-26  Richard Biener  <rguenther@suse.de>
22888
22889         PR tree-optimization/61607
22890         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
22891         loop if we redirected its latch edge.
22892         (thread_block_1): Do not cancel loops prematurely.
22893
22894 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
22895
22896         * toplev.c (backend_init_target): Move init_emit_regs and
22897         init_regs to...
22898         (backend_init) ... here; skip ira_init_once and backend_init_target.
22899         (target_reinit) ... and here; clear
22900         this_target_rtl->lang_dependent_initialized.
22901         (lang_dependent_init_target): Clear
22902         this_target_rtl->lang_dependent_initialized;
22903         break out rtl initialization to ...
22904         (initialize_rtl): ... here; call also backend_init_target
22905         and ira_init_once.
22906         * toplev.h (initialize_rtl): New function.
22907         * function.c: Include toplev.h
22908         (init_function_start): Call initialize_rtl.
22909         * rtl.h (target_rtl): Add target_specific_initialized,
22910         lang_dependent_initialized.
22911
22912 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
22913             Jakub Jelinek  <jakub@redhat.com>
22914
22915         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
22916
22917 2014-06-25  Tom de Vries  <tom@codesourcery.com>
22918
22919         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
22920
22921 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22922
22923         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
22924         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
22925         Issue a strict overflow warning if appropriate.
22926
22927 2014-06-25  Martin Liska  <mliska@suse.cz>
22928
22929         IPA REF refactoring
22930         * Makefile.in: Removed header file (ipa-ref-inline.h).
22931         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
22932         called.
22933         (cgraph_speculative_call_info): Likewise.
22934         (cgraph_for_node_thunks_and_aliases): Likewise.
22935         (cgraph_for_node_and_aliases): Likewise.
22936         (verify_cgraph_node): Likewise.
22937         * cgraph.h: Batch of IPA REF functions become member functions of
22938         symtab_node: add_reference, maybe_add_reference, clone_references,
22939         clone_referring, clone_reference, find_reference,
22940         remove_stmt_references, remove_all_references,
22941         remove_all_referring, dump_references, dump_referring,
22942         has_alias_p, iterate_reference, iterate_referring.
22943         * cgraphbuild.c (record_reference): New IPA REF function used.
22944         (record_type_list): Likewise.
22945         (record_eh_tables): Likewise.
22946         (mark_address): Likewise.
22947         (mark_load): Likewise.
22948         (mark_store): Likewise.
22949         (pass_build_cgraph_edges): Likewise.
22950         (rebuild_cgraph_edge): Likewise.
22951         (cgraph_rebuild_references): Likewise.
22952         (pass_remove_cgraph_callee_edges): Likewise.
22953         * cgraphclones.c (cgraph_clone_node): Likewise.
22954         (cgraph_create_virtual_clone): Likewise.
22955         (cgraph_materialize_clone): Likewise.
22956         (cgraph_materialize_all_clones): Likewise.
22957         * cgraphunit.c (cgraph_reset_node): Likewise.
22958         (cgraph_reset_node): Likewise.
22959         (analyze_function): Likewise.
22960         (assemble_thunks_and_aliases): Likewise.
22961         (expand_function): Likewise.
22962         * ipa-comdats.c (propagate_comdat_group): Likewise.
22963         (enqueue_references): Likewise.
22964         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
22965         (create_specialized_node): Likewise.
22966         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
22967         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
22968         * ipa-inline.c (reset_edge_caches): Likewise.
22969         (update_caller_keys): Likewise.
22970         (execute): Likewise.
22971         * ipa-prop.c (remove_described_reference): Likewise.
22972         (propagate_controlled_uses): Likewise.
22973         (ipa_edge_duplication_hook): Likewise.
22974         (ipa_modify_call_arguments): Likewise.
22975         * ipa-pure-const.c (propagate_pure_const): Likewise.
22976         * ipa-ref-inline.h: Header file removed, functions moved
22977         to symtab_node class.
22978         * ipa-ref.c (remove_reference): New class member function.
22979         (cannot_lead_to_return): New class member function.
22980         (referring_ref_list): Likewise.
22981         (referred_ref_list): Likewise.
22982         Rest of functions moved to symtab_node class.
22983         * ipa-ref.h: New member functions remove_reference,
22984         cannot_lead_to_return, referring_ref_list, referred_ref_list added
22985         to ipa_ref class.
22986         ipa_ref_list class has new member functions: first_reference,
22987         first_referring, clear, nreferences.
22988         * ipa-reference.c (analyze_function): New IPA REF function used.
22989         (write_node_summary_p): Likewise.
22990         (ipa_reference_write_optimization_summary): Likewise.
22991         * ipa-split.c (split_function): Likewise.
22992         * ipa-utils.c (ipa_reverse_postorder): Likewise.
22993         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
22994         (function_and_variable_visibility): Likewise.
22995         * ipa.c (has_addr_references_p): Likewise.
22996         (process_references): Argument type changed.
22997         (symtab_remove_unreachable_nodes): New IPA REF function used.
22998         (process_references): Likewise.
22999         (set_writeonly_bit): Likewise.
23000         * lto-cgraph.c: Implementation of new symtab_node member functions
23001         that uses new IPA REF functions.
23002         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
23003         function used.
23004         * lto-streamer-out.c (output_symbol_p): Likewise.
23005         * lto-streamer.h (referenced_from_this_partition_p): Argument type
23006         changed.
23007         * symtab.c: Implementation of new IPA REF API.
23008         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
23009         (ipa_tm_create_version): Likewise.
23010         (ipa_tm_execute): Likewise.
23011         * tree-emutls.c (gen_emutls_addr): Likewise.
23012         * tree-inline.c (copy_bb): Likewise.
23013         (delete_unreachable_blocks_update_callgraph): Likewise.
23014         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
23015         (varpool_for_node_and_aliases): Likewise.
23016
23017 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
23018
23019         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
23020
23021 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
23022
23023         PR bootstrap/61598
23024         * fold-const.c (fold_checksum_tree): Use a hash_table of const
23025         tree_node * instead of tree_node *.
23026         (fold): Adjust.
23027         (print_fold_checksum): Likewise.
23028         (fold_check_failed): Likewise.
23029         (debug_fold_checksum): Likewise.
23030         (fold_build1_stat_loc): Likewise.
23031         (fold_build2_stat_loc): Likewise.
23032         (fold_build3_stat_loc): Likewise.
23033         (fold_build_call_array_loc): Likewise.
23034
23035 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
23036
23037         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
23038         implementation with call to...
23039         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
23040         function.
23041         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
23042         Declare.
23043
23044 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
23045
23046         PR tree-optimization/57742
23047         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
23048         after replacing the statement.
23049
23050 2014-06-25  Nick Clifton  <nickc@redhat.com>
23051
23052         * config/v850/v850.c (GHS_default_section_names): Change to const
23053         char * type.
23054         (GHS_current_section_names): Likewise.
23055         (v850_insert_attributes): Do not build strings, just assign the
23056         names directly.  Change the type of 'chosen_section' to const
23057         char*.
23058         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
23059         directly to the array entry.
23060         * config/v850/v850.h (GHS_default_section_names): Change to const
23061         char * type.
23062         (GHS_current_section_names): Likewise.
23063
23064 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
23065
23066         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
23067         (LANG_HOOKS_DECLS): Add it.
23068         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
23069         has correct type.
23070         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
23071         * langhooks.h (struct lang_hooks_for_decls): Add
23072         omp_clause_linear_ctor hook.
23073         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
23074         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
23075         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
23076         combined simd loop use omp_clause_linear_ctor hook.
23077
23078 2014-06-24  Cong Hou  <congh@google.com>
23079
23080         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
23081         pattern recognition.
23082         (type_conversion_p): PROMOTION is true if it's a type promotion
23083         conversion, and false otherwise.  Return true if the given expression
23084         is a type conversion one.
23085         * tree-vectorizer.h: Adjust the number of patterns.
23086         * tree.def: Add SAD_EXPR.
23087         * optabs.def: Add sad_optab.
23088         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
23089         * expr.c (expand_expr_real_2): Likewise.
23090         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
23091         * gimple.c (get_gimple_rhs_num_ops): Likewise.
23092         * optabs.c (optab_for_tree_code): Likewise.
23093         * tree-cfg.c (estimate_operator_cost): Likewise.
23094         * tree-ssa-operands.c (get_expr_operands): Likewise.
23095         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
23096         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
23097         * doc/generic.texi: Add document for SAD_EXPR.
23098         * doc/md.texi: Add document for ssad and usad.
23099
23100 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
23101
23102         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
23103         qualification in cast.
23104
23105 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
23106
23107         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
23108         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
23109         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
23110         (tree_function_decl): ... here.
23111         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
23112         streaming of vindex to ...
23113         (write_ts_function_decl_tree_pointers): ... here.
23114         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
23115         Do not stream DECL_VINDEX.
23116         (lto_input_ts_function_decl_tree_pointers): Stream it here.
23117
23118 2014-06-24  Catherine Moore  <clm@codesourcery.com>
23119             Sandra Loosemore  <sandra@codesourcery.com>
23120
23121         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
23122         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
23123         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
23124
23125 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
23126
23127         * doc/invoke.texi (Warning Options): Remove duplicated
23128         -Wmaybe-uninitialized.
23129
23130 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
23131
23132         PR tree-optimization/57742
23133         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
23134         (handle_builtin_malloc, handle_builtin_memset): New functions.
23135         (strlen_optimize_stmt): Call them.
23136         * passes.def: Move strlen after loop+dom but before vrp.
23137
23138 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
23139
23140         PR target/61570
23141         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
23142         model family 6 CPU with has_longmode never use a CPU without
23143         64-bit support.
23144
23145 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
23146
23147         PR target/61570
23148         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
23149         the last change.
23150
23151 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
23152
23153         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
23154         * dominance.c (iterate_fix_dominators): Use hash_map instead of
23155         pointer_map.
23156         * hash-map.h: New file.
23157         * ipa-comdats.c: Use hash_map instead of pointer_map.
23158         * ipa.c: Likewise.
23159         * lto-section-out.c: Adjust.
23160         * lto-streamer.h: Replace pointer_map with hash_map.
23161         * symtab.c (verify_symtab): Likewise.
23162         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
23163         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
23164         * tree-streamer.h: Likewise.
23165         * tree-streamer.c: Adjust.
23166         * pointer-set.h: Remove pointer_map.
23167
23168 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
23169
23170         * hash-table.h: Add a template arg to choose between storing values
23171         and storing pointers to values, and then provide partial
23172         specializations for both.
23173         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
23174         should store, not the type values should point to.
23175         * tree-into-ssa.c (var_info_hasher): Likewise.
23176         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
23177         * tree-complex.c: Adjust.
23178         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
23179         table instead of int_tree_map *.
23180         * tree-parloops.c: Adjust.
23181         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
23182         type is being stored.
23183         * tree-vectorizer.c: Adjust.
23184
23185 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
23186
23187         * hash-table.h: Remove a layer of indirection from hash_table so that
23188         it contains the hash table's data instead of a pointer to the data.
23189         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
23190         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
23191         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
23192         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
23193         fold-const.c, gcse.c, ggc-common.c,
23194         gimple-ssa-strength-reduction.c, gimplify.c,
23195         graphite-clast-to-gimple.c, graphite-dependences.c,
23196         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
23197         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
23198         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
23199         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
23200         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
23201         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
23202         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
23203         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
23204         tree-ssa-live.c, tree-ssa-loop-im.c,
23205         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
23206         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
23207         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
23208         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
23209         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
23210         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
23211         vtable-verify.c, vtable-verify.h: Adjust.
23212
23213 2014-06-24  Richard Biener  <rguenther@suse.de>
23214
23215         PR tree-optimization/61572
23216         * tree-ssa-sink.c (statement_sink_location): Do not sink
23217         loads from hard registers.
23218
23219 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
23220
23221         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
23222         not mentioned in clauses use private clause if the iterator is
23223         declared in #pragma omp for simd, and when adding lastprivate
23224         instead, add it to the outer #pragma omp for too.  Diagnose
23225         if the variable is private in outer context.  For simd collapse > 1
23226         loops, replace all iterators with temporaries.
23227         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
23228         same even in collapse > 1 loops.
23229
23230         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
23231         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
23232         non-NULL.
23233         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
23234         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
23235         non-NULL.
23236         (gimplify_adjust_omp_clauses): Likewise.
23237         * omp-low.c (lower_rec_simd_input_clauses,
23238         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
23239         safelen the same as safelen(1).
23240         * tree-nested.c (convert_nonlocal_omp_clauses,
23241         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
23242         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
23243         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
23244         Fixup handling of GIMPLE_OMP_TARGET.
23245         (convert_tramp_reference_stmt, convert_gimple_call): Handle
23246         GIMPLE_OMP_TARGET.
23247
23248 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
23249
23250         PR tree-optimization/61554
23251         * tree-ssa-propagate.c: Include "bitmap.h".
23252         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
23253         properly update constructor/destructor.
23254         (substitute_and_fold_dom_walker::before_dom_children):
23255         Remove call to gimple_purge_dead_eh_edges, add bb->index to
23256         need_eh_cleaup instead.
23257         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
23258         need_eh_cleanup.
23259
23260 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
23261
23262         * varpool.c (dump_varpool_node): Dump used_by_single_function.
23263         * tree-pass.h (make_pass_ipa_single_use): New pass.
23264         * cgraph.h (used_by_single_function): New flag.
23265         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
23266         Stream it.
23267         * passes.def (pass_ipa_single_use): Scedule.
23268         * ipa.c (BOTTOM): New macro.
23269         (meet): New function
23270         (propagate_single_user): New function.
23271         (ipa_single_use): New function.
23272         (pass_data_ipa_single_use): New pass.
23273         (pass_ipa_single_use): New pass.
23274         (pass_ipa_single_use::gate): New gate.
23275         (make_pass_ipa_single_use): New function.
23276
23277 2014-06-23  Kai Tietz  <ktietz@redhat.com>
23278
23279         PR target/39284
23280         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
23281         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
23282
23283 2014-06-23  Richard Biener  <rguenther@suse.de>
23284
23285         * tree-ssa-loop.c (gate_loop): New function.
23286         (pass_tree_loop::gate): Call it.
23287         (pass_data_tree_no_loop, pass_tree_no_loop,
23288         make_pass_tree_no_loop): New.
23289         * tree-vectorizer.c: Include tree-scalar-evolution.c
23290         (pass_slp_vectorize::execute): Initialize loops and SCEV if
23291         required.
23292         (pass_slp_vectorize::clone): New method.
23293         * timevar.def (TV_TREE_NOLOOP): New.
23294         * tree-pass.h (make_pass_tree_no_loop): Declare.
23295         * passes.def (pass_tree_no_loop): New pass group with
23296         SLP vectorizer.
23297
23298 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
23299
23300         PR target/61570
23301         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
23302         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
23303
23304 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
23305
23306         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
23307         "yes" where needed.
23308
23309 2014-06-23  Alan Modra  <amodra@gmail.com>
23310
23311         PR bootstrap/61583
23312         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
23313         to zero on debug statements.
23314
23315 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
23316
23317         PR target/60825
23318         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
23319         Ignore third operand if present by marking qualifier_internal.
23320
23321         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
23322
23323         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
23324         vector extension.
23325         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
23326         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
23327         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
23328         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
23329         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
23330         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
23331         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
23332         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
23333         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
23334         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
23335         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
23336         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
23337         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
23338         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
23339         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
23340         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
23341         logic in GCC vector extensions
23342
23343         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
23344         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
23345         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
23346         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
23347         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
23348         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
23349         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
23350         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
23351         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
23352         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
23353
23354         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
23355
23356         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
23357         extensions.
23358
23359         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
23360         (vget_low_s64): Use __GET_LOW macro.
23361         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
23362         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
23363         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
23364         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
23365         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
23366
23367         (vcombine_s64): Use GCC vector extensions; remove cast.
23368         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
23369         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
23370         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
23371         Fix type signature; remove cast.
23372
23373 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
23374
23375         PR target/60825
23376         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
23377         V1DFmode.
23378         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
23379         add V1DFmode
23380         (BUILTIN_VD1): New.
23381         (BUILTIN_VD_RE): Remove.
23382         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
23383         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
23384         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
23385         variant but not df.
23386         (vreinterpretv1df*, vreinterpret*v1df): New.
23387         (vreinterpretdf*, vreinterpret*df): Remove.
23388         * config/aarch64/aarch64-simd.md (aarch64_create,
23389         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
23390         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
23391         (VD1): New.
23392         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
23393         (vcreate_f64): Remove cast, use v1df builtin.
23394         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
23395         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
23396         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
23397         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
23398         vmov_n_f64, vst1_f64): Use gcc vector extensions.
23399         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
23400         add range check using __builtin_aarch64_im_lane_boundsi.
23401         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
23402         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
23403         type signature, use gcc vector extensions.
23404         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
23405         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
23406         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
23407         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
23408         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
23409         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
23410         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
23411         vreinterpret_u64_f64): Use v1df builtin not df.
23412
23413 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
23414
23415         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
23416         vector registers.
23417
23418 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
23419
23420         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
23421         priority directly.
23422
23423 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23424
23425         * loop-invariant.c (pre_check_invariant_p): New function.
23426         (find_invariant_insn): Call pre_check_invariant_p.
23427
23428 2014-06-22  Richard Henderson  <rth@redhat.com>
23429
23430         PR target/61565
23431         * compare-elim.c (struct comparison): Add eh_note.
23432         (find_comparison_dom_walker::before_dom_children): Don't eliminate
23433         a redundant comparison in a different EH region.  Purge EH edges if
23434         necessary.
23435
23436 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
23437
23438         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
23439         (var_shift): Use it.
23440         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
23441         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23442         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23443         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23444         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23445         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
23446         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
23447         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
23448         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
23449         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
23450         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
23451         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
23452         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
23453         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
23454         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
23455         *rotldi3_internal15be): Use the new attribute.  Merge register and
23456         integer alternatives.
23457
23458 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
23459
23460         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
23461         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
23462         split, *ashrdi3_internal3 and split): Delete, merge into...
23463         (ashr<mode>3): New expander.
23464         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
23465         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
23466
23467 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
23468
23469         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
23470         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
23471         *rotldi3_internal3 and split): Delete, merge into...
23472         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
23473         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
23474         Use "rotlw" extended mnemonic.
23475
23476 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
23477
23478         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
23479         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
23480         and split, *ashldi3_internal3 and split): Delete, merge into...
23481         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
23482         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
23483
23484 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
23485
23486         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
23487         (lshrsi3, two anonymous define_insns and define_splits,
23488         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
23489         *lshrdi3_internal3 and split): Delete, merge into...
23490         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
23491         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
23492
23493 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
23494
23495         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
23496         Remove "O" alternative.
23497
23498 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
23499
23500         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
23501         (mips_move_from_gpr_cost): Likewise.
23502         (mips_register_move_cost): Update accordingly.
23503         (mips_secondary_reload_class): Remove name of in_p.
23504
23505 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
23506
23507         PR target/61503
23508         * config/i386/i386.md (x86_64_shrd, x86_shrd,
23509         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
23510
23511 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
23512
23513         * config/nios2/nios2.c: Include "builtins.h".
23514
23515 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
23516
23517         * cgraph.h (tls_model_names): New variable.
23518         * print-tree.c (print_node): Simplify.
23519         * varpool.c (tls_model_names): New variable.
23520         (dump_varpool_node): Output tls model.
23521
23522 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
23523
23524         * ipa-visibility.c (function_and_variable_visibility): Disable
23525         temporarily local aliases for some targets.
23526
23527 2014-06-20  Marek Polacek  <polacek@redhat.com>
23528
23529         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
23530         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
23531         into SANITIZE_UNDEFINED.
23532         * doc/invoke.texi: Describe -fsanitize=bounds.
23533         * gimplify.c (gimplify_call_expr): Add gimplification of internal
23534         functions created in the FEs.
23535         * internal-fn.c: Move "internal-fn.h" after "tree.h".
23536         (expand_UBSAN_BOUNDS): New function.
23537         * internal-fn.def (UBSAN_BOUNDS): New internal function.
23538         * internal-fn.h: Don't define internal functions here.
23539         * opts.c (common_handle_option): Add -fsanitize=bounds.
23540         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
23541         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
23542         * tree-core.h: Define internal functions here.
23543         (struct tree_base): Add ifn field.
23544         * tree-pretty-print.c: Include "internal-fn.h".
23545         (dump_generic_node): Handle functions without CALL_EXPR_FN.
23546         * tree.c (get_callee_fndecl): Likewise.
23547         (build_call_expr_internal_loc): New function.
23548         * tree.def (CALL_EXPR): Update description.
23549         * tree.h (CALL_EXPR_IFN): Define.
23550         (build_call_expr_internal_loc): Declare.
23551         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
23552         types.
23553         (ubsan_type_descriptor): Change bool parameter to enum
23554         ubsan_print_style.  Adjust the code.  Add handling of
23555         UBSAN_PRINT_ARRAY.
23556         (ubsan_expand_bounds_ifn): New function.
23557         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
23558         (ubsan_build_overflow_builtin): Likewise.
23559         (instrument_bool_enum_load): Likewise.
23560         (ubsan_instrument_float_cast): Likewise.
23561         * ubsan.h (enum ubsan_print_style): New enum.
23562         (ubsan_expand_bounds_ifn): Declare.
23563         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
23564
23565 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
23566
23567         * config/rs6000/rs6000.md: Append `DONE' to preparation
23568         statements of `bswap' pattern splitters.
23569
23570 2014-06-20  Tom de Vries  <tom@codesourcery.com>
23571
23572         * target.def (call_fusage_contains_non_callee_clobbers): Update
23573         definition.
23574         * doc/tm.texi: Regenerate.
23575
23576 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
23577             Max Ostapenko  <m.ostapenko@partner.samsung.com>
23578
23579         PR sanitizer/61547
23580         * asan.c (instrument_strlen_call): Fixed instrumentation of
23581         trailing byte.
23582
23583 2014-06-20  Martin Jambor  <mjambor@suse.cz>
23584
23585         PR ipa/61540
23586         * ipa-prop.c (impossible_devirt_target): New function.
23587         (try_make_edge_direct_virtual_call): Use it, also instead of
23588         asserting.
23589
23590 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
23591             Max Ostapenko  <m.ostapenko@partner.samsung.com>
23592
23593         PR sanitizer/61530
23594         * asan.c (build_check_stmt): Add condition.
23595
23596 2014-06-20  Martin Jambor  <mjambor@suse.cz>
23597
23598         PR ipa/61211
23599         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
23600         expanded clones.
23601
23602 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23603
23604         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
23605         Update comments.
23606         (VCONQ): Make comment more helpful.
23607         (VCON): Delete.
23608         * config/aarch64/aarch64-simd.md
23609         (aarch64_sqdmulh_lane<mode>):
23610         Use VCOND for operands 2.  Update lane checking and flipping logic.
23611         (aarch64_sqrdmulh_lane<mode>): Likewise.
23612         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
23613         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
23614         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
23615         attribute of operand 3 to VCOND.
23616         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
23617         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
23618         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
23619         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
23620         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
23621         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
23622         define_insn.
23623         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
23624         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
23625         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
23626         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
23627         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
23628         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
23629         operand to VCOND.  Update lane flipping and bounds checking logic.
23630         (aarch64_sqdmlal2_lane<mode>): Likewise.
23631         (aarch64_sqdmlsl_lane<mode>): Likewise.
23632         (aarch64_sqdmull_lane<mode>): Likewise.
23633         (aarch64_sqdmull2_lane<mode>): Likewise.
23634         (aarch64_sqdmlal_laneq<mode>):
23635         Replace VCON usage with VCONQ.
23636         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
23637         (aarch64_sqdmlal2_laneq<mode>): Emit
23638         aarch64_sqdmlal2_laneq<mode>_internal insn.
23639         Replace VCON with VCONQ.
23640         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
23641         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
23642         (aarch64_sqdmull_laneq<mode>): Emit
23643         aarch64_sqdmull_laneq<mode>_internal insn.
23644         Replace VCON with VCONQ.
23645         (aarch64_sqdmull2_laneq<mode>): Emit
23646         aarch64_sqdmull2_laneq<mode>_internal insn.
23647         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
23648         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
23649         of 3rd argument to int16x4_t.
23650         (vqdmlalh_lane_s16): Likewise.
23651         (vqdmlslh_lane_s16): Likewise.
23652         (vqdmull_high_lane_s16): Likewise.
23653         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
23654         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
23655         (vqdmlsl_lane_s16): Likewise.
23656         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
23657         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
23658         (vqdmlals_lane_s32): Likewise.
23659         (vqdmlsls_lane_s32): Likewise.
23660         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
23661         (vqdmulls_lane_s32): Likewise.
23662         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
23663         (vqdmlsl_lane_s32): Likewise.
23664         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
23665         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
23666         (vqrdmulhh_lane_s16): Likewise.
23667         (vqdmlsl_high_lane_s16): Likewise.
23668         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
23669         (vqdmlsl_high_lane_s32): Likewise.
23670         (vqrdmulhs_lane_s32): Likewise.
23671
23672 2014-06-20  Tom de Vries  <tom@codesourcery.com>
23673
23674         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
23675         get_call_reg_set_usage.
23676
23677 2014-06-20  Tom de Vries  <tom@codesourcery.com>
23678
23679         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
23680         it contains all call_used_regs.
23681
23682 2014-06-20  Tom de Vries  <tom@codesourcery.com>
23683
23684         * final.c (collect_fn_hard_reg_usage): Add and use variable
23685         function_used_regs.
23686
23687 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
23688
23689         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
23690         (set_init_priority, get_init_priority, set_fini_priority,
23691         get_fini_priority): New methods.
23692         * tree.c (init_priority_for_decl): Remove.
23693         (init_ttree): Do not initialize init priority.
23694         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
23695         (decl_priority_info): Remove.
23696         (decl_init_priority_insert): Rewrite.
23697         (decl_fini_priority_insert): Rewrite.
23698         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
23699         tree_priority_map_marked_p): Remove.
23700         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
23701         * lto-streamer-out.c (hash_tree): Do not hash priorities.
23702         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
23703         not output priorities.
23704         (pack_ts_function_decl_value_fields): Likewise.
23705         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
23706         not input priorities.
23707         (unpack_ts_function_decl_value_fields): Likewise.
23708         * symtab.c (symbol_priority_map): Declare.
23709         (init_priority_hash): Declare.
23710         (symtab_unregister_node): Unregister from priority hash, too.
23711         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
23712         New methods.
23713         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
23714         (symbol_priority_info): New function.
23715         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
23716         New methods.
23717         * tree-core.h (tree_priority_map): Remove.
23718
23719 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
23720
23721         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
23722         0xff to uint64_t before shifting it up.
23723
23724 2014-06-20  Julian Brown  <julian@codesourcery.com>
23725             Chung-Lin Tang  <cltang@codesourcery.com>
23726
23727         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
23728         TARGET_THUMB1_ONLY. Add comments.
23729
23730 2014-06-19  Tom de Vries  <tom@codesourcery.com>
23731
23732         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
23733         return type to void.
23734         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
23735
23736 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23737
23738         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
23739         as "move", from depends_on.
23740
23741 2014-06-19  Terry Guo  <terry.guo@arm.com>
23742
23743         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
23744         stage.
23745
23746 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
23747
23748         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
23749         Remove cr5.
23750         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
23751
23752 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
23753
23754         PR target/61550
23755         * config/sh/sh.c (prepare_move_operands): Don't process TLS
23756         addresses here if reload in progress or completed.
23757
23758 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
23759
23760         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
23761         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
23762         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
23763         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
23764         (mips_register_priority): New function that implements the target
23765         hook TARGET_REGISTER_PRIORITY.
23766         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
23767         (mips_lra_p): Likewise for TARGET_LRA_P.
23768         (TARGET_REGISTER_PRIORITY): Define macro.
23769         (TARGET_SPILL_CLASS): Likewise.
23770         (TARGET_LRA_P): Likewise.
23771         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
23772         classes.
23773         (REG_CLASS_NAMES): Likewise.
23774         (REG_CLASS_CONTENTS): Likewise.
23775         (BASE_REG_CLASS): Use M16_SP_REGS.
23776         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
23777         New set attribute to enable alternatives depending on the register
23778         allocator used.
23779         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
23780         (*lea64): Disable pattern for MIPS16.
23781         * config/mips/mips.opt (mlra): New option.
23782
23783 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
23784
23785         * lra-constraints.c (base_to_reg): New function.
23786         (process_address): Use new function.
23787
23788 2014-06-18  Tom de Vries  <tom@codesourcery.com>
23789
23790         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
23791         * config/aarch64/aarch64.c
23792         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
23793         (aarch64_emit_call_insn): New function.
23794         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
23795         of emit_call_insn.
23796         * config/aarch64/aarch64.md (define_expand "call_internal")
23797         (define_expand "call_value_internal", define_expand "sibcall_internal")
23798         (define_expand "sibcall_value_internal"): New.
23799         (define_expand "call", define_expand "call_value")
23800         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
23801         expand variant and aarch64_emit_call_insn.
23802
23803 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
23804             Tom de Vries  <tom@codesourcery.com>
23805
23806         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
23807         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
23808         Redefine to true.
23809         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
23810         clobbers to CALL_INSN_FUNCTION_USAGE.
23811         (define_expand "sibcall_internal")
23812         (define_expand "sibcall_value_internal"): New.
23813         (define_expand "call", define_expand "call_value"): Add argument to
23814         arm_emit_call_insn.
23815         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
23816         (define_expand "sibcall_value"): Use sibcall_value_internal and
23817         arm_emit_call_insn.
23818
23819 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23820
23821         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
23822
23823 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23824
23825         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
23826         __udivmoddi4.
23827
23828 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23829
23830         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
23831         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
23832         annotations. Fix DWARF information.
23833
23834 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23835
23836         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
23837         __udivmoddi4, and fixups for negative operands.
23838
23839 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23840
23841         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
23842
23843 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23844
23845         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
23846         to __udivmoddi4.
23847
23848 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23849
23850         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
23851         manipulation.
23852
23853 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23854
23855         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
23856         describing register usage on function entry and exit.
23857
23858 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23859
23860         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
23861         (__aeabi_ldivmod): Fix whitespace.
23862
23863 2014-06-18  Andreas Schwab  <schwab@suse.de>
23864
23865         * doc/md.texi (Standard Names): Use @itemx for grouped items.
23866         Remove blank line after @item.
23867
23868 2014-06-18  Richard Henderson  <rth@redhat.com>
23869
23870         PR target/61545
23871         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
23872
23873 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
23874
23875         * config/arm/arm.c (neon_vector_mem_operand): Allow register
23876         POST_MODIFY for neon loads and stores.
23877         (arm_print_operand): Output post-index register for neon loads and
23878         stores.
23879
23880 2014-06-18  Richard Biener  <rguenther@suse.de>
23881
23882         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
23883
23884 2014-06-18  Richard Biener  <rguenther@suse.de>
23885
23886         * tree-pass.h (make_pass_dce_loop): Remove.
23887         * passes.def: Replace pass_dce_loop with pass_dce.
23888         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
23889         changed free niter estimates and reset the scev cache.
23890         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
23891         make_pass_dce_loop): Remove.
23892         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
23893         (fini_copy_prop): Return whether something changed.  Always
23894         let substitute_and_fold perform DCE and free niter estimates
23895         and reset the scev cache if so.
23896         (execute_copy_prop): If sth changed schedule cleanup-cfg.
23897         (pass_data_copy_prop): Do not unconditionally schedule
23898         cleanup-cfg or update-ssa.
23899
23900 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
23901
23902         PR tree-optimization/61518
23903         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
23904         reduction var is used in reduction stmt or phi-function only.
23905
23906 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23907
23908         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
23909
23910 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23911
23912         PR tree-optimization/61517
23913         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
23914         whose rhs's first tree is the source expression instead of the
23915         expression itself.
23916         (find_bswap_or_nop): Likewise.
23917         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
23918         gimple stmt whose rhs's first tree is the source. In the memory source
23919         case, move the stmt to be replaced close to one of the original load to
23920         avoid the problem of a store between the load and the stmt's original
23921         location.
23922         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
23923         signature.
23924
23925 2014-06-18  Andreas Schwab  <schwab@suse.de>
23926
23927         PR rtl-optimization/54555
23928         * postreload.c (move2add_use_add2_insn): Substitute
23929         STRICT_LOW_PART only if it is cheaper.
23930
23931 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
23932
23933         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
23934         Do not use unspec as call operand.  Use memory_operand instead of
23935         memory_nox32_operand and add "m" operand constraint.  Disable
23936         pattern for TARGET_X32.
23937         (*sibcall_pop_memory): Ditto.
23938         (*sibcall_value_memory): Ditto.
23939         (*sibcall_value_pop_memory): Ditto.
23940         (sibcall peepholes): Merge SImode and DImode patterns using
23941         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
23942         Disable pattern for TARGET_X32.  Check if eliminated register is
23943         really dead after call insn.  Generate call RTX without unspec operand.
23944         (sibcall_value peepholes): Ditto.
23945         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
23946         instead of memory_nox32_operand.  Check if eliminated register is
23947         really dead after call insn. Generate call RTX without unspec operand.
23948         (sibcall_value_pop peepholes): Ditto.
23949         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
23950
23951 2014-06-18  Terry Guo  <terry.guo@arm.com>
23952
23953         PR target/61544
23954         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
23955         reach the head.
23956
23957 2014-06-18  Olivier Hainque  <hainque@adacore.com>
23958
23959         * tree-core.h (tree_block): Add an "end_locus" field, allowing
23960         memorization of the end of block source location.
23961         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
23962         * gimplify.c (gimplify_bind_expr): Propagate the block start and
23963         end source location info we have on the block entry/exit code we
23964         generate.
23965
23966 2014-06-18  Richard Biener  <rguenther@suse.de>
23967
23968         * common.opt (fssa-phiopt): New option.
23969         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
23970         but not with -Og.
23971         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
23972         * doc/invoke.texi (-fssa-phiopt): Document.
23973
23974 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23975
23976         * genattrtab.c (n_bypassed): New variable.
23977         (process_bypasses): Initialise n_bypassed.
23978         Count number of bypassed reservations.
23979         (make_automaton_attrs): Allocate space for bypassed reservations
23980         rather than number of bypasses.
23981
23982 2014-06-18  Richard Biener  <rguenther@suse.de>
23983
23984         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
23985         we propagated anything.
23986         (substitute_and_fold_dom_walker::before_dom_children): Something
23987         changed if we propagated into PHI arguments.
23988         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
23989         we removed a stmt.
23990
23991 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
23992
23993         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
23994         vector case.
23995         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
23996         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
23997         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
23998         Introduces alternative way of loads group permutaions.
23999         (vect_transform_grouped_load): Try alternative way of permutations.
24000
24001 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
24002
24003         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
24004         changed in ORT_TARGET region, don't jump to do_outer.
24005         (struct gimplify_adjust_omp_clauses_data): New type.
24006         (gimplify_adjust_omp_clauses_1): Adjust for data being
24007         a struct gimplify_adjust_omp_clauses_data pointer instead
24008         of tree *.  Pass pre_p as a new argument to
24009         lang_hooks.decls.omp_finish_clause hook.
24010         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
24011         splay_tree_foreach to pass both list_p and pre_p.
24012         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
24013         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
24014         gimplify_adjust_omp_clauses callers.
24015         * langhooks.c (lhd_omp_finish_clause): New function.
24016         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
24017         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
24018         * langhooks.h (struct lang_hooks_for_decls): Add a new
24019         gimple_seq * argument to omp_finish_clause hook.
24020         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
24021         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
24022         (scan_omp_parallel, lower_omp_for): When adding
24023         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
24024         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
24025         * tree-nested.c (convert_nonlocal_omp_clauses,
24026         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
24027         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
24028
24029 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
24030
24031         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
24032         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
24033
24034 2014-06-17  Xinliang David Li  <davidxl@google.com>
24035
24036         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
24037         * passes.c (pass_init_dump_file): Do not set initialize
24038         flag to false unconditionally.
24039
24040 2014-06-17  Richard Biener  <rguenther@suse.de>
24041
24042         * genopinit.c (main): Use vec<>::qsort method.
24043         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
24044         Likewise.
24045         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
24046
24047 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
24048
24049         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
24050         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
24051         (mips_move_to_gpr_cost): Remove ST_REGS case.
24052         (mips_move_from_gpr_cost): Likewise.
24053         (mips_register_move_cost): Likewise.
24054         (mips_secondary_reload_class): Likewise.
24055
24056 2014-06-17  Richard Biener  <rguenther@suse.de>
24057
24058         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
24059         (pass_all_optimizations): Move 3rd copy-prop pass from after
24060         fre to before ifcombine/phiopt.
24061
24062 2014-06-17  Richard Biener  <rguenther@suse.de>
24063
24064         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
24065         and allow all blocks to be forwarders.
24066
24067 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
24068
24069         PR target/61483
24070         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
24071         variable 'size'; calculate 'size' right in the front; use
24072         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
24073         pcum->aapcs_stack_words.
24074
24075 2014-06-17  Nick Clifton  <nickc@redhat.com>
24076
24077         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
24078         (umulhi3, mulsidi3, umulsidi3): Likewise.
24079
24080 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
24081
24082         PR middle-end/61508
24083         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
24084         check for section name.
24085
24086 2014-06-17  Richard Biener  <rguenther@suse.de>
24087
24088         * tree-ssa-propagate.c: Include domwalk.h.
24089         (substitute_and_fold): Outline main worker into a domwalker ...
24090         (substitute_and_fold_dom_walker::before_dom_children): ... here.
24091         Schedule stmts we can fully propagate for removal.  Remove
24092         poor-mans DCE.
24093         (substitute_and_fold): Apply a dominator walk to perform
24094         substitution.  Process stmts scheduled for removal here.
24095
24096 2014-06-17  Richard Biener  <rguenther@suse.de>
24097
24098         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
24099         of PHI node moving.
24100
24101 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
24102
24103         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
24104         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
24105         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
24106         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
24107         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
24108         TARGET_HARD_FLOAT.
24109         (get_fpscr) : Likewise.
24110
24111 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
24112
24113         PR rtl-optimization/61325
24114         * lra-constraints.c (valid_address_p): Add forward declaration.
24115         (simplify_operand_subreg): Check address validity before and after
24116         alter_reg of memory subreg.
24117
24118 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
24119
24120         * config/i386/i386.c (decide_alg): Correctly handle
24121         maximum size of stringop algorithm.
24122
24123 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
24124
24125         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
24126
24127 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
24128
24129         PR rtl-optimization/61522
24130         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
24131
24132 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
24133
24134         Revert:
24135         * symtab.c (symtab_node::reset_section): New method.
24136         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
24137         for localization.
24138         * cgraph.h (reset_section): Declare.
24139         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
24140         do not consider comdat locals.
24141         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
24142         for new symbol.
24143         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
24144         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
24145         reset sections of symbols dragged out of the comdats.
24146         (function_and_variable_visibility): Reset sections of
24147         localized symbols.
24148
24149 2014-06-16  Richard Biener  <rguenther@suse.de>
24150
24151         PR tree-optimization/61482
24152         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
24153         [-INF(OVF), +INF(OVF)] range.
24154
24155 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
24156
24157         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
24158         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
24159         handling 32-bit multiplication.
24160
24161 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
24162
24163         PR middle-end/61430
24164         * lra-lives.c (process_bb_lives): Skip creating copy during
24165         insn scan when src/dest has constrained to same regno.
24166
24167 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
24168
24169         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
24170         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
24171
24172 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
24173
24174         * asan.c (check_func): New function.
24175         (maybe_create_ssa_name): Likewise.
24176         (build_check_stmt_with_calls): Likewise.
24177         (use_calls_p): Likewise.
24178         (report_error_func): Change interface.
24179         (build_check_stmt): Allow non-integer lengths; add support
24180         for new parameter.
24181         (asan_instrument): Likewise.
24182         (instrument_mem_region_access): Moved code to build_check_stmt.
24183         (instrument_derefs): Likewise.
24184         (instrument_strlen_call): Likewise.
24185         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
24186         * doc/invoke.texi: Describe new parameter.
24187         * params.def: Define new parameter.
24188         * params.h: Likewise.
24189         * sanitizer.def: Describe new builtins.
24190
24191 2014-06-16  Richard Biener  <rguenther@suse.de>
24192
24193         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24194         Make all defs available at the end.
24195         (eliminate): If we remove a PHI node schedule cfg-cleanup.
24196
24197 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
24198
24199         PR plugins/45078
24200         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
24201
24202 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
24203
24204         PR bootstrap/61516
24205         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
24206         initialization.  Replace remaining use of uid.
24207
24208 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
24209
24210         * c-family/c-common.c (handle_tls_model_attribute): Use
24211         set_decl_tls_model.
24212         * c-family/c-common.c (handle_tls_model_attribute): Use
24213         set_decl_tls_model.
24214         * cgraph.h (struct varpool_node): Add tls_model.
24215         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
24216         * tree.h (DECL_TLS_MODEL): Update.
24217         (DECL_THREAD_LOCAL_P): Check that variable is static.
24218         (decl_tls_model): Declare.
24219         (set_decl_tls_model): Declare.
24220         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
24221         set symbol prorperties.
24222         (get_emutls_init_templ_addr): Cleanup.
24223         (new_emutls_decl): Update.
24224         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
24225         (lto_input_varpool_node): Likewise.
24226         * lto-streamer-out.c (hash_tree): Likewise.
24227         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
24228         not stream DECL_TLS_MODEL.
24229         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
24230         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
24231
24232 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
24233
24234         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
24235
24236 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
24237
24238         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
24239         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
24240         lists.
24241         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
24242         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
24243         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
24244         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
24245         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
24246         (df_get_artificial_defs, df_get_artificial_uses)
24247         (df_single_def, df_single_use): Update accordingly.
24248         (df_refs_chain_dump): Take the first element in a linked list as
24249         parameter, rather than a pointer to an array of pointers.
24250         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
24251         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
24252         (df_chain_create_bb_process_use): Likewise.
24253         (df_md_bb_local_compute_process_def): Likewise.
24254         * fwprop.c (process_defs, process_uses): Likewise.
24255         (register_active_defs, update_uses): Likewise.
24256         (forward_propagate_asm): Update for new df_ref linking.
24257         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
24258         (df_null_ref_rec, df_null_mw_rec): Likewise.
24259         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
24260         explicitly.
24261         (df_scan_free_bb_info): Remove check for null artificial_defs.
24262         (df_install_ref_incremental): Adjust for new df_ref linking.
24263         Use a single-element insertion rather than a full sort.
24264         (df_ref_chain_delete_du_chain): Take the first element
24265         in a linked list as parameter, rather than a pointer to an array of
24266         pointers.
24267         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
24268         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
24269         (df_insn_info_delete): Remove check for null defs and call to
24270         df_scan_free_mws_vec.
24271         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
24272         null rather than df_null_*_rec.
24273         (df_insn_rescan_debug_internal): Likewise, and update null
24274         checks in the same way.  Remove check for null defs.
24275         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
24276         Move a single element rather doing a full sort.
24277         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
24278         linking.
24279         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
24280         Initialize df_ref and df_mw_hardreg lists to null rather than
24281         df_null_*_rec.
24282         (df_ref_compare): Take df_refs as parameter, transferring the
24283         old interface to...
24284         (df_ref_ptr_compare): ...this new function.
24285         (df_sort_and_compress_refs): Update accordingly.
24286         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
24287         old interface to...
24288         (df_mw_ptr_compare): ...this new function.
24289         (df_sort_and_compress_mws): Update accordingly.
24290         (df_install_refs, df_install_mws): Return a linked list rather than
24291         an array of pointers.
24292         (df_refs_add_to_chains): Assert that old lists are empty rather
24293         than freeing them.
24294         (df_insn_refs_verify): Don't handle null defs speciailly.
24295         * web.c (union_match_dups): Update for new df_ref linking.
24296
24297 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
24298
24299         * df.h (df_ref_create, df_ref_remove): Delete.
24300         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
24301         (df_ref_remove): Likewise.
24302
24303 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
24304
24305         * df.h (df_single_def, df_single_use): New functions.
24306         * ira.c (find_moveable_pseudos): Use them.
24307
24308 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
24309
24310         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
24311         * df-problems.c (df_note_bb_compute): Use it.
24312         * regstat.c (regstat_bb_compute_ri): Likewise.
24313
24314 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
24315
24316         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
24317         * cse.c (cse_extended_basic_block): Use them.
24318         * dce.c (mark_artificial_use): Likewise.
24319         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
24320         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
24321         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
24322         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
24323         (df_simulate_initialize_backwards): Likewise.
24324         (df_simulate_finalize_backwards): Likewise.
24325         (df_simulate_initialize_forwards): Likewise.
24326         (df_md_simulate_artificial_defs_at_top): Likewise.
24327         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
24328         * regrename.c (init_rename_info): Likewise.
24329         * regstat.c (regstat_bb_compute_ri): Likewise.
24330         (regstat_bb_compute_calls_crossed): Likewise.
24331
24332 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
24333
24334         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
24335         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
24336         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
24337         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
24338         * combine.c (create_log_links): Likewise.
24339         * compare-elim.c (find_flags_uses_in_insn): Likewise.
24340         (try_eliminate_compare): Likewise.
24341         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
24342         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
24343         (remove_reg_equal_equiv_notes_for_defs): Likewise.
24344         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
24345         (word_dce_process_block, dce_process_block): Likewise.
24346         * ddg.c (def_has_ccmode_p): Likewise.
24347         * df-core.c (df_bb_regno_first_def_find): Likewise.
24348         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
24349         * df-problems.c (df_rd_simulate_one_insn): Likewise.
24350         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
24351         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
24352         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
24353         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
24354         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
24355         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
24356         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
24357         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
24358         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
24359         * fwprop.c (local_ref_killed_between_p): Likewise.
24360         (all_uses_available_at, free_load_extend): Likewise.
24361         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
24362         * hw-doloop.c (scan_loop): Likewise.
24363         * ifcvt.c (dead_or_predicable): Likewise.
24364         * init-regs.c (initialize_uninitialized_regs): Likewise.
24365         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
24366         (process_bb_node_lives): Likewise.
24367         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
24368         (find_moveable_pseudos): Likewise.
24369         * loop-invariant.c (check_dependencies, record_uses): Likewise.
24370         * recog.c (peep2_find_free_register): Likewise.
24371         * ree.c (get_defs): Likewise.
24372         * regstat.c (regstat_bb_compute_ri): Likewise.
24373         (regstat_bb_compute_calls_crossed): Likewise.
24374         * sched-deps.c (find_inc, find_mem): Likewise.
24375         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
24376         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
24377         * shrink-wrap.c (requires_stack_frame_p): Likewise.
24378         (prepare_shrink_wrap): Likewise.
24379         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
24380         * web.c (union_defs, pass_web::execute): Likewise.
24381         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
24382         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
24383
24384 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
24385
24386         * lra-assign.c (assign_by_spills): Add code to assign vector regs
24387         to inheritance pseudos.
24388         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
24389
24390 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
24391
24392         PR target/61415
24393         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
24394         (BU_MISC_2): Rename to ...
24395         (BU_LDBL128_2): ... this.
24396         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
24397         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
24398         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
24399         RS6000_BTM_LDBL128.
24400         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
24401         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
24402         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
24403         (unpacktf_1): Likewise.
24404         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
24405         (__builtin_longdouble_dw1): Likewise.
24406         * doc/sourcebuild.texi (longdouble128): Document.
24407
24408 2014-06-13  Jeff Law  <law@redhat.com>
24409
24410         PR rtl-optimization/61094
24411         PR rtl-optimization/61446
24412         * ree.c (combine_reaching_defs): Get the mode for the copy from
24413         the extension insn rather than the defining insn.
24414
24415 2014-06-13  Dehao Chen  <dehao@google.com>
24416
24417         * dwarf2out.c (add_linkage_name): Emit more linkage name.
24418
24419 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
24420
24421         * doc/install.texi (--enable-linker-plugin-configure-flags)
24422         (--enable-linker-plugin-flags): Document new flags.
24423
24424 2014-06-13  Martin Jambor  <mjambor@suse.cz>
24425
24426         PR ipa/61186
24427         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
24428         cache_token if returning early.
24429
24430 2014-06-13  Nick Clifton  <nickc@redhat.com>
24431
24432         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
24433         requested alignment is active.
24434         (LABEL_ALIGN): Likewise.
24435         (LOOP_ALIGN): Likewise.
24436
24437 2014-06-13  Richard Biener  <rguenther@suse.de>
24438
24439         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24440         Rewrite to propagate the VN result into all uses where
24441         possible and to remove stmts becoming dead because of that.
24442         (eliminate): Generalize stmt removal handling, remove in
24443         reverse dominator order to support proper debug stmt
24444         generation.  Update stmts before removing stmts.
24445         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
24446
24447 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24448
24449         PR tree-optimization/61375
24450         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
24451         symbolic number cannot be represented in an uint64_t.
24452         (find_bswap_or_nop_1): Likewise.
24453
24454 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
24455
24456         * symtab.c (symtab_node::reset_section): New method.
24457         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
24458         for localization.
24459         * cgraph.h (reset_section): Declare.
24460         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
24461         do not consider comdat locals.
24462         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
24463         for new symbol.
24464         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
24465         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
24466         reset sections of symbols dragged out of the comdats.
24467         (function_and_variable_visibility): Reset sections of
24468         localized symbols.
24469
24470 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
24471
24472         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
24473         to use symtab and decl_binds_to_current_def_p
24474         * tree-vectorizer.c (increase_alignment): Increase alignment
24475         of alias target, too.
24476
24477 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
24478
24479         PR middle-end/61486
24480         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
24481         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
24482         if outer combined construct is distribute.
24483         (gimplify_omp_for): For OMP_DISTRIBUTE set
24484         gimplify_omp_ctxp->distribute.
24485         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
24486         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
24487         mapping into decl map.
24488
24489 2014-06-12  Jason Merrill  <jason@redhat.com>
24490
24491         * common.opt (fabi-version): Change default to 0.
24492
24493 2014-06-12  Jason Merrill  <jason@redhat.com>
24494
24495         * toplev.c (process_options): Reject -fabi-version=1.
24496
24497 2014-06-12  Jeff Law  <law@redhat.com>
24498
24499         PR tree-optimization/61009
24500         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
24501         value when we stop processing a block due to problematic PHIs.
24502
24503 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
24504
24505         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
24506         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
24507         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
24508         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
24509         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
24510         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
24511         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
24512         are not in the spec.
24513
24514 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
24515
24516         PR target/59843
24517         * config/aarch64/aarch64-modes.def: Add V1DFmode.
24518         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
24519         Support V1DFmode.
24520
24521 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
24522
24523         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
24524
24525 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
24526
24527         PR target/61443
24528         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
24529         loading from address spaces.
24530
24531 2014-06-12  Martin Liska  <mliska@suse.cz>
24532
24533         PR ipa/61462
24534         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
24535         statement is reachable.
24536
24537 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
24538
24539         * symtab.c (section_hash): New hash.
24540         (symtab_unregister_node): Clear section before freeing.
24541         (hash_section_hash_entry): New haser.
24542         (eq_sections): New function.
24543         (symtab_node::set_section_for_node): New method.
24544         (set_section_1): Update.
24545         (symtab_node::set_section): Take string instead of tree as parameter.
24546         (symtab_resolve_alias): Update.
24547         * cgraph.h (section_hash_entry_d): New structure.
24548         (section_hash_entry): New typedef.
24549         (cgraph_node): Change comdat_group_ to x_comdat_group,
24550         change section_ to x_section and turn into section_hash_entry;
24551         update accestors; put set_section_for_node offline.
24552         * tree.c (decl_section_name): Turn into string.
24553         (set_decl_section_name): Change parameter to be string.
24554         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
24555         * sdbout.c (sdbout_one_type): Update.
24556         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
24557         * varasm.c (IN_NAMED_SECTION, get_named_section,
24558         resolve_unique_section, hot_function_section, get_named_text_section,
24559         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
24560         make_decl_rtl, default_unique_section): Update.
24561         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
24562         (c6x_elf_unique_section): Update.
24563         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
24564         * config/pa/pa.c (pa_function_section): Update.
24565         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
24566         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
24567         * config/arc/arc.c (arc_in_small_data_p): Update.
24568         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
24569         * config/mcore/mcore.c (mcore_unique_section): Update.
24570         * config/mips/mips.c (mips16_build_function_stub): Update.
24571         (mips16_build_call_stub): Update.
24572         (mips_function_rodata_section): Update.
24573         (mips_in_small_data_p): Update.
24574         * config/score/score.c (score_in_small_data_p): Update.
24575         * config/rx/rx.c (rx_in_small_data): Update.
24576         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
24577         (rs6000_xcoff_asm_named_section): Update.
24578         (rs6000_xcoff_unique_section): Update.
24579         * config/frv/frv.c (frv_string_begins_with): Update.
24580         (frv_in_small_data_p): Update.
24581         * config/v850/v850.c (v850_encode_data_area): Update.
24582         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
24583         (bfin_handle_l1_data_attribute): Update.
24584         (bfin_handle_l2_attribute): Update.
24585         * config/mep/mep.c (mep_unique_section): Update.
24586         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
24587         Update.
24588         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
24589         (h8300_handle_tiny_data_attribute): Update.
24590         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
24591         (m32r_in_small_data_p): Update.
24592         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
24593         * config/i386/i386.c (ix86_in_large_data_p): Update.
24594         * config/i386/winnt.c (i386_pe_unique_section): Update.
24595         * config/darwin.c (darwin_function_section): Update.
24596         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
24597         * tree-emutls.c (get_emutls_init_templ_addr): Update.
24598         (new_emutls_decl): Update.
24599         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
24600         input_varpool_node): Update.
24601         (ead_string_cst): Turn to ...
24602         (read_string): ... this one.
24603         * dwarf2out.c (secname_for_decl): Update.
24604         * asan.c (asan_protect_global): Update.
24605
24606 2014-06-11  DJ Delorie  <dj@redhat.com>
24607
24608         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
24609         cache lines.
24610         * config/rx/rx.c (rx_option_override): Likewise.
24611         (rx_align_for_label): Likewise.
24612
24613         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
24614
24615 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
24616
24617         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
24618         prototype.
24619
24620 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
24621
24622         * common.md: New file.
24623         * doc/md.texi: Update description of generic, machine-independent
24624         constraints.
24625         * config/s390/constraints.md (e): Delete.
24626         * Makefile.in (md_file): Include common.md.
24627         * config/m32c/t-m32c (md_file): Likewise.
24628         * genpreds.c (general_mem): New array.
24629         (generic_constraint_letters): Remove constraints now defined by
24630         common.md.
24631         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
24632         Allow the first character to be '<' or '>' as well.
24633         * genoutput.c (general_mem): New array.
24634         (indep_constraints): Remove constraints now defined by common.md.
24635         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
24636         Remove special handling of 'm'.
24637         * ira-costs.c (record_reg_classes): Remove special handling of
24638         constraints now defined by common.md.
24639         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
24640         * ira-lives.c (single_reg_class): Likewise.
24641         (ira_implicitly_set_insn_hard_regs): Likewise.
24642         * lra-constraints.c (reg_class_from_constraints): Likewise.
24643         (process_alt_operands, process_address, curr_insn_transform): Likewise.
24644         * postreload.c (reload_cse_simplify_operands): Likewise.
24645         * reload.c (push_secondary_reload, scratch_reload_class)
24646         (find_reloads, alternative_allows_const_pool_ref): Likewise.
24647         * reload1.c (maybe_fix_stack_asms): Likewise.
24648         * targhooks.c (default_secondary_reload): Likewise.
24649         * stmt.c (parse_output_constraint): Likewise.
24650         * recog.c (preprocess_constraints): Likewise.
24651         (constrain_operands, peep2_find_free_register): Likewise.
24652         (asm_operand_ok): Likewise, but add a comment saying why 'o'
24653         must be handled specially.
24654
24655 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
24656
24657         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
24658         * genpreds.c (have_const_dbl_constraints): Delete.
24659         (add_constraint): Don't set it.
24660         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
24661         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
24662         constraints using the lookup_constraint logic.
24663         * ira-lives.c (single_reg_class): Likewise.
24664         * ira.c (ira_setup_alts): Likewise.
24665         * lra-constraints.c (process_alt_operands): Likewise.
24666         * recog.c (asm_operand_ok, constrain_operands): Likewise.
24667         * reload.c (find_reloads): Likewise.
24668
24669 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
24670
24671         * genpreds.c (const_int_start, const_int_end): New variables.
24672         (choose_enum_order): Output CONST_INT constraints before memory
24673         constraints.
24674         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
24675         Add CT_CONST_INT.
24676         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
24677         * ira.c (ira_setup_alts): Likewise.
24678         * lra-constraints.c (process_alt_operands): Likewise.
24679         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
24680         * reload.c (find_reloads): Likewise.
24681
24682 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
24683
24684         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
24685         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
24686         * recog.c (preprocess_constraints): Update accordingly.
24687
24688 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
24689
24690         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
24691         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
24692         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
24693         * genpreds.c (print_type_tree): New function.
24694         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
24695         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
24696         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
24697         Write out enum constraint_type and get_constraint_type.
24698         * lra-constraints.c (satisfies_memory_constraint_p): Take a
24699         constraint_num rather than a constraint string.
24700         (satisfies_address_constraint_p): Likewise.
24701         (reg_class_from_constraints): Avoid old constraint macros.
24702         (process_alt_operands, process_address_1): Likewise.
24703         (curr_insn_transform): Likewise.
24704         * ira-costs.c (record_reg_classes): Likewise.
24705         (record_operand_costs): Likewise.
24706         * ira-lives.c (single_reg_class): Likewise.
24707         (ira_implicitly_set_insn_hard_regs): Likewise.
24708         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
24709         * postreload.c (reload_cse_simplify_operands): Likewise.
24710         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
24711         (constrain_operands, peep2_find_free_register): Likewise.
24712         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
24713         (find_reloads, alternative_allows_const_pool_ref): Likewise.
24714         * reload1.c (maybe_fix_stack_asms): Likewise.
24715         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
24716         * targhooks.c (default_secondary_reload): Likewise.
24717         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
24718         to EXTRA_CONSTRAINT_STR.
24719         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
24720
24721 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
24722
24723         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
24724         (write_constraint_satisfied_p_array): ...this new function.
24725         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
24726         an array.
24727         (write_insn_preds_c): Update accordingly.
24728
24729 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
24730
24731         * genpreds.c (write_lookup_constraint): Rename to...
24732         (write_lookup_constraint_1): ...this.
24733         (write_lookup_constraint_array): New function.
24734         (write_tm_preds_h): Define lookup_constraint as an inline function
24735         that uses write_lookup_constraint_array where possible.
24736         (write_insn_preds_c): Update for the changes above.
24737
24738 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
24739
24740         * doc/md.texi (regclass_for_constraint): Rename to...
24741         (reg_class_for_constraint): ...this.
24742         * genpreds.c (num_constraints, enum_order, register_start)
24743         (register_end, satisfied_start, memory_start, memory_end)
24744         (address_start, address_end): New variables.
24745         (add_constraint): Count the number of constraints.
24746         (choose_enum_order): New function.
24747         (write_enum_constraint_num): Iterate over enum_order.
24748         (write_regclass_for_constraint): Rename to...
24749         (write_reg_class_for_constraint_1): ...this and update output
24750         accordingly.
24751         (write_constraint_satisfied_p): Rename to...
24752         (write_constraint_satisfied_p_1): ...this and update output
24753         accordingly.  Do nothing if all extra constraints are register
24754         constraints.
24755         (write_insn_extra_memory_constraint): Delete.
24756         (write_insn_extra_address_constraint): Delete.
24757         (write_range_function): New function.
24758         (write_tm_preds_h): Define constraint_satisfied_p and
24759         reg_class_for_constraint as inline functions that do a range check
24760         before calling the out-of-line function.  Use write_range_function
24761         to implement insn_extra_{register,memory,address}_constraint,
24762         the first of which is new.
24763         (write_insn_preds_c): Update after above changes to write_* functions.
24764         (main): Call choose_enum_order.
24765
24766 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24767
24768         PR tree-optimization/61306
24769         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
24770         expression instead of its size.
24771         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
24772         false to prevent optimization when the result is unpredictable due to
24773         arithmetic right shift of signed type with highest byte is set.
24774         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
24775         (init_symbolic_number): Likewise.
24776         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
24777         when the result is unpredictable due to sign extension.
24778
24779 2014-06-11  Terry Guo  <terry.guo@arm.com>
24780
24781         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
24782         (*thumb1_addsi3): Ditto.
24783         (*thumb_subdi3): Ditto.
24784         (thumb1_subsi3_insn): Ditto.
24785         (*thumb_mulsi3): Ditto.
24786         (*thumb_mulsi3_v6): Ditto.
24787         (*thumb1_andsi3_insn): Ditto.
24788         (thumb1_bicsi3): Ditto.
24789         (*thumb1_iorsi3_insn): Ditto.
24790         (*thumb1_xorsi3_insn): Ditto.
24791         (*thumb1_ashlsi3): Ditto.
24792         (*thumb1_ashrsi3): Ditto.
24793         (*thumb1_lshrsi3): Ditto.
24794         (*thumb1_rotrsi3): Ditto.
24795         (*thumb1_negdi2): Ditto.
24796         (*thumb1_negsi2): Ditto.
24797         (*thumb1_abssi2): Ditto.
24798         (*thumb1_neg_abssi2): Ditto.
24799         (*thumb1_one_cmplsi2): Ditto.
24800         (*thumb1_zero_extendhisi2): Ditto.
24801         (*thumb1_zero_extendqisi2): Ditto.
24802         (*thumb1_zero_extendqisi2_v6): Ditto.
24803         (thumb1_extendhisi2): Ditto.
24804         (thumb1_extendqisi2): Ditto.
24805         (*thumb1_movdi_insn): Ditto.
24806         (*thumb1_movsi_insn): Ditto.
24807         (*thumb1_movhi_insn): Ditto.
24808         (thumb_movhi_clobber): Ditto.
24809         (*thumb1_movqi_insn): Ditto.
24810         (*thumb1_movhf): Ditto.
24811         (*thumb1_movsf_insn): Ditto.
24812         (*thumb_movdf_insn): Ditto.
24813         (movmem12b): Ditto.
24814         (movmem8b): Ditto.
24815         (cbranchqi4): Ditto.
24816         (cbranchsi4_insn): Ditto.
24817         (cbranchsi4_scratch): Ditto.
24818         (*negated_cbranchsi4): Ditto.
24819         (*tbit_cbranch): Ditto.
24820         (*tlobits_cbranch): Ditto.
24821         (*tstsi3_cbranch): Ditto.
24822         (*cbranchne_decr1): Ditto.
24823         (*addsi3_cbranch): Ditto.
24824         (*addsi3_cbranch_scratch): Ditto.
24825         (*thumb_cmpdi_zero): Ditto.
24826         (cstoresi_eq0_thumb1): Ditto.
24827         (cstoresi_ne0_thumb1): Ditto.
24828         (*cstoresi_eq0_thumb1_insn): Ditto.
24829         (*cstoresi_ne0_thumb1_insn): Ditto.
24830         (cstoresi_nltu_thumb1): Ditto.
24831         (cstoresi_ltu_thumb1): Ditto.
24832         (thumb1_addsi3_addgeu): Ditto.
24833         (*thumb_jump): Ditto.
24834         (*call_reg_thumb1_v5): Ditto.
24835         (*call_reg_thumb1): Ditto.
24836         (*call_value_reg_thumb1_v5): Ditto.
24837         (*call_value_reg_thumb1): Ditto.
24838         (*call_insn): Ditto.
24839         (*call_value_insn): Ditto.
24840         (thumb1_casesi_internal_pic): Ditto.
24841         (thumb1_casesi_dispatch): Ditto.
24842         (*thumb1_indirect_jump): Ditto.
24843         (prologue_thumb1_interwork): Ditto.
24844         (*epilogue_insns): Ditto.
24845         (consttable_1): Ditto.
24846         (consttable_2): Ditto.
24847         (tablejump): Ditto.
24848         (*thumb1_tablejump): Ditto.
24849         (thumb_eh_return): Ditto.
24850         (define_peephole2): Two of them are thumb1 only and got moved into
24851         new file thumb1.md.
24852         (define_split): Six of them are thumb1 only and got moved into new
24853         file thumb1.md.
24854         * config/arm/thumb1.md: New file comprised of above thumb1 only
24855         patterns.
24856
24857 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24858
24859         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
24860         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
24861         dependencies.
24862         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
24863         (aarch64_crc_builtin_datum): New struct.
24864         (aarch64_crc_builtin_data): New.
24865         (aarch64_init_crc32_builtins): New function.
24866         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
24867         (aarch64_crc32_expand_builtin): New.
24868         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
24869         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
24870         __ARM_FEATURE_CRC32 when appropriate.
24871         (TARGET_CRC32): Define.
24872         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
24873         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
24874         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
24875         (aarch64_<crc_variant>): New pattern.
24876         * config/aarch64/arm_acle.h: New file.
24877         * config/aarch64/iterators.md (CRC): New int iterator.
24878         (crc_variant, crc_mode): New int attributes.
24879         * doc/aarch64-acle-intrinsics.texi: New file.
24880         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
24881         Include aarch64-acle-intrinsics.texi.
24882
24883 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
24884
24885         * tree-vect-data-refs.c (vect_grouped_store_supported): New
24886         check for stores group of length 3.
24887         (vect_permute_store_chain): New permutations for stores group of
24888         length 3.
24889         * tree-vect-stmts.c (vect_model_store_cost): Change cost
24890         of vec_perm_shuffle for the new permutations.
24891
24892 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
24893
24894         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
24895         table rewriting temporarily on targets not supporting ONE_ONLY.
24896
24897 2014-06-11  Richard Biener  <rguenther@suse.de>
24898
24899         PR middle-end/61437
24900         Revert
24901         2014-06-04  Richard Biener  <rguenther@suse.de>
24902
24903         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
24904         TREE_PUBLIC and DECL_EXTERNAL decls.
24905
24906 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
24907
24908         * varasm.c (set_implicit_section): New function.
24909         (resolve_unique_section): Use it to set implicit section
24910         for aliases, too.
24911         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
24912         (default_function_section): Likewise.
24913         (decl_binds_to_current_def_p): Constify argument.
24914         * varasm.h (decl_binds_to_current_def_p): Update prototype.
24915         * asan.c (asan_protect_global): Use
24916         symtab_get_node (decl)->implicit_section.
24917         * symtab.c (dump_symtab_base): Dump implicit sections.
24918         (verify_symtab_base): Verify sanity of sectoins and comdats.
24919         (symtab_resolve_alias): Alias share the section of its target.
24920         (set_section_1): New function.
24921         (symtab_node::set_section): Move here, recurse to aliases.
24922         (verify_symtab): Check for duplicated symtab lists.
24923         * tree-core.h (implicit_section_name_p): Remove.
24924         * tree-vect-data-refs.c: Include varasm.h.
24925         (vect_can_force_dr_alignment_p): Fix conditional on when
24926         decl bints to current definition; use
24927         symtab_get_node (decl)->implicit_section.
24928         * cgraph.c (cgraph_make_node_local_1): Fix section set.
24929         * cgraph.h (struct symtab_node): Add implicit_section.
24930         (set_section): Rename to ...
24931         (set_section_for_node): ... this one.
24932         (set_section): Declare.
24933         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
24934         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24935         input_overwrite_node, input_varpool_node): Stream implicit_section.
24936         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
24937         removal; it will fail in LTO.
24938
24939 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24940
24941         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
24942         Change second alternative type to f_mcr.
24943         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
24944         and 12th alternatives' types to f_mcr and f_mrc.
24945         (*movdi_aarch64): Same for 12th and 13th alternatives.
24946         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
24947         (aarch64_movtilow_tilow): Change type to fmov.
24948
24949 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
24950
24951         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
24952         (aarch64_save_or_restore_callee_save_registers): Fix layout.
24953
24954 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24955
24956         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
24957         New expander.
24958         (aarch64_sqrdmulh_lane<mode>): Likewise.
24959         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
24960         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
24961         (aarch64_sqdmulh_laneq<mode>): New expander.
24962         (aarch64_sqrdmulh_laneq<mode>): Likewise.
24963         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
24964         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
24965         (aarch64_sqdmulh_lane<mode>): New expander.
24966         (aarch64_sqrdmulh_lane<mode>): Likewise.
24967         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
24968         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
24969         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
24970         (aarch64_sqdmlal_laneq<mode>): Likewise.
24971         (aarch64_sqdmlsl_lane<mode>): Likewise.
24972         (aarch64_sqdmlsl_laneq<mode>): Likewise.
24973         (aarch64_sqdmlal2_lane<mode>): Likewise.
24974         (aarch64_sqdmlal2_laneq<mode>): Likewise.
24975         (aarch64_sqdmlsl2_lane<mode>): Likewise.
24976         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
24977         (aarch64_sqdmull_lane<mode>): Likewise.
24978         (aarch64_sqdmull_laneq<mode>): Likewise.
24979         (aarch64_sqdmull2_lane<mode>): Likewise.
24980         (aarch64_sqdmull2_laneq<mode>): Likewise.
24981
24982 2014-06-10  Richard Biener  <rguenther@suse.de>
24983
24984         PR tree-optimization/61438
24985         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
24986         (eliminate_dom_walker::before_dom_children): Only try to inhibit
24987         insertion of IVs if running PRE.
24988         (eliminate): Adjust.
24989         (pass_pre::execute): Likewise.
24990         (pass_fre::execute): Likewise.
24991
24992 2014-06-10  Richard Biener  <rguenther@suse.de>
24993
24994         PR middle-end/61456
24995         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24996         Do not use the main variant for the type comparison.
24997         (ncr_compar): Likewise.
24998         (nonoverlapping_component_refs_p): Likewise.
24999
25000 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25001
25002         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
25003         REG_CFA_RESTORE mode.
25004
25005 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
25006
25007         * config/i386/i386.c (expand_vec_perm_pblendv): New.
25008         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
25009         expand_vec_perm_pblendv.
25010
25011 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25012
25013         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
25014         available.
25015         Simplify description of __crc32d and __crc32cd intrinsics.
25016         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
25017         availability.
25018
25019 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
25020
25021         PR lto/61334
25022         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
25023         * config.in: Regenerate.
25024         * configure: Likewise.
25025
25026 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
25027
25028         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
25029         and public vars.
25030         (intersect_static_var_sets): Remove.
25031         (propagate): Do not prune local statics.
25032
25033 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
25034
25035         PR fortran/60928
25036         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
25037         Set lastprivate_firstprivate even if omp_private_outer_ref
25038         langhook returns true.
25039         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
25040         langhook, call unshare_expr on new_var and call
25041         build_outer_var_ref to get the last argument.
25042
25043 2014-06-10  Marek Polacek  <polacek@redhat.com>
25044
25045         PR c/60988
25046         * doc/extend.texi: Add cindex for transparent_union.
25047
25048 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25049
25050         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
25051         init_symbolic_number ().
25052
25053 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
25054
25055         PR middle-end/61141
25056         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
25057         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
25058         (verify_rtl_sharing): Likewise.
25059
25060 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
25061
25062         PR c++/54442
25063         * tree.c (build_qualified_type): Use a canonical type for
25064         TYPE_CANONICAL.
25065
25066 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25067
25068         * config/arm/arm-modes.def: Remove XFmode.
25069
25070 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
25071
25072         PR target/61062
25073         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
25074         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
25075         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
25076         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
25077         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
25078         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
25079         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
25080         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
25081         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
25082
25083 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
25084
25085         * tree-core.h (tree_decl_with_vis): Remove section_name.
25086
25087 2014-06-09  Kito Cheng  <kito@0xlab.org>
25088
25089         * ira.c (ira): Don't call init_caller_save if LRA enabled
25090         since LRA use its own infrastructure to handle that.
25091
25092 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
25093
25094         * symtab.c (dump_symtab_base): Update dumping.
25095         (symtab_make_decl_local): Clear only DECL_COMDAT.
25096         * tree-vect-data-refs.c (Check that variable is static before
25097         tampering with sections.
25098         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
25099         (cgraph_create_virtual_clone): Likewise.
25100         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
25101         (decl_section_name, set_decl_section_name): New accessors.
25102         (find_decls_types_r): Do not walk section name
25103         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
25104         (decl_comdat_group, decl_comdat_group_id): Constify.
25105         (decl_section_name, set_decl_section_name): Update.
25106         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
25107         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
25108         (cgraph_make_node_local_1): Clear section and comdat group.
25109         * cgraph.h (set_comdat_group): Sanity check.
25110         (get_section, set_section): New.
25111         * ipa-comdats.c (ipa_comdats): Use get_section.
25112         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
25113         * lto-streamer-out.c: Do not follow section names.
25114         * c-family/c-common.c (handle_section_attribute): Update.
25115         * lto-cgraph.c (lto_output_node): Output section.
25116         (lto_output_varpool_node): Likewise.
25117         (read_comdat_group): Rename to ...
25118         (read_identifier): ... this one.
25119         (read_string_cst): New function.
25120         (input_node, input_varpool_node): Input section names.
25121         * tree-emutls.c (get_emutls_init_templ_addr): Update.
25122         (new_emutls_decl): Update.
25123         (secname_for_decl): Check section names only of static vars.
25124         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
25125         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
25126         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
25127         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
25128         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
25129         * config/mcore/mcore.c (mcore_unique_section): Likewise.
25130         * config/mips/mips.c (mips16_build_function_stub): Likewise.
25131         * config/v850/v850.c (v850_insert_attributes): Likewise.
25132         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
25133         Likewise.
25134         (h8300_handle_tiny_data_attribute): Likewise.
25135         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
25136         (bfin_handle_l2_attribute): Likewise.
25137
25138 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
25139
25140         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
25141         remove static initializer.
25142
25143 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
25144
25145         * varasm.c (use_blocks_for_decl_p): Check symbol table
25146         instead of alias attribute.
25147         (place_block_symbol): Recurse on aliases.
25148
25149 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
25150
25151         * ipa-visibility.c: Include varasm.h
25152         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
25153
25154 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
25155
25156         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
25157         outputting aliases.
25158
25159 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
25160
25161         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
25162         from test_insn into GGC space escape via SET_SRC.
25163
25164 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
25165
25166         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
25167         call statement, if any.
25168         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
25169         statements, if any.  Tidy up.
25170
25171 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
25172
25173         PR target/61431
25174         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
25175         iterators, VSX_D that handles 64-bit types, and VSX_LE that
25176         handles swapping the two 64-bit double words on little endian
25177         systems.  Include V1TImode and optionally TImode in VSX_LE so that
25178         these types are properly swapped.  Change all of the insns and
25179         splits that do the 64-bit swaps to use VSX_LE.
25180         (vsx_le_perm_load_<mode>): Likewise.
25181         (vsx_le_perm_store_<mode>): Likewise.
25182         (splitters for little endian memory operations): Likewise.
25183         (vsx_xxpermdi2_le_<mode>): Likewise.
25184         (vsx_lxvd2x2_le_<mode>): Likewise.
25185         (vsx_stxvd2x2_le_<mode>): Likewise.
25186
25187 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
25188
25189         PR target/61423
25190         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
25191         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
25192         and corresponding splitters.  Zero extend general register
25193         or memory input operand to XMM temporary.  Enable for
25194         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
25195         (floatunssi<mode>2): Update expander predicate.
25196
25197 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
25198
25199         PR rtl-optimization/61325
25200         * lra-constraints.c (process_address_1): Check scale equal to one
25201         to prevent transformation: base + scale * index => base + new_reg.
25202
25203 2014-06-06  Richard Biener  <rguenther@suse.de>
25204
25205         PR tree-optimization/59299
25206         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
25207         a def operand.
25208         (nearest_common_dominator_of_uses): Likewise.
25209         (statement_sink_location): Adjust.  Support sinking loads.
25210
25211 2014-06-06  Martin Jambor  <mjambor@suse.cz>
25212
25213         * ipa-prop.c (get_place_in_agg_contents_list): New function.
25214         (build_agg_jump_func_from_list): Likewise.
25215         (determine_known_aggregate_parts): Renamed to
25216         determine_locally_known_aggregate_parts.  Moved some functionality
25217         to the two functions above, removed bound checks.
25218
25219 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
25220
25221         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
25222         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
25223         (aarch64_progress_pointer): Likewise.
25224         (aarch64_copy_one_part_and_move_pointers): Likewise.
25225         (aarch64_expand_movmen): Likewise.
25226         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
25227         * config/aarch64/aarch64.md (movmem<mode>): New.
25228
25229 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
25230
25231         * targhooks.c (default_add_stmt_cost): Call target specific
25232         hook instead of default one.
25233
25234 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25235
25236         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
25237         endianness instead of host endianness.
25238         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
25239         comments.
25240
25241 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
25242
25243         PR debug/53927
25244         * function.c (instantiate_decls): Process the saved static chain.
25245         (expand_function_start): If not optimizing, save the static chain
25246         onto the stack.
25247         * tree-nested.c (convert_all_function_calls): Always create the static
25248         chain for nested functions if not optimizing.
25249
25250 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
25251
25252         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
25253
25254 2014-06-06  Richard Biener  <rguenther@suse.de>
25255
25256         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
25257         (construct_init_block): Likewise.
25258         (construct_exit_block): Likewise.
25259         (pass_expand::execute): Likewise.
25260         * graphite.c (graphite_transforms): Replace check for current_loops
25261         with a check for > 1 loops.
25262         (pass_graphite_transforms::execute): Adjust.
25263         * ipa-split.c (split_function): Remove check for current_loops.
25264         * omp-low.c (expand_parallel_call): Likewise.
25265         (expand_omp_for_init_counts): Likewise.
25266         (extract_omp_for_update_vars): Likewise.
25267         (expand_omp_for_generic): Likewise.
25268         (expand_omp_sections): Likewise.
25269         (expand_omp_target): Likewise.
25270         * tracer.c (tail_duplicate): Likewise.
25271         (pass_tracer::execute): Likewise.
25272         * trans-mem.c (expand_transaction): Likewise.
25273         * tree-complex.c (expand_complex_div_wide): Likewise.
25274         * tree-eh.c (lower_resx): Likewise.
25275         (cleanup_empty_eh_merge_phis): Likewise.
25276         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
25277         current_loops with a check for > 1 loops.
25278         (pass_predcom::execute): Adjust.
25279         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
25280         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
25281         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
25282         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
25283         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
25284         * tree-switch-conversion.c (process_switch): Likewise.
25285         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
25286         * tree-vrp.c (vrp_visit_phi_node): Likewise.
25287         (execute_vrp): Likewise.
25288         * ubsan.c (ubsan_expand_null_ifn): Likewise.
25289
25290 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
25291
25292         * rtl.h (insn_location): Declare.
25293         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
25294         with UNKNOWN_LOCATION.
25295         * emit-rtl.c (insn_location): New function.
25296         * final.c (notice_source_line): Check that the instruction has a
25297         location before retrieving it and use insn_location.
25298         * modulo-sched.c (loop_single_full_bb_p): Likewise.
25299         * print-rtl.c (print_rtx): Likewise.
25300
25301 2014-06-06  Richard Biener  <rguenther@suse.de>
25302
25303         * passes.def: Move 2nd VRP pass before phi-only-cprop.
25304
25305 2014-06-06  Christian Bruel  <christian.bruel@st.com>
25306
25307         PR tree-optimization/43934
25308         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
25309         cost.
25310
25311 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
25312
25313         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
25314         return NO_REGS for extra address and memory constraints.  Handle
25315         operands that match (or are equivalent to something that matches)
25316         extra constant constraints.  Ignore other non-register operands.
25317
25318 2014-06-06  Alan Modra  <amodra@gmail.com>
25319
25320         PR target/61300
25321         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
25322         * doc/tm.texi: Regenerate.
25323         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
25324         Use throughout in place of REG_PARM_STACK_SPACE.
25325         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
25326         "incoming" param.  Pass to rs6000_function_parms_need_stack.
25327         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
25328         prototype_p when incoming.  Use function decl when incoming
25329         to handle K&R style functions.
25330         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
25331         (INCOMING_REG_PARM_STACK_SPACE): Define.
25332
25333 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
25334
25335         PR target/52472
25336         * cfgexpand.c (expand_debug_expr): Use address space of nested
25337         TREE_TYPE for ADDR_EXPR and MEM_REF.
25338
25339 2014-06-05  Jeff Law  <law@redhat.com>
25340
25341         PR tree-optimization/61289
25342         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
25343         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
25344         looking for those which match LHS.  All callers changed.
25345         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
25346         parameters and code which manipulated them.  All callers changed.
25347         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
25348         and DST_MAP parameters.  Simplify invalidation code by just calling
25349         invalidate_equivalences.  All callers changed.
25350         (thread_across_edge): Simplify now that we don't need to maintain
25351         the map of equivalences to invalidate.
25352
25353 2014-06-05  Kai Tietz  <ktietz@redhat.com>
25354             Richard Henderson  <rth@redhat.com>
25355
25356         PR target/46219
25357         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
25358         checking for !TARGET_X32.
25359         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
25360         (sibcall_intern): New define_insn, plus required peepholes.
25361         (sibcall_pop_intern): Likewise.
25362         (sibcall_value_intern): Likewise.
25363         (sibcall_value_pop_intern): Likewise.
25364
25365 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
25366
25367         * tree-inline.c (tree_function_versioning): Check DF info existence
25368         before accessing it.
25369
25370 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25371
25372         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
25373         frame_size.
25374         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
25375         aarch64_frame hard_fp_offset and frame_size.
25376         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
25377         frame_size; remove original_frame_size.
25378         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
25379         (aarch64_initial_elimination_offset): Remove frame_size and
25380         offset.  Use aarch64_frame frame_size.
25381
25382 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25383             Jiong Wang  <jiong.wang@arm.com>
25384             Renlin  <renlin.li@arm.com>
25385
25386         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
25387         initialization of R30 offset.  Update offset.  Iterate core
25388         regisers upto X30.  Remove X29, X30 specific code.
25389
25390 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25391             Jiong Wang  <jiong.wang@arm.com>
25392
25393         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
25394         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
25395         (aarch64_register_saved_on_entry): Adjust test.
25396
25397 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25398
25399         * config/aarch64/aarch64.h (machine_function): Move
25400         saved_varargs_size from here...
25401         (aarch64_frame): ... to here.
25402
25403         * config/aarch64/aarch64.c (aarch64_expand_prologue)
25404         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
25405         (aarch64_initial_elimination_offset)
25406         (aarch64_setup_incoming_varargs): Adjust location of
25407         saved_varargs_size.
25408
25409 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25410
25411         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
25412         layout comment.
25413
25414 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
25415             Prachi Godbole  <Prachi.Godbole@imgtec.com>
25416
25417         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
25418         mips32r5 entry to use PROCESSOR_P5600.
25419         * config/mips/mips-tables.opt: Regenerate.
25420         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
25421         * config/mips/mips.c (mips_fmadd_bypass): New function.
25422         (mips_rtx_cost_data): Add costs for p5600.
25423         (mips_issue_rate): Add support for p5600.
25424         (mips_multipass_dfa_lookahead): Likewise.
25425         * config/mips/mips.h (TUNE_P5600): New define.
25426         (TUNE_MACC_CHAINS): Add TUNE_P5600.
25427         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
25428         * config/mips/mips.md: Include p5600.md.
25429         (processor): Add p5600.
25430         * config/mips/p5600.md: New file.
25431
25432 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
25433
25434         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
25435         * config/i386/predicates.md (palignr_operand): New.
25436         Indicates if permutation is suitable for palignr instruction.
25437
25438 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
25439
25440         PR tree-optimization/61319
25441         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
25442         stmt belongs to loop.
25443
25444 2014-06-05  Richard Biener  <rguenther@suse.de>
25445
25446         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
25447         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
25448         (lookup_tmp_var): Adjust.
25449         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
25450
25451 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25452
25453         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
25454
25455 2014-06-05  Marek Polacek  <polacek@redhat.com>
25456
25457         PR c/49706
25458         * doc/invoke.texi: Document -Wlogical-not-parentheses.
25459
25460 2014-06-04  Tom de Vries  <tom@codesourcery.com>
25461
25462         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
25463         CONST_INT.
25464
25465 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
25466
25467         PR tree-optimization/61385
25468         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
25469
25470 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
25471
25472         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
25473         changed to use fatal_error.
25474         (main): Ensure lto_wrapper_cleanup is run atexit.
25475
25476 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
25477
25478         * lra-constraints.c (valid_address_p): Move earlier in file.
25479         (address_eliminator): New structure.
25480         (satisfies_memory_constraint_p): New function.
25481         (satisfies_address_constraint_p): Likewise.
25482         (process_alt_operands, process_address, curr_insn_transform): Use them.
25483
25484 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
25485
25486         * lra-int.h (lra_static_insn_data): Make operand_alternative a
25487         const pointer.
25488         (target_lra_int, default_target_lra_int, this_target_lra_int)
25489         (op_alt_data): Delete.
25490         * lra.h (lra_init): Delete.
25491         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
25492         (init_insn_code_data_once): Remove op_alt_data handling.
25493         (finish_insn_code_data_once): Likewise.
25494         (init_op_alt_data): Delete.
25495         (get_static_insn_data): Initialize operand_alternative to null.
25496         (free_insn_recog_data): Cast operand_alternative before freeing it.
25497         (setup_operand_alternative): Take the operand_alternative as
25498         parameter and assume it isn't already cached in the static
25499         insn data.
25500         (lra_set_insn_recog_data): Update accordingly.
25501         (lra_init): Delete.
25502         * ira.c (ira_init): Don't call lra_init.
25503         * target-globals.h (this_target_lra_int): Declare.
25504         (target_globals): Remove lra_int.
25505         (restore_target_globals): Update accordingly.
25506         * target-globals.c: Don't include lra-int.h.
25507         (default_target_globals, save_target_globals): Remove lra_int.
25508
25509 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
25510
25511         * recog.h (operand_alternative): Convert reg_class, reject,
25512         matched and matches into bitfields.
25513         (preprocess_constraints): New overload.
25514         (preprocess_insn_constraints): New function.
25515         (preprocess_constraints): Take the insn as parameter.
25516         (recog_op_alt): Change into a pointer.
25517         (target_recog): Add x_op_alt.
25518         * recog.c (asm_op_alt): New variable.
25519         (recog_op_alt): Change into a pointer.
25520         (preprocess_constraints): New overload, replacing the old function
25521         definition with one that doesn't use global state.
25522         (preprocess_insn_constraints): New function.
25523         (preprocess_constraints): Use them.  Take the insn as parameter.
25524         Use asm_op_alt for asms.
25525         (recog_init): Free existing x_op_alt entries.
25526         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
25527         pointer const.
25528         (make_early_clobber_and_input_conflicts): Likewise.
25529         (process_bb_node_lives): Pass the insn to process_constraints.
25530         * reg-stack.c (check_asm_stack_operands): Likewise.
25531         (subst_asm_stack_regs): Likewise.
25532         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
25533         * regrename.c (build_def_use): Likewise.
25534         * sched-deps.c (sched_analyze_insn): Likewise.
25535         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
25536         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
25537         (note_invalid_constants): Likewise.
25538         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
25539         (ix86_legitimate_combined_insn): Make operand_alternative pointer
25540         const.
25541
25542 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
25543
25544         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
25545         * ira-lives.c (check_and_make_def_conflict): Check for disabled
25546         alternatives.
25547         (make_early_clobber_and_input_conflicts): Likewise.
25548         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
25549
25550 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
25551
25552         * recog.h (alternative_class): New function.
25553         (which_op_alt): Return a const recog_op_alt.
25554         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
25555         (subst_asm_stack_regs): Likewise.
25556         * config/arm/arm.c (note_invalid_constants): Likewise.
25557         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
25558         the operand_alternative; use alternative class instead.
25559         * sel-sched.c (get_reg_class): Likewise.
25560         * regrename.c (build_def_use): Likewise.
25561         (hide_operands, restore_operands, record_out_operands): Update type
25562         accordingly.
25563
25564 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
25565
25566         * recog.h (recog_op_alt): Convert to a flat array.
25567         (which_op_alt): New function.
25568         * recog.c (recog_op_alt): Convert to a flat array.
25569         (preprocess_constraints): Update accordingly, grouping all
25570         operands of the same alternative together, rather than the
25571         other way around.
25572         * ira-lives.c (check_and_make_def_conflict): Likewise.
25573         (make_early_clobber_and_input_conflicts): Likewise.
25574         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
25575         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
25576         (subst_asm_stack_regs): Likewise.
25577         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
25578         * regrename.c (hide_operands, record_out_operands): Likewise.
25579         (build_def_use): Likewise.
25580         * sel-sched.c (get_reg_class): Likewise.
25581         * config/arm/arm.c (note_invalid_constants): Likewise.
25582
25583 2014-06-04  Jason Merrill  <jason@redhat.com>
25584
25585         PR c++/51253
25586         PR c++/61382
25587         * gimplify.c (gimplify_arg): Non-static.
25588         * gimplify.h: Declare it.
25589
25590 2014-06-04  Richard Biener  <rguenther@suse.de>
25591
25592         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
25593         TREE_PUBLIC and DECL_EXTERNAL decls.
25594
25595 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
25596
25597         * regcprop.c (copyprop_hardreg_forward_1): Account for
25598         HARD_REGNO_CALL_PART_CLOBBERED.
25599
25600 2014-06-04  Richard Biener  <rguenther@suse.de>
25601
25602         * configure.ac: Check whether the underlying type of int64_t
25603         is long or long long.
25604         * configure: Regenerate.
25605         * config.in: Likewise.
25606         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
25607         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
25608
25609 2014-06-04  Richard Biener  <rguenther@suse.de>
25610
25611         PR tree-optimization/60098
25612         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
25613         we hit a kill.
25614         (dse_optimize_stmt): Simplify, now that we found a kill
25615         earlier.
25616
25617 2014-06-04  Richard Biener  <rguenther@suse.de>
25618
25619         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
25620         of accesses with non-invariant address.
25621
25622 2014-06-04  Martin Liska  <mliska@suse.cz>
25623
25624         * cgraph.h (cgraph_make_wrapper): New function introduced.
25625         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
25626         * ipa-inline.h (inline_analyze_function): The function is global.
25627         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
25628
25629 2014-06-04  Martin Liska  <mliska@suse.cz>
25630
25631         * tree.h (private_lookup_attribute_starting): New function.
25632         (lookup_attribute_starting): Likewise.
25633         * tree.c (private_lookup_attribute_starting): Likewise.
25634
25635 2014-06-04  Martin Liska  <mliska@suse.cz>
25636
25637         * cgraph.h (expand_thunk): New argument added.
25638         (address_taken_from_non_vtable_p): New global function.
25639         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
25640         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
25641         * cgraphunit.c (analyze_function): Likewise.
25642         (assemble_thunks_and_aliases): Argument added to call.
25643         (expand_thunk): New argument forces to produce GIMPLE thunk.
25644
25645 2014-06-04  Martin Liska  <mliska@suse.cz>
25646
25647         * coverage.h (coverage_compute_cfg_checksum): Argument added.
25648         * coverage.c (coverage_compute_cfg_checksum): Likewise.
25649         * profile.c (branch_prob): Likewise.
25650
25651 2014-06-04  Martin Jambor  <mjambor@suse.cz>
25652
25653         PR ipa/61340
25654         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
25655         handler for switch on an ipa_ref_use enum.
25656         * ipa-reference.c (analyze_function): Likewise.
25657
25658 2014-06-04  Kai Tietz  <ktietz@redhat.com>
25659
25660         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
25661         from old call-instruction.
25662
25663 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
25664
25665         * config/aarch64/aarch64.c (aarch64_classify_address)
25666         (aarch64_legitimize_reload_address): Support full addressing modes
25667         for vector modes.
25668         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
25669         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
25670
25671 2014-06-03  Andrew Pinski  <apinski@cavium.com>
25672
25673         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
25674         for OP0.
25675
25676 2014-06-03  Andrew Pinski  <apinski@cavium.com>
25677
25678         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
25679         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
25680
25681 2014-06-03  Kai Tietz  <ktietz@redhat.com>
25682
25683         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
25684         for 64-bit ms-abi.
25685
25686 2014-06-03  Dehao Chen  <dehao@google.com>
25687
25688         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
25689         the same loop.
25690
25691 2014-06-03  Marek Polacek  <polacek@redhat.com>
25692
25693         PR c/60439
25694         * doc/invoke.texi: Document -Wswitch-bool.
25695         * function.c (stack_protect_epilogue): Cast controlling expression of
25696         the switch to int.
25697         * gengtype.c (walk_type): Generate switch expression with its
25698         controlling expression cast to int.
25699
25700 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
25701
25702         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
25703         and attiny841.
25704         * config/avr/avr-tables.opt: Regenerate.
25705         * config/avr/t-multilib: Regenerate.
25706         * doc/avr-mmcu.texi: Regenerate.
25707
25708 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
25709             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
25710
25711         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
25712         (ata6617c, ata664251): Add new avr35 devices.
25713         (ata6612c): Add new avr4 device.
25714         (ata6613c, ata6614q): Add new avr5 devices.
25715         * config/avr/avr-tables.opt: Regenerate.
25716         * config/avr/t-multilib: Regenerate.
25717         * doc/avr-mmcu.texi: Regenerate.
25718
25719 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
25720
25721         * gcc/config/aarch64/aarch64-builtins.c
25722         (aarch64_types_binop_ssu_qualifiers): New static data.
25723         (TYPES_BINOP_SSU): Define.
25724         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
25725         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
25726         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
25727         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
25728         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
25729         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
25730         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
25731         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
25732         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
25733         suffix to builtin function name, remove cast.
25734         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
25735         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
25736         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
25737
25738 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
25739
25740         * gcc/config/aarch64/aarch64-builtins.c
25741         (aarch64_types_binop_uus_qualifiers,
25742         aarch64_types_shift_to_unsigned_qualifiers,
25743         aarch64_types_unsigned_shiftacc_qualifiers): Define.
25744         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
25745         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
25746         sqshlu_n, uqshl_n): Update qualifiers.
25747         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
25748         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
25749         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
25750         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
25751         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
25752         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
25753         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
25754         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
25755         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
25756         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
25757         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
25758         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
25759         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
25760         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
25761         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
25762         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
25763         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
25764         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
25765         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
25766         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
25767         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
25768         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
25769         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
25770         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
25771         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
25772         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
25773         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
25774
25775 2014-06-03  Teresa Johnson  <tejohnson@google.com>
25776
25777         * tree-sra.c (modify_function): Record caller nodes after rebuild.
25778
25779 2014-06-02  Jason Merrill  <jason@redhat.com>
25780
25781         PR c++/61020
25782         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
25783
25784 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
25785
25786         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
25787         location == 0.
25788
25789 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
25790
25791         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
25792         New pattern.
25793         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
25794         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
25795         * config/aarch64/iterators.md (REVERSE): New iterator.
25796         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
25797         (rev_op): New int_attribute.
25798         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
25799         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
25800         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
25801         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
25802         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
25803         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
25804         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
25805         Replace temporary __asm__ with __builtin_shuffle.
25806
25807 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
25808
25809         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
25810         mips64r5.
25811         * config/mips/mips-tables.opt: Regenerate.
25812         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
25813         to use mips_isa_rev rather than ISA_MIPS32R2.
25814         * config/mips/mips.h (ISA_MIPS32R3): New define.
25815         (ISA_MIPS32R5): New define.
25816         (ISA_MIPS64R3): New define.
25817         (ISA_MIPS64R5): New define.
25818         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
25819         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
25820         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
25821         and mips64r5.
25822         (MIPS_ISA_SYNCI_SPEC): Likewise.
25823         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
25824         (LINK_SPEC): Added mips32r3 and mips32r5.
25825         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
25826         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
25827         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
25828         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
25829         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
25830         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
25831         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
25832
25833 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
25834
25835         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
25836         options.
25837         * config/mips/mips.opt (mxpa): New option.
25838         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
25839         assembler.
25840
25841 2014-06-03  Martin Jambor  <mjambor@suse.cz>
25842
25843         PR ipa/61160
25844         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
25845         thunks.
25846
25847 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25848
25849         PR tree-optimization/61328
25850         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
25851         initialization from find_bswap_or_nop_1.
25852         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
25853         in source_expr2 before using the size value the function sets. Also
25854         make use of init_symbolic_number () in both the old place and
25855         find_bswap_or_nop_load () to avoid reading uninitialized memory when
25856         doing recursion in the GIMPLE_BINARY_RHS case.
25857
25858 2014-06-03  Richard Biener  <rguenther@suse.de>
25859
25860         PR tree-optimization/61383
25861         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
25862         stmts can't trap.
25863
25864 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
25865
25866         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
25867         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
25868         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
25869         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
25870         in this file.
25871         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
25872         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
25873         * system.h: ...here and make it unconditional.
25874         * target.def (conditional_register_usage): Mention
25875         define_register_constraint instead of old-style constraint macros.
25876         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
25877         * doc/tm.texi: Regenerate.
25878         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
25879         protected by !USE_MD_CONSTRAINTS.
25880         * config/frv/frv.md: Remove quote from old version of documentation.
25881         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
25882         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
25883         CONST_DOUBLE_OK_FOR_LETTER.
25884         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
25885
25886 2014-06-02  Andrew Pinski  <apinski@cavium.com>
25887
25888         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
25889         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
25890         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
25891         file whose name depends on -mabi= and -mbig-endian.
25892         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
25893         Handle LP64 better and handle ilp32 too.
25894         (MULTILIB_OPTIONS): Delete.
25895         (MULTILIB_DIRNAMES): Delete.
25896
25897 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
25898
25899         * expr.h: Remove prototypes of functions defined in builtins.c.
25900         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
25901         Remove prototypes of functions defined in builtins.c.
25902         * builtins.h: Update prototype list to include all exported functions.
25903         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
25904         no_c99_libc_has_function): Move to targhooks.c
25905         (build_string_literal, build_call_expr_loc_array,
25906         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
25907         to tree.c.
25908         (expand_builtin_object_size, fold_builtin_object_size): Make static.
25909         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
25910         no_c99_libc_has_function): Relocate from builtins.c.
25911         * tree.c: Include builtins.h.
25912         (build_call_expr_loc_array, build_call_expr_loc_vec,
25913         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
25914         from builtins.c.
25915         * fold-const.h (fold_fma): Move prototype to builtins.h.
25916         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
25917         * asan.c: Include builtins.h.
25918         * cfgexpand.c: Likewise.
25919         * convert.c: Likewise.
25920         * emit-rtl.c: Likewise.
25921         * except.c: Likewise.
25922         * expr.c: Likewise.
25923         * fold-const.c: Likewise.
25924         * gimple-fold.c: Likewise.
25925         * gimple-ssa-strength-reduction.c: Likewise.
25926         * gimplify.c: Likewise.
25927         * ipa-inline.c: Likewise.
25928         * ipa-prop.c: Likewise.
25929         * lto-streamer-out.c: Likewise.
25930         * stmt.c: Likewise.
25931         * tree-inline.c: Likewise.
25932         * tree-object-size.c: Likewise.
25933         * tree-sra.c: Likewise.
25934         * tree-ssa-ccp.c: Likewise.
25935         * tree-ssa-forwprop.c: Likewise.
25936         * tree-ssa-loop-ivcanon.c: Likewise.
25937         * tree-ssa-loop-ivopts.c: Likewise.
25938         * tree-ssa-math-opts.c: Likewise.
25939         * tree-ssa-reassoc.c: Likewise.
25940         * tree-ssa-threadedge.c: Likewise.
25941         * tree-streamer-in.c: Likewise.
25942         * tree-vect-data-refs.c: Likewise.
25943         * tree-vect-patterns.c: Likewise.
25944         * tree-vect-stmts.c: Likewise.
25945         * config/aarch64/aarch64.c: Likewise.
25946         * config/alpha/alpha.c: Likewise.
25947         * config/arc/arc.c: Likewise.
25948         * config/arm/arm.c: Likewise.
25949         * config/avr/avr.c: Likewise.
25950         * config/bfin/bfin.c: Likewise.
25951         * config/c6x/c6x.c: Likewise.
25952         * config/cr16/cr16.c: Likewise.
25953         * config/cris/cris.c: Likewise.
25954         * config/epiphany/epiphany.c: Likewise.
25955         * config/fr30/fr30.c: Likewise.
25956         * config/frv/frv.c: Likewise.
25957         * config/h8300/h8300.c: Likewise.
25958         * config/i386/i386.c: Likewise.
25959         * config/i386/winnt.c: Likewise.
25960         * config/ia64/ia64.c: Likewise.
25961         * config/iq2000/iq2000.c: Likewise.
25962         * config/lm32/lm32.c: Likewise.
25963         * config/m32c/m32c.c: Likewise.
25964         * config/m32r/m32r.c: Likewise.
25965         * config/m68k/m68k.c: Likewise.
25966         * config/mcore/mcore.c: Likewise.
25967         * config/mep/mep.c: Likewise.
25968         * config/microblaze/microblaze.c: Likewise.
25969         * config/mips/mips.c: Likewise.
25970         * config/mmix/mmix.c: Likewise.
25971         * config/mn10300/mn10300.c: Likewise.
25972         * config/moxie/moxie.c: Likewise.
25973         * config/msp430/msp430.c: Likewise.
25974         * config/nds32/nds32.c: Likewise.
25975         * config/pa/pa.c: Likewise.
25976         * config/pdp11/pdp11.c: Likewise.
25977         * config/picochip/picochip.c: Likewise.
25978         * config/rl78/rl78.c: Likewise.
25979         * config/rs6000/rs6000.c: Likewise.
25980         * config/rx/rx.c: Likewise.
25981         * config/s390/s390.c: Likewise.
25982         * config/score/score.c: Likewise.
25983         * config/sh/sh.c: Likewise.
25984         * config/sparc/sparc.c: Likewise.
25985         * config/spu/spu.c: Likewise.
25986         * config/stormy16/stormy16.c: Likewise.
25987         * config/tilegx/tilegx.c: Likewise.
25988         * config/tilepro/tilepro.c: Likewise.
25989         * config/v850/v850.c: Likewise.
25990         * config/vax/vax.c: Likewise.
25991         * config/xtensa/xtensa.c: Likewise.
25992
25993 2014-06-02  Jeff Law  <law@redhat.com>
25994
25995         PR rtl-optimization/61094
25996         * ree.c (combine_reaching_defs): Do not reextend an insn if it
25997         was marked as do_no_reextend.  If a copy is needed to eliminate
25998         an extension, then mark it as do_not_reextend.
25999
26000 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26001
26002         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
26003
26004 2014-06-02  Richard Henderson  <rth@redhat.com>
26005
26006         PR target/61336
26007         * config/alpha/alpha.c (print_operand_address): Allow symbolic
26008         addresses inside asms.  Use output_operand_lossage instead of
26009         gcc_unreachable.
26010
26011 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
26012
26013         PR target/61239
26014         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
26015         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
26016
26017 2014-06-02  Tom de Vries  <tom@codesourcery.com>
26018
26019         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
26020         case that x has VOIDmode.
26021
26022 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
26023
26024         * varasm.c (copy_constant): Delete function.
26025         (build_constant_desc): Don't call it.
26026
26027 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26028
26029         PR target/61154
26030         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
26031         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
26032         with immediate_operand.
26033
26034 2014-06-02  Andreas Schwab  <schwab@suse.de>
26035
26036         * config/ia64/ia64.c
26037         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
26038         pending_data_specs first.
26039
26040 2014-06-02  Richard Biener  <rguenther@suse.de>
26041
26042         PR tree-optimization/61378
26043         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
26044         valueized_anything.
26045
26046 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
26047
26048         * config/i386/constraints.md (Bw): Rename from 'w'.
26049         (Bz): Rename from 'z'.
26050         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
26051
26052 2014-06-01  Kai Tietz  <ktietz@redhat.com>
26053
26054         PR target/61377
26055         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
26056         * config/i386/i386.md (sibcall_insn_operand): Use Bs
26057         instead of m constraint.
26058
26059 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
26060
26061         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
26062         a separate alternative where the scratch operand 2 is marked as
26063         early clobber.
26064
26065 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
26066
26067         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
26068         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
26069         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
26070         and __builtins_arm_get_fpscr.
26071         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
26072         __builtins_arm_get_fpscr.
26073         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
26074         __builtins_arm_ldfpscr.
26075         (arm_atomic_assign_expand_fenv): New function.
26076         * config/arm/vfp.md (set_fpscr): New pattern.
26077         (get_fpscr) : Likewise.
26078         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
26079         VUNSPEC_SET_FPSCR.
26080         * doc/extend.texi (AARCH64 Built-in Functions) : Document
26081         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
26082
26083 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
26084
26085         * asan.c (report_error_func): Add SLOW_P argument, use
26086         BUILT_IN_ASAN_*_N if set.
26087         (build_check_stmt): Likewise.
26088         (instrument_derefs): If T has insufficient alignment,
26089         force same handling as for odd sizes.
26090
26091         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
26092         BUILT_IN_ASAN_REPORT_STORE_N): New.
26093         * asan.c (struct asan_mem_ref): Change access_size type to
26094         HOST_WIDE_INT.
26095         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
26096         update_mem_ref_hash_table): Likewise.
26097         (asan_mem_ref_hasher::hash): Hash in a HWI.
26098         (report_error_func): Change size_in_bytes argument to HWI.
26099         Use *_N builtins if size_in_bytes is larger than 16 or not power of
26100         two.
26101         (build_shadow_mem_access): New function.
26102         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
26103         Handle size_in_bytes not power of two or larger than 16.
26104         (instrument_derefs): Don't give up if size_in_bytes is not
26105         power of two or is larger than 16.
26106
26107 2014-05-30  Kai Tietz  <ktietz@redhat.com>
26108
26109         PR target/60104
26110         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
26111         for sibling-tail-calls.
26112         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
26113         to its use.
26114         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
26115         (sibcall_insn_operand): Add check for sibcall_memory_operand.
26116
26117 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26118
26119         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
26120         * config/avr/avr-tables.opt: Regenerate.
26121         * config/avr/t-multilib: Regenerate.
26122         * doc/avr-mmcu.texi: Regenerate.
26123
26124 2014-05-30  Ian Lance Taylor  <iant@google.com>
26125
26126         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
26127         target("sse").
26128
26129 2014-05-30  Tom de Vries  <tom@codesourcery.com>
26130
26131         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
26132         Redefine as true.
26133
26134 2014-05-30  Tom de Vries  <tom@codesourcery.com>
26135
26136         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
26137         * lra.c (initialize_lra_reg_info_element): Add init of
26138         actual_call_used_reg_set field.
26139         (lra): Call lra_create_live_ranges before lra_inheritance for
26140         -fuse-caller-save.
26141         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
26142         -fuse-caller-save.
26143         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
26144         instead of call_used_reg_set for -fuse-caller-save.
26145         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
26146
26147 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26148
26149         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
26150         to mov_imm.
26151         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
26152
26153 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
26154
26155         * ira.c (ira_get_dup_out_num): Check for output operands at
26156         the start of the loop.  Handle cases where an included alternative
26157         follows an excluded one.
26158
26159 2014-05-29  Mike Stump  <mikestump@comcast.net>
26160
26161         PR debug/61352
26162         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
26163         post ld passes when lto is used.
26164
26165 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
26166
26167         PR rtl-optimization/61325
26168         * lra-constraints.c (process_address): Rename to process_address_1.
26169         (process_address): New function.
26170
26171 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
26172
26173         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
26174         TYPES_BINOPV): New static data.
26175         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
26176         New builtin.
26177         * config/aarch64/aarch64-simd.md (aarch64_ext,
26178         aarch64_im_lane_boundsi): New patterns.
26179         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
26180         patterns for EXT.
26181         (aarch64_evpc_ext): New function.
26182
26183         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
26184
26185         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
26186         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
26187         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
26188         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
26189         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
26190
26191 2014-05-29  Tom de Vries  <tom@codesourcery.com>
26192
26193         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
26194
26195 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
26196             Richard Sandiford  <rdsandiford@googlemail.com>
26197
26198         * arm/iterators.md (shiftable_ops): New code iterator.
26199         (t2_binop0, arith_shift_insn): New code attributes.
26200         * arm/predicates.md (shift_nomul_operator): New predicate.
26201         * arm/arm.md (insn_enabled): Delete.
26202         (enabled): Remove insn_enabled test.
26203         (*arith_shiftsi): Delete.  Replace with ...
26204         (*<arith_shift_insn>_multsi): ... new pattern.
26205         (*<arith_shift_insn>_shiftsi): ... new pattern.
26206         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
26207
26208 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
26209             Tom de Vries  <tom@codesourcery.com>
26210
26211         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
26212         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
26213         clobber.
26214         (mips_split_call): Use POST_CALL_TMP_REG.
26215         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
26216
26217 2014-05-29  Tom de Vries  <tom@codesourcery.com>
26218
26219         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
26220         with #ifdef STACK_REGS.
26221
26222 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
26223
26224         * varasm.c (get_variable_section): Walk aliases.
26225         (place_block_symbol): Walk aliases.
26226
26227 2014-05-28  Tom de Vries  <tom@codesourcery.com>
26228
26229         Revert:
26230         2014-05-28  Tom de Vries  <tom@codesourcery.com>
26231
26232         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
26233         * lra.c (initialize_lra_reg_info_element): Add init of
26234         actual_call_used_reg_set field.
26235         (lra): Call lra_create_live_ranges before lra_inheritance for
26236         -fuse-caller-save.
26237         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
26238         -fuse-caller-save.
26239         * lra-constraints.c (need_for_call_save_p): Use
26240         actual_call_used_reg_set instead of call_used_reg_set for
26241         -fuse-caller-save.
26242         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
26243
26244 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
26245
26246         * doc/md.texi: Document that the % constraint character must
26247         be at the beginning of the string.
26248         * genoutput.c (validate_insn_alternatives): Check that '=',
26249         '+' and '%' only appear at the beginning of a constraint.
26250         * ira.c (commutative_constraint_p): Delete.
26251         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
26252         at the start of the string.
26253         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
26254         duplicate '='s.
26255         * config/arm/neon.md (bicdi3_neon): Likewise.
26256         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
26257         (slt_si, sltu_si): Likewise.
26258         * config/vax/vax.md (sbcdi3): Likewise.
26259         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
26260         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
26261         (mul64): Move '%' to beginning of constraint.
26262         * config/arm/arm.md (*xordi3_insn): Likewise.
26263         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
26264         (xorsi3): Likewise.
26265
26266 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
26267
26268         * doc/md.texi: Document the restrictions on the "enabled" attribute.
26269
26270 2014-05-28  Jason Merrill  <jason@redhat.com>
26271
26272         PR c++/47202
26273         * cgraph.h (symtab_node::get_comdat_group_id): New.
26274         * cgraphunit.c (analyze_functions): Call it.
26275         * symtab.c (dump_symtab_node): Likewise.
26276         * tree.c (decl_comdat_group_id): New.
26277         * tree.h: Declare it.
26278         * lto-streamer-out.c (write_symbol): Use it.
26279         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
26280
26281 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
26282
26283         PR bootstrap/PR61146
26284         * wide-int.cc: Do not include longlong.h when compiling with clang.
26285
26286 2014-05-28  Richard Biener  <rguenther@suse.de>
26287
26288         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
26289         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
26290         (vrp_visit_assignment_or_call): Print less vertical space.
26291         (vrp_visit_stmt): Likewise.
26292         (vrp_visit_phi_node): Likewise.  For a PHI argument with
26293         VR_VARYING range consider recording it as copy.
26294
26295 2014-05-28  Richard Biener  <rguenther@suse.de>
26296
26297         Revert
26298         2014-05-28  Richard Biener  <rguenther@suse.de>
26299
26300         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
26301
26302 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26303
26304         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
26305         sufficiently aligned and an offset is used at the same time.
26306         (expand_expr_real_1): Likewise.
26307
26308 2014-05-28  Richard Biener  <rguenther@suse.de>
26309
26310         PR middle-end/61045
26311         * fold-const.c (fold_comparison): When folding
26312         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
26313         the sign of the remaining constant operand stays the same.
26314
26315 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
26316
26317         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
26318         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
26319         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
26320         to the assembler.
26321         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
26322         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
26323         (m32bit-doubles) Likewise.
26324         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
26325         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
26326         option for RL78.
26327
26328 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26329
26330         * configure.ac ($gcc_cv_ld_clearcap): New test.
26331         * configure: Regenerate.
26332         * config.in: Regenerate.
26333         * config/sol2.opt (mclear-hwcap): New option.
26334         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
26335         * config/sol2-clearcap.map: Moved here from
26336         testsuite/gcc.target/i386/clearcap.map.
26337         * config/sol2-clearcapv2.map: Move here from
26338         gcc.target/i386/clearcapv2.map.
26339         * config/t-sol2 (install): Depend on install-clearcap-map.
26340         (install-clearcap-map): New target.
26341         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
26342         -mclear-hwcap.
26343
26344 2014-05-28  Richard Biener  <rguenther@suse.de>
26345
26346         * hwint.h (*_HALF_WIDE_INT*): Move to ...
26347         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
26348         ... here and remove the rest.
26349         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
26350
26351 2014-05-28  Richard Biener  <rguenther@suse.de>
26352
26353         PR tree-optimization/61335
26354         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
26355         new range fails, drop to varying.
26356
26357 2014-05-28  Olivier Hainque  <hainque@adacore.com>
26358
26359         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
26360         (CPP_SPEC): Add entry for -mcpu=8548.
26361         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
26362         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
26363
26364 2014-05-28  Tom de Vries  <tom@codesourcery.com>
26365
26366         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
26367         * lra.c (initialize_lra_reg_info_element): Add init of
26368         actual_call_used_reg_set field.
26369         (lra): Call lra_create_live_ranges before lra_inheritance for
26370         -fuse-caller-save.
26371         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
26372         -fuse-caller-save.
26373         * lra-constraints.c (need_for_call_save_p): Use
26374         actual_call_used_reg_set instead of call_used_reg_set for
26375         -fuse-caller-save.
26376         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
26377
26378 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
26379             Tom de Vries  <tom@codesourcery.com>
26380
26381         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
26382         to gccoptlist.
26383         (@item -fuse-caller-save): New item.
26384
26385 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
26386             Tom de Vries  <tom@codesourcery.com>
26387
26388         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
26389         OPT_fuse_caller_save.
26390
26391 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
26392             Tom de Vries  <tom@codesourcery.com>
26393
26394         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
26395         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
26396         get_call_reg_set_usage.
26397         * resource.c (mark_set_resources, mark_target_live_regs): Use
26398         get_call_reg_set_usage.
26399         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
26400         field.
26401         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
26402         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
26403         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
26404         * ira-build.c (ira_create_allocno): Init
26405         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
26406         (create_cap_allocno, propagate_allocno_info)
26407         (propagate_some_info_from_allocno)
26408         (copy_info_to_removed_store_destinations): Handle
26409         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
26410         * ira-costs.c (ira_tune_allocno_costs): Use
26411         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
26412
26413 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
26414             Tom de Vries  <tom@codesourcery.com>
26415
26416         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
26417         and function_used_regs_valid fields.
26418         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
26419         find_all_hard_reg_sets.
26420         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
26421         (get_call_reg_set_usage): New function.
26422         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
26423         * regs.h (get_call_reg_set_usage): Declare.
26424
26425 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
26426
26427         PR libgcc/61152
26428         * config/dbx.h (License): Add Runtime Library Exception.
26429         * config/newlib-stdint.h (License): Same.
26430         * config/rtems.h (License): Same
26431         * config/initfini-array.h (License): Same
26432         * config/v850/v850.h (License): Same.
26433         * config/v850/v850-opts.h (License): Same
26434         * config/v850/rtems.h (License): Same.
26435
26436 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
26437
26438         PR target/61044
26439         * doc/extend.texi (Local Labels): Note that label differences are
26440         not supported for AVR.
26441
26442 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
26443             Olivier Hainque  <hainque@adacore.com>
26444
26445         * rtl.h (set_for_reg_notes): Declare.
26446         * emit-rtl.c (set_for_reg_notes): New function.
26447         (set_unique_reg_note): Use it.
26448         * optabs.c (add_equal_note): Likewise
26449
26450 2014-05-27  Andrew Pinski  <apinski@cavium.com>
26451
26452         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
26453         Use <w> for the register in assembly template.
26454         (stack_protect_test): Use the mode of operands[0] for the result.
26455         (stack_protect_test_<mode>): Use <w> for the register
26456         in assembly template.
26457
26458 2014-05-27  DJ Delorie  <dj@redhat.com>
26459
26460         * config/rx/rx.c (add_vector_labels): New.
26461         (rx_output_function_prologue): Call it.
26462         (rx_handle_func_attribute): Don't require empty arguments.
26463         (rx_handle_vector_attribute): New.
26464         (rx_attribute_table): Add "vector" attribute.
26465         * doc/extend.texi (interrupt, vector): Document new/changed
26466         RX-specific attributes.
26467
26468         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
26469
26470 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
26471
26472         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
26473         predicate to detect a negative quotient.
26474
26475 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
26476
26477         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
26478         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
26479         Add X - Y CMP 0 to X CMP Y transformation.
26480         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
26481
26482 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
26483
26484         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
26485         before printing.
26486
26487 2014-05-27  Steve Ellcey  <sellcey@mips.com>
26488
26489         * config/mips/mips.c: Add include of cgraph.h.
26490
26491 2014-05-27  Richard Biener  <rguenther@suse.de>
26492
26493         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
26494
26495 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
26496
26497         PR libgcc/61152
26498         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
26499         * config/arm/arm-cores.def (License): Same.
26500         * config/arm/arm-opts.h (License): Same.
26501         * config/arm/aout.h (License): Same.
26502         * config/arm/bpabi.h (License): Same.
26503         * config/arm/elf.h (License): Same.
26504         * config/arm/linux-elf.h (License): Same.
26505         * config/arm/linux-gas.h (License): Same.
26506         * config/arm/netbsd-elf.h (License): Same.
26507         * config/arm/uclinux-eabi.h (License): Same.
26508         * config/arm/uclinux-elf.h (License): Same.
26509         * config/arm/vxworks.h (License): Same.
26510
26511 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26512
26513         * config/arm/neon.md (neon_bswap<mode>): New pattern.
26514         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
26515         (arm_init_neon_builtins): Handle NEON_BSWAP.
26516         Define required type nodes.
26517         (arm_expand_neon_builtin): Handle NEON_BSWAP.
26518         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
26519         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
26520         * config/arm/iterators.md (VDQHSD): New mode iterator.
26521
26522 2014-05-27  Richard Biener  <rguenther@suse.de>
26523
26524         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
26525         Try using literal operands when comparing value-ranges failed.
26526
26527 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
26528
26529         * ira.c (commutative_operand): Adjust for change to recog_data.
26530         [Missing from previous commit.]
26531
26532 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
26533
26534         * system.h (TEST_BIT): New macro.
26535         * recog.h (alternative_mask): New type.
26536         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
26537         (recog_data_d): Replace alternative_enabled_p array with
26538         enabled_alternatives.
26539         (target_recog): New structure.
26540         (default_target_recog, this_target_recog): Declare.
26541         (get_enabled_alternatives, recog_init): Likewise.
26542         * recog.c (default_target_recog, this_target_recog): New variables.
26543         (get_enabled_alternatives): New function.
26544         (extract_insn): Use it.
26545         (recog_init): New function.
26546         (preprocess_constraints, constrain_operands): Adjust for change to
26547         recog_data.
26548         * postreload.c (reload_cse_simplify_operands): Likewise.
26549         * reload.c (find_reloads): Likewise.
26550         * ira-costs.c (record_reg_classes): Likewise.
26551         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
26552         all alternatives after a disabled one would be skipped.
26553         (ira_implicitly_set_insn_hard_regs): Likewise.
26554         * ira.c (ira_setup_alts): Adjust for change to recog_data.
26555         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
26556         with enabled_alternatives.
26557         * lra.c (free_insn_recog_data): Update accordingly.
26558         (lra_update_insn_recog_data): Likewise.
26559         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
26560         * lra-constraints.c (process_alt_operands): Likewise.  Handle
26561         only_alternative as part of the enabled mask.
26562         * target-globals.h (this_target_recog): Declare.
26563         (target_globals): Add a recog field.
26564         (restore_target_globals): Restore this_target_recog.
26565         * target-globals.c: Include recog.h.
26566         (default_target_globals): Initialize recog field.
26567         (save_target_globals): Likewise.
26568         * reginfo.c (reinit_regs): Call recog_init.
26569         * toplev.c (backend_init_target): Likewise.
26570
26571 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
26572
26573         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
26574         rather than any named insn's code.
26575
26576 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
26577
26578         PR libgcc/61152
26579         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
26580         * config/arm/arm-cores.def (License): Same.
26581
26582 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
26583
26584         * tree.h (decl_comdat_group): Declare.
26585         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
26586         * tree.c (decl_comdat_group): Here.
26587
26588 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
26589
26590         PR rtl-optimization/61222
26591         * combine.c (simplify_shift_const_1): When moving a PLUS outside
26592         the shift, truncate the PLUS operand to the result mode.
26593
26594 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
26595
26596         PR target/61271
26597         * config/i386/i386.c (ix86_rtx_costs)
26598         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
26599         Fix condition.
26600
26601 2014-05-26  Martin Jambor  <mjambor@suse.cz>
26602
26603         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
26604         subreg uses.
26605
26606 2014-05-26  Richard Biener  <rguenther@suse.de>
26607
26608         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
26609         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
26610         Provide specializations.
26611         (wi::int_traits <HOST_WIDE_INT>,
26612         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
26613
26614 2014-05-26  Alan Modra  <amodra@gmail.com>
26615
26616         PR target/61098
26617         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
26618         params and return a bool.  Remove dead code.  Update comment.
26619         Assert we have a const_int source.  Remove bogus code from
26620         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
26621         handling of constants > 2G and reg_equal note, from..
26622         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
26623         return value.  Update comment.  If we can, use a new pseudo
26624         for intermediate calculations.
26625         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
26626         prototype.
26627         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
26628         call to rs6000_emit_set_const in splitter.
26629         (movdi_internal64+2, +3): Likewise.
26630
26631 2014-05-26  Richard Biener  <rguenther@suse.de>
26632
26633         * system.h: Define __STDC_FORMAT_MACROS before
26634         including inttypes.h.
26635         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
26636         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
26637         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
26638         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
26639         HOST_WIDEST_INT_C): Remove.
26640         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
26641         if C99 inttypes.h is not available.
26642         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
26643         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
26644         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
26645         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
26646         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
26647         (struct output_info): Likewise.
26648         (print_statistics): Adjust.
26649         (dump_bitmap_statistics): Likewise.
26650         * bt-load.c (migrate_btr_defs): Print with PRId64.
26651         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
26652         (MAX_SAFE_MULTIPLIER): Adjust.
26653         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
26654         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
26655         dump_cgraph_node): Likewise.
26656         * final.c (dump_basic_block_info): Likewise.
26657         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
26658         * gcov.c (format_gcov): Likewise.
26659         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
26660         for calculation.
26661         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
26662         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
26663         (inline_small_functions, dump_overall_stats, dump_inline_stats):
26664         Use PRId64 for dumping.
26665         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
26666         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
26667         (add_allocno_hard_regs): Adjust.
26668         * loop-doloop.c (doloop_modify): Print using PRId64.
26669         * loop-iv.c (inverse): Compute in uint64_t.
26670         (determine_max_iter, iv_number_of_iterations): Likewise.
26671         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
26672         Print using PRId64.
26673         * lto-streamer-out.c (write_symbol): Use uint64_t.
26674         * mcf.c (CAP_INFINITY): Use int64_t maximum.
26675         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
26676         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
26677         * modulo-sched.c (const_iteration_count): Use int64_t.
26678         (sms_schedule): Dump using PRId64.
26679         * predict.c (dump_prediction): Likewise.
26680         * pretty-print.h (pp_widest_integer): Remove.
26681         * profile.c (get_working_sets, is_edge_inconsistent,
26682         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
26683         * tree-pretty-print.c (pp_double_int): Remove case handling
26684         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
26685         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
26686         and adjust users.
26687         (pass_optimize_bswap::execute): Remove restriction on hosts.
26688         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
26689         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
26690         * tree.c (widest_int_cst_value): Remove.
26691         * tree.h (widest_int_cst_value): Likewise.
26692         * value-prof.c (dump_histogram_value): Print using PRId64.
26693         * gengtype.c (main): Also inject int64_t.
26694         * ggc-page.c (struct max_alignment): Use int64_t.
26695         * alloc-pool.c (struct allocation_object_def): Likewise.
26696         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
26697         for computation.
26698         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
26699         * doc/tm.texi: Regenerated.
26700         * gengtype-lex.l (IWORD): Handle [u]int64_t.
26701         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
26702         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
26703         mmix_output_register_setting): Use [u]int64_t in prototypes.
26704         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
26705         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
26706         mmix_output_octa, mmix_output_shifted_value): Adjust.
26707         (mmix_intval): Adjust.  Remove unreachable case.
26708         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
26709
26710 2014-05-26  Richard Biener  <rguenther@suse.de>
26711
26712         * configure.ac: Drop __int64 type check.  Insist that we
26713         found uint64_t and int64_t.
26714         * hwint.h (HOST_BITS_PER___INT64): Remove.
26715         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
26716         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
26717         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
26718         (HOST_WIDEST_FAST_INT): Remove __int64 case.
26719         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
26720         for dst_q_src_df_rms_cdt.
26721         * configure: Regenerate.
26722         * config.in: Likewise.
26723
26724 2014-05-26  Michael Tautschnig  <mt@debian.org>
26725
26726         PR target/61249
26727         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
26728         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
26729
26730 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26731
26732         PR rtl-optimization/61278
26733         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
26734
26735 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26736
26737         PR rtl-optimization/61220
26738         Part of PR rtl-optimization/61225
26739         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
26740         insn; skip split_edge for a block with only one successor.
26741
26742 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26743
26744         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
26745         for variables.
26746
26747 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26748
26749         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
26750         (update_vtable_references): New function.
26751         (function_and_variable_visibility): Rewrite also vtable initializers.
26752         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
26753
26754 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26755
26756         * ggc.h (ggc_grow): New function.
26757         * ggc-none.c (ggc_grow): New function.
26758         * ggc-page.c (ggc_grow): Likewise.
26759
26760 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26761
26762         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
26763         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
26764         comdat_can_be_unshared_p, cgraph_externally_visible_p,
26765         varpool_externally_visible_p, can_replace_by_local_alias,
26766         update_visibility_by_resolution_info, function_and_variable_visibility,
26767         pass_data_ipa_function_and_variable_visibility,
26768         make_pass_ipa_function_and_variable_visibility,
26769         whole_program_function_and_variable_visibility,
26770         pass_data_ipa_whole_program_visibility,
26771         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
26772         * cgraph.h (cgraph_local_node_p): Declare.
26773         * ipa-visibility.c: New file.
26774         * Makefile.in (OBJS): Add ipa-visiblity.o
26775
26776 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26777
26778         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
26779         that var decl is available.
26780
26781 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26782
26783         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
26784         symtab_node pointer.
26785         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
26786         (find_decls_types_r): Do not walk COMDAT_GROUP.
26787         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
26788         * varasm.c (make_decl_one_only): Use set_comdat_group;
26789         create node if needed.
26790         * ipa-inline-transform.c (save_inline_function_body): Update
26791         way we decl->symtab mapping.
26792         * symtab.c (symtab_hash, hash_node, eq_node
26793         symtab_insert_node_to_hashtable): Remove.
26794         (symtab_register_node): Update.
26795         (symtab_unregister_node): Update.
26796         (symtab_get_node): Reimplement as inline function.
26797         (symtab_add_to_same_comdat_group): Update.
26798         (symtab_dissolve_same_comdat_group_list): Update.
26799         (dump_symtab_base): Update.
26800         (verify_symtab_base): Update.
26801         (symtab_make_decl_local): Update.
26802         (fixup_same_cpp_alias_visibility): Update.
26803         (symtab_nonoverwritable_alias): Update.
26804         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
26805         * ipa.c (update_visibility_by_resolution_info): UPdate.
26806         * bb-reorder.c: Include cgraph.h
26807         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
26808         with comdat groups.
26809         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
26810         * cgraph.c (cgraph_get_create_node): Update.
26811         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
26812         and comdat_group_.
26813         (symtab_get_node): Make inline.
26814         (symtab_insert_node_to_hashtable): Remove.
26815         (symtab_can_be_discarded): Update.
26816         (decl_comdat_group): New function.
26817         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
26818         Update.
26819         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
26820         comdat group name.
26821         (read_comdat_group): New function.
26822         (input_node, input_varpool_node): Use it.
26823         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
26824         comdat groups.
26825         * mips.c (mips_start_unique_function): Likewise.
26826         (ix86_code_end): Likewise.
26827         (rs6000_code_end): Likweise.
26828         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
26829
26830 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26831
26832         * gengtype-state.c (fatal_reading_state): Bring offline.
26833         * optabs.c (widening_optab_handler): Bring offline.
26834         * optabs.h (widening_optab_handler): Likewise.
26835         * final.c (get_attr_length_1): Likewise.
26836
26837 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
26838
26839         * sched-int.h (sd_iterator_cond): Manually tail recurse.
26840
26841 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26842
26843         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
26844         (ppc440-compare): Include shift with dot.
26845         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
26846         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
26847         without dot.
26848         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
26849         without dot.
26850         (e6500_sfx2): Include it.
26851         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
26852         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
26853         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
26854         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
26855         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
26856         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
26857         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
26858         *lshiftrt_internal1le, *lshiftrt_internal1be,
26859         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
26860         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
26861         *rotldi3_internal10le, *rotldi3_internal10be,
26862         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
26863         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
26864         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
26865         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
26866         define_insns): Use type "shift" in the appropriate alternatives.
26867
26868 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26869
26870         * config/rs6000/rs6000.md (type): Add "logical".  Delete
26871         "fast_compare".
26872         (dot): Adjust comment.
26873         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
26874         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
26875         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
26876         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
26877         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
26878         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
26879         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
26880         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
26881
26882         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
26883         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
26884         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
26885         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
26886         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
26887         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
26888         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
26889         * config/rs6000/8540.md (ppc8540_su): Adjust.
26890         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
26891         cell-cmp-microcoded): Adjust.
26892         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
26893         * config/rs6000/e500mc.md (e500mc_su): Adjust.
26894         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
26895         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
26896         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
26897         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
26898         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
26899         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
26900         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
26901         Adjust.
26902         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
26903         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
26904         Adjust.  Adjust comment.
26905         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
26906         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
26907
26908 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26909
26910         * config/rs6000/rs6000.md (type): Add "add".
26911         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
26912         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
26913         define_insns): Use it.
26914         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
26915
26916         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
26917         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
26918         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
26919         * config/rs6000/601.md (ppc601-integer): Adjust.
26920         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
26921         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
26922         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
26923         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
26924         * config/rs6000/8540.md (ppc8540_su): Adjust.
26925         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
26926         cell-cmp-microcoded): Adjust.
26927         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
26928         * config/rs6000/e500mc.md (e500mc_su): Adjust.
26929         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
26930         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
26931         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
26932         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
26933         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
26934         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
26935         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
26936         Adjust.
26937         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
26938         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
26939         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
26940         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
26941
26942 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
26943
26944         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
26945         "delayed_compare", "var_delayed_compare".
26946         (var_shift): New attribute.
26947         (cell_micro): Adjust.
26948         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
26949         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
26950         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
26951         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
26952         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
26953         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
26954         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
26955         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
26956         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
26957         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
26958         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
26959         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
26960         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
26961         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
26962         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
26963         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
26964         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
26965         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
26966         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
26967         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
26968         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
26969         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
26970         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
26971         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
26972         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
26973
26974         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
26975         * config/rs6000/440.md (ppc440-integer): Adjust.
26976         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
26977         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
26978         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
26979         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
26980         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
26981         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
26982         * config/rs6000/8540.md (ppc8540_su): Adjust.
26983         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
26984         cell-cmp-microcoded): Adjust.
26985         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
26986         * config/rs6000/e500mc.md (e500mc_su): Adjust.
26987         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
26988         e500mc64_delayed): Adjust.
26989         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
26990         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
26991         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
26992         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
26993         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
26994         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
26995         power6-delayed-compare, power6-var-delayed-compare): Adjust.
26996         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
26997         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
26998         Adjust comment.
26999         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
27000         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
27001
27002 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
27003
27004         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
27005         (bits): New mode_attr.
27006         (idiv_ldiv): Delete mode_attr.
27007         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
27008         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
27009         rs6000_adjust_priority, is_nonpipeline_insn,
27010         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
27011
27012         * config/rs6000/40x.md (ppc403-idiv): Adjust.
27013         * config/rs6000/440.md (ppc440-idiv): Adjust.
27014         * config/rs6000/476.md (ppc476-idiv): Adjust.
27015         * config/rs6000/601.md (ppc601-idiv): Adjust.
27016         * config/rs6000/603.md (ppc603-idiv): Adjust.
27017         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
27018         ppc620-ldiv): Adjust.
27019         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
27020         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
27021         * config/rs6000/8540.md (ppc8540_divide): Adjust.
27022         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
27023         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
27024         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
27025         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
27026         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
27027         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
27028         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
27029         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
27030         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
27031         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
27032         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
27033         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
27034         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
27035         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
27036         * config/rs6000/titan.md (titan_fxu_div): Adjust.
27037
27038 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
27039
27040         * config/rs6000/rs6000.md (type): Delete "insert_word",
27041         "insert_dword".  Add "insert".
27042         (size): Update comment.
27043         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
27044         insn_must_be_first_in_group): Adjust.
27045         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
27046         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
27047         *insvsi_internal6, insvdi_internal): Adjust.
27048
27049         * config/rs6000/40x.md (ppc403-integer): Adjust.
27050         * config/rs6000/440.md (ppc440-integer): Adjust.
27051         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
27052         * config/rs6000/601.md (ppc601-integer): Adjust.
27053         * config/rs6000/603.md (ppc603-integer): Adjust.
27054         * config/rs6000/6xx.md (ppc604-integer): Adjust.
27055         * config/rs6000/7450.md (ppc7450-integer): Adjust.
27056         * config/rs6000/7xx.md (ppc750-integer): Adjust.
27057         * config/rs6000/8540.md (ppc8540_su): Adjust.
27058         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
27059         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
27060         * config/rs6000/e500mc.md (e500mc_su): Adjust.
27061         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
27062         * config/rs6000/e5500.md (e5500_sfx): Adjust.
27063         * config/rs6000/e6500.md (e6500_sfx): Adjust.
27064         * config/rs6000/mpc.md (mpccore-integer): Adjust.
27065         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
27066         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
27067         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
27068         * config/rs6000/power7.md (power7-integer): Adjust.
27069         * config/rs6000/power8.md (power8-1cyc): Adjust.
27070         * config/rs6000/rs64.md (rs64a-integer): Adjust.
27071         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
27072
27073 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
27074
27075         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
27076         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
27077         (size): New attribute.
27078         (dot): New attribute.
27079         (cell_micro): Adjust.
27080         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
27081         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
27082         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
27083         umuldi3_highpart): Adjust.
27084         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
27085         rs6000_adjust_priority, is_nonpipeline_insn,
27086         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
27087
27088         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
27089         ppc405-imul3): Adjust.
27090         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
27091         * config/rs6000/476.md (ppc476-imul): Adjust.
27092         * config/rs6000/601.md (ppc601-imul): Adjust.
27093         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
27094         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
27095         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
27096         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
27097         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
27098         Adjust.
27099         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
27100         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
27101         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
27102         cell-imul): Adjust.
27103         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
27104         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
27105         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
27106         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
27107         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
27108         * config/rs6000/mpc.md (mpccore-imul): Adjust.
27109         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
27110         power4-lmul, power4-imul, power4-imul3): Adjust.
27111         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
27112         power5-lmul, power5-imul, power5-imul3): Adjust.
27113         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
27114         power6-lmul, power6-imul, power6-imul3): Adjust.
27115         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
27116         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
27117
27118         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
27119         rs64a-lmul): Adjust.
27120         * config/rs6000/titan.md (titan_imul): Adjust.
27121
27122 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
27123
27124         * config/rs6000/rs6000.md (type): Add new value "halfmul".
27125         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
27126         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
27127         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
27128         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
27129         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
27130         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
27131         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
27132         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
27133         * config/rs6000/titan.md: Delete nonsensical comment.
27134         (titan_imul): Add type imul3.
27135         (titan_mulhw): Remove type imul3; add type halfmul.
27136
27137 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
27138
27139         * config/rs6000/rs6000.md (type): Reorder, reformat.
27140
27141 2014-05-23  Martin Jambor  <mjambor@suse.cz>
27142
27143         PR tree-optimization/53787
27144         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
27145         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
27146         analysis_done, update all uses.
27147         * ipa-prop.c: Include domwalk.h
27148         (param_analysis_info): Removed.
27149         (param_aa_status): New type.
27150         (ipa_bb_info): Likewise.
27151         (func_body_info): Likewise.
27152         (ipa_get_bb_info): New function.
27153         (aa_overwalked): Likewise.
27154         (find_dominating_aa_status): Likewise.
27155         (parm_bb_aa_status_for_bb): Likewise.
27156         (parm_preserved_before_stmt_p): Changed to use new param AA info.
27157         (load_from_unmodified_param): Accept func_body_info as a parameter
27158         instead of parms_ainfo.
27159         (parm_ref_data_preserved_p): Changed to use new param AA info.
27160         (parm_ref_data_pass_through_p): Likewise.
27161         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
27162         (compute_complex_assign_jump_func): Changed to use new param AA info.
27163         (compute_complex_ancestor_jump_func): Likewise.
27164         (ipa_compute_jump_functions_for_edge): Likewise.
27165         (ipa_compute_jump_functions): Removed.
27166         (ipa_compute_jump_functions_for_bb): New function.
27167         (ipa_analyze_indirect_call_uses): Likewise, moved variable
27168         declarations down.
27169         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
27170         and info, moved variable declarations down.
27171         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
27172         node and info.
27173         (ipa_analyze_stmt_uses): Likewise.
27174         (ipa_analyze_params_uses): Removed.
27175         (ipa_analyze_params_uses_in_bb): New function.
27176         (ipa_analyze_controlled_uses): Likewise.
27177         (free_ipa_bb_info): Likewise.
27178         (analysis_dom_walker): New class.
27179         (ipa_analyze_node): Handle node-specific forbidden analysis,
27180         initialize and free func_body_info, use dominator walker.
27181         (ipcp_modif_dom_walker): New class.
27182         (ipcp_transform_function): Create and free func_body_info, use
27183         ipcp_modif_dom_walker, moved a lot of functionality there.
27184
27185 2014-05-23  Marek Polacek  <polacek@redhat.com>
27186             Jakub Jelinek  <jakub@redhat.com>
27187
27188         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
27189         * gcc.c (sanitize_spec_function): Likewise.
27190         * convert.c (convert_to_integer): Include "ubsan.h".  Add
27191         floating-point to integer instrumentation.
27192         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
27193         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
27194         SANITIZE_NONDEFAULT.
27195         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
27196         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
27197         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
27198         * ubsan.c: Include "realmpfr.h" and "dfp.h".
27199         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
27200         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
27201         float/double/long double.
27202         (ubsan_instrument_float_cast): New function.
27203         * ubsan.h (ubsan_instrument_float_cast): Declare.
27204
27205 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
27206
27207         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
27208         predicate.
27209         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
27210         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
27211         Adjust for tailcalling through registers.
27212         * config/aarch64/aarch64.h (enum reg_class): New caller save
27213         register class.
27214         (REG_CLASS_NAMES): Likewise.
27215         (REG_CLASS_CONTENTS): Likewise.
27216         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
27217         Allow tailcalling without decls.
27218
27219 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
27220
27221         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
27222         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
27223
27224         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
27225         gsi, and variables v_* to v*.
27226
27227 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
27228
27229         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
27230
27231 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
27232
27233         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
27234         * omp-low.c: Update accordingly.
27235
27236         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
27237         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
27238         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
27239         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
27240         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
27241         GF_OMP_TARGET_KIND_UPDATE.
27242
27243         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
27244         Explicitly enumerate the expected region types.
27245
27246 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
27247
27248         PR other/56955
27249         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
27250         documentation; the old documentation didn't clearly state the
27251         constraints on the contents of the pointed-to storage.
27252
27253 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27254
27255         Fix bootstrap error on ia64
27256         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
27257         Return default value.
27258
27259 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27260
27261         PR tree-optimization/54733
27262         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
27263         (CMPNOP): Define.
27264         (find_bswap_or_nop_load): New.
27265         (find_bswap_1): Renamed to ...
27266         (find_bswap_or_nop_1): This. Also add support for memory source.
27267         (find_bswap): Renamed to ...
27268         (find_bswap_or_nop): This. Also add support for memory source and
27269         detection of bitwise operations equivalent to load in target
27270         endianness.
27271         (execute_optimize_bswap): Likewise. Also move its leading comment back
27272         in place and split statement transformation into ...
27273         (bswap_replace): This.
27274
27275 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
27276
27277         PR rtl-optimization/61215
27278         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
27279         simplify_gen_subreg until final substitution.
27280
27281 2014-05-23  Alan Modra  <amodra@gmail.com>
27282
27283         PR target/61231
27284         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
27285         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
27286         Use "Y" constraint rather than "m".
27287
27288 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
27289
27290         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
27291         define.
27292         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
27293         New function declaration.
27294         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
27295         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
27296         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
27297         (aarch64_init_builtins) : Initialize builtins
27298         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
27299         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
27300         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
27301         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
27302         and __builtins_aarch64_set_fpsr.
27303         (aarch64_atomic_assign_expand_fenv): New function.
27304         * config/aarch64/aarch64.md (set_fpcr): New pattern.
27305         (get_fpcr) : Likewise.
27306         (set_fpsr) : Likewise.
27307         (get_fpsr) : Likewise.
27308         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
27309         and UNSPECV_SET_FPSR.
27310         * doc/extend.texi (AARCH64 Built-in Functions) : Document
27311         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
27312         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
27313
27314 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
27315
27316         PR rtl-optimization/60969
27317         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
27318         constraints.  Set up mem cost for NO_REGS case.
27319
27320 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
27321
27322         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
27323
27324 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
27325
27326         * config/darwin.c: Include "lto-section-names.h".
27327         (LTO_SEGMENT_NAME): Don't define.
27328         * config/i386/winnt.c: Include "lto-section-names.h".
27329         * lto-streamer.c: Include "lto-section-names.h".
27330         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
27331         * lto-wrapper.c: Include "lto-section-names.h".
27332         (LTO_SECTION_NAME_PREFIX): Don't define.
27333         * lto-section-names.h: New file.
27334         * cgraphunit.c: Include "lto-section-names.h".
27335
27336 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
27337
27338         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
27339
27340 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
27341
27342         PR target/61208
27343         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
27344
27345 2014-05-22  Nick Clifton  <nickc@redhat.com>
27346
27347         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
27348
27349 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
27350
27351         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
27352         -> (T)A transformation to integer types.
27353
27354 2014-05-22  Teresa Johnson  <tejohnson@google.com>
27355
27356         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
27357         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
27358         (gcov_rewrite): Use gcov_nonruntime_assert.
27359         (gcov_open): Ditto.
27360         (gcov_write_words): Ditto.
27361         (gcov_write_length): Ditto.
27362         (gcov_read_words): Use gcov_nonruntime_assert, and remove
27363         gcc_assert from IN_LIBGCOV code.
27364         (gcov_read_summary): Use gcov_error to flag profile corruption.
27365         (gcov_sync): Use gcov_nonruntime_assert.
27366         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
27367         (gcov_histo_index): Use gcov_nonruntime_assert.
27368         (static void gcov_histogram_merge): Ditto.
27369         (compute_working_sets): Ditto.
27370         * gcov-io.h (gcov_nonruntime_assert): Define.
27371         (gcov_error): Define for !IN_LIBGCOV
27372
27373 2014-05-22  Richard Biener  <rguenther@suse.de>
27374
27375         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27376         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
27377         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
27378         and deallocation site.
27379         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27380         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
27381         passing through the incoming points-to set.
27382         (handle_lhs_call): Use flags argument instead of recomputing it.
27383         (find_func_aliases_for_call): Call handle_lhs_call with proper
27384         call return flags.
27385
27386 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
27387
27388         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
27389         all padding bits in REAL_VALUE_TYPE are cleared.
27390
27391 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27392
27393         Cleanup and improve multipass_dfa_lookahead_guard
27394         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
27395         (core2i7_first_cycle_multipass_begin,)
27396         (core2i7_first_cycle_multipass_issue,)
27397         (core2i7_first_cycle_multipass_backtrack): Update signature.
27398         * config/ia64/ia64.c
27399         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
27400         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
27401         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
27402         hook definition.
27403         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
27404         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
27405         values.
27406         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
27407         return values.
27408         * doc/tm.texi: Regenerate.
27409         * doc/tm.texi.in
27410         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
27411         * haifa-sched.c (ready_try): Make signed to allow negative values.
27412         (rebug_ready_list_1): Update.
27413         (choose_ready): Simplify.
27414         (sched_extend_ready_list): Update.
27415
27416 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27417
27418         Remove IA64 speculation tweaking flags
27419         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
27420         speculation tuning flags.
27421         (msched-prefer-non-data-spec-insns,)
27422         (msched-prefer-non-control-spec-insns): Obsolete options.
27423         * haifa-sched.c (choose_ready): Remove handling of
27424         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
27425         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
27426         and PREFER_NON_DATA_SPEC.
27427         * sel-sched.c (process_spec_exprs): Remove handling of
27428         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
27429
27430 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27431
27432         Improve scheduling debug output
27433         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
27434         (advance_one_cycle): Update.
27435         (schedule_insn, queue_to_ready): Add debug printouts.
27436         (debug_ready_list_1): New static function.
27437         (debug_ready_list): Update.
27438         (max_issue): Add debug printouts.
27439         (dump_insn_stream): New static function.
27440         (schedule_block): Use it.  Also better indent printouts.
27441
27442 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27443
27444         Fix sched_insn debug counter
27445         * haifa-sched.c (schedule_insn): Update.
27446         (struct haifa_saved_data): Add nonscheduled_insns_begin.
27447         (save_backtrack_point, restore_backtrack_point): Update.
27448         (first_nonscheduled_insn): New static function.
27449         (queue_to_ready, choose_ready): Use it.
27450         (schedule_block): Init nonscheduled_insns_begin.
27451         (sched_emit_insn): Update.
27452
27453
27454 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
27455
27456         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
27457         to GENERAL_REGS.
27458         (aarch64_secondary_reload) : LikeWise.
27459         (aarch64_class_max_nregs) : Remove CORE_REGS.
27460         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
27461         (REG_CLASS_NAMES) : Likewise.
27462         (REG_CLASS_CONTENTS) : LikeWise.
27463         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
27464
27465 2014-05-21  Guozhi Wei  <carrot@google.com>
27466
27467         PR target/61202
27468         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
27469         constraint.
27470         (vqdmulhq_n_s16): Likewise.
27471
27472 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
27473
27474         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
27475
27476 2014-05-21  Marek Polacek  <polacek@redhat.com>
27477
27478         PR sanitizer/61272
27479         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
27480
27481 2014-05-21  Martin Jambor  <mjambor@suse.cz>
27482
27483         * doc/invoke.texi (Optimize Options): Document parameters
27484         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
27485         ipa-cp-array-index-hint-bonus.
27486
27487 2014-05-21  Mark Wielaard  <mjw@redhat.com>
27488
27489         PR debug/16063
27490         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
27491         version >= 3 or not strict DWARF.
27492         * langhooks.h (struct lang_hooks_for_types): Add
27493         enum_underlying_base_type.
27494         * langhooks.c (lhd_enum_underlying_base_type): New function.
27495         * gcc/langhooks.h (struct lang_hooks_for_types): Add
27496         enum_underlying_base_type.
27497         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
27498         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
27499         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
27500
27501 2014-05-21  Richard Biener  <rguenther@suse.de>
27502
27503         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
27504
27505 2014-05-21  John Marino  <gnugcc@marino.st>
27506
27507         * config.gcc (*-*-dragonfly*): New target.
27508         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
27509         * configure: Regenerate.
27510         * config/dragonfly-stdint.h: New.
27511         * config/dragonfly.h: New.
27512         * config/dragonfly.opt: New.
27513         * config/i386/dragonfly.h: New.
27514         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
27515
27516 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27517
27518         * tree.def (VOID_CST): New.
27519         * tree-core.h (TI_VOID): New.
27520         * tree.h (void_node): New.
27521         * tree.c (tree_node_structure_for_code, tree_code_size)
27522         (iterative_hash_expr): Handle VOID_CST.
27523         (build_common_tree_nodes): Initialize void_node.
27524
27525 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
27526
27527         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
27528         functions.
27529         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
27530
27531         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
27532         more places.
27533
27534         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
27535         flag_reorder_blocks_and_partition.
27536         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
27537
27538 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
27539
27540         PR target/54236
27541         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
27542         constraints.
27543         (*addc_r_t): Add new insn_and_split.
27544
27545 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
27546
27547         PR middle-end/61252
27548         * omp-low.c (handle_simd_reference): New function.
27549         (lower_rec_input_clauses): Use it.  Defer adding reference
27550         initialization even for reduction without placeholder if in simd,
27551         handle it properly later on.
27552
27553 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
27554
27555         PR tree-optimization/60899
27556         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
27557         assume all static symbols will have definition wile parsing and
27558         check the do have definition later in compilation; check that
27559         variable referring symbol will be output before concluding that
27560         reference is safe; be conservative for referring local statics;
27561         be more precise about when comdat is output in other partition.
27562
27563 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
27564
27565         PR bootstrap/60984
27566         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
27567         parameter.
27568         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
27569         (ipa_inline): Loop inline_to_all_callers until no more aliases
27570         are removed.
27571
27572 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
27573
27574         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
27575         set writeonly flag only for vars actually written to.
27576
27577 2014-05-20  Dehao Chen  <dehao@google.com>
27578
27579         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
27580         and callee count to get clone count.
27581         * tree-inline.c (expand_call_inline): Use callee count instead of bb
27582         count in copy_body.
27583
27584 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
27585
27586         PR rtl-optimization/61243
27587         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
27588
27589 2014-05-20  Xinliang David Li  <davidxl@google.com>
27590
27591         * cgraphunit.c (walk_polymorphic_call_targets): Add
27592         dbgcnt and fopt-info support.
27593         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
27594         * ipa-devirt.c (ipa_devirt): Ditto.
27595         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
27596         * ipa.c (walk_polymorphic_call_targets): Ditto.
27597         * gimple-fold.c (fold_gimple_assign): Ditto.
27598         (gimple_fold_call): Ditto.
27599         * dbgcnt.def: New counter.
27600
27601 2014-05-20  DJ Delorie  <dj@redhat.com>
27602
27603         * config/msp430/msp430.md (split): Don't allow subregs when
27604         splitting SImode adds.
27605         (andneghi): Fix subtraction logic.
27606         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
27607
27608 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
27609
27610         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
27611         symbols.
27612         * except.c (switch_to_exception_section, resolve_unique_section,
27613         get_named_text_section, default_function_rodata_section,
27614         align_variable, get_block_for_decl, default_section_type_flags):
27615         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
27616         * symtab.c (symtab_add_to_same_comdat_group,
27617         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
27618         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
27619         Likewise.
27620         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
27621         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
27622         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
27623         (c6x_function_in_section_p): Likewise.
27624         * config/darwin.c (machopic_select_section): Likewise.
27625         * config/arm/arm.c (arm_function_in_section_p): Likewise.
27626         * config/mips/mips.c (mips_function_rodata_section): Likewise.
27627         * config/mep/mep.c (mep_select_section): LIkewise.
27628         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
27629
27630 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
27631
27632         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
27633         EH region of calls to pure functions that can throw an exception.
27634         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
27635         (copy_reference_ops_from_call): Also copy the EH region of the call if
27636         it can throw an exception.
27637
27638 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27639
27640         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
27641         nested VEC_SELECTs that are inverses of each other.
27642
27643 2014-05-20  Richard Biener  <rguenther@suse.de>
27644
27645         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
27646         (extract_and_process_scc_for_name): not here.
27647         (cond_dom_walker::before_dom_children): Only process
27648         stmts that end the BB in interesting ways.
27649         (run_scc_vn): Mark param uses as visited.
27650
27651 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27652
27653         * config/arm/arm.md (arith_shiftsi): Do not predicate for
27654         arm_restrict_it.
27655
27656 2014-05-20  Nick Clifton  <nickc@redhat.com>
27657
27658         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
27659         (msp430_gimplify_va_arg_expr): New function.
27660         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
27661
27662         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
27663         operand 0 in order to prevent confusion about the number of
27664         registers involved.
27665
27666 2014-05-20  Richard Biener  <rguenther@suse.de>
27667
27668         PR tree-optimization/61221
27669         * tree-ssa-pre.c (el_to_update): Remove.
27670         (eliminate_dom_walker::before_dom_children): Handle released
27671         VDEFs by value-numbering them to the associated VUSE.  Update
27672         stmt immediately for substituted call address.
27673         (eliminate): Remove delayed stmt updating code.
27674         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
27675         possibly late re-numbered vuses.
27676         (vn_reference_lookup_2): Adjust.
27677         (vn_reference_lookup_pieces): Likewise.
27678         (vn_reference_lookup): Likewise.
27679
27680 2014-05-20  Richard Biener  <rguenther@suse.de>
27681
27682         * config.gcc: Remove need_64bit_hwint.
27683         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
27684         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
27685         it to be true.
27686         * config.in: Regenerate.
27687         * configure: Likewise.
27688
27689 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
27690
27691         * doc/extend.texi: Create Label Attributes section,
27692         move all label attributes into it and reference it.
27693
27694 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
27695
27696         * arm.c (thumb1_reorg): When scanning backwards skip anything
27697         that's not a proper insn.
27698
27699 2014-05-19  Richard Biener  <rguenther@suse.de>
27700
27701         PR tree-optimization/61221
27702         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
27703         Do nothing for unreachable blocks.
27704         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
27705         Improve unreachability detection.
27706
27707 2014-05-19  Richard Biener  <rguenther@suse.de>
27708
27709         PR tree-optimization/61209
27710         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
27711
27712 2014-05-19  Nick Clifton  <nickc@redhat.com>
27713
27714         * except.c (init_eh): Fix computation of builtin setjmp buffer
27715         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
27716
27717 2014-05-19  Richard Biener  <rguenther@suse.de>
27718
27719         PR tree-optimization/61184
27720         * tree-vrp.c (is_negative_overflow_infinity): Use
27721         TREE_OVERFLOW_P and do that check first.
27722         (is_positive_overflow_infinity): Likewise.
27723         (is_overflow_infinity): Likewise.
27724         (vrp_operand_equal_p): Properly treat operands with
27725         differing overflow as not equal.
27726
27727 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
27728
27729         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
27730         shift simplification where it was intended.
27731
27732 2014-05-19  Christian Bruel  <christian.bruel@st.com>
27733
27734         PR target/61195
27735         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
27736
27737 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
27738
27739         PR target/61084
27740         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
27741         than wide_int.
27742
27743 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
27744
27745         * reg-notes.def (CROSSING_JUMP): Likewise.
27746         * rtl.h (rtx_def): Update comment for jump flag.
27747         (CROSSING_JUMP_P): Define.
27748         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
27749         of a REG_CROSSING_JUMP note.
27750         * cfghooks.c (tidy_fallthru_edges): Likewise.
27751         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
27752         * emit-rtl.c (try_split): Likewise.
27753         * haifa-sched.c (sched_create_recovery_edges): Likewise.
27754         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
27755         * jump.c (redirect_jump_2): Likewise.
27756         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
27757         (relax_delay_slots): Likewise.
27758         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
27759         (bbit_di): Likewise.
27760         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
27761         * config/sh/sh.md (jump_compact): Likewise.
27762         * bb-reorder.c (rotate_loop): Likewise.
27763         (pass_duplicate_computed_gotos::execute): Likewise.
27764         (add_reg_crossing_jump_notes): Rename to...
27765         (update_crossing_jump_flags): ...this.
27766         (pass_partition_blocks::execute): Update accordingly.
27767
27768 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
27769
27770         * tree.h: Remove extraneous template <>.
27771
27772 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
27773
27774         * ipa.c (symtab_remove_unreachable_nodes): Remove
27775         symbol from comdat group if its body was eliminated.
27776         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
27777         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
27778         (symtab_unregister_node): ... this one.
27779         (verify_symtab_base): More strict checking of comdats.
27780         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
27781
27782 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
27783
27784         * tree-pass.h (make_pass_ipa_comdats): New pass.
27785         * timevar.def (TV_IPA_COMDATS): New timevar.
27786         * passes.def (pass_ipa_comdats): Add.
27787         * Makefile.in (OBJS): Add ipa-comdats.o
27788         * ipa-comdats.c: New file.
27789
27790 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
27791
27792         * ipa.c (update_visibility_by_resolution_info): New function.
27793         (function_and_variable_visibility): Use it.
27794
27795 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
27796
27797         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
27798         New functions.
27799         (FOR_EACH_DEFINED_SYMBOL): New macro.
27800         (varpool_first_static_initializer, varpool_next_static_initializer,
27801         varpool_first_defined_variable, varpool_next_defined_variable):
27802         Fix comments.
27803         (symtab_in_same_comdat_p): Correctly deal with inline functions.
27804
27805 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
27806
27807         * ggc-page.c (ggc_handle_finalizers): Add comment.
27808
27809 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
27810
27811         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
27812         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
27813         (ggc_internal_cleared_alloc): Likewise.
27814         * ggc-page.c (finalizer): New class.
27815         (vec_finalizer): Likewise.
27816         (globals::finalizers): New member.
27817         (globals::vec_finalizers): Likewise.
27818         (ggc_internal_alloc): Record the finalizer if any for the block being
27819         allocated.
27820         (ggc_handle_finalizers): New function.
27821         (ggc_collect): Call ggc_handle_finalizers.
27822         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
27823         finalizer.
27824         (ggc_internal_cleared_alloc): Likewise.
27825         (finalize): New function.
27826         (need_finalization_p): Likewise.
27827         (ggc_alloc): Install the type's destructor as the finalizer if it
27828         might do something.
27829         (ggc_cleared_alloc): Likewise.
27830         (ggc_vec_alloc): Likewise.
27831         (ggc_cleared_vec_alloc): Likewise.
27832
27833 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
27834
27835         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
27836
27837 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
27838
27839         * alias.c (record_alias_subset): Adjust.
27840         * bitmap.c (bitmap_element_allocate): Likewise.
27841         (bitmap_gc_alloc_stat): Likewise.
27842         * cfg.c (init_flow): Likewise.
27843         (alloc_block): Likewise.
27844         (unchecked_make_edge): Likewise.
27845         * cfgloop.c (alloc_loop): Likewise.
27846         (flow_loops_find): Likewise.
27847         (rescan_loop_exit): Likewise.
27848         * cfgrtl.c (init_rtl_bb_info): Likewise.
27849         * cgraph.c (insert_new_cgraph_node_version): Likewise.
27850         (cgraph_allocate_node): Likewise.
27851         (cgraph_create_edge_1): Likewise.
27852         (cgraph_allocate_init_indirect_info): Likewise.
27853         * cgraphclones.c (cgraph_clone_edge): Likewise.
27854         * cgraphunit.c (add_asm_node): Likewise.
27855         (init_lowered_empty_function): Likewise.
27856         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
27857         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
27858         (alpha_use_linkage): Likewise.
27859         * config/arc/arc.c (arc_init_machine_status): Likewise.
27860         * config/arm/arm.c (arm_init_machine_status): Likewise.
27861         * config/avr/avr.c (avr_init_machine_status): Likewise.
27862         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
27863         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
27864         * config/cris/cris.c (cris_init_machine_status): Likewise.
27865         * config/darwin.c (machopic_indirection_name): Likewise.
27866         (darwin_build_constant_cfstring): Likewise.
27867         (darwin_enter_string_into_cfstring_table): Likewise.
27868         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
27869         * config/frv/frv.c (frv_init_machine_status): Likewise.
27870         * config/i386/i386.c (get_dllimport_decl): Likewise.
27871         (ix86_init_machine_status): Likewise.
27872         (assign_386_stack_local): Likewise.
27873         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
27874         (i386_pe_maybe_record_exported_symbol): Likewise.
27875         (i386_pe_record_stub): Likewise.
27876         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
27877         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
27878         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
27879         (m32c_note_pragma_address): Likewise.
27880         * config/mep/mep.c (mep_init_machine_status): Likewise.
27881         (mep_note_pragma_flag): Likewise.
27882         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
27883         (mips16_local_alias): Likewise.
27884         (mips_init_machine_status): Likewise.
27885         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
27886         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
27887         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
27888         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
27889         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
27890         * config/pa/pa.c (pa_init_machine_status): Likewise.
27891         (pa_get_deferred_plabel): Likewise.
27892         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
27893         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
27894         (rs6000_init_machine_status): Likewise.
27895         (output_toc): Likewise.
27896         * config/s390/s390.c (s390_init_machine_status): Likewise.
27897         * config/score/score.c (score_output_external): Likewise.
27898         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
27899         * config/spu/spu.c (spu_init_machine_status): Likewise.
27900         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
27901         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
27902         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
27903         * coverage.c (coverage_end_function): Likewise.
27904         * dbxout.c (dbxout_init): Likewise.
27905         * doc/gty.texi: Don't mention variable_size attribute.
27906         * dwarf2cfi.c (new_cfi): Adjust.
27907         (new_cfi_row): Likewise.
27908         (copy_cfi_row): Likewise.
27909         (create_cie_data): Likewise.
27910         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
27911         (new_loc_descr): Likewise.
27912         (find_AT_string_in_table): Likewise.
27913         (add_addr_table_entry): Likewise.
27914         (new_die): Likewise.
27915         (add_var_loc_to_decl): Likewise.
27916         (clone_die): Likewise.
27917         (clone_as_declaration): Likewise.
27918         (break_out_comdat_types): Likewise.
27919         (new_loc_list): Likewise.
27920         (add_loc_descr_to_each): Likewise.
27921         (add_location_or_const_value_attribute): Likewise.
27922         (add_linkage_name): Likewise.
27923         (lookup_filename): Likewise.
27924         (dwarf2out_var_location): Likewise.
27925         (new_line_info_table): Likewise.
27926         (dwarf2out_init): Likewise.
27927         (mem_loc_descriptor): Likewise.
27928         (loc_descriptor): Likewise.
27929         (add_const_value_attribute): Likewise.
27930         (tree_add_const_value_attribute): Likewise.
27931         (comp_dir_string): Likewise.
27932         (dwarf2out_vms_debug_main_pointer): Likewise.
27933         (string_cst_pool_decl): Likewise.
27934         * emit-rtl.c (set_mem_attrs): Likewise.
27935         (get_reg_attrs): Likewise.
27936         (start_sequence): Likewise.
27937         (init_emit): Likewise.
27938         (init_emit_regs): Likewise.
27939         * except.c (init_eh_for_function): Likewise.
27940         (gen_eh_region): Likewise.
27941         (gen_eh_region_catch): Likewise.
27942         (gen_eh_landing_pad): Likewise.
27943         (add_call_site): Likewise.
27944         * function.c (add_frame_space): Likewise.
27945         (insert_temp_slot_address): Likewise.
27946         (assign_stack_temp_for_type): Likewise.
27947         (get_hard_reg_initial_val): Likewise.
27948         (allocate_struct_function): Likewise.
27949         (prepare_function_start): Likewise.
27950         (types_used_by_var_decl_insert): Likewise.
27951         * gengtype.c (variable_size_p): Remove function.
27952         (enum alloc_quantity): Remove enum.
27953         (write_typed_alloc_def): Remove function.
27954         (write_typed_struct_alloc_def): Likewise.
27955         (write_typed_typedef_alloc_def): Likewise.
27956         (write_typed_alloc_defns): Likewise.
27957         (main): Adjust.
27958         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
27959         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
27960         * ggc.h (ggc_alloc): new function.
27961         (ggc_cleared_alloc): Likewise.
27962         (ggc_vec_alloc): Template on type of vector element, and remove
27963         element size argument.
27964         (ggc_cleared_vec_alloc): Likewise.
27965         * gimple.c (gimple_build_omp_for): Adjust.
27966         (gimple_copy): Likewise.
27967         * ipa-cp.c (get_replacement_map): Likewise.
27968         (find_aggregate_values_for_callers_subset): Likewise.
27969         (known_aggs_to_agg_replacement_list): Likewise.
27970         * ipa-devirt.c (get_odr_type): Likewise.
27971         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
27972         (read_agg_replacement_chain): Likewise.
27973         * loop-iv.c (get_simple_loop_desc): Likewise.
27974         * lto-cgraph.c (input_node_opt_summary): Likewise.
27975         * lto-section-in.c (lto_new_in_decl_state): Likewise.
27976         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
27977         (input_eh_region): Likewise.
27978         (input_eh_lp): Likewise.
27979         (input_cfg): Likewise.
27980         * optabs.c (set_optab_libfunc): Likewise.
27981         (init_tree_optimization_optabs): Likewise.
27982         (set_conv_libfunc): Likewise.
27983         * passes.c (do_per_function_toporder): Likewise.
27984         * rtl.h: Don't use variable_size gty attribute.
27985         * sese.c (if_region_set_false_region): Adjust.
27986         * stringpool.c (gt_pch_save_stringpool): Likewise.
27987         * target-globals.c (save_target_globals): Likewise.
27988         * toplev.c (general_init): Likewise.
27989         * trans-mem.c (record_tm_replacement): Likewise.
27990         (split_bb_make_tm_edge): Likewise.
27991         * tree-cfg.c (move_sese_region_to_fn): Likewise.
27992         * tree-data-ref.h (lambda_vector_new): Likewise.
27993         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
27994         * tree-iterator.c (tsi_link_before): Likewise.
27995         (tsi_link_after): Likewise.
27996         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
27997         * tree-ssa-loop-niter.c (record_estimate): Likewise.
27998         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
27999         * tree-ssa-operands.h: Don't use variable_size gty attribute.
28000         * tree-ssa.c (init_tree_ssa): Adjust.
28001         * tree-ssanames.c (set_range_info): Likewise.
28002         (get_ptr_info): Likewise.
28003         (duplicate_ssa_name_ptr_info): Likewise.
28004         (duplicate_ssa_name_range_info): Likewise.
28005         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
28006         (unpack_ts_fixed_cst_value_fields): Likewise.
28007         * tree.c (build_fixed): Likewise.
28008         (build_real): Likewise.
28009         (build_string): Likewise.
28010         (decl_priority_info): Likewise.
28011         (decl_debug_expr_insert): Likewise.
28012         (decl_value_expr_insert): Likewise.
28013         (decl_debug_args_insert): Likewise.
28014         (type_hash_add): Likewise.
28015         (build_omp_clause): Likewise.
28016         * ubsan.c (decl_for_type_insert): Likewise.
28017         * varasm.c (get_unnamed_section): Likewise.
28018         (get_noswitch_section): Likewise.
28019         (get_section): Likewise.
28020         (get_block_for_section): Likewise.
28021         (create_block_symbol): Likewise.
28022         (build_constant_desc): Likewise.
28023         (create_constant_pool): Likewise.
28024         (force_const_mem): Likewise.
28025         (record_tm_clone_pair): Likewise.
28026         * varpool.c (varpool_create_empty_node): Likewise.
28027
28028 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
28029
28030         * dwarf2out.c (tree_add_const_value_attribute): Call
28031         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
28032         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
28033         instead of ggc_internal_<x>alloc_stat.
28034         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
28035         (ggc_realloc): Likewise.
28036         * ggc-none.c (ggc_internal_alloc): Likewise.
28037         (ggc_internal_cleared_alloc): Likewise.
28038         * ggc-page.c: Likewise.
28039         * ggc.h (ggc_internal_alloc_stat): Likewise.
28040         (ggc_internal_alloc): Remove macro.
28041         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
28042         (ggc_internal_cleared_alloc): Remove macro.
28043         (GGC_RESIZEVEC): Adjust.
28044         (ggc_resizevar): Remove macro.
28045         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
28046         (ggc_internal_cleared_vec_alloc_stat): Likewise.
28047         (ggc_internal_vec_cleared_alloc): Remove macro.
28048         (ggc_alloc_atomic_stat): Drop _stat suffix.
28049         (ggc_alloc_atomic): Remove macro.
28050         (ggc_alloc_cleared_atomic): Remove macro.
28051         (ggc_alloc_string_stat): Drop _stat suffix.
28052         (ggc_alloc_string): Remove macro.
28053         (ggc_alloc_rtx_def_stat): Adjust.
28054         (ggc_alloc_tree_node_stat): Likewise.
28055         (ggc_alloc_cleared_tree_node_stat): Likewise.
28056         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
28057         (ggc_alloc_cleared_simd_clone_stat): Likewise.
28058         * gimple.c (gimple_build_omp_for): Likewise.
28059         (gimple_copy): Likewise.
28060         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
28061         * toplev.c (realloc_for_line_map): Adjust.
28062         * tree-data-ref.h (lambda_vector_new): Likewise.
28063         * tree-phinodes.c (allocate_phi_node): Likewise.
28064         * tree.c (grow_tree_vec_stat): Likewise.
28065         * vec.h (va_gc::reserve): Adjust.
28066
28067 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
28068
28069         * config/microblaze/microblaze.c (break_handler): New Declaration.
28070         (microblaze_break_function_p,microblaze_is_break_handler): New.
28071         (compute_frame_size): Use microblaze_break_function_p.
28072         Add the test of break_handler.
28073         (microblaze_function_prologue) : Add the test of variable
28074         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
28075         (microblaze_function_epilogue) : Add the test of break_handler.
28076         (microblaze_globalize_label) : Add the test of break_handler.
28077         Check the name by BREAK_HANDLER_NAME.
28078
28079         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
28080
28081         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
28082         microblaze_is_break_handler test.
28083         (call_internal1,call_value_intern): Use microblaze_break_function_p.
28084         Use SYMBOL_REF_DECL.
28085
28086         * config/microblaze/microblaze-protos.h
28087         (microblaze_break_function_p,microblaze_is_break_handler):
28088         New Declaration.
28089
28090         * doc/extend.texi (MicroBlaze break_handler Functions): Document
28091         new MicroBlaze break_handler functions.
28092
28093 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
28094
28095         * doc/extend.texi (Size of an asm): Move node text according
28096         to its @menu entry position.
28097
28098 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
28099
28100         PR tree-optimization/61140
28101         PR tree-optimization/61150
28102         PR tree-optimization/61197
28103         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
28104
28105 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
28106
28107         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
28108
28109 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
28110
28111         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
28112         __SIZEOF_INT128__ is defined.
28113
28114 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
28115
28116         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
28117         (rs6000_delegitimize_address): Use it.
28118
28119 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
28120
28121         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
28122         inplace argument.  Store the new address in the original MEM when true.
28123         * emit-rtl.c (change_address_1): Likewise.
28124         (adjust_address_1, adjust_automodify_address_1, offset_address):
28125         Update accordingly.
28126         * rtl.h (plus_constant): Add an inplace argument.
28127         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
28128         when true.  Avoid generating (plus X (const_int 0)).
28129         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
28130         in-place.  Pass true to plus_constant.
28131         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
28132
28133 2014-05-16  Dehao Chen  <dehao@google.com>
28134
28135         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
28136
28137 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
28138
28139         PR target/54089
28140         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
28141         patterns.
28142         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
28143
28144 2014-05-16  Dehao Chen  <dehao@google.com>
28145
28146         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
28147         optimize_function_for_size_p.
28148         * regs.h (REG_FREQ_FROM_BB): Likewise.
28149
28150 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
28151
28152         PR target/51244
28153         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
28154         negt_reg_operand cases.
28155         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
28156         predicate.
28157         * config/sh/predicates.md (cbranch_treg_value): Simplify.
28158
28159 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
28160
28161         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
28162         target variants.
28163
28164 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
28165
28166         Revert:
28167         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
28168
28169         * tree-cfg.c (dump_function_to_file): Dump the return type of
28170         functions, in a line to itself before the function body, mimicking
28171         the layout of a C function.
28172
28173 2014-05-16  Dehao Chen  <dehao@google.com>
28174
28175         * cfghooks.c (make_forwarder_block): Use direct computation to
28176         get fall-through edge's count and frequency.
28177
28178 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
28179
28180         * config/arc/arc.c (arc_init): Fix typo in error message.
28181         * config/i386/i386.c (ix86_expand_builtin): Likewise.
28182         (split_stack_prologue_scratch_regno): Likewise.
28183         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
28184         word from error message.
28185
28186 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
28187
28188         * ira-costs.c: Fix typo in comment.
28189
28190 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
28191
28192         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
28193
28194 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
28195
28196         * varpool.c (dump_varpool_node): Dump write-only flag.
28197         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
28198         write-only flag.
28199         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
28200         write-only variables.
28201         * ipa.c (process_references): New function.
28202         (set_readonly_bit): New function.
28203         (set_writeonly_bit): New function.
28204         (clear_addressable_bit): New function.
28205         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
28206         fix handling of aliases.
28207         * cgraph.h (struct varpool_node): Add writeonly flag.
28208
28209 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
28210
28211         PR rtl-optimization/60969
28212         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
28213         Calculate costs for this case.
28214
28215 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
28216
28217         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
28218         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
28219
28220 2014-05-16  Richard Biener  <rguenther@suse.de>
28221
28222         PR tree-optimization/61194
28223         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
28224         bool patterns ending in a COND_EXPR.
28225
28226 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28227
28228         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
28229
28230 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28231
28232         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
28233         where we were unable to cost an RTX.
28234
28235 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28236
28237         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
28238         HIGH, LO_SUM.
28239
28240 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28241             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28242
28243         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
28244
28245 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28246             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28247
28248         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
28249         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
28250
28251 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28252             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28253
28254         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
28255         operators.
28256
28257 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28258             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28259
28260         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
28261         DIV/MOD.
28262
28263 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28264             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28265
28266         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
28267         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
28268
28269 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28270             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28271
28272         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
28273         rotates and shifts.
28274
28275 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28276             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28277
28278         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
28279         ZERO_EXTEND and SIGN_EXTEND better.
28280
28281 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28282             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28283
28284         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
28285         logical operations.
28286
28287 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28288             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28289
28290         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
28291         costs when costing loads and stores to memory.
28292
28293 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28294             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
28295
28296         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
28297         for SET RTX.
28298
28299 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28300
28301         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
28302
28303 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28304             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28305
28306         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
28307         to...
28308         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
28309         well formed.
28310         (aarch64_rtx_mult_cost): New.
28311         (aarch64_rtx_costs): Use it, refactor as appropriate.
28312
28313 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28314             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
28315
28316         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
28317         emit instructions, return number of instructions which would
28318         be emitted.
28319         (aarch64_add_constant): Update call to aarch64_build_constant.
28320         (aarch64_output_mi_thunk): Likewise.
28321         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
28322         a CONST_DOUBLE.
28323
28324 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28325
28326         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
28327         (TARGET_RTX_COSTS): Call it.
28328
28329 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28330
28331         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
28332         (cortexa57_vector_cost): Likewise.
28333         (cortexa57_tunings): Use them.
28334
28335 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
28336
28337         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
28338         (cpu_addrcost_table): Use it.
28339         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
28340         (aarch64_address_cost): Rewrite using aarch64_classify_address,
28341         move it.
28342
28343 2014-05-16  Richard Biener  <rguenther@suse.de>
28344
28345         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
28346         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
28347         (visit_phi): Ignore edges marked as not executable.
28348         (class cond_dom_walker): New.
28349         (cond_dom_walker::before_dom_children): Value-number
28350         control statements and mark successor edges as not
28351         executable if possible.
28352         (run_scc_vn): First walk all control statements in
28353         dominator order, marking edges as not executable.
28354         * tree-inline.c (copy_edges_for_bb): Be not confused
28355         about random edge flags.
28356
28357 2014-05-16  Richard Biener  <rguenther@suse.de>
28358
28359         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
28360
28361 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
28362
28363         PR target/61193
28364         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
28365         (__TM_simple_begin): Use it.
28366         (__TM_begin): Likewise.
28367
28368 2014-05-15  Martin Jambor  <mjambor@suse.cz>
28369
28370         PR ipa/61085
28371         * ipa-prop.c (update_indirect_edges_after_inlining): Check
28372         type_preserved flag when the indirect edge is polymorphic.
28373
28374 2014-05-15  Martin Jambor  <mjambor@suse.cz>
28375
28376         PR tree-optimization/61090
28377         * tree-sra.c (sra_modify_expr): Pass the current gsi to
28378         build_ref_for_model.
28379
28380 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28381
28382         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
28383         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
28384
28385 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
28386
28387         PR tree-optimization/61158
28388         * fold-const.c (fold_binary_loc): If X is zero-extended and
28389         shiftc >= prec, make sure zerobits is all ones instead of
28390         invoking undefined behavior.
28391
28392 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28393
28394         * regcprop.h: New file.
28395         * regcprop.c (skip_debug_insn_p): New decl.
28396         (replace_oldest_value_reg): Check skip_debug_insn_p.
28397         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
28398         * shrink-wrap.c: Include regcprop.h.
28399         (prepare_shrink_wrap): Call
28400         copyprop_hardreg_forward_bb_without_debug_insn.
28401
28402 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28403
28404         * shrink-wrap.h: Update comment.
28405         * shrink-wrap.c: Update comment.
28406         (next_block_for_reg): Rename to live_edge_for_reg.
28407         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
28408         (move_insn_for_shrink_wrap): Split live_edge.
28409         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
28410
28411 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
28412
28413         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
28414         Delete.
28415         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
28416         * config/sparc/sparc.md (fptype_ut699): New attribute.
28417         (in_branch_delay): Return false if -mfix-ut699 is specified and
28418         fptype_ut699 is set to single.
28419         (truncdfsf2): Add fptype_ut699 attribute.
28420         (fix_truncdfsi2): Likewise.
28421         (floatsisf2): Change fptype attribute.
28422         (fix_truncsfsi2): Likewise.
28423         (negtf2_notv9): Delete.
28424         (negtf2_v9): Likewise.
28425         (negtf2_hq): New instruction.
28426         (negtf2): New instruction and splitter.
28427         (negdf2_notv9): Rewrite.
28428         (abstf2_notv9): Delete.
28429         (abstf2_hq_v9): Likewise.
28430         (abstf2_v9): Likewise.
28431         (abstf2_hq): New instruction.
28432         (abstf2): New instruction and splitter.
28433         (absdf2_notv9): Rewrite.
28434
28435 2014-05-14  Cary Coutant  <ccoutant@google.com>
28436
28437         PR debug/61013
28438         * opts.c (common_handle_option): Don't special-case "-g".
28439         (set_debug_level): Default to at least level 2 with "-g".
28440
28441 2014-05-14  DJ Delorie  <dj@redhat.com>
28442
28443         * config/msp430/msp430.c (msp430_builtin): Add
28444         MSP430_BUILTIN_DELAY_CYCLES.
28445         (msp430_init_builtins): Register void __delay_cycles(long long).
28446         (msp430_builtin_decl): Add it.
28447         (cg_magic_constant): New.
28448         (msp430_expand_delay_cycles): New.
28449         (msp430_expand_builtin): Call it.
28450         (msp430_print_operand_raw): Change integer printing from "int" to
28451         HOST_WIDE_INT.
28452         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
28453         (delay_cycles_start): New.
28454         (delay_cycles_end): New.
28455         (delay_cycles_32): New.
28456         (delay_cycles_32x): New.
28457         (delay_cycles_16): New.
28458         (delay_cycles_16x): New.
28459         (delay_cycles_2): New.
28460         (delay_cycles_1): New.
28461         * doc/extend.texi: Document __delay_cycles().
28462
28463 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
28464
28465         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
28466         length attribute computation.
28467
28468 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
28469
28470         PR debug/61188
28471         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
28472
28473 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
28474
28475         PR target/61084
28476         * config/sparc/sparc.md: Fix types of low and high in DI constant
28477         splitter.  Use gen_int_mode in some other splitters.
28478
28479 2014-05-14  Martin Jambor  <mjambor@suse.cz>
28480
28481         PR ipa/60897
28482         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
28483
28484 2014-05-14  James Norris  <jnorris@codesourcery.com>
28485
28486         * omp-low.c (expand_parallel_call): Remove shadow variable.
28487         (expand_omp_taskreg): Likewise.
28488
28489 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
28490
28491         * common/config/i386/i386-common.c
28492         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
28493         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
28494         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
28495         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
28496         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
28497         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
28498         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
28499         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
28500         xsavecintrin.h, xsavesintrin.h.
28501         (x86_64-*-*): Ditto.
28502         * config/i386/clflushoptintrin.h: New.
28503         * config/i386/xsavecintrin.h: Ditto.
28504         * config/i386/xsavesintrin.h: Ditto.
28505         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
28506         (bit_XSAVES): Ditto.
28507         (bit_XSAVES): Ditto.
28508         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
28509         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
28510         -mno-clflushopt.
28511         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28512         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
28513         OPTION_MASK_ISA_XSAVES.
28514         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
28515         -mxsavec, -mxsaves.
28516         (PTA_CLFLUSHOPT) Define.
28517         (PTA_XSAVEC): Ditto.
28518         (PTA_XSAVES): Ditto.
28519         (ix86_option_override_internal): Handle new options.
28520         (ix86_valid_target_attribute_inner_p): Ditto.
28521         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
28522         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
28523         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
28524         (bdesc_special_args): Add __builtin_ia32_xsaves,
28525         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
28526         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
28527         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
28528         (ix86_expand_builtin): Handle new builtins.
28529         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
28530         (TARGET_CLFLUSHOPT_P): Ditto.
28531         (TARGET_XSAVEC): Ditto.
28532         (TARGET_XSAVEC_P): Ditto.
28533         (TARGET_XSAVES): Ditto.
28534         (TARGET_XSAVES_P): Ditto.
28535         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
28536         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
28537         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
28538         (ANY_XRSTOR): New.
28539         (ANY_XRSTOR64): Ditto.
28540         (xrstor): Ditto.
28541         (xrstor): Change into <xrstor>.
28542         (xrstor_rex64): Change into <xrstor>_rex64.
28543         (xrstor64): Change into <xrstor>64
28544         (clflushopt): New.
28545         * config/i386/i386.opt (mclflushopt): New.
28546         (mxsavec): Ditto.
28547         (mxsaves): Ditto.
28548         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
28549         xsavecintrin.h.
28550         * doc/invoke.texi: Document new options.
28551
28552 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
28553
28554         PR rtl-optimization/60866
28555         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
28556         Default it to -1.  Pass it down to init_simplejump_data.
28557         (init_simplejump_data): New parameter old_seqno.  Pass it down
28558         to get_seqno_for_a_jump.
28559         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
28560         initializing new jump seqno as a last resort.  Add comment.
28561         (sel_redirect_edge_and_branch): Save old seqno of the conditional
28562         jump and pass it down to sel_init_new_insn.
28563         (sel_redirect_edge_and_branch_force): Likewise.
28564
28565 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
28566
28567         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
28568         shifted values to avoid build warning.
28569
28570 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
28571
28572         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
28573         * cfgrtl.c (rtl_merge_blocks): Fix comment.
28574         (cfg_layout_merge_blocks): Likewise.
28575         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
28576
28577 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
28578
28579         PR rtl-optimization/60901
28580         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
28581         bb predecessor belongs to the same scheduling region.  Adjust comment.
28582
28583 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
28584
28585         * doc/sourcebuild.texi: (dfp_hw): Document.
28586         (p8vector_hw): Likewise.
28587         (powerpc_eabi_ok): Likewise.
28588         (powerpc_elfv2): Likewise.
28589         (powerpc_htm_ok): Likewise.
28590         (ppc_recip_hw): Likewise.
28591         (vsx_hw): Likewise.
28592
28593 2014-05-13  Cary Coutant  <ccoutant@google.com>
28594
28595         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
28596
28597 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
28598
28599         * gengtype-parse.c (require3): Eliminate in favor of...
28600         (require4): New.
28601         (require_template_declaration): Update to support optional single *
28602         on a type.
28603
28604         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
28605         (create_user_defined_type): Handle a single level of explicit
28606         pointerness within template arguments.
28607         (struct write_types_data): Add field "kind".
28608         (filter_type_name): Handle "*" character.
28609         (write_user_func_for_structure_ptr): Require a write_types_data
28610         rather than just a prefix string, so that we can look up the kind
28611         of the wtd and use it as an index into wrote_user_func_for_ptr,
28612         ensuring that such functions are written at most once.  Support
28613         subclasses by invoking the marking function of the ultimate base class.
28614         (write_user_func_for_structure_body): Require a write_types_data
28615         rather than just a prefix string, so that we can pass this to
28616         write_user_func_for_structure_ptr.
28617         (write_func_for_structure): Likewise.
28618         (ggc_wtd): Add initializer of new "kind" field.
28619         (pch_wtd): Likewise.
28620
28621         * gengtype.h (enum write_types_kinds): New.
28622         (struct type): Add field wrote_user_func_for_ptr to the "s"
28623         union member.
28624
28625 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
28626
28627         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
28628         instead of const_binop.
28629         (fold_binary_loc): Likewise.
28630
28631 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
28632
28633         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
28634         calculation to match get_ref_base_and_extent.
28635
28636 2014-05-13  Catherine Moore  <clm@codesourcery.com>
28637             Sandra Loosemore  <sandra@codesourcery.com>
28638
28639         * configure.ac: Fix assembly for explicit JALR relocation check.
28640         * configure: Regenerate.
28641
28642 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28643
28644         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
28645         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
28646         Remove associated type declarations and initialisations.
28647         (arm_expand_neon_builtin): Likewise.
28648         (neon_emit_pair_result_insn): Delete.
28649         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
28650         * config/arm/neon.md (neon_vtrn<mode>): Delete.
28651         (neon_vzip<mode>): Likewise.
28652         (neon_vuzp<mode>): Likewise.
28653
28654 2014-05-13  Richard Biener  <rguenther@suse.de>
28655
28656         PR ipa/60973
28657         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
28658         it needs revisiting whether the call still may be tail-called.
28659
28660 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
28661
28662         * rtl.def (SYMBOL_REF): Remove middle "0" field.
28663         * rtl.h (block_symbol): Reduce number of fields to 2.
28664         (rtx_def): Add u2.symbol_ref_flags.
28665         (SYMBOL_REF_FLAGS): Use it.
28666         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
28667         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
28668         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
28669         Lower index of SYMBOL_REF_DATA.
28670         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
28671         Print SYMBOL_REF_FLAGS at the same time.
28672         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
28673
28674 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
28675
28676         * rtl.def (VAR_LOCATION): Remove "i" field.
28677         * rtl.h (rtx_def): Add u2.var_location_status.
28678         (PAT_VAR_LOCATION_STATUS): Use it.
28679         (gen_rtx_VAR_LOCATION): Declare.
28680         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
28681         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
28682         * var-tracking.c (emit_note_insn_var_location): Remove casts.
28683
28684 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
28685
28686         * rtl.def (scratch): Fix outdated comment and remove "0" field.
28687         * gengtype.c (adjust_field_rtx_def): Update accordingly.
28688
28689 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
28690
28691         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
28692         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
28693         * rtl.h (rtx_def): Add insn_uid to u2 field.
28694         (RTX_FLAG_CHECK8): Delete in favor of...
28695         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
28696         (INSN_DELETED_P): Update accordingly.
28697         (INSN_UID): Use u2.insn_uid.
28698         (INSN_CHAIN_CODE_P): Define.
28699         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
28700         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
28701         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
28702         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
28703         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
28704         indices accordingly.
28705         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
28706         Update indices for insn-chain rtxes.
28707         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
28708         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
28709         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
28710         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
28711         * combine.c (try_combine): Likewise.
28712         * ira.c (setup_prohibited_mode_move_regs): Likewise.
28713
28714 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
28715
28716         * rtl.def (REG): Remove middle field.
28717         * rtl.h (rtx_def): Add orignal_regno to u2.
28718         (ORIGINAL_REGNO): Use it instead of field 1.
28719         (REG_ATTRS): Lower field index accordingly.
28720         * gengtype.c (adjust_field_rtx_def): Remove handling of
28721         ORIGINAL_REGNO.  Move REG_ATTRS index down.
28722         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
28723         code that prints the REGNO.
28724
28725 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
28726
28727         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
28728         GENERATOR_FILE.
28729
28730 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
28731
28732         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
28733
28734 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
28735
28736         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
28737         (alloc_iv): Lower base expressions containing ADDR_EXPR.
28738
28739 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
28740
28741         * config/aarch64/aarch64-protos.h
28742         (aarch64_hard_regno_caller_save_mode): New prototype.
28743         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
28744         New function.
28745         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
28746
28747 2014-05-13  Christian Bruel  <christian.bruel@st.com>
28748
28749         * target.def (mode_switching): New hook vector.
28750         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
28751         (mode_exit, modepriority_to_mode): Likewise.
28752         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
28753         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
28754         * target.h: Include tm.h and hard-reg-set.h.
28755         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
28756         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
28757         * doc/tm.texi Regenerate.
28758         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
28759         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
28760         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
28761         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
28762         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
28763         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
28764         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
28765         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
28766         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
28767         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
28768         (ix86_emit_mode_set): Hookify.
28769         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
28770         Delete.
28771         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
28772         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
28773         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
28774         (epiphany_mode_priority_to_mode): Remove declaration.
28775         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
28776         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
28777         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
28778         Likewise.
28779         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
28780         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
28781         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
28782
28783 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
28784
28785         PR target/61060
28786         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
28787         is const0_rtx, return immediately.  Don't test count == 0 when
28788         it is always true.
28789
28790 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28791
28792         * Makefile.in: add shrink-wrap.o.
28793         * config/i386/i386.c: include "shrink-wrap.h"
28794         * function.c: Likewise.
28795         (requires_stack_frame_p, next_block_for_reg,
28796         move_insn_for_shrink_wrap, prepare_shrink_wrap,
28797         dup_block_and_redirect): Move to shrink-wrap.c
28798         (thread_prologue_and_epilogue_insns): Extract three code segments
28799         as functions in shrink-wrap.c
28800         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
28801         shrink-wrap.h
28802         * shrink-wrap.c: New file.
28803         * shrink-wrap.h: New file.
28804
28805 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
28806
28807         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
28808         reference to Solaris.
28809
28810 2014-05-12  Mike Stump  <mikestump@comcast.net>
28811
28812         PR other/31778
28813         * genattrtab.c (filename): Add.
28814         (convert_set_attr_alternative): Improve error message.
28815         (check_defs): Restore read_md_filename for error messages.
28816         (gen_insn): Save filename.
28817
28818 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
28819
28820         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
28821         -fno-local-ivars and -fivar-visibility.
28822         * c-family/c.opt: Make -Wshadow also implicitly enable
28823         -Wshadow-ivar.
28824
28825 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
28826
28827         * doc/tm.texi: Remove reference to deleted macro.
28828         * doc/tm.texi.in: Likewise.
28829
28830 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
28831
28832         PR target/60991
28833         * config/avr/avr.c (avr_out_store_psi): Use correct constant
28834         to restore Y.
28835
28836 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
28837
28838         PR libgcc/61152
28839         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
28840         * config/arm/aout.h (License): Same.
28841         * config/arm/bpabi.h (License): Same.
28842         * config/arm/elf.h (License): Same.
28843         * config/arm/linux-elf.h (License): Same.
28844         * config/arm/linux-gas.h (License): Same.
28845         * config/arm/netbsd-elf.h (License): Same.
28846         * config/arm/uclinux-eabi.h (License): Same.
28847         * config/arm/uclinux-elf.h (License): Same.
28848         * config/arm/vxworks.h (License): Same.
28849
28850 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
28851
28852         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
28853         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
28854         number of operands to 3.
28855         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
28856         * tree-nested.c (convert_nonlocal_omp_clauses,
28857         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
28858         * gimplify.c (gimplify_scan_omp_clauses): Handle
28859         OMP_CLAUSE_LINEAR_STMT.
28860         * omp-low.c (lower_rec_input_clauses): Fix typo.
28861         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
28862         cast between Fortran boolean_type_node and C _Bool if
28863         needed.
28864
28865 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
28866
28867         PR tree-optimization/61136
28868         * wide-int.h (multiple_of_p): Define a version that doesn't return
28869         the quotient.
28870         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
28871         integer_zerop/const_binop pair.
28872         (multiple_of_p): Likewise, converting both operands to widest_int
28873         precision.
28874
28875 2014-05-09  Teresa Johnson  <tejohnson@google.com>
28876
28877         * cgraphunit.c (analyze_functions): Use correct dump file.
28878
28879 2014-05-09  Florian Weimer  <fweimer@redhat.com>
28880
28881         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
28882         expand_used_vars.
28883         (stack_protect_return_slot_p): New function.
28884         (expand_used_vars): Call stack_protect_decl_p and
28885         stack_protect_return_slot_p for -fstack-protector-strong.
28886
28887 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
28888         Andrew Haley <aph@redhat.com>
28889         Richard Sandiford <rdsandiford@googlemail.com>
28890
28891         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
28892         pages.
28893
28894 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
28895
28896         PR middle-end/61111
28897         * fold-const.c (fold_binary_loc): Changed width of mask.
28898
28899 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
28900
28901         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
28902         unsigned int initializers for regno_in, regno_out.
28903
28904 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
28905
28906         PR target/61055
28907         * config/avr/avr.md (cc): Add new attribute set_vzn.
28908         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
28909         Set cc insn attribute to set_vzn instead of set_zn for alternatives
28910         with INC, DEC or NEG.
28911         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
28912         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
28913         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
28914
28915 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28916
28917         Revert:
28918         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28919
28920         * wide-int.cc (UTItype): Define.
28921         (UDWtype): Define for appropriate W_TYPE_SIZE.
28922
28923 2014-05-09  Richard Biener  <rguenther@suse.de>
28924
28925         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
28926         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
28927         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
28928         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
28929         ssa_propagate): Adjust.
28930
28931 2014-05-08  Jeff Law  <law@redhat.com>
28932
28933         PR tree-optimization/61009
28934         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
28935         tri-state rather than a boolean.  When a block is too big to
28936         thread through, inform caller via negative return value.
28937         (thread_across_edge): If a block was too big for normal threading,
28938         then it's too big for a joiner too, so remove temporary equivalences
28939         and return immediately.
28940
28941 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28942             Matthias Klose  <doko@ubuntu.com>
28943
28944         PR driver/61106
28945         * optc-gen.awk: Fix option handling for -Wunused-parameter.
28946
28947 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
28948
28949         PR target/59952
28950         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
28951
28952 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
28953
28954         PR target/61092
28955         * config/alpha/alpha.c: Include gimple-iterator.h.
28956         (alpha_gimple_fold_builtin): New function.  Move
28957         ALPHA_BUILTIN_UMULH folding from ...
28958         (alpha_fold_builtin): ... here.
28959         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
28960
28961 2014-05-08  Wei Mi  <wmi@google.com>
28962
28963         PR target/58066
28964         * config/i386/i386.c (ix86_compute_frame_layout): Update
28965         preferred_stack_boundary for call, expanded from tls descriptor.
28966         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
28967         to depend on SP register.
28968         (*tls_local_dynamic_base_32_gnu): Ditto.
28969         (*tls_local_dynamic_32_once): Ditto.
28970         (tls_global_dynamic_64_<mode>): Set
28971         ix86_tls_descriptor_calls_expanded_in_cfun.
28972         (tls_local_dynamic_base_64_<mode>): Ditto.
28973         (tls_global_dynamic_32): Set
28974         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
28975         to depend on SP register.
28976         (tls_local_dynamic_base_32): Ditto.
28977
28978 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28979
28980         * config/arm/arm_neon.h: Update comment.
28981         * config/arm/neon-docgen.ml: Delete.
28982         * config/arm/neon-gen.ml: Delete.
28983         * doc/arm-neon-intrinsics.texi: Update comment.
28984
28985 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28986
28987         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
28988         and v4sf versions.
28989         (vand, vorr, veor, vorn, vbic): Remove.
28990         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
28991         iterator.
28992         (neon_vsub_unspec): Likewise.
28993         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
28994
28995 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28996
28997         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
28998         (vadd_s16): Likewise.
28999         (vadd_s32): Likewise.
29000         (vadd_f32): Likewise.
29001         (vadd_u8): Likewise.
29002         (vadd_u16): Likewise.
29003         (vadd_u32): Likewise.
29004         (vadd_s64): Likewise.
29005         (vadd_u64): Likewise.
29006         (vaddq_s8): Likewise.
29007         (vaddq_s16): Likewise.
29008         (vaddq_s32): Likewise.
29009         (vaddq_s64): Likewise.
29010         (vaddq_f32): Likewise.
29011         (vaddq_u8): Likewise.
29012         (vaddq_u16): Likewise.
29013         (vaddq_u32): Likewise.
29014         (vaddq_u64): Likewise.
29015         (vmul_s8): Likewise.
29016         (vmul_s16): Likewise.
29017         (vmul_s32): Likewise.
29018         (vmul_f32): Likewise.
29019         (vmul_u8): Likewise.
29020         (vmul_u16): Likewise.
29021         (vmul_u32): Likewise.
29022         (vmul_p8): Likewise.
29023         (vmulq_s8): Likewise.
29024         (vmulq_s16): Likewise.
29025         (vmulq_s32): Likewise.
29026         (vmulq_f32): Likewise.
29027         (vmulq_u8): Likewise.
29028         (vmulq_u16): Likewise.
29029         (vmulq_u32): Likewise.
29030         (vsub_s8): Likewise.
29031         (vsub_s16): Likewise.
29032         (vsub_s32): Likewise.
29033         (vsub_f32): Likewise.
29034         (vsub_u8): Likewise.
29035         (vsub_u16): Likewise.
29036         (vsub_u32): Likewise.
29037         (vsub_s64): Likewise.
29038         (vsub_u64): Likewise.
29039         (vsubq_s8): Likewise.
29040         (vsubq_s16): Likewise.
29041         (vsubq_s32): Likewise.
29042         (vsubq_s64): Likewise.
29043         (vsubq_f32): Likewise.
29044         (vsubq_u8): Likewise.
29045         (vsubq_u16): Likewise.
29046         (vsubq_u32): Likewise.
29047         (vsubq_u64): Likewise.
29048         (vand_s8): Likewise.
29049         (vand_s16): Likewise.
29050         (vand_s32): Likewise.
29051         (vand_u8): Likewise.
29052         (vand_u16): Likewise.
29053         (vand_u32): Likewise.
29054         (vand_s64): Likewise.
29055         (vand_u64): Likewise.
29056         (vandq_s8): Likewise.
29057         (vandq_s16): Likewise.
29058         (vandq_s32): Likewise.
29059         (vandq_s64): Likewise.
29060         (vandq_u8): Likewise.
29061         (vandq_u16): Likewise.
29062         (vandq_u32): Likewise.
29063         (vandq_u64): Likewise.
29064         (vorr_s8): Likewise.
29065         (vorr_s16): Likewise.
29066         (vorr_s32): Likewise.
29067         (vorr_u8): Likewise.
29068         (vorr_u16): Likewise.
29069         (vorr_u32): Likewise.
29070         (vorr_s64): Likewise.
29071         (vorr_u64): Likewise.
29072         (vorrq_s8): Likewise.
29073         (vorrq_s16): Likewise.
29074         (vorrq_s32): Likewise.
29075         (vorrq_s64): Likewise.
29076         (vorrq_u8): Likewise.
29077         (vorrq_u16): Likewise.
29078         (vorrq_u32): Likewise.
29079         (vorrq_u64): Likewise.
29080         (veor_s8): Likewise.
29081         (veor_s16): Likewise.
29082         (veor_s32): Likewise.
29083         (veor_u8): Likewise.
29084         (veor_u16): Likewise.
29085         (veor_u32): Likewise.
29086         (veor_s64): Likewise.
29087         (veor_u64): Likewise.
29088         (veorq_s8): Likewise.
29089         (veorq_s16): Likewise.
29090         (veorq_s32): Likewise.
29091         (veorq_s64): Likewise.
29092         (veorq_u8): Likewise.
29093         (veorq_u16): Likewise.
29094         (veorq_u32): Likewise.
29095         (veorq_u64): Likewise.
29096         (vbic_s8): Likewise.
29097         (vbic_s16): Likewise.
29098         (vbic_s32): Likewise.
29099         (vbic_u8): Likewise.
29100         (vbic_u16): Likewise.
29101         (vbic_u32): Likewise.
29102         (vbic_s64): Likewise.
29103         (vbic_u64): Likewise.
29104         (vbicq_s8): Likewise.
29105         (vbicq_s16): Likewise.
29106         (vbicq_s32): Likewise.
29107         (vbicq_s64): Likewise.
29108         (vbicq_u8): Likewise.
29109         (vbicq_u16): Likewise.
29110         (vbicq_u32): Likewise.
29111         (vbicq_u64): Likewise.
29112         (vorn_s8): Likewise.
29113         (vorn_s16): Likewise.
29114         (vorn_s32): Likewise.
29115         (vorn_u8): Likewise.
29116         (vorn_u16): Likewise.
29117         (vorn_u32): Likewise.
29118         (vorn_s64): Likewise.
29119         (vorn_u64): Likewise.
29120         (vornq_s8): Likewise.
29121         (vornq_s16): Likewise.
29122         (vornq_s32): Likewise.
29123         (vornq_s64): Likewise.
29124         (vornq_u8): Likewise.
29125         (vornq_u16): Likewise.
29126         (vornq_u32): Likewise.
29127         (vornq_u64): Likewise.
29128
29129 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29130
29131         * wide-int.cc (UTItype): Define.
29132         (UDWtype): Define for appropriate W_TYPE_SIZE.
29133
29134 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
29135
29136         PR tree-optimization/59100
29137         * tree-ssa-phiopt.c: Include tree-inline.h.
29138         (neutral_element_p, absorbing_element_p): New functions.
29139         (value_replacement): Handle conditional binary operations with a
29140         neutral or absorbing element.
29141
29142 2014-05-08  Richard Biener  <rguenther@suse.de>
29143
29144         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
29145         folding the expression.
29146         (valueize_expr): Remove.
29147         (visit_reference_op_load): Do not valueize the result of
29148         vn_get_expr_for.
29149         (simplify_binary_expression): Likewise.
29150         (simplify_unary_expression): Likewise.
29151
29152 2014-05-08  Richard Biener  <rguenther@suse.de>
29153
29154         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
29155         looking at TYPE_ARG_TYPES.
29156
29157 2014-05-08  Richard Biener  <rguenther@suse.de>
29158
29159         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
29160         pointer propagation special-case.
29161
29162 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
29163
29164         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
29165         core part of address expressions.
29166
29167 2014-05-08  Alan Modra  <amodra@gmail.com>
29168
29169         PR target/60737
29170         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
29171         loads and stores when -mno-strict-align at any alignment.
29172         (expand_block_clear): Similarly.  Also correct calculation of
29173         instruction count.
29174
29175 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29176
29177         PR middle-end/39246
29178         * tree-complex.c (expand_complex_move): Keep line info when expanding
29179         complex move.
29180         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
29181         of complex expression. Use new argument to display correct location
29182         for values coming from phi statement.
29183         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
29184         (warn_uninitialized_phi): Pass location of phi argument to
29185         warn_uninit.
29186         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
29187         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
29188
29189 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
29190
29191         * config/rs6000/predicates.md (indexed_address_mem): New.
29192         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
29193         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
29194         fpstore_ux, fpstore_u.
29195         (sign_extend, indexed, update): New.
29196         (cell_micro): Adjust.
29197         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
29198         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
29199         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
29200         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
29201         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
29202         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
29203         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
29204         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
29205         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
29206         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
29207         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
29208         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
29209         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
29210         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
29211         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
29212
29213         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
29214         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
29215         *vsx_extract_<mode>_store): Adjust.
29216         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
29217         is_cracked_insn, insn_must_be_first_in_group,
29218         insn_must_be_last_in_group): Adjust.
29219
29220         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
29221         Adjust.
29222         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
29223         ppc440-fpstore): Adjust.
29224         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
29225         ppc476-fpstore): Adjust.
29226         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
29227         ppc601-fpstore): Adjust.
29228         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
29229         Adjust.
29230         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
29231         Adjust.
29232         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
29233         ppc7450-fpstore): Adjust.
29234         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
29235         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
29236         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
29237         Adjust.
29238         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
29239         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
29240         cell-fpstore, cell-fpstore-update): Adjust.
29241         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
29242         ppce300c3_store, ppce300c3_fpstore): Adjust.
29243         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
29244         e500mc_fpstore): Adjust.
29245         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
29246         e500mc64_store, e500mc64_fpstore): Adjust.
29247         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
29248         e5500_fpstore): Adjust.
29249         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
29250         e6500_fpstore): Adjust.
29251         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
29252         Adjust.
29253         * config/rs6000/power4.md (power4-load, power4-load-ext,
29254         power4-load-ext-update, power4-load-ext-update-indexed,
29255         power4-load-update-indexed, power4-load-update, power4-fpload,
29256         power4-fpload-update, power4-store, power4-store-update,
29257         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
29258         Adjust.
29259         * config/rs6000/power5.md (power5-load, power5-load-ext,
29260         power5-load-ext-update, power5-load-ext-update-indexed,
29261         power5-load-update-indexed, power5-load-update, power5-fpload,
29262         power5-fpload-update, power5-store, power5-store-update,
29263         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
29264         Adjust.
29265         * config/rs6000/power6.md (power6-load, power6-load-ext,
29266         power6-load-update, power6-load-update-indexed,
29267         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
29268         power6-fpload-update, power6-store, power6-store-update,
29269         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
29270         Adjust.
29271         * config/rs6000/power7.md (power7-load, power7-load-ext,
29272         power7-load-update, power7-load-update-indexed,
29273         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
29274         power7-fpload-update, power7-store, power7-store-update,
29275         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
29276         Adjust.
29277         * config/rs6000/power8.md (power8-load, power8-load-update,
29278         power8-load-ext, power8-load-ext-update, power8-fpload,
29279         power8-fpload-update, power8-store, power8-store-update-indexed,
29280         power8-fpstore, power8-fpstore-update): Adjust.
29281         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
29282         Adjust.
29283         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
29284         titan_lsu_store, titan_lsu_fpstore): Adjust.
29285         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
29286
29287 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
29288
29289         PR target/60884
29290         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
29291         unrolled byte insns.  Emit address increments after move insns.
29292
29293 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
29294
29295         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
29296         const_gimple, rather than a gimple.
29297         (gimple_call_builtin_p): Likewise, for the three variants.
29298
29299         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
29300         (gimple_call_builtin_p): Likewise, for the three variants.
29301
29302 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
29303
29304         PR tree-optimization/61095
29305         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
29306
29307 2014-05-07  Richard Biener  <rguenther@suse.de>
29308
29309         PR tree-optimization/61034
29310         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
29311         (maybe_skip_until): Use translate to take into account
29312         lattices when trying to do disambiguations.
29313         (get_continuation_for_phi_1): Likewise.
29314         (get_continuation_for_phi): Adjust for added translate arguments.
29315         (walk_non_aliased_vuses): Likewise.
29316         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
29317         (walk_non_aliased_vuses): Likewise.
29318         (call_may_clobber_ref_p_1): Declare.
29319         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
29320         calls.  Stop early if we are only supposed to disambiguate.
29321         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
29322
29323 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
29324
29325         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
29326         Emit an error when the function has arguments.
29327
29328 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
29329
29330         * cfgloop.h (unswitch_loops): Remove.
29331         * doc/passes.texi: Remove references to loop-unswitch.c
29332         * timevar.def (TV_LOOP_UNSWITCH): Remove.
29333
29334 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
29335
29336         * tree-vect-data-refs.c (vect_grouped_load_supported): New
29337         check for loads group of length 3.
29338         (vect_permute_load_chain): New permutations for loads group of
29339         length 3.
29340         * tree-vect-stmts.c (vect_model_load_cost): Change cost
29341         of vec_perm_shuffle for the new permutations.
29342
29343 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
29344
29345         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
29346         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
29347         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
29348         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
29349         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
29350         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
29351         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
29352         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
29353
29354 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
29355
29356         * loop-unswitch.c: Delete.
29357
29358 2014-05-07  Richard Biener  <rguenther@suse.de>
29359
29360         * config.gcc: Always set need_64bit_hwint to yes.
29361
29362 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
29363
29364         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
29365         of using optimize_size.
29366
29367 2014-05-06  Mike Stump  <mikestump@comcast.net>
29368
29369         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
29370
29371 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
29372
29373         * config/i386/sse.md (*mov<mode>_internal)
29374         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
29375         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
29376         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
29377         (*<code><mode>3, *andnot<mode>3<mask_name>)
29378         (<mask_codefor><code><mode>3<mask_name>): Only consider
29379         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
29380
29381 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
29382
29383         Revert:
29384         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
29385
29386         * lra-constraints.c (valid_address_p): Move earlier in file.
29387         Add a constraint argument to the address_info version.
29388         (satisfies_memory_constraint_p): New function.
29389         (satisfies_address_constraint_p): Likewise.
29390         (process_alt_operands, curr_insn_transform): Use them.
29391         (process_address): Pass the constraint to valid_address_p when
29392         checking address operands.
29393
29394 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
29395
29396         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
29397         to their respective blocks.  Fix inadvertent use of "node".
29398
29399 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
29400
29401         * emit-rtl.c (init_derived_machine_modes): New functionm, split
29402         out from...
29403         (init_emit_once): ...here.
29404         * rtl.h (init_derived_machine_modes): Declare.
29405         * toplev.c (do_compile): Call it even if no_backend.
29406
29407 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
29408             Mike Stump  <mikestump@comcast.net>
29409             Richard Sandiford  <rdsandiford@googlemail.com>
29410             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29411
29412         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
29413         (rtx_equal_for_memref_p): Update comment.
29414         (adjust_offset_for_component_ref): Use wide-int interfaces.
29415         * builtins.c (get_object_alignment_2): Likewise.
29416         (c_readstr): Likewise.
29417         (target_char_cast): Add comment.
29418         (determine_block_size): Use wide-int interfaces.
29419         (expand_builtin_signbit): Likewise.
29420         (fold_builtin_int_roundingfn): Likewise.
29421         (fold_builtin_bitop): Likewise.
29422         (fold_builtin_bswap): Likewise.
29423         (fold_builtin_logarithm): Use signop.
29424         (fold_builtin_pow): Likewise.
29425         (fold_builtin_memory_op): Use wide-int interfaces.
29426         (fold_builtin_object_size): Likewise.
29427         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
29428         nb_iterations_estimate.
29429         (record_niter_bound): Use wide-int interfaces.
29430         (get_estimated_loop_iterations_int): Likewise.
29431         (get_estimated_loop_iterations): Likewise.
29432         (get_max_loop_iterations): Likewise.
29433         * cfgloop.h: Include wide-int.h.
29434         (struct nb_iter_bound): Change bound to widest_int.
29435         (struct loop): Change nb_iterations_upper_bound and
29436         nb_iterations_estimate to widest_int.
29437         (record_niter_bound): Switch to use widest_int.
29438         (get_estimated_loop_iterations): Likewise.
29439         (get_max_loop_iterations): Likewise.
29440         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
29441         update for wide-int.
29442         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
29443         * combine.c (try_combine): Likewise.
29444         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
29445         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
29446         interfaces.
29447         (aarch64_float_const_representable_p): Likewise.
29448         * config/arc/arc.c: Include wide-int.h.
29449         (arc_can_use_doloop_p): Use wide-int interfaces.
29450         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
29451         (vfp3_const_double_index): Likewise.
29452         * config/avr/avr.c (avr_out_round): Likewise.
29453         (avr_fold_builtin): Likewise.
29454         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
29455         (bfin_can_use_doloop_p): Likewise.
29456         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
29457         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
29458         * config/i386/i386.c: Include wide-int.h.
29459         (ix86_data_alignment): Use wide-int interfaces.
29460         (ix86_local_alignment): Likewise.
29461         (ix86_emit_swsqrtsf): Update real_from_integer.
29462         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
29463         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
29464         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
29465         (zero_constant): Likewise.
29466         (input_operand): Likewise.
29467         (splat_input_operand): Likewise.
29468         (non_logical_cint_operand): Change const_double to const_wide_int.
29469         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
29470         (easy_altivec_constant): Remove comment.
29471         (paired_expand_vector_init): Use CONSTANT_P.
29472         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
29473         (rs6000_emit_move): Update checks.
29474         (rs6000_aggregate_candidate): Use wide-int interfaces.
29475         (rs6000_expand_ternop_builtin): Likewise.
29476         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
29477         (rs6000_assemble_integer): Likewise.
29478         (rs6000_hash_constant): Likewise.
29479         (output_toc): Likewise.
29480         (rs6000_rtx_costs): Likewise.
29481         (rs6000_emit_swrsqrt); Update call to real_from_integer.
29482         * config/rs6000/rs6000-c.c: Include wide-int.h.
29483         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
29484         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
29485         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
29486         Handle CONST_WIDE_INT.
29487         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
29488         Use tree_fits_uhwi_p.
29489         * config/sparc/sparc.c: Include wide-int.h.
29490         (sparc_fold_builtin): Use wide-int interfaces.
29491         * config/vax/vax.c: Include wide-int.h.
29492         (vax_float_literal): Use real_from_integer.
29493         * coretypes.h (struct hwivec_def): New.
29494         (hwivec): New.
29495         (const_hwivec): New.
29496         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
29497         (equiv_constant): Handle CONST_WIDE_INT.
29498         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
29499         (cselib_hash_rtx): Handle CONST_WIDE_INT.
29500         * dbxout.c (stabstr_U): Use wide-int interfaces.
29501         (dbxout_type): Update to use cst_fits_shwi_p.
29502         * defaults.h (LOG2_BITS_PER_UNIT): Define.
29503         (TARGET_SUPPORTS_WIDE_INT): Add default.
29504         * dfp.c: Include wide-int.h.
29505         (decimal_real_to_integer2): Use wide-int interfaces and rename to
29506         decimal_real_to_integer.
29507         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
29508         decimal_real_to_integer.
29509         * doc/generic.texi (Constant expressions): Update for wide_int.
29510         * doc/rtl.texi (const_double): Likewise.
29511         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
29512         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
29513         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
29514         (REAL_VALUE_FROM_INT): Remove.
29515         (TARGET_SUPPORTS_WIDE_INT): New.
29516         * doc/tm.texi: Regenerate.
29517         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
29518         * double-int.h: Include wide-int.h.
29519         (struct wi::int_traits): New.
29520         * dwarf2out.c (get_full_len): New.
29521         (dw_val_equal_p): Add case dw_val_class_wide_int.
29522         (size_of_loc_descr): Likewise.
29523         (output_loc_operands): Likewise.
29524         (insert_double): Remove.
29525         (insert_wide_int): New.
29526         (add_AT_wide): New.
29527         (print_die): Add case dw_val_class_wide_int.
29528         (attr_checksum): Likewise.
29529         (attr_checksum_ordered): Likewise.
29530         (same_dw_val_p): Likewise.
29531         (size_of_die): Likewise.
29532         (value_format): Likewise.
29533         (output_die): Likewise.
29534         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
29535         Use wide-int.
29536         (clz_loc_descriptor): Use wide-int interfaces.
29537         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
29538         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
29539         (round_up_to_align): Use wide-int interfaces.
29540         (field_byte_offset): Likewise.
29541         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
29542         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
29543         CONST_DOUBLE handling.  Use wide-int interfaces.
29544         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
29545         (gen_enumeration_type_die): Use add_AT_wide.
29546         (hash_loc_operands): Add case dw_val_class_wide_int.
29547         (compare_loc_operands): Likewise.
29548         * dwarf2out.h: Include wide-int.h.
29549         (wide_int_ptr): New.
29550         (enum dw_val_class): Add dw_val_class_wide_int.
29551         (struct dw_val_struct): Add val_wide.
29552         * emit-rtl.c (const_wide_int_htab): New.
29553         (const_wide_int_htab_hash): New.
29554         (const_wide_int_htab_eq): New.
29555         (lookup_const_wide_int): New.
29556         (const_double_htab_hash): Use wide-int interfaces.
29557         (const_double_htab_eq): Likewise.
29558         (rtx_to_double_int): Conditionally compile for wide-int.
29559         (immed_double_int_const): Rename to immed_wide_int_const and
29560         update for wide-int.
29561         (immed_double_const): Conditionally compile for wide-int.
29562         (init_emit_once): Use wide-int interfaces.
29563         * explow.c (plus_constant): Likewise.
29564         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
29565         (lshift_value): Use wide-int interfaces.
29566         (expand_mult): Likewise.
29567         (choose_multiplier): Likewise.
29568         (expand_smod_pow2): Likewise.
29569         (make_tree): Likewise.
29570         * expr.c (convert_modes): Consolidate handling of constants.
29571         Use wide-int interfaces.
29572         (emit_group_load_1): Add note.
29573         (store_expr): Update comment.
29574         (get_inner_reference): Use wide-int interfaces.
29575         (expand_constructor): Update comment.
29576         (expand_expr_real_2): Use wide-int interfaces.
29577         (expand_expr_real_1): Likewise.
29578         (reduce_to_bit_field_precision): Likewise.
29579         (const_vector_from_tree): Likewise.
29580         * final.c: Include wide-int-print.h.
29581         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
29582         * fixed-value.c: Include wide-int.h.
29583         (fixed_from_string): Use wide-int interfaces.
29584         (fixed_to_decimal): Likewise.
29585         (fixed_convert_from_real): Likewise.
29586         (real_convert_from_fixed): Likewise.
29587         * fold-const.h (mem_ref_offset): Return an offset_int.
29588         (div_if_zero_remainder): Remove code parameter.
29589         * fold-const.c (div_if_zero_remainder): Remove code parameter.
29590         Use wide-int interfaces.
29591         (may_negate_without_overflow_p): Use wide-int interfaces.
29592         (negate_expr_p): Likewise.
29593         (fold_negate_expr): Likewise.
29594         (int_const_binop_1): Likewise.
29595         (const_binop): Likewise.
29596         (fold_convert_const_int_from_int): Likewise.
29597         (fold_convert_const_int_from_real): Likewise.
29598         (fold_convert_const_int_from_fixed): Likewise.
29599         (fold_convert_const_fixed_from_int): Likewise.
29600         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
29601         (sign_bit_p): Use wide-int interfaces.
29602         (make_range_step): Likewise.
29603         (build_range_check): Likewise.  Pass an integer of the correct type
29604         instead of using integer_one_node.
29605         (range_predecessor): Pass an integer of the correct type instead
29606         of using integer_one_node.
29607         (range_successor): Likewise.
29608         (merge_ranges): Likewise.
29609         (unextend): Use wide-int interfaces.
29610         (extract_muldiv_1): Likewise.
29611         (fold_div_compare): Likewise.
29612         (fold_single_bit_test): Likewise.
29613         (fold_sign_changed_comparison): Likewise.
29614         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
29615         (fold_plusminus_mult_expr): Use wide-int interfaces.
29616         (native_encode_int): Likewise.
29617         (native_interpret_int): Likewise.
29618         (fold_unary_loc): Likewise.
29619         (pointer_may_wrap_p): Likewise.
29620         (size_low_cst): Likewise.
29621         (mask_with_tz): Likewise.
29622         (fold_binary_loc): Likewise.
29623         (fold_ternary_loc): Likewise.
29624         (multiple_of_p): Likewise.
29625         (tree_call_nonnegative_warnv_p): Update calls to
29626         tree_int_cst_min_precision and real_from_integer.
29627         (fold_negate_const): Use wide-int interfaces.
29628         (fold_abs_const): Likewise.
29629         (fold_relational_const): Use tree_int_cst_lt.
29630         (round_up_loc): Use wide-int interfaces.
29631         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
29632         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
29633         * gengtype.c: Remove include of double-int.h.
29634         (do_typedef): Use wide-int interfaces.
29635         (open_base_files): Add wide-int.h.
29636         (main): Add offset_int and widest_int typedefs.
29637         * gengtype-lex.l: Handle "^".
29638         (CXX_KEYWORD): Add "static".
29639         * gengtype-parse.c (require3): New.
29640         (require_template_declaration): Handle constant template arguments
29641         and nested templates.
29642         * gengtype-state.c: Don't include "double-int.h".
29643         * genpreds.c (write_one_predicate_function): Update comment.
29644         (write_tm_constrs_h): Add check for hval and lval use in
29645         CONST_WIDE_INT.
29646         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
29647         (add_to_sequence): Likewise.
29648         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
29649         and const_double_operand.
29650         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
29651         interfaces.
29652         * gimple-fold.c (get_base_constructor): Likewise.
29653         (fold_array_ctor_reference): Likewise.
29654         (fold_nonarray_ctor_reference): Likewise.
29655         (fold_const_aggregate_ref_1): Likewise.
29656         (gimple_val_nonnegative_real_p): Likewise.
29657         (gimple_fold_indirect_ref): Likewise.
29658         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
29659         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
29660         (struct slsr_cand_d): Change index to be widest_int.
29661         (struct incr_info_d): Change incr to be widest_int.
29662         (alloc_cand_and_find_basis): Use wide-int interfaces.
29663         (slsr_process_phi): Likewise.
29664         (backtrace_base_for_ref): Likewise.  Return a widest_int.
29665         (restructure_reference): Take a widest_int instead of a double_int.
29666         (slsr_process_ref): Use wide-int interfaces.
29667         (create_mul_ssa_cand): Likewise.
29668         (create_mul_imm_cand): Likewise.
29669         (create_add_ssa_cand): Likewise.
29670         (create_add_imm_cand): Take a widest_int instead of a double_int.
29671         (slsr_process_add): Use wide-int interfaces.
29672         (slsr_process_cast): Likewise.
29673         (slsr_process_copy): Likewise.
29674         (dump_candidate): Likewise.
29675         (dump_incr_vec): Likewise.
29676         (replace_ref): Likewise.
29677         (cand_increment): Likewise.  Return a widest_int.
29678         (cand_abs_increment): Likewise.
29679         (replace_mult_candidate): Take a widest_int instead of a double_int.
29680         (replace_unconditional_candidate): Use wide-int interfaces.
29681         (incr_vec_index): Take a widest_int instead of a double_int.
29682         (create_add_on_incoming_edge): Likewise.
29683         (create_phi_basis): Use wide-int interfaces.
29684         (replace_conditional_candidate): Likewise.
29685         (record_increment): Take a widest_int instead of a double_int.
29686         (record_phi_increments): Use wide-int interfaces.
29687         (phi_incr_cost): Take a widest_int instead of a double_int.
29688         (lowest_cost_path): Likewise.
29689         (total_savings): Likewise.
29690         (analyze_increments): Use wide-int interfaces.
29691         (ncd_with_phi): Take a widest_int instead of a double_int.
29692         (ncd_of_cand_and_phis): Likewise.
29693         (nearest_common_dominator_for_cands): Likewise.
29694         (insert_initializers): Use wide-int interfaces.
29695         (all_phi_incrs_profitable): Likewise.
29696         (replace_one_candidate): Likewise.
29697         (replace_profitable_candidates): Likewise.
29698         * godump.c: Include wide-int-print.h.
29699         (go_output_typedef): Use wide-int interfaces.
29700         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
29701         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
29702         (build_loop_iteration_domains): Likewise.
29703         * hooks.h: Include wide-int.h rather than double-int.h.
29704         (hook_bool_dint_dint_uint_bool_true): Delete.
29705         (hook_bool_wint_wint_uint_bool_true): Declare.
29706         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
29707         (hook_bool_wint_wint_uint_bool_true): New.
29708         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
29709         interfaces.
29710         (ubsan_expand_si_overflow_mul_check): Likewise.
29711         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
29712         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
29713         (get_ancestor_addr_info): Likewise.
29714         (ipa_modify_call_arguments): Likewise.
29715         * loop-doloop.c (doloop_modify): Likewise.
29716         (doloop_optimize): Likewise.
29717         * loop-iv.c (iv_number_of_iterations): Likewise.
29718         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
29719         (unroll_loop_constant_iterations): Likewise.
29720         (decide_unroll_runtime_iterations): Likewise.
29721         (unroll_loop_runtime_iterations): Likewise.
29722         (decide_peel_simple): Likewise.
29723         (decide_unroll_stupid): Likewise.
29724         * lto-streamer-in.c (streamer_read_wi): Add.
29725         (input_cfg): Use wide-int interfaces.
29726         (lto_input_tree_1): Likewise.
29727         * lto-streamer-out.c (streamer_write_wi): Add.
29728         (hash_tree): Use wide-int interfaces.
29729         (output_cfg): Likewise.
29730         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
29731         (GTFILES): Add wide-int.h and signop.h.
29732         (TAGS): Look for .cc files too.
29733         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
29734         * optabs.c (expand_subword_shift): Likewise.
29735         (expand_doubleword_shift): Likewise.
29736         (expand_absneg_bit): Likewise.
29737         (expand_copysign_absneg): Likewise.
29738         (expand_copysign_bit): Likewise.
29739         * postreload.c (reload_cse_simplify_set): Likewise.
29740         * predict.c (predict_iv_comparison): Likewise.
29741         * pretty-print.h: Include wide-int-print.h.
29742         (pp_wide_int) New.
29743         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
29744         * print-tree.c: Include wide-int-print.h.
29745         (print_node_brief): Use wide-int interfaces.
29746         (print_node): Likewise.
29747         * read-rtl.c (validate_const_wide_int): New.
29748         (read_rtx_code): Add CONST_WIDE_INT case.
29749         * real.c: Include wide-int.h.
29750         (real_to_integer2): Delete.
29751         (real_to_integer): New function, returning a wide_int.
29752         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
29753         (ten_to_ptwo): Update call to real_from_integer.
29754         (real_digit): Likewise.
29755         * real.h: Include signop.h, wide-int.h and insn-modes.h.
29756         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
29757         (REAL_VALUE_TO_INT): Delete.
29758         (real_to_integer): Declare a wide-int form.
29759         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
29760         * recog.c (const_int_operand): Improve comment.
29761         (const_scalar_int_operand): New.
29762         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
29763         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
29764         (split_double): Likewise.
29765         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
29766         (rtx_size): Likewise.
29767         (rtx_alloc_stat_v): New.
29768         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
29769         (cwi_output_hex): New.
29770         (iterative_hash_rtx): Handle CONST_WIDE_INT.
29771         (cwi_check_failed_bounds): New.
29772         * rtl.def (CONST_WIDE_INT): New.
29773         * rtl.h: Include <utility> and wide-int.h.
29774         (struct hwivec_def): New.
29775         (CWI_GET_NUM_ELEM): New.
29776         (CWI_PUT_NUM_ELEM): New.
29777         (struct rtx_def): Add num_elem and hwiv.
29778         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
29779         (CASE_CONST_UNIQUE): Likewise.
29780         (CASE_CONST_ANY): Likewise.
29781         (CONST_SCALAR_INT_P): Likewise.
29782         (CONST_WIDE_INT_P): New.
29783         (CWI_ELT): New.
29784         (HWIVEC_CHECK): New.
29785         (cwi_check_failed_bounds): New.
29786         (CWI_ELT): New.
29787         (HWIVEC_CHECK): New.
29788         (CONST_WIDE_INT_VEC) New.
29789         (CONST_WIDE_INT_NUNITS) New.
29790         (CONST_WIDE_INT_ELT) New.
29791         (rtx_mode_t): New type.
29792         (wi::int_traits <rtx_mode_t>): New.
29793         (wi::shwi): New.
29794         (wi::min_value): New.
29795         (wi::max_value): New.
29796         (rtx_alloc_v) New.
29797         (const_wide_int_alloc): New.
29798         (immed_wide_int_const): New.
29799         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
29800         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
29801         * signop.h: New file.
29802         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
29803         (simplify_const_unary_operation): Use wide-int interfaces.
29804         (simplify_binary_operation_1): Likewise.
29805         (simplify_const_binary_operation): Likewise.
29806         (simplify_const_relational_operation): Likewise.
29807         (simplify_immed_subreg): Likewise.
29808         * stmt.c (expand_case): Likewise.
29809         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
29810         signop rather than a bool.
29811         * stor-layout.c (layout_type): Use wide-int interfaces.
29812         (initialize_sizetypes): Update calls to
29813         set_min_and_max_values_for_integral_type.
29814         (set_min_and_max_values_for_integral_type): Take a signop rather
29815         than a bool.  Use wide-int interfaces.
29816         (fixup_signed_type): Update accordingly.  Remove
29817         HOST_BITS_PER_DOUBLE_INT limit.
29818         (fixup_unsigned_type): Likewise.
29819         * system.h (STATIC_CONSTANT_P): New.
29820         (STATIC_ASSERT): New.
29821         * target.def (can_use_doloop_p): Take widest_ints rather than
29822         double_ints.
29823         * target.h: Include wide-int.h rather than double-int.h.
29824         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
29825         than double_ints.
29826         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
29827         rather than INT_CST_LT_UNSIGNED.
29828         (can_use_doloop_if_innermost): Take widest_ints rather than
29829         double_ints.
29830         * tree-affine.c: Include wide-int-print.h.
29831         (double_int_ext_for_comb): Delete.
29832         (wide_int_ext_for_comb): New.
29833         (aff_combination_zero): Use wide-int interfaces.
29834         (aff_combination_const): Take a widest_int instead of a double_int.
29835         (aff_combination_elt): Use wide-int interfaces.
29836         (aff_combination_scale): Take a widest_int instead of a double_int.
29837         (aff_combination_add_elt): Likewise.
29838         (aff_combination_add_cst): Likewise.
29839         (aff_combination_add): Use wide-int interfaces.
29840         (aff_combination_convert): Likewise.
29841         (tree_to_aff_combination): Likewise.
29842         (add_elt_to_tree): Take a widest_int instead of a double_int.
29843         (aff_combination_to_tree): Use wide-int interfaces.
29844         (aff_combination_remove_elt): Likewise.
29845         (aff_combination_add_product): Take a widest_int instead of
29846         a double_int.
29847         (aff_combination_mult): Use wide-int interfaces.
29848         (aff_combination_expand): Likewise.
29849         (double_int_constant_multiple_p): Delete.
29850         (wide_int_constant_multiple_p): New.
29851         (aff_combination_constant_multiple_p): Take a widest_int pointer
29852         instead of a double_int pointer.
29853         (print_aff): Use wide-int interfaces.
29854         (get_inner_reference_aff): Take a widest_int pointer
29855         instead of a double_int pointer.
29856         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
29857         * tree-affine.h: Include wide-int.h.
29858         (struct aff_comb_elt): Change type of coef to widest_int.
29859         (struct affine_tree_combination): Change type of offset to widest_int.
29860         (double_int_ext_for_comb): Delete.
29861         (wide_int_ext_for_comb): New.
29862         (aff_combination_const): Use widest_int instead of double_int.
29863         (aff_combination_scale): Likewise.
29864         (aff_combination_add_elt): Likewise.
29865         (aff_combination_constant_multiple_p): Likewise.
29866         (get_inner_reference_aff): Likewise.
29867         (aff_comb_cannot_overlap_p): Likewise.
29868         (aff_combination_zero_p): Use wide-int interfaces.
29869         * tree.c: Include tree.h.
29870         (init_ttree): Use make_int_cst.
29871         (tree_code_size): Removed code for INTEGER_CST case.
29872         (tree_size): Add INTEGER_CST case.
29873         (make_node_stat): Update comment.
29874         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
29875         (build_int_cst_type): Use wide-int interfaces.
29876         (double_int_to_tree): Likewise.
29877         (double_int_fits_to_tree_p): Delete.
29878         (force_fit_type_double): Delete.
29879         (force_fit_type): New.
29880         (int_cst_hash_hash): Use wide-int interfaces.
29881         (int_cst_hash_eq): Likewise.
29882         (build_int_cst_wide): Delete.
29883         (wide_int_to_tree): New.
29884         (cache_integer_cst): Use wide-int interfaces.
29885         (build_low_bits_mask): Likewise.
29886         (cst_and_fits_in_hwi): Likewise.
29887         (real_value_from_int_cst): Likewise.
29888         (make_int_cst_stat): New.
29889         (integer_zerop): Use wide_int interfaces.
29890         (integer_onep): Likewise.
29891         (integer_all_onesp): Likewise.
29892         (integer_pow2p): Likewise.
29893         (integer_nonzerop): Likewise.
29894         (tree_log2): Likewise.
29895         (tree_floor_log2): Likewise.
29896         (tree_ctz): Likewise.
29897         (int_size_in_bytes): Likewise.
29898         (mem_ref_offset): Return an offset_int rather than a double_int.
29899         (build_type_attribute_qual_variant): Use wide_int interfaces.
29900         (type_hash_eq): Likewise
29901         (tree_int_cst_equal): Likewise.
29902         (tree_int_cst_lt): Delete.
29903         (tree_int_cst_compare): Likewise.
29904         (tree_fits_shwi_p): Use wide_int interfaces.
29905         (tree_fits_uhwi_p): Likewise.
29906         (tree_int_cst_sign_bit): Likewise.
29907         (tree_int_cst_sgn): Likewise.
29908         (tree_int_cst_min_precision): Take a signop rather than a bool.
29909         (simple_cst_equal): Use wide_int interfaces.
29910         (compare_tree_int): Likewise.
29911         (iterative_hash_expr): Likewise.
29912         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
29913         INT_CST_LT.
29914         (get_type_static_bounds): Use wide_int interfaces.
29915         (tree_int_cst_elt_check_failed): New.
29916         (build_common_tree_nodes): Reordered to set prec before filling in
29917         value.
29918         (int_cst_value): Check cst_and_fits_in_hwi.
29919         (widest_int_cst_value): Use wide_int interfaces.
29920         (upper_bound_in_type): Likewise.
29921         (lower_bound_in_type): Likewise.
29922         (num_ending_zeros): Likewise.
29923         (drop_tree_overflow): Likewise.
29924         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
29925         (gen_conditions_for_pow_cst_base): Likewise.
29926         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
29927         (group_case_labels_stmt): Use wide-int interfaces.
29928         (verify_gimple_assign_binary): Likewise.
29929         (print_loop): Likewise.
29930         * tree-chrec.c (tree_fold_binomial): Likewise.
29931         * tree-core.h (struct tree_base): Add int_length.
29932         (struct tree_int_cst): Change rep of value.
29933         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
29934         (dr_may_alias_p): Likewise.
29935         (max_stmt_executions_tree): Likewise.
29936         * tree.def (INTEGER_CST): Update comment.
29937         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
29938         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
29939         * tree-dump.c: Include wide-int.h and wide-int-print.h.
29940         (dequeue_and_dump): Use wide-int interfaces.
29941         * tree.h: Include wide-int.h.
29942         (NULL_TREE): Moved to earlier loc in file.
29943         (TREE_INT_CST_ELT_CHECK): New.
29944         (tree_int_cst_elt_check_failed): New.
29945         (TYPE_SIGN): New.
29946         (TREE_INT_CST): Delete.
29947         (TREE_INT_CST_LOW): Use wide-int interfaces.
29948         (TREE_INT_CST_HIGH): Delete.
29949         (TREE_INT_CST_NUNITS): New.
29950         (TREE_INT_CST_EXT_NUNITS): Likewise.
29951         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
29952         (TREE_INT_CST_ELT): Likewise.
29953         (INT_CST_LT): Delete.
29954         (tree_int_cst_elt_check): New (two forms).
29955         (type_code_size): Update comment.
29956         (make_int_cst_stat, make_int_cst): New.
29957         (tree_to_double_int): Delete.
29958         (double_int_fits_to_tree_p): Delete.
29959         (force_fit_type_double): Delete.
29960         (build_int_cstu): Replace with out-of-line function.
29961         (build_int_cst_wide): Delete.
29962         (tree_int_cst_lt): Define inline.
29963         (tree_int_cst_le): New.
29964         (tree_int_cst_compare): Define inline.
29965         (tree_int_cst_min_precision): Take a signop rather than a bool.
29966         (wi::int_traits <const_tree>): New.
29967         (wi::int_traits <tree>): New.
29968         (wi::extended_tree): New.
29969         (wi::int_traits <wi::extended_tree>): New.
29970         (wi::to_widest): New.
29971         (wi::to_offset): New.
29972         (wi::fits_to_tree_p): New.
29973         (wi::min_value): New.
29974         (wi::max_value): New.
29975         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
29976         (copy_tree_body_r): Likewise.
29977         * tree-object-size.c (compute_object_offset): Likewise.
29978         (addr_object_size): Likewise.
29979         * tree-predcom.c: Include wide-int-print.h.
29980         (struct dref_d): Change type of offset to widest_int.
29981         (dump_dref): Call wide-int printer.
29982         (aff_combination_dr_offset): Use wide-int interfaces.
29983         (determine_offset): Take a widest_int pointer rather than a
29984         double_int pointer.
29985         (split_data_refs_to_components): Use wide-int interfaces.
29986         (suitable_component_p): Likewise.
29987         (order_drefs): Likewise.
29988         (add_ref_to_chain): Likewise.
29989         (valid_initializer_p): Likewise.
29990         (determine_roots_comp): Likewise.
29991         * tree-pretty-print.c: Include wide-int-print.h.
29992         (dump_generic_node): Use wide-int interfaces.
29993         * tree-sra.c (sra_ipa_modify_expr): Likewise.
29994         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
29995         (move_fixed_address_to_symbol): Likewise.
29996         (move_hint_to_base): Likewise.
29997         (move_pointer_to_base): Likewise.
29998         (move_variant_to_index): Likewise.
29999         (most_expensive_mult_to_index): Likewise.
30000         (addr_to_parts): Likewise.
30001         (copy_ref_info): Likewise.
30002         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
30003         (indirect_refs_may_alias_p): Likewise.
30004         (stmt_kills_ref_p_1): Likewise.
30005         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
30006         * tree-ssa-ccp.c: Update comment at top of file.  Include
30007         wide-int-print.h.
30008         (struct prop_value_d): Change type of mask to widest_int.
30009         (extend_mask): New function.
30010         (dump_lattice_value): Use wide-int interfaces.
30011         (get_default_value): Likewise.
30012         (set_constant_value): Likewise.
30013         (set_value_varying): Likewise.
30014         (valid_lattice_transition): Likewise.
30015         (set_lattice_value): Likewise.
30016         (value_to_double_int): Delete.
30017         (value_to_wide_int): New.
30018         (get_value_from_alignment): Use wide-int interfaces.
30019         (get_value_for_expr): Likewise.
30020         (do_dbg_cnt): Likewise.
30021         (ccp_finalize): Likewise.
30022         (ccp_lattice_meet): Likewise.
30023         (bit_value_unop_1): Use widest_ints rather than double_ints.
30024         (bit_value_binop_1): Likewise.
30025         (bit_value_unop): Use wide-int interfaces.
30026         (bit_value_binop): Likewise.
30027         (bit_value_assume_aligned): Likewise.
30028         (evaluate_stmt): Likewise.
30029         (ccp_fold_stmt): Likewise.
30030         (visit_cond_stmt): Likewise.
30031         (ccp_visit_stmt): Likewise.
30032         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
30033         (constant_pointer_difference): Likewise.
30034         (associate_pointerplus): Likewise.
30035         (combine_conversions): Likewise.
30036         * tree-ssa-loop.h: Include wide-int.h.
30037         (struct tree_niter_desc): Change type of max to widest_int.
30038         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
30039         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
30040         (remove_redundant_iv_tests): Likewise.
30041         (canonicalize_loop_induction_variables): Likewise.
30042         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
30043         (constant_multiple_of): Take a widest_int pointer instead of
30044         a double_int pointer.
30045         (get_computation_aff): Use wide-int interfaces.
30046         (ptr_difference_cost): Likewise.
30047         (difference_cost): Likewise.
30048         (get_loop_invariant_expr_id): Likewise.
30049         (get_computation_cost_at): Likewise.
30050         (iv_elimination_compare_lt): Likewise.
30051         (may_eliminate_iv): Likewise.
30052         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
30053         instead of double_int.
30054         (max_loop_iterations): Likewise.
30055         (max_stmt_executions): Likewise.
30056         (estimated_stmt_executions): Likewise.
30057         * tree-ssa-loop-niter.c: Include wide-int-print.h.
30058         (split_to_var_and_offset): Use wide-int interfaces.
30059         (determine_value_range): Likewise.
30060         (bound_difference_of_offsetted_base): Likewise.
30061         (bounds_add): Take a widest_int instead of a double_int.
30062         (number_of_iterations_ne_max): Use wide-int interfaces.
30063         (number_of_iterations_ne): Likewise.
30064         (number_of_iterations_lt_to_ne): Likewise.
30065         (assert_loop_rolls_lt): Likewise.
30066         (number_of_iterations_lt): Likewise.
30067         (number_of_iterations_le): Likewise.
30068         (number_of_iterations_cond): Likewise.
30069         (number_of_iterations_exit): Likewise.
30070         (finite_loop_p): Likewise.
30071         (derive_constant_upper_bound_assign): Likewise.
30072         (derive_constant_upper_bound): Return a widest_int.
30073         (derive_constant_upper_bound_ops): Likewise.
30074         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
30075         (record_estimate): Take a widest_int rather than a double_int.
30076         (record_nonwrapping_iv): Use wide-int interfaces.
30077         (double_int_cmp): Delete.
30078         (wide_int_cmp): New.
30079         (bound_index): Take a widest_int rather than a double_int.
30080         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
30081         (maybe_lower_iteration_bound): Likewise.
30082         (estimate_numbers_of_iterations_loop): Likewise.
30083         (estimated_loop_iterations): Take a widest_int pointer than than
30084         a double_int pointer.
30085         (estimated_loop_iterations_int): Use wide-int interfaces.
30086         (max_loop_iterations): Take a widest_int pointer than than
30087         a double_int pointer.
30088         (max_loop_iterations_int): Use wide-int interfaces.
30089         (max_stmt_executions): Take a widest_int pointer than than
30090         a double_int pointer.
30091         (estimated_stmt_executions): Likewise.
30092         (n_of_executions_at_most): Use wide-int interfaces.
30093         (scev_probably_wraps_p): Likewise.
30094         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
30095         to real_to_integer.
30096         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
30097         interfaces.
30098         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
30099         double_ints.  Adjust for trailing_wide_ints <3> representation.
30100         (set_nonzero_bits): Likewise.
30101         (get_range_info): Return wide_ints rather than double_ints.
30102         Adjust for trailing_wide_ints <3> representation.
30103         (get_nonzero_bits): Likewise.
30104         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
30105         representation.
30106         * tree-ssanames.h (struct range_info_def): Replace min, max and
30107         nonzero_bits with a trailing_wide_ints <3>.
30108         (set_range_info): Use wide_int_refs rather than double_ints.
30109         (set_nonzero_bits): Likewise.
30110         (get_range_info): Return wide_ints rather than double_ints.
30111         (get_nonzero_bits): Likewise.
30112         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
30113         * tree-ssa-pre.c (phi_translate_1): Likewise.
30114         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
30115         (acceptable_pow_call): Likewise.
30116         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
30117         interfaces.
30118         (vn_reference_fold_indirect): Likewise.
30119         (vn_reference_maybe_forwprop_address): Likewise.
30120         (valueize_refs_1): Likewise.
30121         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
30122         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
30123         tree_int_cst_lt and tree_int_cst_le.
30124         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
30125         interfaces.
30126         (streamer_alloc_tree): Likewise.
30127         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
30128         (streamer_write_tree_header): Likewise.
30129         (streamer_write_integer_cst): Likewise.
30130         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
30131         (build_constructors): Likewise.
30132         (array_value_type): Likewise.
30133         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
30134         (vect_check_gather): Likewise.
30135         * tree-vect-generic.c (build_replicated_const): Likewise.
30136         (expand_vector_divmod): Likewise.
30137         * tree-vect-loop.c (vect_transform_loop): Likewise.
30138         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
30139         (vect_do_peeling_for_alignment): Likewise.
30140         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
30141         * tree-vrp.c: Include wide-int.h.
30142         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
30143         (extract_range_from_assert): Use wide-int interfaces.
30144         (vrp_int_const_binop): Likewise.
30145         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
30146         double_int pointers.
30147         (ranges_from_anti_range): Use wide-int interfaces.
30148         (quad_int_cmp): Delete.
30149         (quad_int_pair_sort): Likewise.
30150         (extract_range_from_binary_expr_1): Use wide-int interfaces.
30151         (extract_range_from_unary_expr_1): Likewise.
30152         (adjust_range_with_scev): Likewise.
30153         (masked_increment): Take and return wide_ints rather than double_ints.
30154         (register_edge_assert_for_2): Use wide-int interfaces.
30155         (check_array_ref): Likewise.
30156         (search_for_addr_array): Likewise.
30157         (maybe_set_nonzero_bits): Likewise.
30158         (union_ranges): Pass an integer of the correct type instead of
30159         using integer_one_node.
30160         (intersect_ranges): Likewise.
30161         (simplify_truth_ops_using_ranges): Likewise.
30162         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
30163         (range_fits_type_p): Likewise.
30164         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
30165         a bool.
30166         (simplify_conversion_using_ranges): Use wide-int interfaces.
30167         (simplify_float_conversion_using_ranges): Likewise.
30168         (vrp_finalize): Likewise.
30169         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
30170         (gimple_stringops_transform): Likewise.
30171         * varasm.c (decode_addr_const): Likewise.
30172         (const_hash_1): Likewise.
30173         (const_rtx_hash_1): Likewise
30174         (output_constant): Likewise.
30175         (array_size_for_constructor): Likewise.
30176         (output_constructor_regular_field): Likewise.
30177         (output_constructor_bitfield): Likewise.
30178         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
30179         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
30180         GENERATOR_FILEs.
30181         * gencheck.c: Define BITS_PER_UNIT.
30182         * wide-int.cc: New.
30183         * wide-int.h: New.
30184         * wide-int-print.cc: New.
30185         * wide-int-print.h: New.
30186
30187 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30188
30189         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
30190
30191 2014-05-06  Richard Biener  <rguenther@suse.de>
30192
30193         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
30194         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
30195         (TODO_verify_all): Adjust.
30196         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
30197         TODO_verify_stmts and TODO_verify_rtl_sharing.
30198         * bb-reorder.c: Likewise.
30199         * cfgexpand.c: Likewise.
30200         * cprop.c: Likewise.
30201         * cse.c: Likewise.
30202         * function.c: Likewise.
30203         * fwprop.c: Likewise.
30204         * gcse.c: Likewise.
30205         * gimple-ssa-isolate-paths.c: Likewise.
30206         * gimple-ssa-strength-reduction.c: Likewise.
30207         * ipa-split.c: Likewise.
30208         * loop-init.c: Likewise.
30209         * loop-unroll.c: Likewise.
30210         * lower-subreg.c: Likewise.
30211         * modulo-sched.c: Likewise.
30212         * postreload-gcse.c: Likewise.
30213         * predict.c: Likewise.
30214         * recog.c: Likewise.
30215         * sched-rgn.c: Likewise.
30216         * store-motion.c: Likewise.
30217         * tracer.c: Likewise.
30218         * trans-mem.c: Likewise.
30219         * tree-call-cdce.c: Likewise.
30220         * tree-cfg.c: Likewise.
30221         * tree-cfgcleanup.c: Likewise.
30222         * tree-complex.c: Likewise.
30223         * tree-eh.c: Likewise.
30224         * tree-emutls.c: Likewise.
30225         * tree-if-conv.c: Likewise.
30226         * tree-into-ssa.c: Likewise.
30227         * tree-loop-distribution.c: Likewise.
30228         * tree-object-size.c: Likewise.
30229         * tree-parloops.c: Likewise.
30230         * tree-pass.h: Likewise.
30231         * tree-sra.c: Likewise.
30232         * tree-ssa-ccp.c: Likewise.
30233         * tree-ssa-copy.c: Likewise.
30234         * tree-ssa-copyrename.c: Likewise.
30235         * tree-ssa-dce.c: Likewise.
30236         * tree-ssa-dom.c: Likewise.
30237         * tree-ssa-dse.c: Likewise.
30238         * tree-ssa-forwprop.c: Likewise.
30239         * tree-ssa-ifcombine.c: Likewise.
30240         * tree-ssa-loop-ch.c: Likewise.
30241         * tree-ssa-loop-ivcanon.c: Likewise.
30242         * tree-ssa-loop.c: Likewise.
30243         * tree-ssa-math-opts.c: Likewise.
30244         * tree-ssa-phiopt.c: Likewise.
30245         * tree-ssa-phiprop.c: Likewise.
30246         * tree-ssa-pre.c: Likewise.
30247         * tree-ssa-reassoc.c: Likewise.
30248         * tree-ssa-sink.c: Likewise.
30249         * tree-ssa-strlen.c: Likewise.
30250         * tree-ssa-tail-merge.c: Likewise.
30251         * tree-ssa-uncprop.c: Likewise.
30252         * tree-switch-conversion.c: Likewise.
30253         * tree-tailcall.c: Likewise.
30254         * tree-vect-generic.c: Likewise.
30255         * tree-vectorizer.c: Likewise.
30256         * tree-vrp.c: Likewise.
30257         * tsan.c: Likewise.
30258         * var-tracking.c: Likewise.
30259         * bt-load.c: Likewise.
30260         * cfgcleanup.c: Likewise.
30261         * combine-stack-adj.c: Likewise.
30262         * combine.c: Likewise.
30263         * compare-elim.c: Likewise.
30264         * config/epiphany/resolve-sw-modes.c: Likewise.
30265         * config/i386/i386.c: Likewise.
30266         * config/mips/mips.c: Likewise.
30267         * config/s390/s390.c: Likewise.
30268         * config/sh/sh_treg_combine.cc: Likewise.
30269         * config/sparc/sparc.c: Likewise.
30270         * dce.c: Likewise.
30271         * dse.c: Likewise.
30272         * final.c: Likewise.
30273         * ifcvt.c: Likewise.
30274         * mode-switching.c: Likewise.
30275         * passes.c: Likewise.
30276         * postreload.c: Likewise.
30277         * ree.c: Likewise.
30278         * reg-stack.c: Likewise.
30279         * regcprop.c: Likewise.
30280         * regrename.c: Likewise.
30281         * web.c: Likewise.
30282
30283 2014-05-06  Richard Biener  <rguenther@suse.de>
30284
30285         PR middle-end/61070
30286         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
30287         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
30288
30289 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
30290
30291         PR ipa/60965
30292         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
30293
30294 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
30295             Tom de Vries  <tom@codesourcery.com>
30296
30297         * target.def (call_fusage_contains_non_callee_clobbers): New
30298         DEFHOOKPOD.
30299         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
30300         Hooks to @menu.
30301         (@node Miscellaneous Register Hooks): New node.
30302         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
30303         * doc/tm.texi: Regenerate.
30304
30305 2014-05-05  Marek Polacek  <polacek@redhat.com>
30306
30307         PR driver/61065
30308         * opts.c (common_handle_option): Call error_at instead of warning_at.
30309
30310 2014-05-05  Richard Biener  <rguenther@suse.de>
30311
30312         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
30313         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
30314         under the TODO_verify_il umbrella.
30315
30316 2014-05-05  Richard Biener  <rguenther@suse.de>
30317
30318         * passes.c (execute_function_todo): Move TODO_verify_flow under
30319         the TODO_verify_ul umbrella.
30320
30321 2014-05-05  Richard Biener  <rguenther@suse.de>
30322
30323         PR middle-end/61010
30324         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
30325         X & CST away from a CST that is the mask of a mode.
30326
30327 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30328
30329         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
30330         int argument to enum machine_mode.
30331         (picochip_class_max_nregs): Ditto.
30332         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
30333         (picochip_class_max_nregs): Ditto.
30334
30335 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30336
30337         * target.def: Add new target hook.
30338         * doc/tm.texi: Regenerate.
30339         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
30340         * targhooks.c (default_keep_leaf_when_profiled): New function.
30341
30342         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
30343         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
30344
30345 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
30346
30347         PR tree-optimization/60363
30348         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
30349         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
30350         (update_destination_phis): New parameter.
30351         (create_edge_and_update_destination_phis): Ditto.
30352         (ssa_fix_duplicate_block_edges): Pass new arguments.
30353         (thread_single_edge): Ditto.
30354
30355 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
30356
30357         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
30358         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
30359         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
30360         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
30361         Use RS6000_BTM_HARD_FLOAT.
30362         (BU_MISC_2): Likewise.
30363         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
30364         RS6000_BTM_HARD_FLOAT.
30365         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
30366         is explicitly used.
30367         (rs6000_invalid_builtin): Add hard floating builtin support.
30368         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
30369         hard float builtins.
30370         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
30371
30372 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
30373
30374         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
30375         Add missing function* argument.
30376
30377 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
30378
30379         * lra-constraints.c (valid_address_p): Move earlier in file.
30380         Add a constraint argument to the address_info version.
30381         (satisfies_memory_constraint_p): New function.
30382         (satisfies_address_constraint_p): Likewise.
30383         (process_alt_operands, curr_insn_transform): Use them.
30384         (process_address): Pass the constraint to valid_address_p when
30385         checking address operands.
30386
30387 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
30388
30389         * config/mips/mips.c (mips_isa_rev): New variable.
30390         (mips_set_architecture): Set it.
30391         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
30392         from mips_isa_rev.
30393         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
30394         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
30395         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
30396         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
30397         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
30398         conditions in terms of mips_isa_rev.
30399         (mips_isa_rev): Declare.
30400
30401 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
30402
30403         * config/sh/sh-mem.cc: Use tabs instead of spaces.
30404         (prob_unlikely, prob_likely): Make variables const.
30405
30406 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
30407
30408         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
30409
30410 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
30411
30412         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
30413
30414 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
30415
30416         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
30417         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
30418         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
30419         functions.
30420         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
30421         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
30422         sh_pass_in_reg_p.
30423         Replace usage of ROUND_REG with sh_round_reg.
30424         Use CEIL instead of ROUND_ADVANCE.
30425
30426 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
30427
30428         PR target/61026
30429         * config/sh/sh.c: Include stdlib headers before everything else.
30430
30431 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
30432
30433         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
30434         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
30435         (gimplify_adjust_omp_clauses): Simd region is never
30436         directly nested in combined parallel.  Instead, for linear
30437         with copyin/copyout, if in combined for simd loop, make decl
30438         firstprivate/lastprivate on OMP_FOR.
30439         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
30440         expand_omp_for_static_chunk): When setting endvar, also set
30441         fd->loop.v to the same value.
30442
30443 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
30444
30445         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
30446
30447 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
30448
30449         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
30450         expression.
30451
30452 2014-05-02  Marek Polacek  <polacek@redhat.com>
30453
30454         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
30455
30456 2014-05-02  Kito Cheng  <kito@0xlab.org>
30457
30458         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
30459         to a C expression marco.
30460         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
30461         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
30462         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
30463         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
30464         HONOR_REG_ALLOC_ORDER.
30465         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
30466
30467 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30468
30469         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
30470
30471 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
30472
30473         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
30474
30475 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
30476
30477         * tree-if-conv.c (is_cond_scalar_reduction): New function.
30478         (convert_scalar_cond_reduction): Likewise.
30479         (predicate_scalar_phi): Add recognition and transformation
30480         of simple conditioanl reduction to be vectorizable.
30481
30482 2014-05-01  Marek Polacek  <polacek@redhat.com>
30483
30484         PR c/43245
30485         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
30486
30487 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
30488
30489         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
30490         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
30491         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
30492         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
30493         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
30494         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
30495         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
30496         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
30497
30498 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
30499
30500         * config/arc/arc.opt (mlra): Move comment above option name
30501         to avoid mis-parsing as language options.
30502
30503 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30504
30505         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
30506         * config/sol2.h: ... here.
30507         * config/sol2-10.h: Remove.
30508
30509         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
30510         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
30511         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
30512         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
30513         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
30514         * config/sol2.h: ... here.
30515         (SECTION_NAME_FORMAT): Don't redefine.
30516         (STARTFILE_ARCH32_SPEC): Rename to ...
30517         (STARTFILE_ARCH_SPEC): ... this.
30518         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
30519         * config/sparc/sol2.h: ... here.
30520         (SECTION_NAME_FORMAT): Don't undef.
30521         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
30522         (SUBTARGET_EXTRA_SPECS): Remove.
30523         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
30524
30525         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
30526         (MD_STARTFILE_PREFIX): Remove.
30527         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
30528         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
30529         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
30530         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
30531         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
30532         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
30533         * config/i386/sol2.h: ... here.
30534         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
30535         * config/i386/sol2-bi.h: Remove.
30536         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
30537         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
30538
30539         * config/i386/t-sol2-64: Rename to ...
30540         * config/i386/t-sol2: ... this.
30541         * config/sparc/t-sol2-64: Rename to ...
30542         * config/sparc/t-sol2: ... this.
30543
30544         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
30545         sol2_tm_file_head, sol2_tm_file_tail.
30546         Include ${cpu_type}/sol2.h before sol2.h.
30547         Remove sol2-10.h.
30548         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
30549         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
30550         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
30551         Reflect i386/t-sol2-64 renaming.
30552         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
30553         Reflect sparc/t-sol2-64 renaming.
30554
30555 2014-04-30  Richard Biener  <rguenther@suse.de>
30556
30557         * passes.c (execute_function_todo): Move TODO_verify_stmts
30558         and TODO_verify_ssa under the TODO_verify_il umbrella.
30559         * tree-ssa.h (verify_ssa): Adjust prototype.
30560         * tree-ssa.c (verify_ssa): Add parameter to tell whether
30561         we should verify SSA operands.
30562         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
30563         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
30564         whether we should verify whether not throwing stmts have EH info.
30565         * graphite-scop-detection.c (create_sese_edges): Adjust.
30566         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
30567         * tree-eh.c (lower_try_finally_switch): Do not add the
30568         default case label twice.
30569
30570 2014-04-30  Marek Polacek  <polacek@redhat.com>
30571
30572         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
30573         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
30574         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
30575         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
30576
30577 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
30578
30579         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
30580         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
30581         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
30582         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
30583         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
30584         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
30585         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
30586         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
30587
30588 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
30589
30590         * tree-cfg.c (dump_function_to_file): Dump the return type of
30591         functions, in a line to itself before the function body, mimicking
30592         the layout of a C function.
30593
30594 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
30595
30596         PR tree-optimization/60971
30597         * tree-tailcall.c (process_assignment): Reject conversions which
30598         reduce precision.
30599
30600 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
30601
30602         * calls.c (initialize_argument_information): Always treat
30603         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
30604         (expand_call): Likewise.
30605         (emit_library_call_calue_1): Likewise.
30606         * expr.c (PUSH_ARGS_REVERSED): Do not define.
30607         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
30608         code accordingly.
30609
30610 2014-04-29  Nick Clifton  <nickc@redhat.com>
30611
30612         * config/msp430/msp430.md (umulsidi): Fix typo.
30613         (mulhisi3): Enable even inside interrupt handlers.
30614         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
30615         bigger return address pushed in large mode.
30616
30617 2014-04-29  Nick Clifton  <nickc@redhat.com>
30618
30619         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
30620         (arc_init_reg_tables): Use a machine_mode enum to iterate over
30621         available modes.
30622         * config/m32r/m32r.c (init_reg_tables): Likewise.
30623         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
30624         enum to hold the modes.
30625
30626 2014-04-29  Richard Biener  <rguenther@suse.de>
30627
30628         * dominance.c (free_dominance_info): Add overload with
30629         function parameter.
30630         (dom_info_state): Likewise.
30631         (dom_info_available_p): Likewise.
30632         * basic-block.h (free_dominance_info, dom_info_state,
30633         dom_info_available_p): Declare overloads.
30634         * passes.c (execute_function_todo): Verify that verifiers
30635         don't change dominator info state.  Drop dominator info
30636         for IPA pass invocations.
30637         * cgraph.c (release_function_body): Restore asserts that
30638         dominator information is released.
30639
30640 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
30641
30642         * doc/invoke.texi: Fix typo.
30643         * tree-vrp.c: Fix typos.
30644         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
30645
30646 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
30647
30648         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
30649
30650 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
30651
30652         * config/aarch64/aarch64-builtins.c
30653         (aarch64_types_storestruct_lane_qualifiers): New.
30654         (TYPES_STORESTRUCT_LANE): Likewise.
30655         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
30656         (st3_lane): Likewise.
30657         (st4_lane): Likewise.
30658         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
30659         (vec_store_lanesci_lane<mode>): Likewise.
30660         (vec_store_lanesxi_lane<mode>): Likewise.
30661         (aarch64_st2_lane<VQ:mode>): Likewise.
30662         (aarch64_st3_lane<VQ:mode>): Likewise.
30663         (aarch64_st4_lane<VQ:mode>): Likewise.
30664         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
30665         * config/aarch64/arm_neon.h
30666         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
30667         use new macro arguments.
30668         (__ST3_LANE_FUNC): Likewise.
30669         (__ST4_LANE_FUNC): Likewise.
30670         * config/aarch64/iterators.md (V_TWO_ELEM): New.
30671         (V_THREE_ELEM): Likewise.
30672         (V_FOUR_ELEM): Likewise.
30673
30674 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
30675
30676         * doc/gimple.texi: Replace the description of the now-defunct
30677         union gimple_statement_d with a diagram showing the
30678         gimple_statement_base class hierarchy and its relationships to
30679         the GSS_ and GIMPLE_ enums.
30680
30681 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
30682
30683         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
30684         * config/aarch64/aarch64.c
30685         (aarch64_cannot_change_mode_class): Weaken conditions.
30686         (aarch64_modes_tieable_p): New.
30687         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
30688
30689 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
30690
30691         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30692         (loadsync_<mode>): Change mode.
30693         (load_quadpti, store_quadpti): New.
30694         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30695         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30696
30697 2014-04-28  Martin Jambor  <mjambor@suse.cz>
30698
30699         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
30700         same alias type as the original statement.
30701         (subreplacement_assignment_data): New type.
30702         (handle_unscalarized_data_in_subtree): New type of parameter,
30703         generate new memory accesses with same alias type as the original
30704         statement.
30705         (load_assign_lhs_subreplacements): Likewise.
30706         (sra_modify_constructor_assign): Generate new memory accesses with
30707         same alias type as the original statement.
30708
30709 2014-04-28  Richard Biener  <rguenther@suse.de>
30710
30711         * tree-pass.h (TODO_verify_il): Define.
30712         (TODO_verify_all): Complete properly.
30713         * passes.c (execute_function_todo): Move existing loop-closed
30714         SSA verification under TODO_verify_il.
30715         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
30716         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
30717         Fix tree sharing issue.
30718
30719 2014-04-28  Richard Biener  <rguenther@suse.de>
30720
30721         PR middle-end/60092
30722         * builtins.def (DEF_C11_BUILTIN): Add.
30723         (BUILT_IN_ALIGNED_ALLOC): Likewise.
30724         * coretypes.h (enum function_class): Add function_c11_misc.
30725         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
30726         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
30727         (call_may_clobber_ref_p_1): Likewise.
30728         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
30729         (mark_all_reaching_defs_necessary_1): Likewise.
30730         (propagate_necessity): Likewise.
30731         (eliminate_unnecessary_stmts): Likewise.
30732         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
30733
30734 2014-04-28  Richard Biener  <rguenther@suse.de>
30735
30736         * tree-vrp.c (vrp_var_may_overflow): Remove.
30737         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
30738         with overflow immediately bump to one before that value and
30739         let iteration figure out overflow status.
30740
30741 2014-04-28  Richard Biener  <rguenther@suse.de>
30742
30743         * configure.ac: Do valgrind header checks unconditionally.
30744         Add --enable-valgrind-annotations.
30745         * system.h: Guard valgrind header inclusion with
30746         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
30747         * alloc-pool.c (pool_alloc, pool_free): Use
30748         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
30749         to guard possibly dead code.
30750         * config.in: Regenerated.
30751         * configure: Likewise.
30752
30753 2014-04-28  Jeff Law  <law@redhat.com>
30754
30755         PR tree-optimization/60902
30756         * tree-ssa-threadedge.c
30757         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
30758         over real defs when invalidating outputs from statements that do not
30759         produce useful outputs for threading.
30760
30761 2014-04-28  Richard Biener  <rguenther@suse.de>
30762
30763         PR tree-optimization/60979
30764         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
30765         SCOPs that end in a block with a successor with abnormal
30766         predecessors.
30767
30768 2014-04-28  Richard Biener  <rguenther@suse.de>
30769
30770         * tree-pass.h (execute_pass_list): Adjust prototype.
30771         * passes.c (pass_manager::execute_early_local_passes): Adjust.
30772         (do_per_function): Change callback signature, push all actual
30773         work to the callbals.
30774         (do_per_function_toporder): Likewise.
30775         (execute_function_dump): Adjust.
30776         (execute_function_todo): Likewise.
30777         (clear_last_verified): Likewise.
30778         (verify_curr_properties): Likewise.
30779         (update_properties_after_pass): Likewise.
30780         (execute_pass_list_1): Split out from ...
30781         (execute_pass_list): ... here.  Adjust.
30782         (execute_ipa_pass_list): Likewise.
30783         * cgraphunit.c (cgraph_add_new_function): Adjust.
30784         (analyze_function): Likewise.
30785         (expand_function): Likewise.
30786         * cgraph.c (release_function_body): Free dominance info
30787         here instead of asserting it was magically freed elsewhere.
30788
30789 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
30790
30791         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
30792         * configure: Regenerate.
30793         * config/sparc/sparc.opt (muser-mode): New option.
30794         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
30795         for LEON3.
30796         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
30797         * doc/invoke.texi (SPARC options): Document -muser-mode.
30798
30799 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
30800
30801         * cselib.c (find_slot_memmode): Delete.
30802         (cselib_hasher): Change compare_type to a struct.
30803         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
30804         constants.
30805         (preserve_constants_and_equivs): Adjust for new compare_type.
30806         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
30807         (wrap_constant): Delete.
30808         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
30809
30810 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
30811
30812         * doc/install.texi (Building with profile feedback): Remove
30813         outdated sentence.
30814
30815 2014-04-26  Tom de Vries  <tom@codesourcery.com>
30816
30817         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
30818         array accesses.
30819
30820 2014-04-25  Cary Coutant  <ccoutant@google.com>
30821
30822         PR debug/60929
30823         * dwarf2out.c (should_move_die_to_comdat): A type definition
30824         can contain a subprogram definition, but don't move it to a
30825         comdat unit.
30826         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
30827         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
30828         from original DIE.
30829         (clone_tree_hash): Rename to...
30830         (clone_tree_partial): ...this; change callers.  Copy
30831         DW_TAG_subprogram DIEs as declarations.
30832         (copy_decls_walk): Don't copy children of a declaration into a
30833         type unit.
30834
30835 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
30836
30837         PR target/60969
30838         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
30839         alternative 12.
30840
30841 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
30842
30843         * config/arm/predicates.md (call_insn_operand): Add long_call check.
30844         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
30845         reg for long_call.
30846         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
30847         restriction.
30848
30849 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30850
30851         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
30852
30853 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30854
30855         PR tree-optimization/60930
30856         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
30857         creating a multiply candidate by folding two constant
30858         multiplicands when the result overflows.
30859
30860 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
30861
30862         PR tree-optimization/60960
30863         * tree-vect-generic.c (expand_vector_operation): Only call
30864         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
30865
30866 2014-04-25  Tom de Vries  <tom@codesourcery.com>
30867
30868         * expr.c (clobber_reg_mode): New function.
30869         * expr.h (clobber_reg): New function.
30870
30871 2014-04-25  Tom de Vries  <tom@codesourcery.com>
30872
30873         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
30874         clobbers.
30875
30876 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
30877             Tom de Vries  <tom@codesourcery.com>
30878
30879         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
30880         handle.
30881         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
30882         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
30883         new argument to find_all_hard_reg_sets call.
30884
30885 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30886
30887         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
30888         Use HOST_WIDE_INT_C for mask literal.
30889         (aarch_rev16_shleft_mask_imm_p): Likewise.
30890
30891 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
30892
30893         PR target/60941
30894         * config/sparc/sparc.md (ashlsi3_extend): Delete.
30895
30896 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
30897
30898         PR preprocessor/56540
30899         * config/i386/i386-c.c (ix86_target_macros): Define
30900         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
30901
30902 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30903
30904         * configure.ac (tga_func): Remove.
30905         (LIB_TLS_SPEC): Remove.
30906         * configure: Regenerate.
30907         * config.in: Regenerate.
30908         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
30909
30910 2014-04-25  Richard Biener  <rguenther@suse.de>
30911
30912         PR ipa/60912
30913         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
30914         call stmt use/clobber sets during stmt walk instead of
30915         walking the possibly incomplete set of caller edges.
30916
30917 2014-04-25  Richard Biener  <rguenther@suse.de>
30918
30919         PR ipa/60911
30920         * passes.c (apply_ipa_transforms): Inline into only caller ...
30921         (execute_one_pass): ... here.  Properly bring in function
30922         bodies for nodes we want to apply IPA transforms to.
30923
30924 2014-04-24  Cong Hou  <congh@google.com>
30925
30926         PR tree-optimization/60896
30927         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
30928         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
30929         (vect_mark_pattern_stmts): Set the def type of all statements in
30930         PATTERN_DEF_SEQ as vect_internal_def.
30931
30932 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30933
30934         * doc/extend.texi (PowerPC Built-in Functions): Document new
30935         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
30936         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
30937
30938         * config/rs6000/predicates.md (const_0_to_3_operand): New
30939         predicate to match 0..3 integer constants.
30940
30941         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
30942         to support adding miscellaneous builtin functions.
30943         (BU_DFP_MISC_2): Likewise.
30944         (BU_P7_MISC_1): Likewise.
30945         (BU_P7_MISC_2): Likewise.
30946         (BU_P8V_MISC_3): Likewise.
30947         (BU_MISC_1): Likewise.
30948         (BU_MISC_2): Likewise.
30949         (DIVWE): Add extended divide builtin functions.
30950         (DIVWEO): Likewise.
30951         (DIVWEU): Likewise.
30952         (DIVWEUO): Likewise.
30953         (DIVDE): Likewise.
30954         (DIVDEO): Likewise.
30955         (DIVDEU): Likewise.
30956         (DIVDEUO): Likewise.
30957         (DXEX): Add decimal floating-point builtin functions.
30958         (DXEXQ): Likewise.
30959         (DDEDPD): Likewise.
30960         (DDEDPDQ): Likewise.
30961         (DENBCD): Likewise.
30962         (DENBCDQ): Likewise.
30963         (DIEX): Likewise.
30964         (DIEXQ): Likewise.
30965         (DSCLI): Likewise.
30966         (DSCLIQ): Likewise.
30967         (DSCRI): Likewise.
30968         (DSCRIQ): Likewise.
30969         (CDTBCD): Add new BCD builtin functions.
30970         (CBCDTD): Likewise.
30971         (ADDG6S): Likewise.
30972         (BCDADD): Likewise.
30973         (BCDADD_LT): Likewise.
30974         (BCDADD_EQ): Likewise.
30975         (BCDADD_GT): Likewise.
30976         (BCDADD_OV): Likewise.
30977         (BCDSUB): Likewise.
30978         (BCDSUB_LT): Likewise.
30979         (BCDSUB_EQ): Likewise.
30980         (BCDSUB_GT): Likewise.
30981         (BCDSUB_OV): Likewise.
30982         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
30983         (UNPACK_TD): Likewise.
30984         (PACK_TF): Likewise.
30985         (UNPACK_TF): Likewise.
30986         (UNPACK_TF_0): Likewise.
30987         (UNPACK_TF_1): Likewise.
30988         (PACK_V1TI): Likewise.
30989         (UNPACK_V1TI): Likewise.
30990
30991         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
30992         support for decimal floating point builtin functions.
30993         (rs6000_expand_ternop_builtin): Add checks for the new builtin
30994         functions that take constant arguments.
30995         (rs6000_invalid_builtin): Add decimal floating point builtin support.
30996         (rs6000_init_builtins): Setup long double, _Decimal64, and
30997         _Decimal128 types for new builtin functions.
30998         (builtin_function_type): Set the unsigned flags appropriately for
30999         the new builtin functions.
31000         (rs6000_opt_masks): Add support for decimal floating point builtin
31001         functions.
31002
31003         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
31004         floating point builtin functions.
31005         (RS6000_BTM_COMMON): Likewise.
31006         (RS6000_BTI_long_double): Likewise.
31007         (RS6000_BTI_dfloat64): Likewise.
31008         (RS6000_BTI_dfloat128): Likewise.
31009         (long_double_type_internal_node): Likewise.
31010         (dfloat64_type_internal_node): Likewise.
31011         (dfloat128_type_internal_node): Likewise.
31012
31013         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
31014         2.07 bcd arithmetic instructions.
31015         (UNSPEC_BCDSUB): Likewise.
31016         (UNSPEC_BCD_OVERFLOW): Likewise.
31017         (UNSPEC_BCD_ADD_SUB): Likewise.
31018         (bcd_add_sub): Likewise.
31019         (BCD_TEST): Likewise.
31020         (bcd<bcd_add_sub>): Likewise.
31021         (bcd<bcd_add_sub>_test): Likewise.
31022         (bcd<bcd_add_sub>_test2): Likewise.
31023         (bcd<bcd_add_sub>_<code>): Likewise.
31024         (peephole2 for combined bcd ops): Likewise.
31025
31026         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
31027         decimal floating point builtin functions.
31028         (UNSPEC_DENBCD): Likewise.
31029         (UNSPEC_DXEX): Likewise.
31030         (UNSPEC_DIEX): Likewise.
31031         (UNSPEC_DSCLI): Likewise.
31032         (UNSPEC_DSCRI): Likewise.
31033         (D64_D128): Likewise.
31034         (dfp_suffix): Likewise.
31035         (dfp_ddedpd_<mode>): Likewise.
31036         (dfp_denbcd_<mode>): Likewise.
31037         (dfp_dxex_<mode>): Likewise.
31038         (dfp_diex_<mode>): Likewise.
31039         (dfp_dscli_<mode>): Likewise.
31040         (dfp_dscri_<mode>): Likewise.
31041
31042         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
31043         builtin functions.
31044         (UNSPEC_CDTBCD): Likewise.
31045         (UNSPEC_CBCDTD): Likewise.
31046         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
31047         (UNSPEC_DIVEO): Likewise.
31048         (UNSPEC_DIVEU): Likewise.
31049         (UNSPEC_DIVEUO): Likewise.
31050         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
31051         pack/unpack 128-bit types.
31052         (UNSPEC_PACK_128BIT): Likewise.
31053         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
31054         (udiv<mode>3): Use idiv_ldiv mode attribute.
31055         (div<mode>3): Likewise.
31056         (addg6s): Add new BCD builtin functions.
31057         (cdtbcd): Likewise.
31058         (cbcdtd): Likewise.
31059         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
31060         (div_extend): Likewise.
31061         (div<div_extend>_<mode>"): Likewise.
31062         (FP128_64): Add support for new builtin functions to pack/unpack
31063         128-bit types.
31064         (unpack<mode>): Likewise.
31065         (unpacktf_0): Likewise.
31066         (unpacktf_1): Likewise.
31067         (unpack<mode>_dm): Likewise.
31068         (unpack<mode>_nodm): Likewise.
31069         (pack<mode>): Likewise.
31070         (unpackv1ti): Likewise.
31071         (packv1ti): Likewise.
31072
31073 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
31074
31075         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
31076         is disabled.
31077
31078 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
31079
31080         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
31081         * gimplify.c (omp_is_private): Change last argument's type to int.
31082         Only diagnose lastprivate if the simd argument is 1, only diagnose
31083         linear if the simd argument is 2.
31084         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
31085         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
31086         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
31087         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
31088         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
31089         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
31090         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
31091         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
31092         * tree-nested.c (convert_nonlocal_omp_clauses,
31093         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
31094
31095 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
31096
31097         PR target/60822
31098         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
31099         operand 1.
31100
31101 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
31102
31103         * flag-types.h (enum ivar_visibility): Add.
31104
31105 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
31106
31107         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
31108         function * argument.
31109
31110 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
31111
31112         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
31113
31114 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
31115             Tom de Vries  <tom@codesourcery.com>
31116
31117         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
31118         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
31119         reg-note.
31120         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
31121         * emit-rtl.c (try_split): Same.
31122
31123 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
31124             Tom de Vries  <tom@codesourcery.com>
31125
31126         * common.opt (fuse-caller-save): New option.
31127
31128 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
31129
31130         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
31131         elements for big-endian.
31132
31133 2014-04-24  Richard Biener  <rguenther@suse.de>
31134
31135         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
31136         during TER and instead use the sepops interface for expanding
31137         non-GIMPLE_SINGLE_RHS.
31138
31139 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31140
31141         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
31142         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
31143
31144 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31145
31146         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
31147         assembler 64-bit option.
31148         * configure: Regenerate.
31149
31150 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31151
31152         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
31153         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
31154         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
31155         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
31156         (TARGET_CRYPTO): Take TARGET_SIMD into account.
31157
31158 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31159
31160         * config/aarch64/aarch64-builtins.c
31161         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
31162         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
31163         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
31164         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
31165         builtins.
31166         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
31167         (Vrevsuff): New mode attribute.
31168
31169 2014-04-24  Terry Guo  <terry.guo@arm.com>
31170
31171         * config/arm/arm.h (machine_function): Define variable
31172         after_arm_reorg here.
31173         * config/arm/arm.c (after_arm_reorg): Remove the definition.
31174         (arm_split_constant): Update the way to access variable
31175         after_arm_reorg.
31176         (arm_reorg): Ditto.
31177         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
31178
31179 2014-04-23  Tom de Vries  <tom@codesourcery.com>
31180
31181         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
31182
31183 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
31184
31185         * is-a.h: Update comments to reflect the following changes to the
31186         "pointerness" of the API, making the template parameter match the
31187         return type, allowing use of is-a.h with typedefs of pointers.
31188         (is_a_helper::cast): Return a T rather then a pointer to a T, so
31189         that the return type matches the parameter to the is_a_helper.
31190         (as_a): Likewise.
31191         (dyn_cast): Likewise.
31192
31193         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
31194         pointer from the is-a.h API.
31195
31196         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
31197         (is_a_helper <cgraph_node *>::test): ...this, matching change to
31198         is-a.h API.
31199         (is_a_helper <varpool_node>::test): Likewise, convert to...
31200         (is_a_helper <varpool_node *>::test): ...this.
31201
31202         (varpool_first_variable): Update for removal of implicit pointer
31203         from the is-a.h API.
31204         (varpool_next_variable): Likewise.
31205         (varpool_first_static_initializer): Likewise.
31206         (varpool_next_static_initializer): Likewise.
31207         (varpool_first_defined_variable): Likewise.
31208         (varpool_next_defined_variable): Likewise.
31209         (cgraph_first_defined_function): Likewise.
31210         (cgraph_next_defined_function): Likewise.
31211         (cgraph_first_function): Likewise.
31212         (cgraph_next_function): Likewise.
31213         (cgraph_first_function_with_gimple_body): Likewise.
31214         (cgraph_next_function_with_gimple_body): Likewise.
31215         (cgraph_alias_target): Likewise.
31216         (varpool_alias_target): Likewise.
31217         (cgraph_function_or_thunk_node): Likewise.
31218         (varpool_variable_node): Likewise.
31219         (symtab_real_symbol_p): Likewise.
31220         * cgraphunit.c (referred_to_p): Likewise.
31221         (analyze_functions): Likewise.
31222         (handle_alias_pairs): Likewise.
31223         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
31224         * gimple-ssa.h (gimple_vuse_op): Likewise.
31225         (gimple_vdef_op): Likewise.
31226         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
31227         * gimple.c (gimple_build_asm_1): Likewise.
31228         (gimple_build_try): Likewise.
31229         (gimple_build_resx): Likewise.
31230         (gimple_build_eh_dispatch): Likewise.
31231         (gimple_build_omp_for): Likewise.
31232         (gimple_omp_for_set_clauses): Likewise.
31233
31234         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
31235         (is_a_helper <gimple_statement_asm *>::test): ...this.
31236         (is_a_helper <gimple_statement_bind>::test): Convert to...
31237         (is_a_helper <gimple_statement_bind *>::test): ...this.
31238         (is_a_helper <gimple_statement_call>::test): Convert to...
31239         (is_a_helper <gimple_statement_call *>::test): ...this.
31240         (is_a_helper <gimple_statement_catch>::test): Convert to...
31241         (is_a_helper <gimple_statement_catch *>::test): ...this.
31242         (is_a_helper <gimple_statement_resx>::test): Convert to...
31243         (is_a_helper <gimple_statement_resx *>::test): ...this.
31244         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
31245         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
31246         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
31247         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
31248         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
31249         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
31250         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
31251         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
31252         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
31253         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
31254         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
31255         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
31256         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
31257         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
31258         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
31259         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
31260         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
31261         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
31262         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
31263         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
31264         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
31265         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
31266         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
31267         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
31268         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
31269         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
31270         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
31271         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
31272         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
31273         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
31274         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
31275         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
31276         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
31277         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
31278         (is_a_helper <gimple_statement_phi>::test): Convert to...
31279         (is_a_helper <gimple_statement_phi *>::test): ...this.
31280         (is_a_helper <gimple_statement_transaction>::test): Convert to...
31281         (is_a_helper <gimple_statement_transaction *>::test): ...this.
31282         (is_a_helper <gimple_statement_try>::test): Convert to...
31283         (is_a_helper <gimple_statement_try *>::test): ...this.
31284         (is_a_helper <gimple_statement_wce>::test): Convert to...
31285         (is_a_helper <gimple_statement_wce *>::test): ...this.
31286         (is_a_helper <const gimple_statement_asm>::test): Convert to...
31287         (is_a_helper <const gimple_statement_asm *>::test): ...this.
31288         (is_a_helper <const gimple_statement_bind>::test): Convert to...
31289         (is_a_helper <const gimple_statement_bind *>::test): ...this.
31290         (is_a_helper <const gimple_statement_call>::test): Convert to...
31291         (is_a_helper <const gimple_statement_call *>::test): ...this.
31292         (is_a_helper <const gimple_statement_catch>::test): Convert to...
31293         (is_a_helper <const gimple_statement_catch *>::test): ...this.
31294         (is_a_helper <const gimple_statement_resx>::test): Convert to...
31295         (is_a_helper <const gimple_statement_resx *>::test): ...this.
31296         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
31297         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
31298         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
31299         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
31300         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
31301         Convert to...
31302         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
31303         ...this.
31304         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
31305         Convert to...
31306         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
31307         ...this.
31308         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
31309         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
31310         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
31311         to...
31312         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
31313         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
31314         to...
31315         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
31316         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
31317         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
31318         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
31319         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
31320         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
31321         to...
31322         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
31323         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
31324         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
31325         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
31326         to...
31327         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
31328         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
31329         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
31330         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
31331         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
31332         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
31333         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
31334         (is_a_helper <const gimple_statement_phi>::test): Convert to...
31335         (is_a_helper <const gimple_statement_phi *>::test): ...this.
31336         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
31337         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
31338         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
31339         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
31340         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
31341         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
31342         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
31343         to...
31344         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
31345         ...this.
31346         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
31347         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
31348
31349         (gimple_use_ops): Update for removal of implicit pointer from the
31350         is-a.h API.
31351         (gimple_set_use_ops): Likewise.
31352         (gimple_vuse): Likewise.
31353         (gimple_vdef): Likewise.
31354         (gimple_vuse_ptr): Likewise.
31355         (gimple_vdef_ptr): Likewise.
31356         (gimple_set_vuse): Likewise.
31357         (gimple_set_vdef): Likewise.
31358         (gimple_omp_return_set_lhs): Likewise.
31359         (gimple_omp_return_lhs): Likewise.
31360         (gimple_omp_return_lhs_ptr): Likewise.
31361         (gimple_call_fntype): Likewise.
31362         (gimple_call_set_fntype): Likewise.
31363         (gimple_call_set_internal_fn): Likewise.
31364         (gimple_call_use_set): Likewise.
31365         (gimple_call_clobber_set): Likewise.
31366         (gimple_bind_vars): Likewise.
31367         (gimple_bind_set_vars): Likewise.
31368         (gimple_bind_body_ptr): Likewise.
31369         (gimple_bind_set_body): Likewise.
31370         (gimple_bind_add_stmt): Likewise.
31371         (gimple_bind_block): Likewise.
31372         (gimple_bind_set_block): Likewise.
31373         (gimple_asm_ninputs): Likewise.
31374         (gimple_asm_noutputs): Likewise.
31375         (gimple_asm_nclobbers): Likewise.
31376         (gimple_asm_nlabels): Likewise.
31377         (gimple_asm_input_op): Likewise.
31378         (gimple_asm_input_op_ptr): Likewise.
31379         (gimple_asm_output_op): Likewise.
31380         (gimple_asm_output_op_ptr): Likewise.
31381         (gimple_asm_set_output_op): Likewise.
31382         (gimple_asm_clobber_op): Likewise.
31383         (gimple_asm_set_clobber_op): Likewise.
31384         (gimple_asm_label_op): Likewise.
31385         (gimple_asm_set_label_op): Likewise.
31386         (gimple_asm_string): Likewise.
31387         (gimple_catch_types): Likewise.
31388         (gimple_catch_types_ptr): Likewise.
31389         (gimple_catch_handler_ptr): Likewise.
31390         (gimple_catch_set_types): Likewise.
31391         (gimple_catch_set_handler): Likewise.
31392         (gimple_eh_filter_types): Likewise.
31393         (gimple_eh_filter_types_ptr): Likewise.
31394         (gimple_eh_filter_failure_ptr): Likewise.
31395         (gimple_eh_filter_set_types): Likewise.
31396         (gimple_eh_filter_set_failure): Likewise.
31397         (gimple_eh_must_not_throw_fndecl): Likewise.
31398         (gimple_eh_must_not_throw_set_fndecl): Likewise.
31399         (gimple_eh_else_n_body_ptr): Likewise.
31400         (gimple_eh_else_e_body_ptr): Likewise.
31401         (gimple_eh_else_set_n_body): Likewise.
31402         (gimple_eh_else_set_e_body): Likewise.
31403         (gimple_try_eval_ptr): Likewise.
31404         (gimple_try_cleanup_ptr): Likewise.
31405         (gimple_try_set_eval): Likewise.
31406         (gimple_try_set_cleanup): Likewise.
31407         (gimple_wce_cleanup_ptr): Likewise.
31408         (gimple_wce_set_cleanup): Likewise.
31409         (gimple_phi_capacity): Likewise.
31410         (gimple_phi_num_args): Likewise.
31411         (gimple_phi_result): Likewise.
31412         (gimple_phi_result_ptr): Likewise.
31413         (gimple_phi_set_result): Likewise.
31414         (gimple_phi_arg): Likewise.
31415         (gimple_phi_set_arg): Likewise.
31416         (gimple_resx_region): Likewise.
31417         (gimple_resx_set_region): Likewise.
31418         (gimple_eh_dispatch_region): Likewise.
31419         (gimple_eh_dispatch_set_region): Likewise.
31420         (gimple_omp_critical_name): Likewise.
31421         (gimple_omp_critical_name_ptr): Likewise.
31422         (gimple_omp_critical_set_name): Likewise.
31423         (gimple_omp_for_clauses): Likewise.
31424         (gimple_omp_for_clauses_ptr): Likewise.
31425         (gimple_omp_for_set_clauses): Likewise.
31426         (gimple_omp_for_collapse): Likewise.
31427         (gimple_omp_for_index): Likewise.
31428         (gimple_omp_for_index_ptr): Likewise.
31429         (gimple_omp_for_set_index): Likewise.
31430         (gimple_omp_for_initial): Likewise.
31431         (gimple_omp_for_initial_ptr): Likewise.
31432         (gimple_omp_for_set_initial): Likewise.
31433         (gimple_omp_for_final): Likewise.
31434         (gimple_omp_for_final_ptr): Likewise.
31435         (gimple_omp_for_set_final): Likewise.
31436         (gimple_omp_for_incr): Likewise.
31437         (gimple_omp_for_incr_ptr): Likewise.
31438         (gimple_omp_for_set_incr): Likewise.
31439         (gimple_omp_for_pre_body_ptr): Likewise.
31440         (gimple_omp_for_set_pre_body): Likewise.
31441         (gimple_omp_parallel_clauses): Likewise.
31442         (gimple_omp_parallel_clauses_ptr): Likewise.
31443         (gimple_omp_parallel_set_clauses): Likewise.
31444         (gimple_omp_parallel_child_fn): Likewise.
31445         (gimple_omp_parallel_child_fn_ptr): Likewise.
31446         (gimple_omp_parallel_set_child_fn): Likewise.
31447         (gimple_omp_parallel_data_arg): Likewise.
31448         (gimple_omp_parallel_data_arg_ptr): Likewise.
31449         (gimple_omp_parallel_set_data_arg): Likewise.
31450         (gimple_omp_task_clauses): Likewise.
31451         (gimple_omp_task_clauses_ptr): Likewise.
31452         (gimple_omp_task_set_clauses): Likewise.
31453         (gimple_omp_task_child_fn): Likewise.
31454         (gimple_omp_task_child_fn_ptr): Likewise.
31455         (gimple_omp_task_set_child_fn): Likewise.
31456         (gimple_omp_task_data_arg): Likewise.
31457         (gimple_omp_task_data_arg_ptr): Likewise.
31458         (gimple_omp_task_set_data_arg): Likewise.
31459         (gimple_omp_taskreg_clauses): Likewise.
31460         (gimple_omp_taskreg_clauses_ptr): Likewise.
31461         (gimple_omp_taskreg_set_clauses): Likewise.
31462         (gimple_omp_taskreg_child_fn): Likewise.
31463         (gimple_omp_taskreg_child_fn_ptr): Likewise.
31464         (gimple_omp_taskreg_set_child_fn): Likewise.
31465         (gimple_omp_taskreg_data_arg): Likewise.
31466         (gimple_omp_taskreg_data_arg_ptr): Likewise.
31467         (gimple_omp_taskreg_set_data_arg): Likewise.
31468         (gimple_omp_task_copy_fn): Likewise.
31469         (gimple_omp_task_copy_fn_ptr): Likewise.
31470         (gimple_omp_task_set_copy_fn): Likewise.
31471         (gimple_omp_task_arg_size): Likewise.
31472         (gimple_omp_task_arg_size_ptr): Likewise.
31473         (gimple_omp_task_set_arg_size): Likewise.
31474         (gimple_omp_task_arg_align): Likewise.
31475         (gimple_omp_task_arg_align_ptr): Likewise.
31476         (gimple_omp_task_set_arg_align): Likewise.
31477         (gimple_omp_single_clauses): Likewise.
31478         (gimple_omp_single_clauses_ptr): Likewise.
31479         (gimple_omp_single_set_clauses): Likewise.
31480         (gimple_omp_target_clauses): Likewise.
31481         (gimple_omp_target_clauses_ptr): Likewise.
31482         (gimple_omp_target_set_clauses): Likewise.
31483         (gimple_omp_target_child_fn): Likewise.
31484         (gimple_omp_target_child_fn_ptr): Likewise.
31485         (gimple_omp_target_set_child_fn): Likewise.
31486         (gimple_omp_target_data_arg): Likewise.
31487         (gimple_omp_target_data_arg_ptr): Likewise.
31488         (gimple_omp_target_set_data_arg): Likewise.
31489         (gimple_omp_teams_clauses): Likewise.
31490         (gimple_omp_teams_clauses_ptr): Likewise.
31491         (gimple_omp_teams_set_clauses): Likewise.
31492         (gimple_omp_sections_clauses): Likewise.
31493         (gimple_omp_sections_clauses_ptr): Likewise.
31494         (gimple_omp_sections_set_clauses): Likewise.
31495         (gimple_omp_sections_control): Likewise.
31496         (gimple_omp_sections_control_ptr): Likewise.
31497         (gimple_omp_sections_set_control): Likewise.
31498         (gimple_omp_for_set_cond): Likewise.
31499         (gimple_omp_for_cond): Likewise.
31500         (gimple_omp_atomic_store_set_val): Likewise.
31501         (gimple_omp_atomic_store_val): Likewise.
31502         (gimple_omp_atomic_store_val_ptr): Likewise.
31503         (gimple_omp_atomic_load_set_lhs): Likewise.
31504         (gimple_omp_atomic_load_lhs): Likewise.
31505         (gimple_omp_atomic_load_lhs_ptr): Likewise.
31506         (gimple_omp_atomic_load_set_rhs): Likewise.
31507         (gimple_omp_atomic_load_rhs): Likewise.
31508         (gimple_omp_atomic_load_rhs_ptr): Likewise.
31509         (gimple_omp_continue_control_def): Likewise.
31510         (gimple_omp_continue_control_def_ptr): Likewise.
31511         (gimple_omp_continue_set_control_def): Likewise.
31512         (gimple_omp_continue_control_use): Likewise.
31513         (gimple_omp_continue_control_use_ptr): Likewise.
31514         (gimple_omp_continue_set_control_use): Likewise.
31515         (gimple_transaction_body_ptr): Likewise.
31516         (gimple_transaction_label): Likewise.
31517         (gimple_transaction_label_ptr): Likewise.
31518         (gimple_transaction_set_body): Likewise.
31519         (gimple_transaction_set_label): Likewise.
31520
31521         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
31522         * ipa-inline-analysis.c (inline_write_summary): Likewise.
31523         * ipa-ref.c (ipa_record_reference): Likewise.
31524         * ipa-reference.c (analyze_function): Likewise.
31525         (ipa_reference_write_optimization_summary): Likewise.
31526         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
31527         (address_taken_from_non_vtable_p): Likewise.
31528         (comdat_can_be_unshared_p_1): Likewise.
31529         * lto-cgraph.c (lto_output_ref): Likewise.
31530         (add_references): Likewise.
31531         (compute_ltrans_boundary): Likewise.
31532         (output_symtab): Likewise.
31533         (input_ref): Likewise.
31534         (input_cgraph_1): Likewise.
31535         (output_cgraph_opt_summary): Likewise.
31536         * lto-streamer-out.c (lto_output): Likewise.
31537         (output_symbol_p): Likewise.
31538         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
31539         (lsei_start_function_in_partition): Likewise.
31540         (lsei_next_variable_in_partition): Likewise.
31541         (lsei_start_variable_in_partition): Likewise.
31542         * symtab.c (insert_to_assembler_name_hash): Likewise.
31543         (unlink_from_assembler_name_hash): Likewise.
31544         (symtab_unregister_node): Likewise.
31545         (symtab_remove_node): Likewise.
31546         (dump_symtab_node): Likewise.
31547         (verify_symtab_base): Likewise.
31548         (verify_symtab_node): Likewise.
31549         (symtab_make_decl_local): Likewise.
31550         (symtab_alias_ultimate_target): Likewise.
31551         (symtab_resolve_alias): Likewise.
31552         (symtab_get_symbol_partitioning_class): Likewise.
31553         * tree-phinodes.c (allocate_phi_node): Likewise.
31554         (reserve_phi_args_for_new_edge): Likewise.
31555         (remove_phi_args): Likewise.
31556         * varpool.c (varpool_node_for_asm): Likewise.
31557         (varpool_remove_unreferenced_decls): Likewise.
31558
31559 2014-04-23  Jeff Law  <law@redhat.com>
31560
31561         PR tree-optimization/60902
31562         * tree-ssa-threadedge.c
31563         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
31564         invalidate outputs from statements that do not produce useful
31565         outputs for threading.
31566
31567 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
31568
31569         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
31570         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
31571         machine descriptions for Stack Smashing Protector.
31572
31573 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
31574
31575         * aarch64.md (<optab>_rol<mode>3): New pattern.
31576         (<optab>_rolsi3_uxtw): Likewise.
31577         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
31578
31579 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
31580
31581         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
31582         (arm_cortex_a12_tune): Likewise.
31583
31584 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31585
31586         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
31587
31588 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31589
31590         * config/arm/arm.md (arm_rev16si2): New pattern.
31591         (arm_rev16si2_alt): Likewise.
31592         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
31593
31594 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31595
31596         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
31597         (rev16<mode>2_alt): Likewise.
31598         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
31599         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
31600         (aarch_rev16_shleft_mask_imm_p): Likewise.
31601         (aarch_rev16_p_1): Likewise.
31602         (aarch_rev16_p): Likewise.
31603         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
31604         (aarch_rev16_shright_mask_imm_p): Likewise.
31605         (aarch_rev16_shleft_mask_imm_p): Likewise.
31606
31607 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31608
31609         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
31610         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
31611         rev cost.
31612         (cortex_a53_extra_costs): Likewise.
31613         (cortex_a57_extra_costs): Likewise.
31614         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
31615         (cortexa7_extra_costs): Likewise.
31616         (cortexa8_extra_costs): Likewise.
31617         (cortexa12_extra_costs): Likewise.
31618         (cortexa15_extra_costs): Likewise.
31619         (v7m_extra_costs): Likewise.
31620         (arm_new_rtx_costs): Handle BSWAP.
31621
31622 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31623
31624         * config/arm/arm.c (cortexa8_extra_costs): New table.
31625         (arm_cortex_a8_tune): New tuning struct.
31626         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
31627
31628 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31629
31630         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
31631
31632 2014-04-23  Richard Biener  <rguenther@suse.de>
31633
31634         * Makefile.in (OBJS): Remove loop-unswitch.o.
31635         * tree-pass.h (make_pass_rtl_unswitch): Remove.
31636         * passes.def (pass_rtl_unswitch): Likewise.
31637         * loop-init.c (gate_rtl_unswitch): Likewise.
31638         (rtl_unswitch): Likewise.
31639         (pass_data_rtl_unswitch): Likewise.
31640         (pass_rtl_unswitch): Likewise.
31641         (make_pass_rtl_unswitch): Likewise.
31642         * rtl.h (reversed_condition): Likewise.
31643         (compare_and_jump_seq): Likewise.
31644         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
31645         and make static.
31646         * loop-unroll.c (compare_and_jump_seq): Likewise.
31647
31648 2014-04-23  Richard Biener  <rguenther@suse.de>
31649
31650         PR tree-optimization/60903
31651         * tree-ssa-loop-im.c (analyze_memory_references): Remove
31652         commented code block.
31653         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
31654         loop flags to newly created BBs and edges.
31655
31656 2014-04-23  Nick Clifton  <nickc@redhat.com>
31657
31658         * config/msp430/msp430.c (msp430_handle_option): Move function
31659         to msp430-common.c
31660         (msp430_option_override): Simplify mcu and mcpu option handling.
31661         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
31662         support for -mhwmult command line option.
31663         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
31664         -mhwmult command line option.
31665         (msp430_hwmult_enabled): Delete.
31666         (msp43o_output_labelref): Add support for -mhwmult command line option.
31667         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
31668         (umulsidi3): Likewise.
31669         * config/msp430/msp430.opt (mmcu): Add Report attribute.
31670         (mcpu, mlarge, msmall): Likewise.
31671         (mhwmult): New option.
31672         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
31673         prototype.
31674         (msp430_is_f5_mcu): Remove prototype.
31675         (msp430_use_f5_series_hwmult): Add prototype.
31676         * config/msp430/msp430-opts.h: New file.
31677         * common/config/msp430: New directory.
31678         * common/config/msp430/msp430-common.c: New file.
31679         * config.gcc (msp430): Remove target_has_targetm_common.
31680         * doc/invoke.texi: Document -mhwmult command line option.
31681
31682 2014-04-23  Nick Clifton  <nickc@redhat.com>
31683
31684         * config/i386/cygwin.h (ENDFILE_SPEC): Include
31685         default-manifest.o if it can be found in the search path.
31686         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
31687
31688 2014-04-23  Terry Guo  <terry.guo@arm.com>
31689
31690         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
31691
31692 2014-04-23  Richard Biener  <rguenther@suse.de>
31693
31694         PR middle-end/60895
31695         * tree-inline.c (declare_return_variable): Use mark_addressable.
31696
31697 2014-04-23  Richard Biener  <rguenther@suse.de>
31698
31699         PR middle-end/60891
31700         * loop-init.c (loop_optimizer_init): Make sure to apply
31701         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
31702
31703 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
31704
31705         PR sanitizer/60275
31706         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
31707         New options.
31708         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
31709         if flag_sanitize_undefined_trap_on_error.
31710         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
31711         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
31712         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
31713         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
31714         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
31715         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
31716         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
31717         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
31718         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
31719         * ubsan.c (ubsan_instrument_unreachable): Return
31720         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
31721         (ubsan_expand_null_ifn): Emit __builtin_trap ()
31722         if flag_sanitize_undefined_trap_on_error and
31723         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
31724         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
31725         instrument_bool_enum_load): Emit __builtin_trap () if
31726         flag_sanitize_undefined_trap_on_error and
31727         __builtin_handle_*_abort () if !flag_sanitize_recover.
31728         * doc/invoke.texi (-fsanitize-recover,
31729         -fsanitize-undefined-trap-on-error): Document.
31730
31731 2014-04-22  Christian Bruel  <christian.bruel@st.com>
31732
31733         * config/sh/sh.md (mov<mode>): Replace movQIHI.
31734         Force immediates to SImode.
31735
31736 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
31737
31738         * config/nios2/nios2.md (UNSPEC_ROUND): New.
31739         (lroundsfsi2): New.
31740         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
31741         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
31742         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
31743         (nios2_fpu_insn): Add entry for round.
31744         (N2FPU_NO_ERRNO_P): Define.
31745         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
31746         flag_errno_math.
31747         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
31748
31749 2014-04-22  Richard Henderson  <rth@redhat.com>
31750
31751         * config/aarch64/aarch64 (addti3, subti3): New expanders.
31752         (add<GPI>3_compare0): Remove leading * from name.
31753         (add<GPI>3_carryin): Likewise.
31754         (sub<GPI>3_compare0): Likewise.
31755         (sub<GPI>3_carryin): Likewise.
31756         (<su_optab>mulditi3): New expander.
31757         (multi3): New expander.
31758         (madd<GPI>): Remove leading * from name.
31759
31760 2014-04-22  Martin Jambor  <mjambor@suse.cz>
31761
31762         * cgraphclones.c (cgraph_function_versioning): Copy
31763         ipa_transforms_to_apply instead of asserting it is empty.
31764
31765 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
31766
31767         PR target/60868
31768         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
31769         on count_exp to get mode.
31770
31771 2014-04-22  Andrew Pinski  <apinski@cavium.com>
31772
31773         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
31774         Handle TLS for ILP32.
31775         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
31776         (tlsie_small_<mode>): this and handle PTR.
31777         (tlsie_small_sidi): New pattern.
31778         (tlsle_small): Change to an expand to handle ILP32.
31779         (tlsle_small_<mode>): New pattern.
31780         (tlsdesc_small): Rename to ...
31781         (tlsdesc_small_<mode>): this and handle PTR.
31782
31783 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31784
31785         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
31786
31787 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
31788
31789         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
31790         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
31791         (aarch64_types_signed_poly_qualifiers): Likewise.
31792         (aarch64_types_unsigned_signed_qualifiers): Likewise.
31793         (aarch64_types_poly_signed_qualifiers): Likewise.
31794         (TYPES_REINTERP_SS): Type macro added.
31795         (TYPES_REINTERP_SU): Likewise.
31796         (TYPES_REINTERP_SP): Likewise.
31797         (TYPES_REINTERP_US): Likewise.
31798         (TYPES_REINTERP_PS): Likewise.
31799         (aarch64_fold_builtin): New expression folding added.
31800         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
31801         Declarations removed.
31802         (REINTERP_SS): Declarations added.
31803         (REINTERP_US): Likewise.
31804         (REINTERP_PS): Likewise.
31805         (REINTERP_SU): Likewise.
31806         (REINTERP_SP): Likewise.
31807         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
31808         (vreinterpretq_p8_f64): Likewise.
31809         (vreinterpret_p16_f64): Likewise.
31810         (vreinterpretq_p16_f64): Likewise.
31811         (vreinterpret_f32_f64): Likewise.
31812         (vreinterpretq_f32_f64): Likewise.
31813         (vreinterpret_f64_f32): Likewise.
31814         (vreinterpret_f64_p8): Likewise.
31815         (vreinterpret_f64_p16): Likewise.
31816         (vreinterpret_f64_s8): Likewise.
31817         (vreinterpret_f64_s16): Likewise.
31818         (vreinterpret_f64_s32): Likewise.
31819         (vreinterpret_f64_s64): Likewise.
31820         (vreinterpret_f64_u8): Likewise.
31821         (vreinterpret_f64_u16): Likewise.
31822         (vreinterpret_f64_u32): Likewise.
31823         (vreinterpret_f64_u64): Likewise.
31824         (vreinterpretq_f64_f32): Likewise.
31825         (vreinterpretq_f64_p8): Likewise.
31826         (vreinterpretq_f64_p16): Likewise.
31827         (vreinterpretq_f64_s8): Likewise.
31828         (vreinterpretq_f64_s16): Likewise.
31829         (vreinterpretq_f64_s32): Likewise.
31830         (vreinterpretq_f64_s64): Likewise.
31831         (vreinterpretq_f64_u8): Likewise.
31832         (vreinterpretq_f64_u16): Likewise.
31833         (vreinterpretq_f64_u32): Likewise.
31834         (vreinterpretq_f64_u64): Likewise.
31835         (vreinterpret_s64_f64): Likewise.
31836         (vreinterpretq_s64_f64): Likewise.
31837         (vreinterpret_u64_f64): Likewise.
31838         (vreinterpretq_u64_f64): Likewise.
31839         (vreinterpret_s8_f64): Likewise.
31840         (vreinterpretq_s8_f64): Likewise.
31841         (vreinterpret_s16_f64): Likewise.
31842         (vreinterpretq_s16_f64): Likewise.
31843         (vreinterpret_s32_f64): Likewise.
31844         (vreinterpretq_s32_f64): Likewise.
31845         (vreinterpret_u8_f64): Likewise.
31846         (vreinterpretq_u8_f64): Likewise.
31847         (vreinterpret_u16_f64): Likewise.
31848         (vreinterpretq_u16_f64): Likewise.
31849         (vreinterpret_u32_f64): Likewise.
31850         (vreinterpretq_u32_f64): Likewise.
31851
31852 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
31853
31854         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
31855         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
31856         (vreinterpret_p8_s8): Likewise.
31857         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
31858         (vreinterpret_p8_s16): Likewise.
31859         (vreinterpret_p8_s32): Likewise.
31860         (vreinterpret_p8_s64): Likewise.
31861         (vreinterpret_p8_f32): Likewise.
31862         (vreinterpret_p8_u8): Likewise.
31863         (vreinterpret_p8_u16): Likewise.
31864         (vreinterpret_p8_u32): Likewise.
31865         (vreinterpret_p8_u64): Likewise.
31866         (vreinterpret_p8_p16): Likewise.
31867         (vreinterpretq_p8_s8): Likewise.
31868         (vreinterpretq_p8_s16): Likewise.
31869         (vreinterpretq_p8_s32): Likewise.
31870         (vreinterpretq_p8_s64): Likewise.
31871         (vreinterpretq_p8_f32): Likewise.
31872         (vreinterpretq_p8_u8): Likewise.
31873         (vreinterpretq_p8_u16): Likewise.
31874         (vreinterpretq_p8_u32): Likewise.
31875         (vreinterpretq_p8_u64): Likewise.
31876         (vreinterpretq_p8_p16): Likewise.
31877         (vreinterpret_p16_s8): Likewise.
31878         (vreinterpret_p16_s16): Likewise.
31879         (vreinterpret_p16_s32): Likewise.
31880         (vreinterpret_p16_s64): Likewise.
31881         (vreinterpret_p16_f32): Likewise.
31882         (vreinterpret_p16_u8): Likewise.
31883         (vreinterpret_p16_u16): Likewise.
31884         (vreinterpret_p16_u32): Likewise.
31885         (vreinterpret_p16_u64): Likewise.
31886         (vreinterpret_p16_p8): Likewise.
31887         (vreinterpretq_p16_s8): Likewise.
31888         (vreinterpretq_p16_s16): Likewise.
31889         (vreinterpretq_p16_s32): Likewise.
31890         (vreinterpretq_p16_s64): Likewise.
31891         (vreinterpretq_p16_f32): Likewise.
31892         (vreinterpretq_p16_u8): Likewise.
31893         (vreinterpretq_p16_u16): Likewise.
31894         (vreinterpretq_p16_u32): Likewise.
31895         (vreinterpretq_p16_u64): Likewise.
31896         (vreinterpretq_p16_p8): Likewise.
31897         (vreinterpret_f32_s8): Likewise.
31898         (vreinterpret_f32_s16): Likewise.
31899         (vreinterpret_f32_s32): Likewise.
31900         (vreinterpret_f32_s64): Likewise.
31901         (vreinterpret_f32_u8): Likewise.
31902         (vreinterpret_f32_u16): Likewise.
31903         (vreinterpret_f32_u32): Likewise.
31904         (vreinterpret_f32_u64): Likewise.
31905         (vreinterpret_f32_p8): Likewise.
31906         (vreinterpret_f32_p16): Likewise.
31907         (vreinterpretq_f32_s8): Likewise.
31908         (vreinterpretq_f32_s16): Likewise.
31909         (vreinterpretq_f32_s32): Likewise.
31910         (vreinterpretq_f32_s64): Likewise.
31911         (vreinterpretq_f32_u8): Likewise.
31912         (vreinterpretq_f32_u16): Likewise.
31913         (vreinterpretq_f32_u32): Likewise.
31914         (vreinterpretq_f32_u64): Likewise.
31915         (vreinterpretq_f32_p8): Likewise.
31916         (vreinterpretq_f32_p16): Likewise.
31917         (vreinterpret_s64_s8): Likewise.
31918         (vreinterpret_s64_s16): Likewise.
31919         (vreinterpret_s64_s32): Likewise.
31920         (vreinterpret_s64_f32): Likewise.
31921         (vreinterpret_s64_u8): Likewise.
31922         (vreinterpret_s64_u16): Likewise.
31923         (vreinterpret_s64_u32): Likewise.
31924         (vreinterpret_s64_u64): Likewise.
31925         (vreinterpret_s64_p8): Likewise.
31926         (vreinterpret_s64_p16): Likewise.
31927         (vreinterpretq_s64_s8): Likewise.
31928         (vreinterpretq_s64_s16): Likewise.
31929         (vreinterpretq_s64_s32): Likewise.
31930         (vreinterpretq_s64_f32): Likewise.
31931         (vreinterpretq_s64_u8): Likewise.
31932         (vreinterpretq_s64_u16): Likewise.
31933         (vreinterpretq_s64_u32): Likewise.
31934         (vreinterpretq_s64_u64): Likewise.
31935         (vreinterpretq_s64_p8): Likewise.
31936         (vreinterpretq_s64_p16): Likewise.
31937         (vreinterpret_u64_s8): Likewise.
31938         (vreinterpret_u64_s16): Likewise.
31939         (vreinterpret_u64_s32): Likewise.
31940         (vreinterpret_u64_s64): Likewise.
31941         (vreinterpret_u64_f32): Likewise.
31942         (vreinterpret_u64_u8): Likewise.
31943         (vreinterpret_u64_u16): Likewise.
31944         (vreinterpret_u64_u32): Likewise.
31945         (vreinterpret_u64_p8): Likewise.
31946         (vreinterpret_u64_p16): Likewise.
31947         (vreinterpretq_u64_s8): Likewise.
31948         (vreinterpretq_u64_s16): Likewise.
31949         (vreinterpretq_u64_s32): Likewise.
31950         (vreinterpretq_u64_s64): Likewise.
31951         (vreinterpretq_u64_f32): Likewise.
31952         (vreinterpretq_u64_u8): Likewise.
31953         (vreinterpretq_u64_u16): Likewise.
31954         (vreinterpretq_u64_u32): Likewise.
31955         (vreinterpretq_u64_p8): Likewise.
31956         (vreinterpretq_u64_p16): Likewise.
31957         (vreinterpret_s8_s16): Likewise.
31958         (vreinterpret_s8_s32): Likewise.
31959         (vreinterpret_s8_s64): Likewise.
31960         (vreinterpret_s8_f32): Likewise.
31961         (vreinterpret_s8_u8): Likewise.
31962         (vreinterpret_s8_u16): Likewise.
31963         (vreinterpret_s8_u32): Likewise.
31964         (vreinterpret_s8_u64): Likewise.
31965         (vreinterpret_s8_p8): Likewise.
31966         (vreinterpret_s8_p16): Likewise.
31967         (vreinterpretq_s8_s16): Likewise.
31968         (vreinterpretq_s8_s32): Likewise.
31969         (vreinterpretq_s8_s64): Likewise.
31970         (vreinterpretq_s8_f32): Likewise.
31971         (vreinterpretq_s8_u8): Likewise.
31972         (vreinterpretq_s8_u16): Likewise.
31973         (vreinterpretq_s8_u32): Likewise.
31974         (vreinterpretq_s8_u64): Likewise.
31975         (vreinterpretq_s8_p8): Likewise.
31976         (vreinterpretq_s8_p16): Likewise.
31977         (vreinterpret_s16_s8): Likewise.
31978         (vreinterpret_s16_s32): Likewise.
31979         (vreinterpret_s16_s64): Likewise.
31980         (vreinterpret_s16_f32): Likewise.
31981         (vreinterpret_s16_u8): Likewise.
31982         (vreinterpret_s16_u16): Likewise.
31983         (vreinterpret_s16_u32): Likewise.
31984         (vreinterpret_s16_u64): Likewise.
31985         (vreinterpret_s16_p8): Likewise.
31986         (vreinterpret_s16_p16): Likewise.
31987         (vreinterpretq_s16_s8): Likewise.
31988         (vreinterpretq_s16_s32): Likewise.
31989         (vreinterpretq_s16_s64): Likewise.
31990         (vreinterpretq_s16_f32): Likewise.
31991         (vreinterpretq_s16_u8): Likewise.
31992         (vreinterpretq_s16_u16): Likewise.
31993         (vreinterpretq_s16_u32): Likewise.
31994         (vreinterpretq_s16_u64): Likewise.
31995         (vreinterpretq_s16_p8): Likewise.
31996         (vreinterpretq_s16_p16): Likewise.
31997         (vreinterpret_s32_s8): Likewise.
31998         (vreinterpret_s32_s16): Likewise.
31999         (vreinterpret_s32_s64): Likewise.
32000         (vreinterpret_s32_f32): Likewise.
32001         (vreinterpret_s32_u8): Likewise.
32002         (vreinterpret_s32_u16): Likewise.
32003         (vreinterpret_s32_u32): Likewise.
32004         (vreinterpret_s32_u64): Likewise.
32005         (vreinterpret_s32_p8): Likewise.
32006         (vreinterpret_s32_p16): Likewise.
32007         (vreinterpretq_s32_s8): Likewise.
32008         (vreinterpretq_s32_s16): Likewise.
32009         (vreinterpretq_s32_s64): Likewise.
32010         (vreinterpretq_s32_f32): Likewise.
32011         (vreinterpretq_s32_u8): Likewise.
32012         (vreinterpretq_s32_u16): Likewise.
32013         (vreinterpretq_s32_u32): Likewise.
32014         (vreinterpretq_s32_u64): Likewise.
32015         (vreinterpretq_s32_p8): Likewise.
32016         (vreinterpretq_s32_p16): Likewise.
32017         (vreinterpret_u8_s8): Likewise.
32018         (vreinterpret_u8_s16): Likewise.
32019         (vreinterpret_u8_s32): Likewise.
32020         (vreinterpret_u8_s64): Likewise.
32021         (vreinterpret_u8_f32): Likewise.
32022         (vreinterpret_u8_u16): Likewise.
32023         (vreinterpret_u8_u32): Likewise.
32024         (vreinterpret_u8_u64): Likewise.
32025         (vreinterpret_u8_p8): Likewise.
32026         (vreinterpret_u8_p16): Likewise.
32027         (vreinterpretq_u8_s8): Likewise.
32028         (vreinterpretq_u8_s16): Likewise.
32029         (vreinterpretq_u8_s32): Likewise.
32030         (vreinterpretq_u8_s64): Likewise.
32031         (vreinterpretq_u8_f32): Likewise.
32032         (vreinterpretq_u8_u16): Likewise.
32033         (vreinterpretq_u8_u32): Likewise.
32034         (vreinterpretq_u8_u64): Likewise.
32035         (vreinterpretq_u8_p8): Likewise.
32036         (vreinterpretq_u8_p16): Likewise.
32037         (vreinterpret_u16_s8): Likewise.
32038         (vreinterpret_u16_s16): Likewise.
32039         (vreinterpret_u16_s32): Likewise.
32040         (vreinterpret_u16_s64): Likewise.
32041         (vreinterpret_u16_f32): Likewise.
32042         (vreinterpret_u16_u8): Likewise.
32043         (vreinterpret_u16_u32): Likewise.
32044         (vreinterpret_u16_u64): Likewise.
32045         (vreinterpret_u16_p8): Likewise.
32046         (vreinterpret_u16_p16): Likewise.
32047         (vreinterpretq_u16_s8): Likewise.
32048         (vreinterpretq_u16_s16): Likewise.
32049         (vreinterpretq_u16_s32): Likewise.
32050         (vreinterpretq_u16_s64): Likewise.
32051         (vreinterpretq_u16_f32): Likewise.
32052         (vreinterpretq_u16_u8): Likewise.
32053         (vreinterpretq_u16_u32): Likewise.
32054         (vreinterpretq_u16_u64): Likewise.
32055         (vreinterpretq_u16_p8): Likewise.
32056         (vreinterpretq_u16_p16): Likewise.
32057         (vreinterpret_u32_s8): Likewise.
32058         (vreinterpret_u32_s16): Likewise.
32059         (vreinterpret_u32_s32): Likewise.
32060         (vreinterpret_u32_s64): Likewise.
32061         (vreinterpret_u32_f32): Likewise.
32062         (vreinterpret_u32_u8): Likewise.
32063         (vreinterpret_u32_u16): Likewise.
32064         (vreinterpret_u32_u64): Likewise.
32065         (vreinterpret_u32_p8): Likewise.
32066         (vreinterpret_u32_p16): Likewise.
32067         (vreinterpretq_u32_s8): Likewise.
32068         (vreinterpretq_u32_s16): Likewise.
32069         (vreinterpretq_u32_s32): Likewise.
32070         (vreinterpretq_u32_s64): Likewise.
32071         (vreinterpretq_u32_f32): Likewise.
32072         (vreinterpretq_u32_u8): Likewise.
32073         (vreinterpretq_u32_u16): Likewise.
32074         (vreinterpretq_u32_u64): Likewise.
32075         (vreinterpretq_u32_p8): Likewise.
32076         (vreinterpretq_u32_p16): Likewise.
32077
32078 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
32079
32080         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
32081         Pattern extended.
32082         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
32083         (sqabs): Likewise.
32084         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
32085         (vqnegd_s64): Likewise.
32086         (vqabs_s64): Likewise.
32087         (vqabsd_s64): Likewise.
32088
32089 2014-04-22  Richard Henderson  <rth@redhat.com>
32090
32091         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
32092         computation to the top of the loop.
32093
32094 2014-04-22  Renlin  <renlin.li@arm.com>
32095             Jiong Wang  <jiong.wang@arm.com>
32096
32097         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
32098         * config/aarch64/aarch64.c (aarch64_layout_frame)
32099         (aarch64_initial_elimination_offset): Likewise.
32100
32101 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32102
32103         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
32104         Fix indentation.
32105
32106 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
32107
32108         * machmode.h (bitwise_mode_for_mode): Declare.
32109         * stor-layout.h (bitwise_type_for_mode): Likewise.
32110         * stor-layout.c (bitwise_mode_for_mode): New function.
32111         (bitwise_type_for_mode): Likewise.
32112         * builtins.c (fold_builtin_memory_op): Use it instead of
32113         int_mode_for_mode and build_nonstandard_integer_type.
32114
32115 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32116
32117         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
32118         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
32119         (*-*-solaris2*): Simplify.
32120         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
32121         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
32122         *-*-solaris2.9* handling.
32123
32124         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
32125         as bug.
32126         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
32127         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
32128         handling, simplify.
32129         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
32130         * configure: Regenerate.
32131
32132         * config/i386/sol2-9.h: Remove.
32133
32134         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
32135         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
32136         Remove Solaris 9 references.
32137
32138 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
32139
32140         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
32141         (floatuns<GPI:mode><GPF:mode>2): Remove.
32142         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
32143         and floatuns conversions.
32144         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
32145         and floatuns conversions.
32146         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
32147         (w1,w2): New mode attributes for inequal width conversions.
32148
32149 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
32150
32151         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
32152         the output asm format.
32153
32154 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
32155
32156         * config/aarch64/aarch64-simd.md
32157         (aarch64_cm<optab>di): Always split.
32158         (*aarch64_cm<optab>di): New.
32159         (aarch64_cmtstdi): Always split.
32160         (*aarch64_cmtstdi): New.
32161
32162 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
32163
32164         PR tree-optimization/60823
32165         * omp-low.c (ipa_simd_modify_function_body): Go through
32166         all SSA_NAMEs and for those refering to vector arguments
32167         which are going to be replaced adjust SSA_NAME_VAR and,
32168         if it is a default definition, change it into a non-default
32169         definition assigned at the beginning of function from new_decl.
32170         (ipa_simd_modify_stmt_ops): Rewritten.
32171         * tree-dfa.c (set_ssa_default_def): When removing default def,
32172         check for NULL loc instead of NULL *loc.
32173
32174 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32175
32176         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
32177         restrictions on core registers for DImode values in Thumb2.
32178
32179 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
32180
32181         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
32182         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
32183
32184 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
32185
32186         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
32187         (*iordi_notzesidi_di): Likewise.
32188         (*iordi_notsesidi_di): Likewise.
32189
32190 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
32191
32192         * config/arm/arm-protos.h (tune_params): New struct members.
32193         * config/arm/arm.c: Initialise tune_params per processor.
32194         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
32195         for speed, based on new tune_params.
32196
32197 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
32198
32199         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
32200         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
32201         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
32202         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
32203         * config/aarch64/arm_neon.h (vrnd_f64): Added.
32204         (vrnda_f64): Likewise.
32205         (vrndi_f64): Likewise.
32206         (vrndm_f64): Likewise.
32207         (vrndn_f64): Likewise.
32208         (vrndp_f64): Likewise.
32209         (vrndx_f64): Likewise.
32210
32211 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
32212
32213         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
32214         GET_MODE_SIZE argument is enum machine_mode.
32215
32216 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
32217
32218         PR target/60910
32219         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
32220         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
32221
32222 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
32223
32224         PR middle-end/60281
32225         * asan.c (asan_emit_stack_protection): Force the base to align to
32226         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
32227         appropriate bits if STRICT_ALIGNMENT.
32228         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
32229         when asan is on.
32230         (expand_used_vars): Leave a space in the stack frame for alignment
32231         if STRICT_ALIGNMENT.
32232
32233 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
32234
32235         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
32236         than a gimple.
32237         (gimple_store_p): Likewise.
32238         (gimple_assign_load_p): Likewise.
32239         (gimple_assign_cast_p): Likewise.
32240         (gimple_clobber_p): Likewise.
32241
32242         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
32243         rather than a gimple.
32244         (gimple_assign_cast_p): Likewise.
32245
32246 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
32247
32248         PR target/60735
32249         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
32250         If mode is DDmode and TARGET_E500_DOUBLE allow move.
32251
32252         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
32253         more debug information for E500 if -mdebug=reg.
32254
32255 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
32256
32257         PR target/60909
32258         * config/i386/i386.c (ix86_expand_builtin)
32259         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
32260         register for target RTX.
32261         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
32262
32263 2014-04-18  Cong Hou  <congh@google.com>
32264
32265         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
32266         the widen-mult pattern by handling two operands with different sizes,
32267         and operands whose size is smaller than half of the result type.
32268
32269 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
32270
32271         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
32272         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
32273         (do_estimate_edge_time): Compute it.
32274         * ipa-inline.c (want_inline_small_function_p): Bypass
32275         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
32276
32277 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
32278
32279         * ipa-inline.c (spec_rem): New static variable.
32280         (dump_overall_stats): New function.
32281         (dump_inline_stats): New function.
32282
32283 2014-04-18  Richard Henderson  <rth@redhat.com>
32284
32285         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
32286         to GET_MODE_SIZE, not a reg_class_t.
32287
32288 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32289
32290         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
32291         (vsx_xxmrglw_<mode>): Likewise.
32292
32293 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
32294
32295         PR target/60876
32296         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
32297         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
32298         (rs6000_init_hard_regno_mode_ok): Likewise.
32299
32300 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
32301
32302         * ipa-inline.c (inline_small_functions): Account only non-cold
32303         functions.
32304         * doc/invoke.texi (inline-unit-growth): Update documentation.
32305
32306 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
32307
32308         * config/rs6000/rs6000.md (addti3, subti3): New.
32309
32310 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
32311
32312         PR target/60863
32313         * config/i386/i386.c (ix86_expand_clear): Remove outdated
32314         comment.  Check optimize_insn_for_size_p instead of
32315         optimize_insn_for_speed_p.
32316
32317 2014-04-17  Martin Jambor  <mjambor@suse.cz>
32318
32319         * gimple-iterator.c (gsi_start_edge): New function.
32320         * gimple-iterator.h (gsi_start_edge): Declare.
32321         * tree-sra.c (single_non_eh_succ): New function.
32322         (disqualify_ops_if_throwing_stmt): Renamed to
32323         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
32324         having one non-EH successor BB.
32325         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
32326         generate loads into replacements.
32327         (sra_modify_assign): Likewise and and also use the simple path for
32328         such statements.
32329         (sra_modify_function_body): Commit statements on edges.
32330
32331 2014-04-17  Richard Biener  <rguenther@suse.de>
32332
32333         PR middle-end/60849
32334         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
32335         comparison results and add clarifying comment.
32336
32337 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
32338
32339         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
32340         (blank_mode): Initialize it.
32341         (emit_mode_size_inline, emit_mode_nunits_inline,
32342         emit_mode_inner_inline): New functions.
32343         (emit_insn_modes_h): Call them and surround their output with
32344         #if GCC_VERSION >= 4001 ... #endif.
32345         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
32346         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
32347         mode_* arrays if the argument is __builtin_constant_p.
32348         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
32349         is enum machine_mode.
32350
32351 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
32352
32353         * passes.c (opt_pass::execute): Adjust.
32354         (pass_manager::execute_pass_mode_switching): Likewise.
32355         (early_local_passes::execute): Likewise.
32356         (execute_one_pass): Pass cfun to the pass's execute method.
32357         * tree-pass.h (opt_pass::execute): Add function * argument.
32358         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
32359         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
32360         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
32361         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
32362         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
32363         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
32364         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
32365         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
32366         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
32367         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
32368         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
32369         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
32370         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
32371         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
32372         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
32373         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
32374         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
32375         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
32376         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
32377         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
32378         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
32379         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
32380         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
32381         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
32382         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
32383         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
32384         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
32385         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
32386         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
32387         Adjust.
32388
32389 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
32390
32391         * passes.c (opt_pass::gate): Take function * argument.
32392         (gate_all_early_local_passes): Merge into
32393         (early_local_passes::gate): this.
32394         (gate_all_early_optimizations): Merge into
32395         (all_early_optimizations::gate): this.
32396         (gate_all_optimizations): Mege into
32397         (all_optimizations::gate): this.
32398         (gate_all_optimizations_g): Merge into
32399         (all_optimizations_g::gate): this.
32400         (gate_rest_of_compilation): Mege into
32401         (rest_of_compilation::gate): this.
32402         (gate_postreload): Merge into
32403         (postreload::gate): this.
32404         (dump_one_pass): Pass cfun to the pass's gate method.
32405         (execute_ipa_summary_passes): Likewise.
32406         (execute_one_pass): Likewise.
32407         (ipa_write_summaries_2): Likewise.
32408         (ipa_write_optimization_summaries_1): Likewise.
32409         (ipa_read_summaries_1): Likewise.
32410         (ipa_read_optimization_summaries_1): Likewise.
32411         (execute_ipa_stmt_fixups): Likewise.
32412         * tree-pass.h (opt_pass::gate): Add function * argument.
32413         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
32414         combine-stack-adj.c, combine.c, compare-elim.c,
32415         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
32416         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
32417         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
32418         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
32419         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
32420         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
32421         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
32422         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
32423         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
32424         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
32425         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
32426         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
32427         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
32428         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
32429         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
32430         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
32431         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
32432         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
32433         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
32434         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
32435         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
32436         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
32437         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
32438         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
32439         var-tracking.c, vtable-verify.c, web.c: Adjust.
32440
32441 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
32442
32443         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
32444         * configure: Regenerate.
32445
32446 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
32447
32448         * passes.c (dump_one_pass): don't check pass->has_gate.
32449         (execute_ipa_summary_passes): Likewise.
32450         (execute_one_pass): Likewise.
32451         (ipa_write_summaries_2): Likewise.
32452         (ipa_write_optimization_summaries_1): Likewise.
32453         (ipa_read_optimization_summaries_1): Likewise.
32454         (execute_ipa_stmt_fixups): Likewise.
32455         * tree-pass.h (pass_data::has_gate): Remove.
32456         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
32457         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
32458         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
32459         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
32460         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
32461         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
32462         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
32463         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
32464         gimple-low.c, gimple-ssa-isolate-paths.c,
32465         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
32466         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
32467         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
32468         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
32469         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
32470         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
32471         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
32472         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
32473         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
32474         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
32475         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
32476         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
32477         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
32478         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
32479         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
32480         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
32481         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
32482         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
32483         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
32484         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
32485         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
32486         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
32487         Adjust.
32488
32489 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
32490
32491         * pass_manager.h (pass_manager::register_dump_files_1): Remove
32492         declaration.
32493         * passes.c (pass_manager::register_dump_files_1): Merge into
32494         (pass_manager::register_dump_files): this, and remove its handling of
32495         properties since the pass always has the properties anyway.
32496         (pass_manager::pass_manager): Adjust.
32497
32498 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
32499
32500         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
32501         * passes.c (pass_manager::register_dump_files_1): Remove dead code
32502         dealing with properties.
32503         (pass_manager::register_dump_files): Adjust.
32504
32505 2014-03-20  Mark Wielaard  <mjw@redhat.com>
32506
32507         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
32508         then represent the bound as normal constant value.
32509
32510 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
32511
32512         PR target/60847
32513         Forward port from 4.8 branch
32514         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
32515
32516         * config/i386/bmiintrin.h (_blsi_u32): New.
32517         (_blsi_u64): Ditto.
32518         (_blsr_u32): Ditto.
32519         (_blsr_u64): Ditto.
32520         (_blsmsk_u32): Ditto.
32521         (_blsmsk_u64): Ditto.
32522         (_tzcnt_u32): Ditto.
32523         (_tzcnt_u64): Ditto.
32524
32525 2014-04-17  Kito Cheng  <kito@0xlab.org>
32526
32527         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
32528
32529 2014-04-17  Richard Biener  <rguenther@suse.de>
32530
32531         PR middle-end/60849
32532         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
32533         boolean results for comparisons.
32534
32535 2014-04-17  Richard Biener  <rguenther@suse.de>
32536
32537         PR tree-optimization/60836
32538         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
32539         initial PHI args to be gimple values.
32540
32541 2014-04-17  Richard Biener  <rguenther@suse.de>
32542
32543         PR tree-optimization/60841
32544         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
32545         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
32546         of stmts to SLP build.
32547         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
32548         (vect_analyze_slp): Likewise.
32549         (vect_analyze_slp_instance): Likewise.
32550         (vect_build_slp_tree): Limit overall SLP tree growth.
32551         * tree-vectorizer.h (vect_analyze_data_refs,
32552         vect_analyze_slp): Adjust prototypes.
32553
32554 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
32555
32556         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
32557         Silvermont.
32558
32559 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
32560
32561         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
32562         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
32563         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
32564         for TARGET_SLOW_PSHUFB
32565
32566 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
32567
32568         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
32569         * config/i386/i386.c (intel_cost): Ditto.
32570
32571 2014-04-17  Joey Ye  <joey.ye@arm.com>
32572
32573         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
32574
32575 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
32576
32577         * opts.c (common_handle_option): Disable -fipa-reference coorectly
32578         with -fuse-profile.
32579
32580 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
32581
32582         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
32583         (type_all_derivations_known_p): New predicate.
32584         (type_all_ctors_visible_p): New predicate.
32585         (type_possibly_instantiated_p): New predicate.
32586         (get_odr_type): Compute all_derivations_known.
32587         (dump_odr_type): Dump the flag.
32588         (maybe_record_type): Cleanup.
32589         (record_target_from_binfo): Add bases_to_consider array;
32590         record bases for types w/o instances and skip CXX destructor.
32591         (possible_polymorphic_call_targets_1): Add bases_to_consider
32592         and consider_construction parameters; check if type may have instance.
32593         (get_polymorphic_call_info): Set maybe_in_construction to true
32594         when we know nothing.
32595         (record_targets_from_bases): Skip CXX destructors; they are
32596         never called for types in construction.
32597         (possible_polymorphic_call_targets): Do not record target when
32598         type may not have instance.
32599
32600 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
32601
32602         PR ipa/60854
32603         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
32604         external aliases alive, too.
32605
32606 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
32607
32608         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
32609         definition.
32610
32611 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
32612
32613         * final.c (compute_alignments): Do not apply loop alignment to a block
32614         falling through to the exit.
32615
32616 2014-04-16  Catherine Moore  <clm@codesourcery.com>
32617
32618         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
32619         Adjust constraints for microMIPS store patterns.
32620
32621 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
32622
32623         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
32624
32625 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
32626
32627         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
32628         (append_use): Run at -O0.
32629         (append_vdef): Likewise.
32630         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
32631         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
32632
32633 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
32634
32635         PR tree-optimization/60844
32636         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
32637         (propagate_op_to_single_use, remove_visited_stmt_chain,
32638         linearize_expr, repropagate_negates, reassociate_bb): Use it
32639         instead of gsi_remove.
32640
32641 2014-04-16  Martin Jambor  <mjambor@suse.cz>
32642
32643         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
32644         ipa_transforms_to_apply.
32645         (cgraph_function_versioning): Assert that old_node has empty
32646         ipa_transforms_to_apply.
32647         * trans-mem.c (ipa_tm_create_version): Likewise.
32648         * tree-inline.c (tree_function_versioning): Do not duplicate
32649         ipa_transforms_to_apply.
32650
32651 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32652
32653         PR target/60817
32654         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
32655         x86_64-*-* cases.
32656         Pass necessary as flags on 64-bit Solaris/x86.
32657         Use lowercase relocs for x86_64-*-*.
32658         * configure: Regenerate.
32659
32660 2014-04-15  Jan Hubicka  <jh@suse.cz>
32661
32662         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
32663         (maybe_record_node, likely_target_p): Use it.
32664
32665 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32666
32667         PR target/60839
32668         Revert following patch
32669
32670         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
32671
32672         PR target/60735
32673         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
32674         software floating point or no floating point registers, do not
32675         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
32676         in GPRs that occurs after we tested for GPRs that would never be
32677         true.
32678
32679         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
32680         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
32681         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
32682         specifically allow DDmode, since that does not use the SPE SIMD
32683         instructions.
32684
32685 2014-03-21  Mark Wielaard  <mjw@redhat.com>
32686
32687         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
32688         as unsigned or int depending on type and value used.
32689
32690 2014-04-15  Richard Biener  <rguenther@suse.de>
32691
32692         PR rtl-optimization/56965
32693         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
32694         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
32695         ... here.
32696         * alias.c (true_dependence_1): Do not call
32697         nonoverlapping_component_refs_p.
32698         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
32699         nonoverlapping_component_refs_p.
32700         (indirect_refs_may_alias_p): Likewise.
32701
32702 2014-04-15  Teresa Johnson  <tejohnson@google.com>
32703
32704         * cfg.c (dump_bb_info): Fix flags check.
32705         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
32706
32707 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32708
32709         PR rtl-optimization/60663
32710         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
32711         avoid 0 cost.
32712
32713 2014-04-15  Richard Biener  <rguenther@suse.de>
32714
32715         * lto-streamer.h (LTO_major_version): Bump to 4.
32716
32717 2014-04-15  Richard Biener  <rguenther@suse.de>
32718
32719         * common.opt (lto_partition_model): New enum.
32720         (flto-partition=): Merge separate options with a single with argument,
32721         add -flto-partition=one support.
32722         * flag-types.h (enum lto_partition_model): Declare.
32723         * opts.c (finish_options): Remove duplicate -flto-partition=
32724         option check.
32725         * lto-wrapper.c (run_gcc): Adjust.
32726
32727 2014-04-15  Richard Biener  <rguenther@suse.de>
32728
32729         * alias.c (ncr_compar): New function.
32730         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
32731
32732 2014-04-15  Richard Biener  <rguenther@suse.de>
32733
32734         * alias.c (record_component_aliases): Do not walk BINFOs.
32735
32736 2014-04-15  Richard Biener  <rguenther@suse.de>
32737
32738         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32739         Add struct function argument and adjust.
32740         (find_func_aliases_for_call): Likewise.
32741         (find_func_aliases): Likewise.
32742         (find_func_clobbers): Likewise.
32743         (intra_create_variable_infos): Likewise.
32744         (compute_points_to_sets): Likewise.
32745         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
32746
32747 2014-04-15  Richard Biener  <rguenther@suse.de>
32748
32749         * tree.c (iterative_hash_expr): Use enum tree_code_class
32750         to store TREE_CODE_CLASS.
32751         (tree_block): Likewise.
32752         (tree_set_block): Likewise.
32753         * tree.h (fold_build_pointer_plus_loc): Use
32754         convert_to_ptrofftype_loc.
32755
32756 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
32757
32758         PR plugins/59335
32759         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
32760         added in 4.9.
32761
32762 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
32763
32764         * cfgloop.h (struct loop): Move force_vectorize down.
32765         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
32766         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
32767         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
32768         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
32769         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
32770         * tree-core.h (enum annot_expr_kind): Add new kind values.
32771         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
32772         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
32773         kinds.
32774         * tree.def (ANNOTATE_EXPR): Tweak comment.
32775
32776 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
32777
32778         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
32779         cxa_pure_virtual).
32780
32781 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
32782
32783         * tree.h (TYPE_IDENTIFIER): Declare.
32784         * tree.c (subrange_type_for_debug_p): Use it.
32785         * godump.c (go_format_type): Likewise.
32786         * dwarf2out.c (is_cxx_auto, modified_type_die,
32787         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
32788         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
32789
32790 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
32791
32792         PR lto/60820
32793         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
32794
32795 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
32796
32797         * config/i386/i386.c (examine_argument): Return bool.  Return true if
32798         parameter should be passed in memory.
32799         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
32800         (construct_container): Update calls to examine_argument.
32801         (function_arg_advance_64): Ditto.
32802         (return_in_memory_32): Merge with ix86_return_in_memory.
32803         (return_in_memory_64): Ditto.
32804         (return_in_memory_ms_64): Ditto.
32805
32806 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
32807
32808         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
32809         * coverage.c (coverage_compute_profile_id): Handle externally visible
32810         symbols.
32811
32812 2014-04-14  Martin Jambor  <mjambor@suse.cz>
32813
32814         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
32815         DECL_DISREGARD_INLINE_LIMITS functions.
32816
32817 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
32818
32819         PR target/60827
32820         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
32821
32822 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
32823
32824         PR target/60827
32825         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
32826         optimize_insn_for_speed_p instead of
32827         optimize_function_for_speed_p.
32828
32829 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
32830
32831         * doc/invoke.texi (free): Document AArch64.
32832
32833 2014-04-14  Richard Biener  <rguenther@suse.de>
32834
32835         PR tree-optimization/60042
32836         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
32837         (insert_into_preds_of_block): Do not prevent PHI insertion
32838         for REFERENCE exprs here ...
32839         (eliminate_dom_walker::before_dom_children): ... but prevent
32840         their use here under similar conditions when applied to the
32841         IL after PRE optimizations.
32842
32843 2014-04-14  Richard Biener  <rguenther@suse.de>
32844
32845         * passes.def: Move early points-to after early SRA.
32846
32847 2014-04-14  Richard Biener  <rguenther@suse.de>
32848
32849         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
32850         check for which sign-changes we allow when forwarding
32851         a converted value into a switch.
32852
32853 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
32854
32855         * stor-layout.c (place_field): Finalize non-constant offset for the
32856         field, if any.
32857
32858 2014-04-14  Richard Biener  <rguenther@suse.de>
32859
32860         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
32861         as argument.
32862         (expand_switch_using_bit_tests_p): Likewise.
32863         (process_switch): Compute and pass on speed_p based on the
32864         switch stmt.
32865         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
32866         optimize_bb_for_speed_p.
32867
32868 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
32869
32870         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
32871         * function.h (struct function): Rename has_force_vect_loops into
32872         has_force_vectorize_loops.
32873         * lto-streamer-in.c (input_cfg): Adjust for renaming.
32874         (input_struct_function_base): Likewise.
32875         * lto-streamer-out.c (output_cfg): Likewise.
32876         (output_struct_function_base): Likewise.
32877         * omp-low.c (expand_omp_simd): Likewise.
32878         * tree-cfg.c (move_sese_region_to_fn): Likewise.
32879         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
32880         (version_loop_for_if_conversion): Likewise.
32881         (tree_if_conversion): Likewise.
32882         (main_tree_if_conversion): Likewise.
32883         (gate_tree_if_conversion): Likewise.
32884         * tree-inline.c (copy_loops): Likewise.
32885         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
32886         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
32887         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
32888         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
32889         * tree-vectorizer.c (vectorize_loops): Likewise.
32890         * tree-vectorizer.h (unlimited_cost_model): Likewise.
32891
32892 2014-04-14  Richard Biener  <rguenther@suse.de>
32893
32894         PR lto/60720
32895         * lto-streamer-out.c (wrap_refs): New function.
32896         (lto_output): Wrap symbol references in global initializes in
32897         type-preserving MEM_REFs.
32898
32899 2014-04-14  Christian Bruel  <christian.bruel@st.com>
32900
32901         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
32902
32903 2014-04-14  Christian Bruel  <christian.bruel@st.com>
32904
32905         * config/sh/sh.md (setmemqi): New expand pattern.
32906         * config/sh/sh.h (CLEAR_RATIO): Define.
32907         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
32908         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
32909
32910 2014-04-14  Richard Biener  <rguenther@suse.de>
32911
32912         PR middle-end/55022
32913         * fold-const.c (negate_expr_p): Don't negate directional rounding
32914         division.
32915         (fold_negate_expr): Likewise.
32916
32917 2014-04-14  Richard Biener  <rguenther@suse.de>
32918
32919         PR tree-optimization/59817
32920         PR tree-optimization/60453
32921         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
32922         recursion to catch all CHRECs in the scalar evolution and restrict
32923         the predicate for the remains appropriately.
32924
32925 2014-04-12  Catherine Moore  <clm@codesourcery.com>
32926
32927         * config/mips/constraints.md: Add new register constraint "kb".
32928         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
32929         (*movhi_internal): Likewise.
32930         (*movqi_internal): Likewise.
32931         * config/mips/mips.h (M16_STORE_REGS): New register class.
32932         (REG_CLASS_NAMES): Add M16_STORE_REGS.
32933         (REG_CLASS_CONTENTS): Likewise.
32934         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
32935
32936 2014-04-11  Tobias Burnus  <burnus@net-b.de>
32937
32938         PR c/60194
32939         * doc/invoke.texi (-Wformat-signedness): Document it.
32940         (Wformat=2): Mention that this enables -Wformat-signedness.
32941
32942 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
32943
32944         * common/config/epiphany/epiphany-common.c
32945         (epiphany_option_optimization_table): Enable section anchors by
32946         default at -O1 or higher.
32947         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
32948         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
32949         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
32950         carries no extra cost.
32951         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
32952         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
32953         * config/epiphany/predicates.md (memclob_operand): New predicate.
32954         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
32955         Use memclob_operand predicate and X constraint for operand 3.
32956
32957 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
32958
32959         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
32960         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
32961         its operands.
32962
32963 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
32964
32965         PR rtl-optimization/60651
32966         * mode-switching.c (optimize_mode_switching): Make sure to emit
32967         sets of a lower numbered entity before sets of a higher numbered
32968         entity to a mode of the same or lower priority.
32969         When creating a seginfo for a basic block that starts with a code
32970         label, move the insertion point past the code label.
32971         (new_seginfo): Document and enforce requirement that
32972         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
32973         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
32974         * doc/tm.texi: Regenerate.
32975
32976 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
32977
32978         PR target/60811
32979         * config/arc/arc.c (arc_save_restore): Fix assert typo.
32980
32981 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
32982
32983         * BASE-VER: Set to 4.10.0.
32984
32985 2014-04-11  Tobias Burnus  <burnus@net-b.de>
32986
32987         PR other/59055
32988         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
32989         * doc/gcc.texi (Service): Update description in the @menu
32990         * doc/invoke.texi (Option Summary): Remove misplaced and
32991         duplicated @menu.
32992
32993 2014-04-11  Steve Ellcey  <sellcey@mips.com>
32994             Jakub Jelinek  <jakub@redhat.com>
32995
32996         PR middle-end/60556
32997         * expr.c (convert_move): Use emit_store_flag_force instead of
32998         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
32999         argument to it.
33000
33001 2014-04-11  Richard Biener  <rguenther@suse.de>
33002
33003         PR middle-end/60797
33004         * varasm.c (assemble_alias): Avoid endless error reporting
33005         recursion by setting TREE_ASM_WRITTEN.
33006
33007 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33008
33009         * config/s390/s390.md: Add a splitter for NOT rtx.
33010
33011 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
33012
33013         PR rtl-optimization/60663
33014         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
33015
33016 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
33017             Jakub Jelinek  <jakub@redhat.com>
33018
33019         PR lto/60567
33020         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
33021         flag from decl_node to node.
33022
33023 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33024
33025         PR debug/60655
33026         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
33027         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
33028         ameliorating the cases where it can be.
33029
33030 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
33031
33032         Revert
33033         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
33034
33035         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
33036         (loadsync_<mode>): Change mode.
33037         (load_quadpti, store_quadpti): New.
33038         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
33039         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
33040         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
33041
33042 2014-04-09  Cong Hou  <congh@google.com>
33043
33044         PR testsuite/60773
33045         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
33046         documentation.
33047
33048 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33049
33050         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
33051         instead of vnor to exploit possible fusion opportunity in the
33052         future.
33053         (altivec_expand_vec_perm_const_le): Likewise.
33054
33055 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
33056
33057         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
33058         (loadsync_<mode>): Change mode.
33059         (load_quadpti, store_quadpti): New.
33060         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
33061         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
33062
33063 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
33064
33065         PR target/60763
33066         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
33067         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
33068         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
33069
33070 2014-04-08  Richard Biener  <rguenther@suse.de>
33071
33072         PR middle-end/60706
33073         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
33074         a 64bit widest int print double-int similar to on HWI64 hosts.
33075
33076 2014-04-08  Richard Biener  <rguenther@suse.de>
33077
33078         PR tree-optimization/60785
33079         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
33080         default defs properly.
33081
33082 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
33083
33084         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
33085         (Weffc++): Likewise.
33086
33087 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
33088
33089         * ipa-devirt.c (maybe_record_node): When node is not recorded,
33090         set completep to false rather than true.
33091
33092 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
33093
33094         PR target/60504
33095         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
33096         ARM_TARGET2_DWARF_FORMAT.
33097
33098 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
33099
33100         PR target/60609
33101         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
33102         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
33103         ADDR_DIFF_VEC.
33104
33105 2014-04-07  Richard Biener  <rguenther@suse.de>
33106
33107         PR tree-optimization/60766
33108         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
33109         (may_eliminate_iv): Convert cand_value_at result to desired type.
33110
33111 2014-04-07  Jason Merrill  <jason@redhat.com>
33112
33113         PR c++/60731
33114         * common.opt (-fno-gnu-unique): Add.
33115         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
33116
33117 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33118
33119         * haifa-sched.c: Fix outdated function reference and minor
33120         grammar errors in introductory comment.
33121
33122 2014-04-07  Richard Biener  <rguenther@suse.de>
33123
33124         PR middle-end/60750
33125         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
33126         for noreturn calls.
33127         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
33128
33129 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
33130
33131         PR debug/55794
33132         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
33133         size accounting for thunks.
33134         (pa_asm_output_mi_thunk): Use final_start_function() and
33135         final_end_function() to output function start and end directives.
33136
33137 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
33138
33139         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
33140         device specific ISA/ feature information. Remove short_sp and
33141         errata_skip ds.  Add avr_device_specific_features enum to have device
33142         specific info.
33143         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
33144         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
33145         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
33146         updated device specific info.
33147         * config/avr/avr-mcus.def: Merge device specific details to
33148         dev_attribute field.
33149         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
33150         errata_skip.
33151         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
33152         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
33153         assembler if RMW isa supported by current device.
33154         * config/avr/genmultilib.awk: Update as device info structure changed.
33155         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
33156
33157 2014-04-04  Cong Hou  <congh@google.com>
33158
33159         PR tree-optimization/60656
33160         * tree-vect-stmts.c (supportable_widening_operation):
33161         Fix a bug that elements in a vector with vect_used_by_reduction
33162         property are incorrectly reordered when the operation on it is not
33163         consistant with the one in reduction operation.
33164
33165 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
33166
33167         PR rtl-optimization/60155
33168         * gcse.c (record_set_data): New function.
33169         (single_set_gcse): New function.
33170         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
33171         (hoist_code): Likewise.
33172         (get_pressure_class_and_nregs): Likewise.
33173
33174 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
33175
33176         * explow.c (probe_stack_range): Emit a final optimization blockage.
33177
33178 2014-04-04  Anthony Green  <green@moxielogic.com>
33179
33180         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
33181         typos.
33182
33183 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
33184
33185         PR ipa/59626
33186         * lto-cgraph.c (input_overwrite_node): Check that partitioning
33187         flags are set only during streaming.
33188         * ipa.c (process_references, walk_polymorphic_call_targets,
33189         symtab_remove_unreachable_nodes): Drop bodies of always inline
33190         after early inlining.
33191         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
33192
33193 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
33194         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33195
33196         PR debug/60655
33197         * dwarf2out.c (const_ok_for_output_1): Reject expressions
33198         containing a NOT.
33199
33200 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33201
33202         PR bootstrap/60743
33203         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
33204         duration.
33205         (cortex_a53_fdivd): Likewise.
33206
33207 2014-04-04  Martin Jambor  <mjambor@suse.cz>
33208
33209         PR ipa/60640
33210         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
33211         Adjust all callers.
33212         * cgraph.c (clone_of_p): Also return true if thunks match.
33213         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
33214         cgraph_function_or_thunk_node and an obsolete comment.
33215         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
33216         file.
33217         (build_function_decl_skip_args): Likewise.
33218         (set_new_clone_decl_and_node_flags): New function.
33219         (duplicate_thunk_for_node): Likewise.
33220         (redirect_edge_duplicating_thunks): Likewise.
33221         (cgraph_clone_node): New parameter args_to_skip, pass it to
33222         redirect_edge_duplicating_thunks which is called instead of
33223         cgraph_redirect_edge_callee.
33224         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
33225         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
33226
33227 2014-04-04  Jeff Law  <law@redhat.com>
33228
33229         PR target/60657
33230         * config/arm/predicates.md (const_int_I_operand): New predicate.
33231         (const_int_M_operand): Similarly.
33232         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
33233         const_int_operand.
33234         (insv_t2, extv_reg, extzv_t2): Likewise.
33235         (load_multiple_with_writeback): Similarly for const_int_I_operand.
33236         (pop_multiple_with_writeback_and_return): Likewise.
33237         (vfp_pop_multiple_with_writeback): Likewise
33238
33239 2014-04-04  Richard Biener  <rguenther@suse.de>
33240
33241         PR ipa/60746
33242         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
33243         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
33244         non-GIMPLE_LABELs.
33245         * gimplify.h (gimple_add_tmp_var_fn): Declare.
33246         * gimplify.c (gimple_add_tmp_var_fn): New function.
33247         * gimple-expr.h (create_tmp_reg_fn): Declare.
33248         * gimple-expr.c (create_tmp_reg_fn): New function.
33249         * gimple-low.c (record_vars_into): Don't change cfun.
33250         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
33251         code generation without cfun.
33252
33253 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
33254
33255         PR bootstrap/60719
33256         * Makefile.in (install-driver): Fix shell scripting.
33257
33258 2014-04-03  Cong Hou  <congh@google.com>
33259
33260         PR tree-optimization/60505
33261         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
33262         threshold of number of iterations below which no vectorization
33263         will be done.
33264         * tree-vect-loop.c (new_loop_vec_info):
33265         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
33266         * tree-vect-loop.c (vect_analyze_loop_operations):
33267         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
33268         * tree-vect-loop.c (vect_transform_loop):
33269         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
33270         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
33271         of iterations of the loop and see if we should build the epilogue.
33272
33273 2014-04-03  Richard Biener  <rguenther@suse.de>
33274
33275         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
33276         (streamer_tree_cache_create): Adjust.
33277         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
33278         to allow optional nodes array.
33279         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
33280         (streamer_tree_cache_append): Likewise.
33281         (streamer_tree_cache_create): Create nodes array optionally
33282         as specified by parameter.
33283         * lto-streamer-out.c (create_output_block): Avoid maintaining
33284         the node array in the writer cache.
33285         (DFS_write_tree): Remove assertion.
33286         (produce_asm_for_decls): Free the out decl state hash table early.
33287         * lto-streamer-in.c (lto_data_in_create): Adjust for
33288         streamer_tree_cache_create prototype change.
33289
33290 2014-04-03  Richard Biener  <rguenther@suse.de>
33291
33292         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
33293         set TREE_CHAIN to NULL_TREE.
33294
33295 2014-04-03  Richard Biener  <rguenther@suse.de>
33296
33297         PR tree-optimization/60740
33298         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
33299         over all GIMPLE_COND operands.
33300
33301 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
33302
33303         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
33304         (Weffc++): Remove Scott's numbering, merge lists and reference
33305         Wnon-virtual-dtor.
33306
33307 2014-04-03  Nick Clifton  <nickc@redhat.com>
33308
33309         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
33310         properly.
33311
33312 2014-04-03  Martin Jambor  <mjambor@suse.cz>
33313
33314         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
33315         mention gcc_unreachable before failing.
33316         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
33317         removed symbols.
33318
33319 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
33320
33321         PR ipa/60659
33322         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
33323         inconsistent code and instead mark the context inconsistent.
33324         (possible_polymorphic_call_targets): For inconsistent contexts
33325         return empty complete list.
33326
33327 2014-04-02  Anthony Green  <green@moxielogic.com>
33328
33329         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
33330         (extendqisi2, extendhisi2): Define.
33331         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
33332         (WCHAR_TYPE): Change to unsigned int.
33333
33334 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33335
33336         PR tree-optimization/60733
33337         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
33338         insertion point for PHI candidates to be the end of the feeding
33339         block for the PHI argument.
33340
33341 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
33342
33343         PR rtl-optimization/60650
33344         * lra-constraints.c (process_alt_operands): Decrease reject for
33345         earlyclobber matching.
33346
33347 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33348
33349         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
33350
33351 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33352
33353         * config/spu/spu.c (pad_bb): Do not crash when the last
33354         insn is CODE_FOR_blockage.
33355
33356 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33357
33358         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
33359         lies outside the target mode.
33360
33361 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
33362
33363         PR target/60735
33364         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
33365         software floating point or no floating point registers, do not
33366         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
33367         in GPRs that occurs after we tested for GPRs that would never be
33368         true.
33369
33370         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
33371         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
33372         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
33373         specifically allow DDmode, since that does not use the SPE SIMD
33374         instructions.
33375
33376 2014-04-02  Richard Biener  <rguenther@suse.de>
33377
33378         PR middle-end/60729
33379         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
33380         MODE_INTs.  Properly use negv_optab.
33381         (expand_abs): Likewise.
33382
33383 2014-04-02  Richard Biener  <rguenther@suse.de>
33384
33385         PR bootstrap/60719
33386         * Makefile.in (install-driver): Guard extra installs with special
33387         names properly.
33388
33389 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
33390
33391         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
33392         Document vec_vgbbd.
33393
33394 2014-04-01  Richard Henderson  <rth@redhat.com>
33395
33396         PR target/60704
33397         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
33398         alternative enabled before register allocation.
33399
33400 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
33401
33402         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
33403         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
33404         typo.
33405         (nios2_large_got_address): Remove unneeded 'sym' parameter.
33406         (nios2_got_address): Update nios2_large_got_address call site.
33407         (nios2_delegitimize_address): New function.
33408         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
33409         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
33410         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
33411
33412 2014-04-01  Martin Husemann  <martin@duskware.de>
33413
33414         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
33415         for -mabi=32.
33416
33417 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
33418
33419         PR rtl-optimization/60604
33420         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
33421         check from register_operand.
33422         (register_operand): Redefine in terms of general_operand.
33423         (nonmemory_operand): Use register_operand for the non-constant cases.
33424
33425 2014-04-01  Richard Biener  <rguenther@suse.de>
33426
33427         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
33428
33429 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33430
33431         * doc/invoke.texi (mapp-regs): Clarify.
33432
33433 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
33434
33435         * config/i386/avx512fintrin.h (__v32hi): Define type.
33436         (__v64qi): Likewise.
33437         (_mm512_set1_epi8): Define.
33438         (_mm512_set1_epi16): Define.
33439         (_mm512_set4_epi32): Define.
33440         (_mm512_set4_epi64): Define.
33441         (_mm512_set4_pd): Define.
33442         (_mm512_set4_ps): Define.
33443         (_mm512_setr4_epi64): Define.
33444         (_mm512_setr4_epi32): Define.
33445         (_mm512_setr4_pd): Define.
33446         (_mm512_setr4_ps): Define.
33447         (_mm512_setzero_epi32): Define.
33448
33449 2014-03-31  Martin Jambor  <mjambor@suse.cz>
33450
33451         PR middle-end/60647
33452         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
33453         callsite_arguments_match_p.  Updated all callers.  Also check types of
33454         corresponding formal parameters and actual arguments.
33455         (not_all_callers_have_enough_arguments_p) Renamed to
33456         some_callers_have_mismatched_arguments_p.
33457
33458 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
33459
33460         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
33461
33462 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
33463
33464         PR target/60034
33465         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
33466         section anchor.
33467
33468 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
33469
33470         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
33471         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
33472         Split out
33473         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
33474         Use FMAMODE_NOVF512 mode iterator.
33475         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
33476         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
33477         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
33478         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
33479         Split out
33480         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
33481         Use VF_128_256 mode iterator.
33482         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
33483         Ditto.
33484
33485 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
33486
33487         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
33488         static chain if needed.
33489
33490 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
33491
33492         PR target/60697
33493         * lra-constraints.c (index_part_to_reg): New.
33494         (process_address): Use it.
33495
33496 2014-03-27  Jeff Law  <law@redhat.com>
33497             Jakub Jelinek  <jakub@redhat.com>
33498
33499         PR target/60648
33500         * expr.c (do_tablejump): Use simplify_gen_binary rather than
33501         gen_rtx_{PLUS,MULT} to build up the address expression.
33502
33503         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
33504         creating non-canonical RTL.
33505
33506 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
33507
33508         PR ipa/60243
33509         * ipa-inline.c (want_inline_small_function_p): Short circuit large
33510         functions; reorganize to make cheap checks first.
33511         (inline_small_functions): Do not estimate growth when dumping;
33512         it is expensive.
33513         * ipa-inline.h (inline_summary): Add min_size.
33514         (growth_likely_positive): New function.
33515         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
33516         (set_cond_stmt_execution_predicate): Cleanup.
33517         (estimate_edge_size_and_time): Compute min_size.
33518         (estimate_calls_size_and_time): Likewise.
33519         (estimate_node_size_and_time): Likewise.
33520         (inline_update_overall_summary): Update min_size.
33521         (do_estimate_edge_time): Likewise.
33522         (do_estimate_edge_size): Update.
33523         (do_estimate_edge_hints): Update.
33524         (growth_likely_positive): New function.
33525
33526 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
33527
33528         PR target/60693
33529         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
33530         also if addr has VOIDmode.
33531
33532 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33533
33534         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
33535         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
33536         Declare extern.
33537         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
33538         instructions as well as AdvancedSIMD loads.
33539
33540 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33541
33542         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
33543         Use crypto_aese type.
33544         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
33545         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
33546         crypto_aese, crypto_aesmc.  Move to types.md.
33547         * config/arm/types.md (crypto_aes): Split into crypto_aese,
33548         crypto_aesmc.
33549         * config/arm/iterators.md (crypto_type): Likewise.
33550
33551 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
33552
33553         * cgraph.c: Include expr.h and tree-dfa.h.
33554         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
33555         remove LHS.
33556
33557 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
33558
33559         PR target/60675
33560         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
33561         regs from checking multi-reg pseudos.
33562
33563 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33564
33565         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
33566
33567 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33568
33569         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
33570         if it would clobber the stack pointer, even temporarily.
33571
33572 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
33573
33574         * mode-switching.c: Make small adjustments to the top comment.
33575
33576 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
33577
33578         * config/rs6000/constraints.md (wD constraint): New constraint to
33579         match the constant integer to get the top DImode/DFmode out of a
33580         vector in a VSX register.
33581
33582         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
33583         match the constant integer to get the top DImode/DFmode out of a
33584         vector in a VSX register.
33585
33586         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
33587         for ISA 2.07.
33588
33589         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
33590         vbpermq builtins.
33591
33592         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
33593         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
33594
33595         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
33596         Optimize vec_extract of 64-bit values, where the value being
33597         extracted is in the top word, where we can use scalar
33598         instructions.  Add direct move and store support.  Combine the big
33599         endian/little endian vector select load support into a single insn.
33600         (vsx_extract_<mode>_internal1): Likewise.
33601         (vsx_extract_<mode>_internal2): Likewise.
33602         (vsx_extract_<mode>_load): Likewise.
33603         (vsx_extract_<mode>_store): Likewise.
33604         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
33605         combined into vsx_extract_<mode>_load.
33606         (vsx_extract_<mode>_one_le): Likewise.
33607
33608         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
33609         define the top 64-bit vector element.
33610
33611         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
33612         constraint.
33613
33614         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
33615         Document vec_vbpermq builtin.
33616
33617         PR target/60672
33618         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
33619         enable use of xxsldwi and xxpermdi builtin functions.
33620         (vec_xxpermdi): Likewise.
33621
33622         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
33623         Document use of vec_xxsldwi and vec_xxpermdi builtins.
33624
33625 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
33626
33627         PR rtl-optimization/60650
33628         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
33629         first_p.  Use it.
33630         (find_spills_for): New.
33631         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
33632         Spill all pseudos on the second iteration.
33633
33634 2014-03-27  Marek Polacek  <polacek@redhat.com>
33635
33636         PR c/50347
33637         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
33638         types.
33639
33640 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33641
33642         * config/s390/s390.c (s390_can_use_return_insn): Check for
33643         call-saved FPRs on 31 bit.
33644
33645 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
33646
33647         PR middle-end/60682
33648         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
33649         if they need regimplification, just drop them instead of
33650         calling gimple_regimplify_operands on them.
33651
33652 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33653
33654         PR target/60580
33655         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
33656         (aarch64_frame_pointer_required): Adjust logic.
33657         (aarch64_can_eliminate): Adjust logic.
33658         (aarch64_override_options_after_change): Adjust logic.
33659
33660 2014-03-27  Dehao Chen  <dehao@google.com>
33661
33662         * ipa-inline.c (early_inliner): Update node's inline info.
33663
33664 2014-03-26  Dehao Chen  <dehao@google.com>
33665
33666         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
33667         compiler inserted conditional jumps for NAN float check.
33668
33669 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
33670
33671         * ubsan.h (ubsan_create_data): Change second argument's type
33672         to const location_t *.
33673         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
33674         _("<unknown>").
33675         (ubsan_create_data): Change second argument to const location_t *PLOC.
33676         Create Loc field whenever PLOC is non-NULL.
33677         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
33678         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
33679         callers.
33680
33681         PR other/59545
33682         * real.c (real_to_integer2): Change type of low to UHWI.
33683
33684 2014-03-26  Tobias Burnus  <burnus@net-b.de>
33685
33686         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
33687         (CILK_SELF_SPECS): New define.
33688         (driver_self_specs): Use it.
33689
33690 2014-03-26  Richard Biener  <rguenther@suse.de>
33691
33692         * tree-pretty-print.c (percent_K_format): Implement special
33693         case for LTO and its stripped down BLOCK tree.
33694
33695 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
33696
33697         PR sanitizer/60636
33698         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
33699
33700         * tree-vrp.c (simplify_internal_call_using_ranges): If only
33701         one range is range_int_cst_p, but not both, at least optimize
33702         addition/subtraction of 0 and multiplication by 0 or 1.
33703         * gimple-fold.c (gimple_fold_call): Fold
33704         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
33705         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
33706         INTEGER_CSTs, try to fold at least x * 0 and y - y.
33707
33708 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
33709
33710         PR rtl-optimization/60452
33711         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
33712         <case REG>: Return 1 for invalid offsets from the frame pointer.
33713
33714 2014-03-26  Marek Polacek  <polacek@redhat.com>
33715
33716         PR c/37428
33717         * doc/extend.texi (C Extensions): Mention variable-length arrays in
33718         a structure/union.
33719
33720 2014-03-26  Marek Polacek  <polacek@redhat.com>
33721
33722         PR c/39525
33723         * doc/extend.texi (Designated Inits): Describe what happens to omitted
33724         field members.
33725
33726 2014-03-26  Marek Polacek  <polacek@redhat.com>
33727
33728         PR other/59545
33729         * ira-color.c (update_conflict_hard_regno_costs): Perform the
33730         multiplication in unsigned type.
33731
33732 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
33733
33734         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
33735
33736 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
33737
33738         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
33739
33740 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
33741
33742         PR ipa/60315
33743         * cif-code.def (UNREACHABLE) New code.
33744         * ipa-inline.c (inline_small_functions): Skip edges to
33745         __builtlin_unreachable.
33746         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
33747         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
33748         predicate to __bulitin_unreachable.
33749         (set_cond_stmt_execution_predicate): Fix issue when
33750         invert_tree_comparison returns ERROR_MARK.
33751         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
33752         propagate to inline clones.
33753         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
33754         to unreachable.
33755         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
33756         * cgraphclones.c (cgraph_clone_node): If call destination is already
33757         ureachable, do not redirect it back.
33758         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
33759         unreachable.
33760
33761 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
33762
33763         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
33764         Do not modify inline clones.
33765
33766 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
33767
33768         * config/i386/i386.md (general_sext_operand): New mode attr.
33769         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
33770         don't generate (sign_extend (const_int)).
33771         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
33772         operands[2].  Use We constraint instead of <i> and
33773         <general_sext_operand> predicate instead of <general_operand>.
33774         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
33775         * config/i386/constraints.md (We): New constraint.
33776         * config/i386/predicates.md (x86_64_sext_operand,
33777         sext_operand): New predicates.
33778
33779 2014-03-25  Martin Jambor  <mjambor@suse.cz>
33780
33781         PR ipa/60600
33782         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
33783         inconsistent devirtualizations to __builtin_unreachable.
33784
33785 2014-03-25  Marek Polacek  <polacek@redhat.com>
33786
33787         PR c/35449
33788         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
33789
33790 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
33791
33792         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
33793         order of elements for big-endian.
33794
33795 2014-03-25  Richard Biener  <rguenther@suse.de>
33796
33797         PR middle-end/60635
33798         * gimplify-me.c (gimple_regimplify_operands): Update the
33799         re-gimplifed stmt.
33800
33801 2014-03-25  Martin Jambor  <mjambor@suse.cz>
33802
33803         PR ipa/59176
33804         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
33805         (lto_output_varpool_node): Likewise.
33806         (input_overwrite_node): Likewise.
33807         (input_varpool_node): Likewise.
33808
33809 2014-03-25  Richard Biener  <rguenther@suse.de>
33810
33811         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
33812         (run_gcc): Likewise.
33813
33814 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
33815
33816         * combine.c (simplify_compare_const): Add MODE argument.
33817         Handle mode_width 0 as very large mode_width.
33818         (try_combine, simplify_comparison): Adjust callers.
33819
33820         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
33821         type to avoid signed integer overflow.
33822         * explow.c (plus_constant): Likewise.
33823
33824 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33825
33826         * doc/generic.texi: Correct typos.
33827
33828 2014-03-24  Tobias Burnus  <burnus@net-b.de>
33829
33830         * doc/invoke.texi (-flto): Expand section about
33831         using static libraries with LTO.
33832
33833 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33834
33835         PR rtl-optimization/60501
33836         * optabs.def (addptr3_optab): New optab.
33837         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
33838         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
33839         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
33840
33841         * lra.c (emit_add3_insn): Use the addptr pattern if available.
33842
33843         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
33844
33845 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
33846
33847         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
33848         _mm512_set1_pd.
33849
33850         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
33851         (_mm256_undefined_ps): Define.
33852         (_mm256_undefined_pd): Define.
33853         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
33854         (_mm_undefined_pd): Define.
33855         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
33856         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
33857         (_mm512_undefined_ps): Define.
33858         (_mm512_undefined_pd): Define.
33859         Use _mm*_undefined_*.
33860         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
33861
33862 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
33863
33864         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
33865         (lshr_simd): DI mode added.
33866         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
33867         (aarch64_ushr_simddi): Likewise.
33868         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
33869         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
33870         (vshrd_n_u64): Likewise.
33871
33872 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33873
33874         * Makefile.in (s-macro_list): Depend on cc1.
33875
33876 2014-03-23  Teresa Johnson  <tejohnson@google.com>
33877
33878         * ipa-utils.c (ipa_print_order): Use specified dump file.
33879
33880 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
33881
33882         PR rtl-optimization/60601
33883         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
33884
33885         * gcc.c (eval_spec_function): Initialize save_growing_value.
33886
33887 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
33888
33889         PR sanitizer/60613
33890         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
33891         code == MINUS_EXPR, never swap op0 with op1.
33892
33893         * toplev.c (init_local_tick): Avoid signed integer multiplication
33894         overflow.
33895         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
33896         shift by first operand's bitsize.
33897
33898 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
33899
33900         PR target/60610
33901         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
33902         redefine to 1 or 0.
33903         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
33904         TARGET_ISA_64BIT_P(x).
33905
33906 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33907
33908         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
33909         pattern for vector nor instead of subtract from splat(-1).
33910         (altivec_expand_vec_perm_const_le): Likewise.
33911
33912 2014-03-21  Richard Henderson  <rth@twiddle.net>
33913
33914         PR target/60598
33915         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
33916         related insns after epilogue_completed.
33917
33918 2014-03-21  Martin Jambor  <mjambor@suse.cz>
33919
33920         PR ipa/59176
33921         * cgraph.h (symtab_node): New flag body_removed.
33922         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
33923         when removing bodies.
33924         * symtab.c (dump_symtab_base): Dump body_removed flag.
33925         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
33926         had their bodies removed.
33927
33928 2014-03-21  Martin Jambor  <mjambor@suse.cz>
33929
33930         PR ipa/60419
33931         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
33932         in the border.
33933
33934 2014-03-21  Richard Biener  <rguenther@suse.de>
33935
33936         PR tree-optimization/60577
33937         * tree-core.h (struct tree_base): Document nothrow_flag use
33938         in DECL_NONALIASED.
33939         * tree.h (DECL_NONALIASED): New.
33940         (may_be_aliased): Adjust.
33941         * coverage.c (build_var): Set DECL_NONALIASED.
33942
33943 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
33944
33945         * expr.c (expand_expr_real_1): Remove outdated comment.
33946
33947 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
33948
33949         PR middle-end/60597
33950         * ira.c (adjust_cleared_regs): Call copy_rtx on
33951         *reg_equiv[REGNO (loc)].src_p before passing it to
33952         simplify_replace_fn_rtx.
33953
33954         PR target/60568
33955         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
33956         into CONST, put pic register as first operand of PLUS.  Use
33957         gen_const_mem for both 32-bit and 64-bit PIC got loads.
33958
33959 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33960
33961         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
33962
33963 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
33964
33965         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
33966         around for store forwarding issue in the FPU on the UT699.
33967         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
33968         loads and operations if -mfix-ut699 is specified.
33969         (divtf3_hq): Tweak attribute.
33970         (sqrttf2_hq): Likewise.
33971
33972 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
33973
33974         * calls.c (store_one_arg): Remove incorrect const qualification on the
33975         type of the temporary.
33976         * cfgexpand.c (expand_return): Likewise.
33977         * expr.c (expand_constructor): Likewise.
33978         (expand_expr_real_1): Likewise.
33979
33980 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
33981
33982         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
33983         of parts.
33984
33985 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
33986
33987         PR target/60039
33988         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
33989
33990 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
33991
33992         * config/arm/aarch-common-protos.h
33993         (alu_cost_table): Fix spelling of "extend".
33994         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
33995
33996 2014-03-19  Richard Biener  <rguenther@suse.de>
33997
33998         PR middle-end/60553
33999         * tree-core.h (tree_type_common): Re-order pointer members
34000         to reduce recursion depth during GC walks.
34001
34002 2014-03-19  Marek Polacek  <polacek@redhat.com>
34003
34004         PR sanitizer/60569
34005         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
34006         before accessing it.
34007
34008 2014-03-19  Richard Biener  <rguenther@suse.de>
34009
34010         PR lto/59543
34011         * lto-streamer-in.c (input_function): In WPA stage do not drop
34012         debug stmts.
34013
34014 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
34015
34016         PR tree-optimization/60559
34017         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
34018         with build_zero_cst assignment.
34019
34020 2014-03-18  Kai Tietz  <ktietz@redhat.com>
34021
34022         PR rtl-optimization/56356
34023         * sdbout.c (sdbout_parms): Verify that parms'
34024         incoming argument is valid.
34025         (sdbout_reg_parms): Likewise.
34026
34027 2014-03-18  Richard Henderson  <rth@redhat.com>
34028
34029         PR target/60562
34030         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
34031         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
34032         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
34033
34034 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
34035
34036         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
34037         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
34038         Italicize plugin event names in description.  Explain that
34039         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
34040         Remind that no GCC functions should be called after PLUGIN_FINISH.
34041         Explain what pragmas with expansion are.
34042
34043 2014-03-18  Martin Liska  <mliska@suse.cz>
34044
34045         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
34046         gimple call statement is update.
34047         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
34048         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
34049
34050 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
34051
34052         PR sanitizer/60557
34053         * ubsan.c (ubsan_instrument_unreachable): Call
34054         initialize_sanitizer_builtins.
34055         (ubsan_pass): Likewise.
34056
34057         PR sanitizer/60535
34058         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
34059         varpool_finalize_decl instead of rest_of_decl_compilation.
34060
34061 2014-03-18  Richard Biener  <rguenther@suse.de>
34062
34063         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
34064         by using bitmap_and_compl instead of bitmap_and_compl_into.
34065         (df_rd_transfer_function): Likewise.
34066
34067 2014-03-18  Richard Biener  <rguenther@suse.de>
34068
34069         * doc/lto.texi (fresolution): Fix typo.
34070
34071 2014-03-18  Richard Biener  <rguenther@suse.de>
34072
34073         * doc/invoke.texi (flto): Update for changes in 4.9.
34074
34075 2014-03-18  Richard Biener  <rguenther@suse.de>
34076
34077         * doc/loop.texi: Remove section on the removed lambda framework.
34078         Update loop docs with recent changes in preserving loop structure.
34079
34080 2014-03-18  Richard Biener  <rguenther@suse.de>
34081
34082         * doc/lto.texi (-fresolution): Document.
34083
34084 2014-03-18  Richard Biener  <rguenther@suse.de>
34085
34086         * doc/contrib.texi: Adjust my name.
34087
34088 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
34089
34090         PR ipa/58721
34091         * internal-fn.c: Include diagnostic-core.h.
34092         (expand_BUILTIN_EXPECT): New function.
34093         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
34094         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
34095         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
34096         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
34097         IFN_BUILTIN_EXPECT.
34098         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
34099         Revert 3 argument __builtin_expect code.
34100         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
34101         * gimple-fold.c (gimple_fold_call): Likewise.
34102         * tree.h (fold_builtin_expect): New prototype.
34103         * builtins.c (build_builtin_expect_predicate): Add predictor
34104         argument, if non-NULL, create 3 argument __builtin_expect.
34105         (fold_builtin_expect): No longer static.  Add ARG2 argument,
34106         pass it through to build_builtin_expect_predicate.
34107         (fold_builtin_2): Adjust caller.
34108         (fold_builtin_3): Handle BUILT_IN_EXPECT.
34109         * internal-fn.def (BUILTIN_EXPECT): New.
34110
34111 2014-03-18  Tobias Burnus  <burnus@net-b.de>
34112
34113         PR ipa/58721
34114         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
34115         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
34116         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
34117
34118 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
34119
34120         PR ipa/58721
34121         * predict.c (combine_predictions_for_bb): Fix up formatting.
34122         (expr_expected_value_1, expr_expected_value): Add predictor argument,
34123         fill what it points to if non-NULL.
34124         (tree_predict_by_opcode): Adjust caller, use the predictor.
34125         * predict.def (PRED_COMPARE_AND_SWAP): Add.
34126
34127 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
34128
34129         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
34130         proper constant for the store mode.
34131
34132 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
34133
34134         * symtab.c (change_decl_assembler_name): Fix transparent alias
34135         chain construction.
34136
34137 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
34138
34139         * config/aarch64/aarch64.c: Correct the comments about the
34140         aarch64 stack layout.
34141
34142 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
34143
34144         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
34145         check for GF_OMP_FOR_KIND_FOR.
34146
34147 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
34148
34149         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
34150         ymm and zmm register names.
34151
34152 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
34153
34154         PR target/60516
34155         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
34156         note creation for the 2010-08-31 changes.
34157
34158 2014-03-17  Marek Polacek  <polacek@redhat.com>
34159
34160         PR middle-end/60534
34161         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
34162         as -fno-tree-loop-vectorize.
34163         (expand_omp_simd): Likewise.
34164
34165 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
34166
34167         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
34168         (eligible_for_call_delay): New prototype.
34169         * config/sparc/sparc.c (tls_call_delay): Rename into...
34170         (eligible_for_call_delay): ...this.  Return false if the instruction
34171         cannot be put in the delay slot of a branch.
34172         (eligible_for_restore_insn): Simplify.
34173         (eligible_for_return_delay): Return false if the instruction cannot be
34174         put in the delay slot of a branch and simplify.
34175         (eligible_for_sibcall_delay): Return false if the instruction cannot be
34176         put in the delay slot of a branch.
34177         * config/sparc/sparc.md (fix_ut699): New attribute.
34178         (tls_call_delay): Delete.
34179         (in_call_delay): Reimplement.
34180         (eligible_for_sibcall_delay): Rename into...
34181         (in_sibcall_delay): ...this.
34182         (eligible_for_return_delay): Rename into...
34183         (in_return_delay): ...this.
34184         (in_branch_delay): Reimplement.
34185         (in_uncond_branch_delay): Delete.
34186         (in_annul_branch_delay): Delete.
34187
34188 2014-03-14  Richard Henderson  <rth@redhat.com>
34189
34190         PR target/60525
34191         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
34192         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
34193         (*floathi<X87MODEF>2_i387_with_temp): Remove.
34194         (floathi splitters): Remove.
34195         (float<SWI48x>xf2): New pattern.
34196         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
34197         code that tried to handle DImode for 32-bit, but which was excluded
34198         by the pattern's condition.  Drop allocation of stack temporary.
34199         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
34200         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
34201         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
34202         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
34203         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
34204         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
34205         (*float<SWI48><MODEF>2_sse_interunit): Remove.
34206         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
34207         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
34208         (*float<SWI48x><X87MODEF>2_i387): Remove.
34209         (all float _with_temp splitters): Remove.
34210         (*float<SWI48x><MODEF>2_i387): New pattern.
34211         (*float<SWI48><MODEF>2_sse): New pattern.
34212         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
34213         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
34214
34215 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
34216             Marek Polacek  <polacek@redhat.com>
34217
34218         PR middle-end/60484
34219         * common.opt (dump_base_name_prefixed): New Variable.
34220         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
34221         if x_dump_base_name_prefixed is already set, set it at the end.
34222
34223 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
34224
34225         PR rtl-optimization/60508
34226         * lra-constraints.c (get_reload_reg): Add new parameter
34227         in_subreg_p.
34228         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
34229         Pass the new parameter values.
34230
34231 2014-03-14  Richard Biener  <rguenther@suse.de>
34232
34233         * common.opt: Revert unintented changes from r205065.
34234         * opts.c: Likewise.
34235
34236 2014-03-14  Richard Biener  <rguenther@suse.de>
34237
34238         PR middle-end/60518
34239         * cfghooks.c (split_block): Properly adjust all loops the
34240         block was a latch of.
34241
34242 2014-03-14  Martin Jambor  <mjambor@suse.cz>
34243
34244         PR lto/60461
34245         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
34246         and simplify it.
34247
34248 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
34249
34250         PR target/59396
34251         * config/avr/avr.c (avr_set_current_function): Pass function name
34252         through default_strip_name_encoding before sanity checking instead
34253         of skipping the first char of the assembler name.
34254
34255 2014-03-13  Richard Henderson  <rth@redhat.com>
34256
34257         PR debug/60438
34258         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
34259         (ix86_force_to_memory, ix86_free_from_memory): Remove.
34260         * config/i386/i386-protos.h: Likewise.
34261         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
34262         in the expander instead of a splitter.
34263         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
34264         any possibility of requiring a memory.
34265         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
34266         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
34267         (fp branch splitters): Update for ix86_split_fp_branch.
34268         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
34269         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
34270         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
34271         (*fop_<MODEF>_2_i387): Remove f/r alternative.
34272         (*fop_<MODEF>_3_i387): Likewise.
34273         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
34274         (splitters for the fop_* register patterns): Remove.
34275         (fscalexf4_i387): Rename from *fscalexf4_i387.
34276         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
34277
34278 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
34279
34280         PR tree-optimization/59779
34281         * tree-dfa.c (get_ref_base_and_extent): Use double_int
34282         type for bitsize and maxsize instead of HOST_WIDE_INT.
34283
34284 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
34285
34286         PR rtl-optimization/57320
34287         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
34288         the CFG after thread_prologue_and_epilogue_insns.
34289
34290 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
34291
34292         PR rtl-optimization/57189
34293         * lra-constraints.c (process_alt_operands): Disfavor spilling
34294         vector pseudos.
34295
34296 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
34297
34298         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
34299
34300 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
34301
34302         PR tree-optimization/59025
34303         PR middle-end/60418
34304         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
34305         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
34306
34307 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
34308
34309         PR target/60486
34310         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
34311         calls of avr_out_plus_1.
34312
34313 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
34314
34315         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
34316         BB's single pred and update the father loop's latch info later.
34317
34318 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
34319
34320         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
34321         (VEC_M): Likewise.
34322         (VEC_N): Likewise.
34323         (VEC_R): Likewise.
34324         (VEC_base): Likewise.
34325         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
34326         registers, we need to swap double words in little endian mode.
34327
34328         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
34329         to be a container mode for 128-bit integer operations added in ISA
34330         2.07.  Unlike TImode and PTImode, the preferred register set is
34331         the Altivec/VMX registers for the 128-bit operations.
34332
34333         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
34334         declarations.
34335         (rs6000_split_128bit_ok_p): Likewise.
34336
34337         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
34338         macros for creating ISA 2.07 normal and overloaded builtin
34339         functions with 3 arguments.
34340         (BU_P8V_OVERLOAD_3): Likewise.
34341         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
34342         for use as overloaded functions.
34343         (VPERM_1TI_UNS): Likewise.
34344         (VSEL_1TI): Likewise.
34345         (VSEL_1TI_UNS): Likewise.
34346         (ST_INTERNAL_1ti): Likewise.
34347         (LD_INTERNAL_1ti): Likewise.
34348         (XXSEL_1TI): Likewise.
34349         (XXSEL_1TI_UNS): Likewise.
34350         (VPERM_1TI): Likewise.
34351         (VPERM_1TI_UNS): Likewise.
34352         (XXPERMDI_1TI): Likewise.
34353         (SET_1TI): Likewise.
34354         (LXVD2X_V1TI): Likewise.
34355         (STXVD2X_V1TI): Likewise.
34356         (VEC_INIT_V1TI): Likewise.
34357         (VEC_SET_V1TI): Likewise.
34358         (VEC_EXT_V1TI): Likewise.
34359         (EQV_V1TI): Likewise.
34360         (NAND_V1TI): Likewise.
34361         (ORC_V1TI): Likewise.
34362         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
34363         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
34364         overloaded builtin.
34365         (VADDUQM): Likewise.
34366         (VSUBCUQ): Likewise.
34367         (VADDEUQM): Likewise.
34368         (VADDECUQ): Likewise.
34369         (VSUBEUQM): Likewise.
34370         (VSUBECUQ): Likewise.
34371
34372         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
34373         __int128_t and __uint128_t types.
34374         (__uint128_type): Likewise.
34375         (altivec_categorize_keyword): Add support for vector __int128_t,
34376         vector __uint128_t, vector __int128, and vector unsigned __int128
34377         as a container type for TImode operations that need to be done in
34378         VSX/Altivec registers.
34379         (rs6000_macro_to_expand): Likewise.
34380         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
34381         to support 128-bit integer instructions vaddcuq, vadduqm,
34382         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
34383         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
34384
34385         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
34386         for V1TImode, and set up preferences to use VSX/Altivec registers.
34387         Setup VSX reload handlers.
34388         (rs6000_debug_reg_global): Likewise.
34389         (rs6000_init_hard_regno_mode_ok): Likewise.
34390         (rs6000_preferred_simd_mode): Likewise.
34391         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
34392         (easy_altivec_constant): Likewise.
34393         (output_vec_const_move): Likewise.
34394         (rs6000_expand_vector_set): Convert V1TImode set and extract to
34395         simple move.
34396         (rs6000_expand_vector_extract): Likewise.
34397         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
34398         addressing.
34399         (rs6000_const_vec): Add support for V1TImode.
34400         (rs6000_emit_le_vsx_load): Swap double words when loading or
34401         storing TImode/V1TImode.
34402         (rs6000_emit_le_vsx_store): Likewise.
34403         (rs6000_emit_le_vsx_move): Likewise.
34404         (rs6000_emit_move): Add support for V1TImode.
34405         (altivec_expand_ld_builtin): Likewise.
34406         (altivec_expand_st_builtin): Likewise.
34407         (altivec_expand_vec_init_builtin): Likewise.
34408         (altivec_expand_builtin): Likewise.
34409         (rs6000_init_builtins): Add support for V1TImode type.  Add
34410         support for ISA 2.07 128-bit integer builtins.  Define type names
34411         for the VSX/Altivec vector types.
34412         (altivec_init_builtins): Add support for overloaded vector
34413         functions with V1TImode type.
34414         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
34415         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
34416         external function.
34417         (rs6000_split_128bit_ok_p): Likewise.
34418         (rs6000_handle_altivec_attribute): Create V1TImode from vector
34419         __int128_t and vector __uint128_t.
34420
34421         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
34422         and mode attributes.
34423         (VSX_M): Likewise.
34424         (VSX_M2): Likewise.
34425         (VSm): Likewise.
34426         (VSs): Likewise.
34427         (VSr): Likewise.
34428         (VSv): Likewise.
34429         (VS_scalar): Likewise.
34430         (VS_double): Likewise.
34431         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
34432
34433         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
34434         we support the ISA 2.07 128-bit integer arithmetic instructions.
34435         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
34436         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
34437         and TImode types for use with the builtin functions.
34438         (V1TI_type_node): Likewise.
34439         (unsigned_V1TI_type_node): Likewise.
34440         (intTI_type_internal_node): Likewise.
34441         (uintTI_type_internal_node): Likewise.
34442
34443         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
34444         128-bit builtin functions.
34445         (UNSPEC_VADDEUQM): Likewise.
34446         (UNSPEC_VADDECUQ): Likewise.
34447         (UNSPEC_VSUBCUQ): Likewise.
34448         (UNSPEC_VSUBEUQM): Likewise.
34449         (UNSPEC_VSUBECUQ): Likewise.
34450         (VM): Add V1TImode to vector mode iterators.
34451         (VM2): Likewise.
34452         (VI_unit): Likewise.
34453         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
34454         (altivec_vaddcuq): Likewise.
34455         (altivec_vsubuqm): Likewise.
34456         (altivec_vsubcuq): Likewise.
34457         (altivec_vaddeuqm): Likewise.
34458         (altivec_vaddecuq): Likewise.
34459         (altivec_vsubeuqm): Likewise.
34460         (altivec_vsubecuq): Likewise.
34461
34462         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
34463         mode iterators.
34464         (BOOL_128): Likewise.
34465         (BOOL_REGS_OUTPUT): Likewise.
34466         (BOOL_REGS_OP1): Likewise.
34467         (BOOL_REGS_OP2): Likewise.
34468         (BOOL_REGS_UNARY): Likewise.
34469         (BOOL_REGS_AND_CR0): Likewise.
34470
34471         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
34472         128-bit integer builtin support.
34473         (vec_vadduqm): Likewise.
34474         (vec_vaddecuq): Likewise.
34475         (vec_vaddeuqm): Likewise.
34476         (vec_vsubecuq): Likewise.
34477         (vec_vsubeuqm): Likewise.
34478         (vec_vsubcuq): Likewise.
34479         (vec_vsubuqm): Likewise.
34480
34481         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
34482         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
34483         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
34484         128-bit integer add/subtract to ISA 2.07.
34485
34486 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
34487
34488         * config/arc/arc.c (arc_predicate_delay_insns):
34489         Fix third argument passed to conditionalize_nonjump.
34490
34491 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
34492
34493         * config/aarch64/aarch64-builtins.c
34494         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
34495         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
34496         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
34497         instead of __builtin_lfloor.
34498         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
34499
34500 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
34501
34502         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
34503         (tree_ssa_ifcombine_bb_1): New function.
34504         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
34505         is an empty forwarder block to then_bb or vice versa and then_bb
34506         and else_bb are effectively swapped.
34507
34508 2014-03-12  Christian Bruel  <christian.bruel@st.com>
34509
34510         PR target/60264
34511         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
34512         REG_CFA_DEF_CFA note.
34513         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
34514         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
34515
34516 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34517
34518         PR tree-optimization/60454
34519         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
34520
34521 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34522
34523         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
34524         Do not define target_cpu_default2 to generic.
34525         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
34526         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
34527         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
34528
34529 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
34530             Marc Glisse  <marc.glisse@inria.fr>
34531
34532         PR tree-optimization/60502
34533         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
34534         instead of build_low_bits_mask.
34535
34536 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
34537
34538         PR middle-end/60482
34539         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
34540         if there are multiple uses, but op doesn't live on E edge.
34541         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
34542         clobber stmts before __builtin_unreachable.
34543
34544 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
34545
34546         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
34547         hard_frame_pointer_rtx.
34548         * cse.c (cse_insn): Remove volatile check.
34549         * cselib.c (cselib_process_insn): Likewise.
34550         * dse.c (scan_insn): Likewise.
34551
34552 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
34553
34554         * config/arc/arc.c (conditionalize_nonjump): New function,
34555         broken out of ...
34556         (arc_ifcvt): ... this.
34557         (arc_predicate_delay_insns): Use it.
34558
34559 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
34560
34561         * config/arc/predicates.md (extend_operand): During/after reload,
34562         allow const_int_operand.
34563         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
34564         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
34565         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
34566         to "i".
34567         (umulsi3_highpart_i): Likewise.
34568
34569 2014-03-11  Richard Biener  <rguenther@suse.de>
34570
34571         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
34572         Add asserts to guard possible wrong-code bugs.
34573
34574 2014-03-11  Richard Biener  <rguenther@suse.de>
34575
34576         PR tree-optimization/60429
34577         PR tree-optimization/60485
34578         * tree-ssa-structalias.c (set_union_with_increment): Properly
34579         take into account all fields that overlap the shifted vars.
34580         (do_sd_constraint): Likewise.
34581         (do_ds_constraint): Likewise.
34582         (get_constraint_for_ptr_offset): Likewise.
34583
34584 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
34585
34586         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
34587         (nios2_compute_frame_layout):
34588         Add calculation of cfun->machine->fp_save_offset.
34589         (nios2_expand_prologue): Correct setting of frame pointer register
34590         in prologue.
34591         (nios2_expand_epilogue): Update recovery of stack pointer from
34592         frame pointer accordingly.
34593         (nios2_initial_elimination_offset): Update calculation of offset
34594         for eliminating to HARD_FRAME_POINTER_REGNUM.
34595
34596 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
34597
34598         PR ipa/60457
34599         * ipa.c (symtab_remove_unreachable_nodes): Don't call
34600         cgraph_get_create_node on VAR_DECLs.
34601
34602 2014-03-10  Richard Biener  <rguenther@suse.de>
34603
34604         PR middle-end/60474
34605         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
34606
34607 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
34608
34609         * config/vms/vms.opt (vms_float_format): New variable.
34610
34611 2014-03-08  Tobias Burnus  <burnus@net-b.de>
34612
34613         * doc/invoke.texi (-fcilkplus): Update implementation status.
34614
34615 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
34616             Richard Biener  <rguenther@suse.de>
34617
34618         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
34619         consistently accross all TUs.
34620         (run_gcc): Enable -fshort-double automatically at link at link-time
34621         and disallow override.
34622
34623 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
34624
34625         PR target/58271
34626         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
34627         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
34628         if they can't be used.
34629
34630 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34631
34632         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
34633         for Solaris 11/x86 ld.
34634         * configure: Regenerate.
34635
34636 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34637
34638         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
34639         (LIB_TLS_SPEC): Save as ld_tls_libs.
34640         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
34641         (HAVE_AS_IX86_TLSLDM): New test.
34642         * configure, config.in: Regenerate.
34643         * config/i386/i386.c (legitimize_tls_address): Fall back to
34644         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
34645         cannot support TLS_MODEL_LOCAL_DYNAMIC.
34646         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
34647         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
34648
34649 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
34650
34651         * common.opt (fira-loop-pressure): Mark as optimization.
34652
34653 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
34654
34655         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
34656         an OpenMP mappable type.
34657
34658 2014-03-06  Matthias Klose  <doko@ubuntu.com>
34659
34660         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
34661         MULTILIB_OSDIRNAMES is not defined.
34662
34663 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
34664             Meador Inge  <meadori@codesourcery.com>
34665
34666         PR target/58595
34667         * config/arm/arm.c (arm_tls_symbol_p): Remove.
34668         (arm_legitimize_address): Call legitimize_tls_address for any
34669         arm_tls_referenced_p expression, handle constant addend.  Call it
34670         before testing for !TARGET_ARM.
34671         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
34672
34673 2014-03-06  Richard Biener  <rguenther@suse.de>
34674
34675         PR middle-end/60445
34676         PR lto/60424
34677         PR lto/60427
34678         Revert
34679         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
34680
34681         * tree-streamer.c (record_common_node): Assert we don't record
34682         nodes with type double.
34683         (preload_common_node): Skip type double, complex double and double
34684         pointer since it is now frontend dependent due to fshort-double option.
34685
34686 2014-03-06  Richard Biener  <rguenther@suse.de>
34687
34688         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
34689         or -fno-lto is specified and the linker has full plugin support.
34690         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
34691         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
34692         * lto-wrapper.c (merge_and_complain): Merge compile-time
34693         optimization levels.
34694         (run_gcc): And pass it through to the link options.
34695
34696 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
34697
34698         PR debug/60381
34699         Revert:
34700         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
34701         PR debug/59992
34702         * cselib.c (remove_useless_values): Skip to avoid quadratic
34703         behavior if the condition moved from...
34704         (cselib_process_insn): ... here holds.
34705
34706 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
34707
34708         PR plugins/59335
34709         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
34710         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
34711
34712         PR plugins/59335
34713         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
34714         (TM_H): Add x86-tune.def.
34715
34716 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34717
34718         * config/aarch64/aarch64.c (generic_tunings):
34719         Use cortexa57_extra_costs.
34720
34721 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
34722
34723         PR lto/60404
34724         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
34725         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
34726         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
34727         cost for in_lto_p.
34728
34729 2014-03-04  Heiher  <r@hev.cc>
34730
34731         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
34732         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
34733
34734 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
34735
34736         * config/i386/predicates.md (const2356_operand): Change to ...
34737         (const2367_operand): ... this.
34738         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
34739         const2367_operand.
34740         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
34741         (*avx512pf_scatterpf<mode>sf): Ditto.
34742         (avx512pf_scatterpf<mode>df): Ditto.
34743         (*avx512pf_scatterpf<mode>df_mask): Ditto.
34744         (*avx512pf_scatterpf<mode>df): Ditto.
34745         * config/i386/i386.c (ix86_expand_builtin): Update
34746         incorrect hint operand error message.
34747
34748 2014-03-04  Richard Biener  <rguenther@suse.de>
34749
34750         * lto-section-in.c (lto_get_section_data): Fix const cast.
34751
34752 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
34753
34754         * tree-streamer.c (record_common_node): Assert we don't record
34755         nodes with type double.
34756         (preload_common_node): Skip type double, complex double and double
34757         pointer since it is now frontend dependent due to fshort-double option.
34758
34759 2014-03-04  Richard Biener  <rguenther@suse.de>
34760
34761         PR lto/60405
34762         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
34763         (lto_input_toplevel_asms): Likewise.
34764         * lto-section-in.c (lto_get_section_data): Instead do it here
34765         for every section.
34766
34767 2014-03-04  Richard Biener  <rguenther@suse.de>
34768
34769         PR tree-optimization/60382
34770         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
34771         dead PHIs a reduction.
34772
34773 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
34774
34775         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
34776         hint value.
34777         (_mm_prefetch): Move out of GCC target("sse") pragma.
34778         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
34779         GCC target("prfchw") pragma.
34780         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
34781         for locality <= 2.
34782         * config/i386/i386.c (ix86_option_override_internal): Enable
34783         -mprfchw with -mprefetchwt1.
34784
34785 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
34786
34787         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
34788         Mark as varying.
34789
34790 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
34791
34792         * opts.h (CL_PCH_IGNORE): Define.
34793         * targhooks.c (option_affects_pch_p):
34794         Return false for options that have CL_PCH_IGNORE set.
34795         * opt-functions.awk: Process PchIgnore.
34796         * doc/options.texi: Document PchIgnore.
34797
34798         * config/arc/arc.opt (misize): Add PchIgnore property.
34799
34800 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34801
34802         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
34803         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
34804         constraint on constants to permit them being loaded into
34805         GENERAL_REGS or BASE_REGS.
34806
34807 2014-03-03  Nick Clifton  <nickc@redhat.com>
34808
34809         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
34810         anti-cacnonical alternatives.
34811         (negandhi3_real): New pattern.
34812         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
34813
34814 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
34815
34816         * config/avr/avr-mcus.def: Remove atxmega16x1.
34817         * config/avr/avr-tables.opt: Regenerate.
34818         * config/avr/t-multilib: Regenerate.
34819         * doc/avr-mmcu.texi: Regenerate.
34820
34821 2014-03-03  Tobias Grosser  <tobias@grosser.es>
34822             Mircea Namolaru  <mircea.namolaru@inria.fr>
34823
34824         PR tree-optimization/58028
34825         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
34826         scalar dimensions.
34827
34828 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34829
34830         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
34831         not handled by recognizers.
34832
34833 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
34834
34835         PR middle-end/60175
34836         * function.c (expand_function_end): Don't emit
34837         clobber_return_register sequence if clobber_after is a BARRIER.
34838         * cfgexpand.c (construct_exit_block): Append instructions before
34839         return_label to prev_bb.
34840
34841 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34842
34843         * config/rs6000/constraints.md: Document reserved use of "wc".
34844
34845 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
34846
34847         PR ipa/60150
34848         * ipa.c (function_and_variable_visibility): When dissolving comdat
34849         group, also set all symbols to local.
34850
34851 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
34852
34853         PR ipa/60306
34854
34855         Revert:
34856         2013-12-14  Jan Hubicka  <jh@suse.cz>
34857         PR middle-end/58477
34858         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
34859
34860 2014-03-02  Jon Beniston  <jon@beniston.com>
34861
34862         PR bootstrap/48230
34863         PR bootstrap/50927
34864         PR bootstrap/52466
34865         PR target/46898
34866         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
34867         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
34868         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
34869         (simple_return, *simple_return): New patterns
34870         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
34871         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
34872
34873 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
34874
34875         * dwarf2out.c (gen_subprogram_die): Tidy.
34876
34877 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
34878
34879         PR target/60071
34880         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
34881         (*mov_t_msb_neg_negc): ... this new insn.
34882
34883 2014-02-28  Jason Merrill  <jason@redhat.com>
34884
34885         PR c++/58678
34886         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
34887         function.
34888
34889 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
34890
34891         PR c++/60314
34892         * dwarf2out.c (decltype_auto_die): New static.
34893         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
34894         (gen_type_die_with_usage): Handle 'decltype(auto)'.
34895         (is_cxx_auto): Likewise.
34896
34897 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
34898
34899         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
34900         we are not using general regs only.
34901
34902 2014-02-28  Richard Biener  <rguenther@suse.de>
34903
34904         PR target/60280
34905         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
34906         previous fix and only allow to remove trivial pre-headers
34907         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
34908         (remove_forwarder_block): Properly update the latch of a loop.
34909
34910 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
34911
34912         PR debug/59992
34913         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
34914         (cselib_preserved_hash_table): New.
34915         (preserve_constants_and_equivs): Move preserved vals to it.
34916         (cselib_find_slot): Look it up first.
34917         (cselib_init): Initialize it.
34918         (cselib_finish): Release it.
34919         (dump_cselib_table): Dump it.
34920
34921 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
34922
34923         PR debug/59992
34924         * cselib.c (remove_useless_values): Skip to avoid quadratic
34925         behavior if the condition moved from...
34926         (cselib_process_insn): ... here holds.
34927
34928 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
34929
34930         PR debug/57232
34931         * var-tracking.c (vt_initialize): Apply the same condition to
34932         preserve the CFA base value.
34933
34934 2014-02-28  Joey Ye  <joey.ye@arm.com>
34935
34936         PR target/PR60169
34937         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
34938         if reload in progress or completed.
34939
34940 2014-02-28  Tobias Burnus  <burnus@net-b.de>
34941
34942         PR middle-end/60147
34943         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
34944         NAMELIST_DECL.
34945
34946 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
34947
34948         * doc/tm.texi.in (Condition Code Status): Update documention for
34949         relative locations of cc0-setter and cc0-user.
34950
34951 2014-02-27  Jeff Law  <law@redhat.com>
34952
34953         PR rtl-optimization/52714
34954         * combine.c (try_combine): When splitting an unrecognized PARALLEL
34955         into two independent simple sets, if I3 is a jump, ensure the
34956         pattern we place into I3 is a (set (pc) ...).
34957
34958 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
34959             Jeff Law  <law@redhat.com>
34960
34961         PR rtl-optimization/49847
34962         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
34963         are in different blocks.
34964         * doc/tm.texi (Condition Code Status): Update documention for
34965         relative locations of cc0-setter and cc0-user.
34966
34967 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
34968
34969         PR target/59222
34970         * lra.c (lra_emit_add): Check SUBREG too.
34971
34972 2014-02-27  Andreas Schwab  <schwab@suse.de>
34973
34974         * config/m68k/m68k.c (m68k_option_override): Disable
34975         -flive-range-shrinkage for classic m68k.
34976         (m68k_override_options_after_change): Likewise.
34977
34978 2014-02-27  Marek Polacek  <polacek@redhat.com>
34979
34980         PR middle-end/59223
34981         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
34982         -Wmaybe-uninitialized.
34983
34984 2014-02-27  Alan Modra  <amodra@gmail.com>
34985
34986         PR target/57936
34987         * reload1.c (emit_input_reload_insns): When reload_override_in,
34988         set old to rl->in_reg when rl->in_reg is a subreg.
34989
34990 2014-02-26  Richard Biener  <rguenther@suse.de>
34991
34992         PR bootstrap/60343
34993         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
34994
34995 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
34996
34997         * common/config/i386/predicates.md (const1256_operand): Remove.
34998         (const2356_operand): New.
34999         (const_1_to_2_operand): Remove.
35000         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
35001         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
35002         (*avx512pf_gatherpf<mode>sf): Ditto.
35003         (avx512pf_gatherpf<mode>df): Ditto.
35004         (*avx512pf_gatherpf<mode>df_mask): Ditto.
35005         (*avx512pf_gatherpf<mode>df): Ditto.
35006         (avx512pf_scatterpf<mode>sf): Ditto.
35007         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
35008         (*avx512pf_scatterpf<mode>sf): Ditto.
35009         (avx512pf_scatterpf<mode>df): Ditto.
35010         (*avx512pf_scatterpf<mode>df_mask): Ditto.
35011         (*avx512pf_scatterpf<mode>df): Ditto.
35012         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
35013
35014 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
35015
35016         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
35017         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
35018         (_mm512_mask_testn_epi64_mask): Move to ...
35019         * config/i386/avx512cdintrin.h: Here.
35020         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
35021         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
35022         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
35023         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
35024         TARGET_AVX512F from TARGET_AVX512CD.
35025
35026 2014-02-26  Richard Biener  <rguenther@suse.de>
35027
35028         PR ipa/60327
35029         * ipa.c (walk_polymorphic_call_targets): Properly guard
35030         call to inline_update_overall_summary.
35031
35032 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
35033
35034         PR target/60280
35035         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
35036         and latches only if requested.  Fix latch if it is removed.
35037         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
35038         LOOPS_HAVE_PREHEADERS.
35039
35040 2014-02-25  Andrew Pinski  <apinski@cavium.com>
35041
35042         * builtins.c (expand_builtin_thread_pointer): Create a new target
35043         when the target is NULL.
35044
35045 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
35046
35047         PR rtl-optimization/60317
35048         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
35049         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
35050         * lra-assigns.c: Include params.h.
35051         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
35052         other reload pseudos considerations.
35053
35054 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35055
35056         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
35057         to use canonical form for nor<mode>3.
35058
35059 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35060
35061         PR target/55426
35062         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
35063         conversions.
35064
35065 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
35066
35067         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
35068         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
35069         (ix86_handle_option): Handle OPT_mprefetchwt1.
35070         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
35071         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
35072         PREFETCHWT1 CPUID.
35073         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
35074         OPTION_MASK_ISA_PREFETCHWT1.
35075         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
35076         (PTA_PREFETCHWT1): New.
35077         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
35078         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
35079         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
35080         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
35081         (*prefetch_avx512pf_<mode>_: Change into ...
35082         (*prefetch_prefetchwt1_<mode>: This.
35083         * config/i386/i386.opt (mprefetchwt1): New.
35084         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
35085         (_mm_prefetch): Handle intent to write.
35086         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
35087
35088 2014-02-25  Richard Biener  <rguenther@suse.de>
35089
35090         PR middle-end/60291
35091         * emit-rtl.c (mem_attrs_htab): Remove.
35092         (mem_attrs_htab_hash): Likewise.
35093         (mem_attrs_htab_eq): Likewise.
35094         (set_mem_attrs): Always allocate new mem-attrs when something changed.
35095         (init_emit_once): Do not allocate mem_attrs_htab.
35096
35097 2014-02-25  Richard Biener  <rguenther@suse.de>
35098
35099         PR lto/60319
35100         * lto-opts.c (lto_write_options): Output non-explicit conservative
35101         -fwrapv, -fno-trapv and -fno-strict-overflow.
35102         * lto-wrapper.c (merge_and_complain): Handle merging those options.
35103         (run_gcc): And pass them through.
35104
35105 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
35106
35107         * sel-sched.c (calculate_new_fences): New parameter ptime.
35108         Calculate it as a maximum over all fence cycles.
35109         (sel_sched_region_2): Adjust the call to calculate_new_fences.
35110         Print the final schedule timing when sched_verbose.
35111
35112 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
35113
35114         PR rtl-optimization/60292
35115         * sel-sched.c (fill_vec_av_set): Do not reset target availability
35116         bit fot the fence instruction.
35117
35118 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
35119
35120         * calls.h: Fix typo in comment.
35121
35122 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
35123
35124         * config/pa/pa.c (pa_output_move_double): Don't valididate when
35125         adjusting offsetable addresses.
35126
35127 2014-02-24  Guozhi Wei  <carrot@google.com>
35128
35129         * sparseset.h (sparseset_pop): Fix the wrong index.
35130
35131 2014-02-24  Walter Lee  <walt@tilera.com>
35132
35133         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
35134         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
35135         triplet.
35136         * common/config/tilegx/tilegx-common.c
35137         (TARGET_DEFAULT_TARGET_FLAGS): Define.
35138         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
35139         (LINK_SPEC): Ditto.
35140         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
35141         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
35142         (tilegx_gimplify_va_arg_expr): Handle big endian.
35143         (tilegx_expand_unaligned_load): Ditto.
35144         (tilegx_expand_unaligned_store): Ditto.
35145         (TARGET_RETURN_IN_MSB): New.
35146         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
35147         (TARGET_ENDIAN_DEFAULT): New.
35148         (TARGET_BIG_ENDIAN): Handle big endian.
35149         (BYTES_BIG_ENDIAN): Ditto.
35150         (WORDS_BIG_ENDIAN): Ditto.
35151         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
35152         (ENDIAN_SPEC): New.
35153         (EXTRA_SPECS): New.
35154         * config/tilegx/tilegx.md (extv): Handle big endian.
35155         (extzv): Ditto.
35156         (insn_st<n>): Ditto.
35157         (insn_st<n>_add<bitsuffix>): Ditto.
35158         (insn_stnt<n>): Ditto.
35159         (insn_stnt<n>_add<bitsuffix>):Ditto.
35160         (vec_interleave_highv8qi): Handle big endian.
35161         (vec_interleave_highv8qi_be): New.
35162         (vec_interleave_highv8qi_le): New.
35163         (insn_v1int_h): Handle big endian.
35164         (vec_interleave_lowv8qi): Handle big endian.
35165         (vec_interleave_lowv8qi_be): New.
35166         (vec_interleave_lowv8qi_le): New.
35167         (insn_v1int_l): Handle big endian.
35168         (vec_interleave_highv4hi): Handle big endian.
35169         (vec_interleave_highv4hi_be): New.
35170         (vec_interleave_highv4hi_le): New.
35171         (insn_v2int_h): Handle big endian.
35172         (vec_interleave_lowv4hi): Handle big endian.
35173         (vec_interleave_lowv4hi_be): New.
35174         (vec_interleave_lowv4hi_le): New.
35175         (insn_v2int_l): Handle big endian.
35176         (vec_interleave_highv2si): Handle big endian.
35177         (vec_interleave_highv2si_be): New.
35178         (vec_interleave_highv2si_le): New.
35179         (insn_v4int_h): Handle big endian.
35180         (vec_interleave_lowv2si): Handle big endian.
35181         (vec_interleave_lowv2si_be): New.
35182         (vec_interleave_lowv2si_le): New.
35183         (insn_v4int_l): Handle big endian.
35184         * config/tilegx/tilegx.opt (mbig-endian): New option.
35185         (mlittle-endian): New option.
35186         * doc/install.texi: Document tilegxbe-linux.
35187         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
35188
35189 2014-02-24  Martin Jambor  <mjambor@suse.cz>
35190
35191         PR ipa/60266
35192         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
35193         there are no parameter descriptors.
35194
35195 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
35196
35197         PR rtl-optimization/60268
35198         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
35199         initialization to ...
35200         (sched_rgn_init): ... here.
35201         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
35202
35203 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
35204
35205         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
35206         names.
35207
35208 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
35209
35210         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
35211         definition.
35212
35213 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
35214
35215         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
35216         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
35217
35218 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
35219
35220         * config/microblaze/predicates.md: Add cmp_op predicate.
35221         * config/microblaze/microblaze.md: Add branch_compare instruction
35222         which uses cmp_op predicate and emits cmp insn before branch.
35223         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
35224         to microblaze_expand_conditional_branch and consolidate logic.
35225         (microblaze_expand_conditional_branch): emit branch_compare
35226         insn instead of handling cmp op separate from branch insn.
35227
35228 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35229
35230         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
35231         to permit subregs.
35232
35233 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35234
35235         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
35236         define_insn with define_expand and new define_insn
35237         *altivec_lve<VI_char>x_internal.
35238         (altivec_stve<VI_char>x): Replace define_insn with define_expand
35239         and new define_insn *altivec_stve<VI_char>x_internal.
35240         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
35241         prototype.
35242         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
35243         lve*x built-ins.
35244         (altivec_expand_stvex_be): New function.
35245
35246 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
35247
35248         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
35249         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
35250         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
35251         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
35252
35253 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
35254
35255         PR target/60298
35256         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
35257         instead of emit_move_insn.
35258
35259 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35260
35261         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
35262         vspltw with vsldoi.
35263         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
35264         gen_altivec_vsumsws.
35265
35266 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35267
35268         * config/rs6000/altivec.md (altivec_lvxl): Rename as
35269         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
35270         (altivec_lvxl_<mode>): New define_expand incorporating
35271         -maltivec=be semantics where needed.
35272         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
35273         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
35274         semantics where needed.
35275         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
35276         (altivec_stvx_<mode>): New define_expand incorporating
35277         -maltivec=be semantics where needed.
35278         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
35279         VM2 iterator instead of V4SI.
35280         (altivec_stvxl_<mode>): New define_expand incorporating
35281         -maltivec=be semantics where needed.
35282         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
35283         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
35284         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
35285         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
35286         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
35287         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
35288         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
35289         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
35290         ALTIVEC_BUILTIN_STVXL.
35291         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
35292         (altivec_expand_stvx_be): Likewise.
35293         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
35294         (altivec_expand_lvx_be): Likewise.
35295         (altivec_expand_stvx_be): Likewise.
35296         (altivec_expand_builtin): Add cases for
35297         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
35298         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
35299         (altivec_init_builtins): Add definitions for
35300         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
35301         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
35302
35303 2014-02-21  Catherine Moore  <clm@codesourcery.com>
35304
35305         * doc/invoke.texi (mvirt, mno-virt): Document.
35306         * config/mips/mips.opt (mvirt): New option.
35307         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
35308
35309 2014-02-21  Richard Biener  <rguenther@suse.de>
35310
35311         PR tree-optimization/60276
35312         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
35313         (STMT_VINFO_MIN_NEG_DIST): New macro.
35314         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
35315         STMT_VINFO_MIN_NEG_DIST.
35316         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
35317         made for negative dependence distances still hold.
35318
35319 2014-02-21  Richard Biener  <rguenther@suse.de>
35320
35321         PR middle-end/60291
35322         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
35323         DECL_INITIAL for globals not in the current function context.
35324
35325 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
35326
35327         PR tree-optimization/56490
35328         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
35329         * tree-ssa-uninit.c: Include params.h.
35330         (compute_control_dep_chain): Add num_calls argument, return false
35331         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
35332         num_calls to recursive call.
35333         (find_predicates): Change dep_chain into normal array,
35334         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
35335         variable and adjust compute_control_dep_chain caller.
35336         (find_def_preds): Likewise.
35337
35338 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
35339
35340         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
35341         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
35342
35343 2014-02-21  Nick Clifton  <nickc@redhat.com>
35344
35345         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
35346         (pushhi1): Likewise.
35347         (popqi1): Add mode to pre_dec.
35348         (pophi1): Likewise.
35349
35350 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
35351
35352         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
35353         mode for mask of V8SFmode permutation.
35354
35355 2014-02-20  Richard Henderson  <rth@redhat.com>
35356
35357         PR c++/60272
35358         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
35359         a new pseudo for OLDVAL.
35360
35361 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
35362
35363         PR target/57896
35364         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
35365         gen_reg_rtx if d->testing_p.
35366         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
35367         if d->testing_p and we will certainly return true.
35368         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
35369         if d->testing_p.
35370
35371 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
35372
35373         * emit-rtl.c (gen_reg_rtx): Assert that
35374         crtl->emit.regno_pointer_align_length is non-zero.
35375
35376 2014-02-20  Richard Henderson  <rth@redhat.com>
35377
35378         PR c++/60272
35379         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
35380         on failure the store back into EXPECT.
35381
35382 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
35383             Sandra Loosemore  <sandra@codesourcery.com>
35384
35385         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
35386         * config/nios2/nios2.c (nios2_function_profiler): Add
35387         -fPIC (flag_pic == 2) support.
35388         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
35389         (nios2_large_offset_p): New function.
35390         (nios2_unspec_reloc_p): Move up position, update to use
35391         nios2_large_offset_p.
35392         (nios2_unspec_address): Remove function.
35393         (nios2_unspec_offset): New function.
35394         (nios2_large_got_address): New function.
35395         (nios2_got_address): Add large offset support.
35396         (nios2_legitimize_tls_address): Update usage of removed and new
35397         functions.
35398         (nios2_symbol_binds_local_p): New function.
35399         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
35400         (nios2_legitimize_address): Update to use nios2_large_offset_p.
35401         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
35402         (nios2_print_operand): Merge H/L processing, add hiadj/lo
35403         processing for (const (unspec ...)).
35404         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
35405
35406 2014-02-20  Richard Biener  <rguenther@suse.de>
35407
35408         * tree-cfg.c (replace_uses_by): Mark altered BBs before
35409         doing the substitution.
35410         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
35411
35412 2014-02-20  Martin Jambor  <mjambor@suse.cz>
35413
35414         PR ipa/55260
35415         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
35416         info when checking whether lattices are bottom.
35417
35418 2014-02-20  Richard Biener  <rguenther@suse.de>
35419
35420         PR middle-end/60221
35421         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
35422         regions at -O0.
35423
35424 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
35425
35426         PR ipa/58555
35427         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
35428         parameter specifying the scaling.
35429         (inline_call): Update.
35430         (want_inline_recursively): Guard division by zero.
35431         (recursive_inlining): Update.
35432         * ipa-inline.h (clone_inlined_nodes): Update.
35433
35434 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
35435
35436         PR target/60204
35437         * config/i386/i386.c (classify_argument): Pass structures of size
35438         64 bytes or less in register.
35439
35440 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
35441             Kirill Yukhin  <kirill.yukhin@intel.com>
35442
35443         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
35444         (_mm_rcp28_round_ss): Ditto.
35445         (_mm_rsqrt28_round_sd): Ditto.
35446         (_mm_rsqrt28_round_ss): Ditto.
35447         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
35448         (_mm_rcp14_round_ss): Ditto.
35449         (_mm_rsqrt14_round_sd): Ditto.
35450         (_mm_rsqrt14_round_ss): Ditto.
35451         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
35452         the first input operand, get rid of match_dup.
35453         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
35454         attribute to sse.
35455         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35456         Ditto.
35457         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
35458         operand as the first input operand, set type attribute.
35459         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35460         Set type attribute.
35461         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
35462         operand as the first input operand, set type attribute.
35463
35464 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35465
35466         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
35467         bit of zero.
35468
35469 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
35470
35471         PR target/60207
35472         * config/i386/i386.c (construct_container): Remove TFmode check
35473         for X86_64_INTEGER_CLASS.
35474
35475 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
35476
35477         PR target/59794
35478         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
35479         only when -Wpsabi is enabled.
35480
35481 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
35482
35483         PR target/59799
35484         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
35485         passing arrays in registers are the same as for structs, so remove the
35486         special case for them.
35487
35488 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
35489
35490         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
35491         destination type, extract only the valid bits if the source type is not
35492         integral and has a different mode.
35493
35494 2014-02-19  Richard Biener  <rguenther@suse.de>
35495
35496         PR ipa/60243
35497         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
35498         for all calls.
35499
35500 2014-02-19  Richard Biener  <rguenther@suse.de>
35501
35502         PR ipa/60243
35503         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
35504         (ipa_modify_call_arguments): Emit an argument load explicitely and
35505         preserve virtual SSA form there and for the replacement call.
35506         Do not update SSA form nor free dominance info.
35507
35508 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
35509
35510         * ipa.c (function_and_variable_visibility): Also clear WEAK
35511         flag when disolving COMDAT_GROUP.
35512
35513 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
35514
35515         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
35516         * ipa-prop.c (ipa_set_jf_known_type): Return early when
35517         not devirtualizing.
35518         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
35519         do more sanity checks.
35520         (detect_type_change): Return true when giving up early.
35521         (compute_complex_assign_jump_func): Fix type parameter of
35522         ipa_set_ancestor_jf.
35523         (compute_complex_ancestor_jump_func): Likewise.
35524         (update_jump_functions_after_inlining): Fix updating of
35525         ancestor function.
35526         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
35527
35528 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
35529
35530         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
35531         inline clones when edge disappears.
35532
35533 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
35534
35535         PR target/60203
35536         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
35537         Split 64-bit moves into 2 patterns.  Do not allow the use of
35538         direct move for TDmode in little endian, since the decimal value
35539         has little endian bytes within a word, but the 64-bit pieces are
35540         ordered in a big endian fashion, and normal subreg's of TDmode are
35541         not allowed.
35542         (mov<mode>_64bit_dm): Likewise.
35543         (movtd_64bit_nodm): Likewise.
35544
35545 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
35546
35547         PR tree-optimization/60174
35548         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
35549         statement of an SSA_NAME that occurs in an abnormal PHI node.
35550
35551 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
35552
35553         PR sanitizer/60142
35554         * final.c (SEEN_BB): Remove.
35555         (SEEN_NOTE, SEEN_EMITTED): Renumber.
35556         (final_scan_insn): Don't force_source_line on second
35557         NOTE_INSN_BASIC_BLOCK.
35558
35559 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
35560
35561         PR target/60205
35562         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
35563         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
35564         (type_natural_mode): Warn ABI change when %zmm register is not
35565         available for AVX512F vector value passing.
35566
35567 2014-02-18  Kai Tietz  <ktietz@redhat.com>
35568
35569         PR target/60193
35570         * config/i386/i386.c (ix86_expand_prologue): Use value in
35571         rax register as displacement when restoring %r10 or %rax.
35572         Fix wrong offset when restoring both registers.
35573
35574 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
35575
35576         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
35577         assertion with conditional return.
35578
35579 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
35580             Uros Bizjak  <ubizjak@gmail.com>
35581
35582         PR driver/60233
35583         * config/i386/driver-i386.c (host_detect_local_cpu): If
35584         YMM state is not saved by the OS, also clear has_f16c.  Move
35585         CPUID 0x80000001 handling before YMM state saving checking.
35586
35587 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
35588
35589         PR rtl-optimization/58960
35590         * haifa-sched.c (alloc_global_sched_pressure_data): New,
35591         factored out from ...
35592         (sched_init): ... here.
35593         (free_global_sched_pressure_data): New, factored out from ...
35594         (sched_finish): ... here.
35595         * sched-int.h (free_global_sched_pressure_data): Declare.
35596         * sched-rgn.c (nr_regions_initial): New static global.
35597         (haifa_find_rgns): Initialize it.
35598         (schedule_region): Disable sched-pressure for the newly
35599         generated regions.
35600
35601 2014-02-17  Richard Biener  <rguenther@suse.de>
35602
35603         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
35604         release SSA defs of pattern stmts.
35605
35606 2014-02-17  Richard Biener  <rguenther@suse.de>
35607
35608         * tree-inline.c (expand_call_inline): Release the virtual
35609         operand defined by the call we are about to inline.
35610
35611 2014-02-17  Richard Biener  <rguenther@suse.de>
35612
35613         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
35614
35615 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
35616             Ilya Tocar  <ilya.tocar@intel.com>
35617
35618         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
35619         arguments order in builtin.
35620         (_mm512_permutexvar_epi64): Ditto.
35621         (_mm512_mask_permutexvar_epi64): Ditto
35622         (_mm512_maskz_permutexvar_epi32): Ditto
35623         (_mm512_permutexvar_epi32): Ditto
35624         (_mm512_mask_permutexvar_epi32): Ditto
35625
35626 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35627
35628         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
35629         (p8_vmrgow): Likewise.
35630
35631 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35632
35633         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
35634         endian targets.
35635
35636 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
35637
35638         PR target/60203
35639         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
35640         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
35641         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
35642         using direct move instructions on ISA 2.07.  Also adjust
35643         instruction length for 64-bit.
35644         (mov<mode>_64bit, TFmode/TDmode): Likewise.
35645         (mov<mode>_32bit, TFmode/TDmode): Likewise.
35646
35647 2014-02-15  Alan Modra  <amodra@gmail.com>
35648
35649         PR target/58675
35650         PR target/57935
35651         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
35652         find_replacement on parts of insn rtl that might be reloaded.
35653
35654 2014-02-15  Richard Biener  <rguenther@suse.de>
35655
35656         PR tree-optimization/60183
35657         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
35658         (tree_ssa_phiprop): Calculate and free post-dominators.
35659
35660 2014-02-14  Jeff Law  <law@redhat.com>
35661
35662         PR rtl-optimization/60131
35663         * ree.c (get_extended_src_reg): New function.
35664         (combine_reaching_defs): Use it rather than assuming location of REG.
35665         (find_and_remove_re): Verify first operand of extension is
35666         a REG before adding the insns to the copy list.
35667
35668 2014-02-14  Roland McGrath  <mcgrathr@google.com>
35669
35670         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
35671         * configure: Regenerated.
35672         * config.in: Regenerated.
35673         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
35674         instead of ASM_SHORT.
35675
35676 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
35677             Richard Earnshaw  <rearnsha@arm.com>
35678
35679         PR rtl-optimization/59535
35680         * lra-constraints.c (process_alt_operands): Encourage alternative
35681         when unassigned pseudo class is superset of the alternative class.
35682         (inherit_reload_reg): Don't inherit when optimizing for code size.
35683         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
35684         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
35685         modes not less than 4 for Thumb1.
35686
35687 2014-02-14  Kyle McMartin  <kyle@redhat.com>
35688
35689         PR pch/60010
35690         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
35691
35692 2014-02-14  Richard Biener  <rguenther@suse.de>
35693
35694         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
35695         (get_frame_arg): Drop the assert with langhook types_compatible_p.
35696         Do not strip INDIRECT_REFs.
35697
35698 2014-02-14  Richard Biener  <rguenther@suse.de>
35699
35700         PR lto/60179
35701         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
35702         DECL_FUNCTION_SPECIFIC_TARGET.
35703         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
35704         * tree-streamer-out.c (pack_ts_target_option): Remove.
35705         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
35706         (write_ts_function_decl_tree_pointers): Do not stream
35707         DECL_FUNCTION_SPECIFIC_TARGET.
35708         * tree-streamer-in.c (unpack_ts_target_option): Remove.
35709         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
35710         (lto_input_ts_function_decl_tree_pointers): Do not stream
35711         DECL_FUNCTION_SPECIFIC_TARGET.
35712
35713 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
35714
35715         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
35716         (get_initial_def_for_induction, vectorizable_induction): Ignore
35717         debug stmts when looking for exit_phi.
35718         (vectorizable_live_operation): Fix up condition.
35719
35720 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
35721
35722         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
35723         nreverse() because it changes the content of original tree list.
35724
35725 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
35726
35727         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
35728         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
35729
35730 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
35731
35732         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
35733         GNU coding standards.
35734
35735 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
35736
35737         PR debug/60152
35738         * dwarf2out.c (gen_subprogram_die): Don't call
35739         add_calling_convention_attribute if subr_die is old_die.
35740
35741 2014-02-13  Sharad Singhai  <singhai@google.com>
35742
35743         * doc/optinfo.texi: Fix order of nodes.
35744
35745 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
35746
35747         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
35748         operands[2], not operands[3].
35749
35750 2014-02-13  Richard Biener  <rguenther@suse.de>
35751
35752         PR bootstrap/59878
35753         * doc/install.texi (ISL): Update recommended version to 0.12.2,
35754         mention the possibility of an in-tree build.
35755         (CLooG): Update recommended version to 0.18.1, mention the
35756         possibility of an in-tree build and clarify that the ISL
35757         bundled with CLooG does not work.
35758
35759 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
35760
35761         PR target/43546
35762         * expr.c (compress_float_constant): If x is a hard register,
35763         extend into a pseudo and then move to x.
35764
35765 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35766
35767         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
35768         caused by bad second argument to warning_at() with -mhotpatch and
35769         nested functions (e.g. with gfortran).
35770
35771 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
35772
35773         * opts.c (option_name): Remove "enabled by default" rider.
35774
35775 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
35776
35777         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
35778
35779 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
35780             Uros Bizjak  <ubizjak@gmail.com>
35781
35782         PR target/60151
35783         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
35784         * configure: Regenerated.
35785
35786 2014-02-12  Richard Biener  <rguenther@suse.de>
35787
35788         * vec.c (vec_prefix::calculate_allocation): Move as
35789         inline variant to vec.h.
35790         (vec_prefix::calculate_allocation_1): New out-of-line version.
35791         * vec.h (vec_prefix::calculate_allocation_1): Declare.
35792         (vec_prefix::m_has_auto_buf): Rename to ...
35793         (vec_prefix::m_using_auto_storage): ... this.
35794         (vec_prefix::calculate_allocation): Inline the easy cases
35795         and dispatch to calculate_allocation_1 which doesn't need the
35796         prefix address.
35797         (va_heap::reserve): Use gcc_checking_assert.
35798         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
35799         m_using_auto_storage.
35800         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
35801         member and adjust.
35802         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
35803         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
35804         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
35805
35806 2014-02-12  Richard Biener  <rguenther@suse.de>
35807
35808         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
35809         when we found a dependence.
35810
35811 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
35812
35813         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
35814         common code...
35815         (maybe_fold_stmt): ... into this new function.
35816         * omp-low.c (lower_omp): Update comment.
35817
35818         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
35819         last use.
35820
35821         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
35822         dereference.
35823
35824 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
35825
35826         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
35827         identifiers in comments.
35828         (cortexa53_extra_costs): Likewise.
35829         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
35830         (cortexa7_extra_costs): Likewise.
35831         (cortexa12_extra_costs): Likewise.
35832         (cortexa15_extra_costs): Likewise.
35833         (v7m_extra_costs): Likewise.
35834
35835 2014-02-12  Richard Biener  <rguenther@suse.de>
35836
35837         PR middle-end/60092
35838         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
35839         of posix_memalign being successful.
35840         (lower_stmt): Restrict lowering of posix_memalign to when
35841         -ftree-bit-ccp is enabled.
35842
35843 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
35844
35845         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
35846         arg_loc.
35847         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
35848
35849 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
35850
35851         PR rtl-optimization/60116
35852         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
35853         other_insn once the combination has been validated.
35854
35855 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
35856
35857         PR lto/59468
35858         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
35859         and wrapper.
35860         * ipa-devirt.c: Include demangle.h
35861         (odr_violation_reported): New static variable.
35862         (add_type_duplicate): Update odr_violations.
35863         (maybe_record_node): Add completep parameter; update it.
35864         (record_target_from_binfo): Add COMPLETEP parameter;
35865         update it as needed.
35866         (possible_polymorphic_call_targets_1): Likewise.
35867         (struct polymorphic_call_target_d): Add nonconstruction_targets;
35868         rename FINAL to COMPLETE.
35869         (record_targets_from_bases): Sanity check we found the binfo;
35870         fix COMPLETEP updating.
35871         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
35872         parameter, fix computing of COMPLETEP.
35873         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
35874         at LTO time do demangling.
35875         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
35876         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
35877         parameter.
35878         (gimple_get_virt_method_for_binfo): Likewise.
35879         * gimple-fold.h (gimple_get_virt_method_for_binfo,
35880         gimple_get_virt_method_for_vtable): Update prototypes.
35881
35882 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
35883
35884         PR target/49008
35885         * genautomata.c (add_presence_absence): Fix typo with
35886         {final_}presence_list.
35887
35888 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
35889
35890         PR target/60137
35891         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
35892         for VSX/Altivec vectors that land in GPR registers.
35893
35894 2014-02-11  Richard Henderson  <rth@redhat.com>
35895             Jakub Jelinek  <jakub@redhat.com>
35896
35897         PR debug/59776
35898         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
35899         around drhs if type conversion to lacc->type is not useless.
35900
35901 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35902
35903         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
35904         tuning struct.
35905         (cortex-a57.cortex-a53): Likewise.
35906         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
35907
35908 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35909
35910         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
35911         arm_restrict_it.
35912
35913 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
35914
35915         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
35916         add_options_for_arm_vfp3.
35917
35918 2014-02-11  Jeff Law  <law@redhat.com>
35919
35920         PR middle-end/54041
35921         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
35922         object with an undesirable mode.
35923
35924 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35925
35926         PR libgomp/60107
35927         * config/i386/sol2-9.h: New file.
35928         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
35929         *-*-solaris2.9*): Use it.
35930
35931 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
35932
35933         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
35934         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
35935
35936 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
35937
35938         * config/microblaze/microblaze.c: Extend mcpu version format
35939
35940 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
35941
35942         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
35943
35944 2014-02-10  Richard Henderson  <rth@redhat.com>
35945
35946         PR target/59927
35947         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
35948         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
35949         ms-abi vs -mno-accumulate-outgoing-args.
35950         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
35951         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
35952         respect to ms-abi.
35953
35954 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35955
35956         PR middle-end/60080
35957         * cfgexpand.c (expand_asm_operands): Attach source location to
35958         ASM_INPUT rtx objects.
35959         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
35960
35961 2014-02-10  Nick Clifton  <nickc@redhat.com>
35962
35963         * config/mn10300/mn10300.c (popcount): New function.
35964         (mn10300_expand_prologue): Include saved registers in stack usage
35965         count.
35966
35967 2014-02-10  Jeff Law  <law@redhat.com>
35968
35969         PR middle-end/52306
35970         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
35971         when changing the SET_DEST of a prior insn to avoid an input reload.
35972
35973 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35974
35975         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
35976         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
35977         -mcall-openbsd, or -mcall-linux.
35978         (CC1_ENDIAN_BIG_SPEC): Remove.
35979         (CC1_ENDIAN_LITTLE_SPEC): Remove.
35980         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
35981         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
35982         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
35983         and %cc1_endian_default.
35984         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
35985
35986 2014-02-10  Richard Biener  <rguenther@suse.de>
35987
35988         PR tree-optimization/60115
35989         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
35990         MEM_REF handling.  Properly verify that the accesses are not
35991         out of the objects bound.
35992
35993 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35994
35995         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
35996         coretex to cortex.
35997
35998 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
35999
36000         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
36001         proper constants and fix formatting.
36002         (possible_polymorphic_call_targets): Fix formatting.
36003
36004 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
36005             Ilya Tocar  <ilya.tocar@intel.com>
36006
36007         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
36008         (_mm512_loadu_epi32): Renamed into...
36009         (_mm512_loadu_si512): This.
36010         (_mm512_storeu_epi32): Renamed into...
36011         (_mm512_storeu_si512): This.
36012         (_mm512_maskz_ceil_ps): Removed.
36013         (_mm512_maskz_ceil_pd): Ditto.
36014         (_mm512_maskz_floor_ps): Ditto.
36015         (_mm512_maskz_floor_pd): Ditto.
36016         (_mm512_floor_round_ps): Ditto.
36017         (_mm512_floor_round_pd): Ditto.
36018         (_mm512_ceil_round_ps): Ditto.
36019         (_mm512_ceil_round_pd): Ditto.
36020         (_mm512_mask_floor_round_ps): Ditto.
36021         (_mm512_mask_floor_round_pd): Ditto.
36022         (_mm512_mask_ceil_round_ps): Ditto.
36023         (_mm512_mask_ceil_round_pd): Ditto.
36024         (_mm512_maskz_floor_round_ps): Ditto.
36025         (_mm512_maskz_floor_round_pd): Ditto.
36026         (_mm512_maskz_ceil_round_ps): Ditto.
36027         (_mm512_maskz_ceil_round_pd): Ditto.
36028         (_mm512_expand_pd): Ditto.
36029         (_mm512_expand_ps): Ditto.
36030         * config/i386/i386.c (ix86_builtins): Remove
36031         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
36032         (bdesc_args): Ditto.
36033         * config/i386/predicates.md (const1256_operand): New.
36034         (const_1_to_2_operand): Ditto.
36035         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
36036         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
36037         (*avx512pf_gatherpf<mode>sf): Ditto.
36038         (avx512pf_gatherpf<mode>df): Ditto.
36039         (*avx512pf_gatherpf<mode>df_mask): Ditto.
36040         (*avx512pf_gatherpf<mode>df): Ditto.
36041         (avx512pf_scatterpf<mode>sf): Ditto.
36042         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
36043         (*avx512pf_scatterpf<mode>sf): Ditto.
36044         (avx512pf_scatterpf<mode>df): Ditto.
36045         (*avx512pf_scatterpf<mode>df_mask): Ditto.
36046         (*avx512pf_scatterpf<mode>df): Ditto.
36047         (avx512f_expand<mode>): Removed.
36048         (<shift_insn><mode>3<mask_name>): Change predicate type.
36049
36050 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
36051
36052         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
36053         not at the end of datarefs vector use ordered_remove to avoid
36054         reordering datarefs vector.
36055
36056         PR c/59984
36057         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
36058         mark local addressable non-static vars as GOVD_PRIVATE
36059         instead of GOVD_LOCAL.
36060         * omp-low.c (lower_omp_for): Move gimple_bind_vars
36061         and BLOCK_VARS of gimple_bind_block to new_stmt rather
36062         than copying them.
36063
36064         PR middle-end/60092
36065         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
36066         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
36067         assume_aligned or alloc_align attributes.
36068         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
36069         arguments.  Handle also assume_aligned and alloc_align attributes.
36070         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
36071         calls to functions with assume_aligned or alloc_align attributes.
36072         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
36073
36074 2014-02-08  Terry Guo  <terry.guo@arm.com>
36075
36076         * doc/invoke.texi: Document ARM -march=armv7e-m.
36077
36078 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
36079
36080         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
36081         flag on __cilkrts_rethrow builtin.
36082
36083         PR ipa/60026
36084         * ipa-cp.c (determine_versionability): Fail at -O0
36085         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
36086         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
36087
36088         Revert:
36089         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
36090
36091         PR ipa/60026
36092         * tree-inline.c (copy_forbidden): Fail for
36093         __attribute__((optimize (0))) functions.
36094
36095 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
36096
36097         * varpool.c: Include pointer-set.h.
36098         (varpool_remove_unreferenced_decls): Variables in other partitions
36099         will not be output; be however careful to not lose information
36100         about partitioning.
36101
36102 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
36103
36104         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
36105         lookup in the vtable constructor.
36106
36107 2014-02-07  Jeff Law  <law@redhat.com>
36108
36109         PR target/40977
36110         * config/m68k/m68k.md (ashldi_extsi): Turn into a
36111         define_insn_and_split.
36112
36113         * ipa-inline.c (inline_small_functions): Fix typos.
36114
36115 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
36116
36117         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
36118         (s390_can_use_return_insn): Declare.
36119         * config/s390/s390.h (EPILOGUE_USES): Define.
36120         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
36121         instructions.
36122         (s390_chunkify_start): Handle return JUMP_LABELs.
36123         (s390_early_mach): Emit a main_pool instruction on the entry edge.
36124         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
36125         (s390_can_use_return_insn): New functions.
36126         (s390_fix_long_loop_prediction): Handle conditional returns.
36127         (TARGET_SET_UP_BY_PROLOGUE): Define.
36128         * config/s390/s390.md (ANY_RETURN): New code iterator.
36129         (*creturn, *csimple_return, return, simple_return): New patterns.
36130
36131 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
36132
36133         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
36134         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
36135         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
36136         REG_CFA_RESTORE list when deciding not to restore a register.
36137
36138 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
36139
36140         * config/s390/s390.c: Include tree-pass.h and context.h.
36141         (s390_early_mach): New function, split out from...
36142         (s390_emit_prologue): ...here.
36143         (pass_data_s390_early_mach): New pass structure.
36144         (pass_s390_early_mach): New class.
36145         (s390_option_override): Create and register early_mach pass.
36146         Move to end of file.
36147
36148 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
36149
36150         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
36151         to match for the exit block.
36152
36153 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36154
36155         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
36156         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
36157         Reject misaligned operands.
36158
36159 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36160
36161         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
36162
36163 2014-02-07  Richard Biener  <rguenther@suse.de>
36164
36165         PR middle-end/60092
36166         * gimple-low.c (lower_builtin_posix_memalign): New function.
36167         (lower_stmt): Call it to lower posix_memalign in a way
36168         to make alignment info accessible.
36169
36170 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
36171
36172         PR c++/60082
36173         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
36174         __builtin_setjmp_receiver.
36175
36176 2014-02-07  Richard Biener  <rguenther@suse.de>
36177
36178         PR middle-end/60092
36179         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
36180         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
36181         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36182         Handle BUILT_IN_POSIX_MEMALIGN.
36183         (find_func_clobbers): Likewise.
36184         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
36185         (call_may_clobber_ref_p_1): Likewise.
36186
36187 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
36188
36189         PR ipa/59918
36190         * ipa-devirt.c (record_target_from_binfo): Remove overactive
36191         sanity check.
36192
36193 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
36194
36195         PR ipa/59469
36196         * lto-cgraph.c (lto_output_node): Use
36197         symtab_get_symbol_partitioning_class.
36198         (lto_output_varpool_node): likewise.
36199         (symtab_get_symbol_partitioning_class): Move here from
36200         lto/lto-partition.c
36201         * cgraph.h (symbol_partitioning_class): Likewise.
36202         (symtab_get_symbol_partitioning_class): Declare.
36203
36204 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
36205
36206         * ggc.h (ggc_internal_cleared_alloc): New macro.
36207         * vec.h (vec_safe_copy): Handle memory stats.
36208         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
36209         * target-globals.c (save_target_globals): Likewise.
36210
36211 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
36212
36213         PR target/60077
36214         * expr.c (emit_move_resolve_push): Export; be bit more selective
36215         on when to clear alias set.
36216         * expr.h (emit_move_resolve_push): Declare.
36217         * function.h (struct function): Add tail_call_marked.
36218         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
36219         * config/i386/i386-protos.h (ix86_expand_push): Remove.
36220         * config/i386/i386.md (TImode move expander): De not call
36221         ix86_expand_push.
36222         (FP push expanders): Preserve memory attributes.
36223         * config/i386/sse.md (push<mode>1): Remove.
36224         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
36225         (ix86_expand_push): Remove.
36226         * config/i386/mmx.md (push<mode>1): Remove.
36227
36228 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
36229
36230         PR rtl-optimization/60030
36231         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
36232         lopart with paradoxical subreg before shifting it up by hprec.
36233
36234 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36235
36236         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
36237         Remove extra newline at end of file.
36238         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
36239         (arm_issue_rate): Handle cortexa57.
36240         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
36241         (cortex-a57.cortex-a53): Likewise.
36242
36243 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
36244
36245         PR target/59575
36246         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
36247         don't record in REG_FRAME_RELATED_EXPR registers not set in that
36248         bitmask.
36249         (arm_expand_prologue): Adjust all callers.
36250         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
36251         info, registers also at the lowest numbered registers side.  Use
36252         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
36253         XEXP.
36254
36255         PR debug/59992
36256         * var-tracking.c (adjust_mems): Before adding a SET to
36257         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
36258
36259 2014-02-06  Alan Modra  <amodra@gmail.com>
36260
36261         PR target/60032
36262         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
36263         change SDmode to DDmode when lra_in_progress.
36264
36265 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
36266
36267         PR middle-end/59150
36268         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
36269         free_data_ref on the dr first, and before goto again also set dr
36270         to the next dr.  For simd_lane_access, free old datarefs[i] before
36271         overwriting it.  For get_vectype_for_scalar_type failure, don't
36272         free_data_ref if simd_lane_access.
36273
36274         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
36275
36276         PR target/60062
36277         * tree.h (opts_for_fn): New inline function.
36278         (opt_for_fn): Define.
36279         * config/i386/i386.c (ix86_function_regparm): Use
36280         opt_for_fn (decl, optimize) instead of optimize.
36281
36282 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
36283
36284         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
36285         for SYMBOL_REF in large memory model.
36286
36287 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36288
36289         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
36290         and crypto support.
36291         (cortex-a57): Likewise.
36292         (cortex-a57.cortex-a53): Likewise.
36293
36294 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
36295             Kugan Vivekanandarajah  <kuganv@linaro.org>
36296
36297         * config/arm/arm.c (arm_vector_alignment_reachable): Check
36298         unaligned_access.
36299         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
36300
36301 2014-02-06  Richard Biener  <rguenther@suse.de>
36302
36303         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
36304         set_loop_copy and initialize_original_copy_tables.
36305
36306 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
36307
36308         * config/aarch64/aarch64-simd.md
36309         (aarch64_ashr_simddi): Change QI to SI.
36310
36311 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
36312             Jakub Jelinek  <jakub@redhat.com>
36313
36314         PR middle-end/60013
36315         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
36316         of the dataflow.
36317
36318 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36319
36320         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
36321         CODE_FOR_altivec_vpku[hw]um to
36322         CODE_FOR_altivec_vpku[hw]um_direct.
36323         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
36324         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
36325         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
36326         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
36327
36328 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36329
36330         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
36331         generation for -maltivec=be.
36332         (altivec_vsumsws): Simplify redundant test.
36333
36334 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36335
36336         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
36337         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
36338         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
36339         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
36340         gen_altivec_vpkuwum.
36341         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
36342         BYTES_BIG_ENDIAN.
36343         (altivec_vpks<VI_char>ss): Likewise.
36344         (altivec_vpks<VI_char>us): Likewise.
36345         (altivec_vpku<VI_char>us): Likewise.
36346         (altivec_vpku<VI_char>um): Likewise.
36347         (altivec_vpku<VI_char>um_direct): New (copy of
36348         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
36349         internal use).
36350         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
36351         target is little endian and -maltivec=be is not specified.
36352         (*altivec_vupkhs<VU_char>_direct): New (copy of
36353         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
36354         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
36355         target is little endian and -maltivec=be is not specified.
36356         (*altivec_vupkls<VU_char>_direct): New (copy of
36357         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
36358         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
36359         little endian and -maltivec=be is not specified.
36360         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
36361         little endian and -maltivec=be is not specified.
36362
36363 2014-02-05  Richard Henderson  <rth@redhat.com>
36364
36365         PR debug/52727
36366         * combine-stack-adj.c: Revert r206943.
36367         * sched-int.h (struct deps_desc): Add last_args_size.
36368         * sched-deps.c (init_deps): Initialize it.
36369         (sched_analyze_insn): Add OUTPUT dependencies between insns that
36370         contain REG_ARGS_SIZE notes.
36371
36372 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
36373
36374         * lto-cgraph.c (asm_nodes_output): Make global.
36375         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
36376         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
36377         (driver_handle_option): Handle OPT_fwpa.
36378
36379 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
36380
36381         PR ipa/59947
36382         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
36383         a comment typo and formatting issue.  If odr_hash hasn't been
36384         created, return vNULL and set *completep to false.
36385
36386         PR middle-end/57499
36387         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
36388         bb with no successors.
36389
36390 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
36391
36392         PR target/59718
36393         * doc/invoke.texi (-march): Clarify documentation for ARM.
36394         (-mtune): Likewise.
36395         (-mcpu): Likewise.
36396
36397 2014-02-05  Richard Biener  <rguenther@suse.de>
36398
36399         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
36400         when not vectorizing because of too many alias checks.
36401         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
36402         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
36403
36404 2014-02-05  Nick Clifton  <nickc@redhat.com>
36405
36406         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
36407         accept extended registers in any mode when compiling for the MN10300.
36408
36409 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
36410
36411         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
36412         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
36413         sanitization attributes.
36414         (can_inline_edge_p): Likewise.
36415         (sanitize_attrs_match_for_inline_p): New function.
36416
36417 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
36418
36419         * ipa-prop.c (detect_type_change): Shor circuit testing of
36420         type changes on THIS pointer.
36421
36422 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
36423
36424         PR target/59777
36425         * config/pa/pa.c (legitimize_tls_address): Return original address
36426         if not passed a SYMBOL_REF rtx.
36427         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
36428         addresses.
36429         (pa_emit_move_sequence): Simplify TLS source operands.
36430         (pa_legitimate_constant_p): Reject all TLS constants.
36431         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
36432         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
36433
36434 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
36435
36436         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
36437         groups when we know they are controlled by LTO.
36438         * varasm.c (default_binds_local_p_1): If object is in other partition,
36439         it will be resolved locally.
36440
36441 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36442
36443         * config/host-linux.c (linux_gt_pch_use_address): Don't
36444         use SSIZE_MAX because it is not always defined.
36445
36446 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
36447
36448         PR bootstrap/59913
36449         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
36450         threshold for pseudo splitting.
36451         (update_ebb_live_info): Process call argument hard registers and
36452         hard registers from insn definition too.
36453         (max_small_class_regs_num): New constant.
36454         (inherit_in_ebb): Update live hard regs through EBBs.  Update
36455         reloads_num only for small register classes.  Don't split for
36456         outputs of jumps.
36457
36458 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
36459
36460         PR ipa/60058
36461         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
36462         is non-null.
36463
36464 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
36465
36466         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
36467         visibility is safe.
36468
36469 2014-02-04  Marek Polacek  <polacek@redhat.com>
36470
36471         * gdbinit.in (pel): Define.
36472
36473 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36474
36475         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
36476         behavior.
36477
36478 2014-02-04  Richard Biener  <rguenther@suse.de>
36479
36480         PR lto/59723
36481         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
36482         in function context local.
36483         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
36484         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
36485         similar to LTO_imported_decl_ref.
36486
36487 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
36488
36489         PR tree-optimization/60002
36490         * cgraphclones.c (build_function_decl_skip_args): Clear
36491         DECL_LANG_SPECIFIC.
36492
36493         PR tree-optimization/60023
36494         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
36495         false to gsi_replace.
36496         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
36497         has been in some EH region and vec_stmt could throw, add
36498         vec_stmt into the same EH region.
36499         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
36500         has no lhs, ignore it.
36501         * internal-fn.c (expand_MASK_LOAD): Likewise.
36502
36503         PR ipa/60026
36504         * tree-inline.c (copy_forbidden): Fail for
36505         __attribute__((optimize (0))) functions.
36506
36507         PR other/58712
36508         * omp-low.c (simd_clone_struct_copy): If from->inbranch
36509         is set, copy one less argument.
36510         (expand_simd_clones): Don't subtract clone_info->inbranch
36511         from simd_clone_struct_alloc argument.
36512
36513         PR rtl-optimization/57915
36514         * recog.c (simplify_while_replacing): If all unary/binary/relational
36515         operation arguments are constant, attempt to simplify those.
36516
36517         PR middle-end/59261
36518         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
36519         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
36520
36521 2014-02-04  Richard Biener  <rguenther@suse.de>
36522
36523         PR tree-optimization/60012
36524         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
36525         TBAA disambiguation to all DDRs.
36526
36527 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36528
36529         PR target/59788
36530         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
36531         (LINK_SPEC): Use it for -shared, -shared-libgcc.
36532
36533 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
36534
36535         PR ipa/59882
36536         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
36537
36538 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
36539
36540         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
36541         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
36542
36543 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
36544
36545         PR ipa/59831
36546         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
36547         to figure out targets of polymorphic calls with known decl.
36548         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
36549         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
36550         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
36551         (get_polymorphic_call_info): ... here.
36552         (get_polymorphic_call_info_from_invariant): New function.
36553
36554 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
36555
36556         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
36557         lookup via vtable pointer; check for type consistency
36558         and turn inconsitent facts into UNREACHABLE.
36559         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
36560         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
36561         type inconsistent querries; return UNREACHABLE instead.
36562
36563 2014-02-03  Richard Henderson  <rth@twiddle.net>
36564
36565         PR tree-opt/59924
36566         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
36567         already processed this node.
36568         (normalize_one_pred_1): Pass along mark_set.
36569         (normalize_one_pred): Create and destroy a pointer_set_t.
36570         (normalize_one_pred_chain): Likewise.
36571
36572 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
36573
36574         PR gcov-profile/58602
36575         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
36576
36577 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
36578
36579         PR ipa/59831
36580         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
36581         -fno-devirtualize; try to devirtualize by the knowledge of
36582         virtual table pointer given by aggregate propagation.
36583         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
36584         (ipa_print_node_jump_functions): Dump also offset that
36585         is relevant for polymorphic calls.
36586         (determine_known_aggregate_parts): Add arg_type parameter; use it
36587         instead of determining the type from pointer type.
36588         (ipa_compute_jump_functions_for_edge): Update call of
36589         determine_known_aggregate_parts.
36590         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
36591         (gimple_get_virt_method_for_binfo): ... here; simplify using
36592         vtable_pointer_value_to_vtable.
36593         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
36594         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
36595         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
36596         (vtable_pointer_value_to_vtable): Break out from ...; handle also
36597         POINTER_PLUS_EXPR.
36598         (vtable_pointer_value_to_binfo): ... here.
36599         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
36600
36601 2014-02-03  Teresa Johnson  <tejohnson@google.com>
36602
36603         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
36604         redef of outer loop index variable.
36605
36606 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
36607
36608         PR c++/53017
36609         PR c++/59211
36610         * doc/extend.texi (Function Attributes): Typo.
36611
36612 2014-02-03  Cong Hou  <congh@google.com>
36613
36614         PR tree-optimization/60000
36615         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
36616         if the vectorized statement is a store.  A store statement can only
36617         appear at the end of pattern statements.
36618
36619 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
36620
36621         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
36622         (ix86_option_override_internal): Default long double to 64-bit for
36623         32-bit Bionic and to 128-bit for 64-bit Bionic.
36624
36625         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
36626         TARGET_LONG_DOUBLE_128 is true.
36627         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
36628
36629         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
36630         (mlong-double-64): Negate -mlong-double-128.
36631         (mlong-double-128): New option.
36632
36633         * config/i386/i386-c.c (ix86_target_macros): Define
36634         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
36635
36636         * doc/invoke.texi: Document -mlong-double-128.
36637
36638 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
36639
36640         PR rtl-optimization/60024
36641         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
36642
36643 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
36644
36645         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
36646
36647 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
36648
36649         PR rtl-optimization/57662
36650         * sel-sched.c (code_motion_path_driver): Do not mark already not
36651         existing blocks in the visiting bitmap.
36652
36653 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
36654
36655         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
36656         on the insn being emitted.
36657
36658 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
36659             Will Deacon  <will.deacon@arm.com>
36660
36661         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
36662
36663 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36664
36665         * config/arm/arm-tables.opt: Regenerate.
36666
36667 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36668
36669         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
36670         for vector types other than V16QImode.
36671         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
36672         define_expand, and call altivec_expand_vec_perm_le when producing
36673         code with little endian element order.
36674         (*altivec_vperm_<mode>_internal): New insn having previous
36675         behavior of altivec_vperm_<mode>.
36676         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
36677         altivec_expand_vec_perm_le when producing code with little endian
36678         element order.
36679         (*altivec_vperm_<mode>_uns_internal): New insn having previous
36680         behavior of altivec_vperm_<mode>_uns.
36681
36682 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36683
36684         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
36685         (altivec_vsumsws): Add handling for -maltivec=be with a little
36686         endian target.
36687         (altivec_vsumsws_direct): New.
36688         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
36689         gen_altivec_vsumsws.
36690
36691 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
36692
36693         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
36694         vtable_pointer_value_to_binfo): New functions.
36695         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
36696         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
36697
36698 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
36699
36700         * config/nios2/nios2.md (load_got_register): Initialize GOT
36701         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
36702         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
36703
36704 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
36705
36706         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
36707         preserverd by passthrough, do not propagate the type.
36708
36709 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
36710
36711         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
36712         (mips_atomic_assign_expand_fenv): New function.
36713         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
36714
36715 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
36716
36717         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
36718         (__builtin_mips_set_fcsr): Likewise.
36719         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
36720         MIPS_USI_FTYPE_VOID.
36721         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
36722         (mips16_expand_set_fcsr): Likewise.
36723         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
36724         (mips16_set_fcsr_stub): Likewise.
36725         (mips16_get_fcsr_one_only_stub): New class.
36726         (mips16_set_fcsr_one_only_stub): Likewise.
36727         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
36728         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
36729         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
36730         (hard_float): New availability predicate.
36731         (mips_builtins): Add get_fcsr and set_fcsr.
36732         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
36733         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
36734         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
36735         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
36736         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
36737         patterns.
36738
36739 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
36740
36741         * config/mips/mips.c (mips_one_only_stub): New class.
36742         (mips_need_mips16_rdhwr_p): Replace with...
36743         (mips16_rdhwr_stub): ...this new variable.
36744         (mips16_stub_call_address): New function.
36745         (mips16_rdhwr_one_only_stub): New class.
36746         (mips_expand_thread_pointer): Use mips16_stub_call_address.
36747         (mips_output_mips16_rdhwr): Delete.
36748         (mips_finish_stub): New function.
36749         (mips_code_end): Use it to handle rdhwr stubs.
36750
36751 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
36752
36753         PR target/60017
36754         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
36755         when calculating size of integer atomic types.
36756
36757 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
36758
36759         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
36760
36761 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
36762
36763         PR tree-optimization/60003
36764         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
36765         * profile.c (branch_prob): Use gimple_call_builtin_p
36766         to check for BUILT_IN_SETJMP_RECEIVER.
36767         * tree-inline.c (copy_bb): Call notice_special_calls.
36768
36769 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
36770
36771         PR bootstrap/59985
36772         * lra-constraints.c (process_alt_operands): Update reload_sum only
36773         on the first pass.
36774
36775 2014-01-31  Richard Henderson  <rth@redhat.com>
36776
36777         PR middle-end/60004
36778         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
36779         until after else_eh is processed.
36780
36781 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
36782
36783         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
36784         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
36785         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
36786         in smmintrin.h, remove them.
36787         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
36788         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
36789         * config/i386/i386.md (ROUND_SAE): Fix value.
36790         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
36791         (const48_operand): New.
36792         * config/i386/subst.md (round), (round_expand): Use
36793         const_4_or_8_to_11_operand.
36794         (round_saeonly), (round_saeonly_expand): Use const48_operand.
36795
36796 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
36797
36798         * config/i386/constraints.md (Yk): Swap meaning with k.
36799         * config/i386/i386.md (movhi_internal): Change Yk to k.
36800         (movqi_internal): Ditto.
36801         (*k<logic><mode>): Ditto.
36802         (*andhi_1): Ditto.
36803         (*andqi_1): Ditto.
36804         (kandn<mode>): Ditto.
36805         (*<code>hi_1): Ditto.
36806         (*<code>qi_1): Ditto.
36807         (kxnor<mode>): Ditto.
36808         (kortestzhi): Ditto.
36809         (kortestchi): Ditto.
36810         (kunpckhi): Ditto.
36811         (*one_cmplhi2_1): Ditto.
36812         (*one_cmplqi2_1): Ditto.
36813         * config/i386/sse.md (): Change k to Yk.
36814         (avx512f_load<mode>_mask): Ditto.
36815         (avx512f_blendm<mode>): Ditto.
36816         (avx512f_store<mode>_mask): Ditto.
36817         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
36818         (avx512f_storedqu<mode>_mask): Ditto.
36819         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
36820         Ditto.
36821         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
36822         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
36823         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
36824         (avx512f_maskcmp<mode>3): Ditto.
36825         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
36826         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
36827         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
36828         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
36829         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
36830         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
36831         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
36832         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
36833         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
36834         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
36835         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
36836         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
36837         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
36838         (vec_extract_lo_<mode>_maskm): Ditto.
36839         (vec_extract_hi_<mode>_maskm): Ditto.
36840         (avx512f_vternlog<mode>_mask): Ditto.
36841         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
36842         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
36843         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
36844         (avx512f_<code>v8div16qi2_mask): Ditto.
36845         (avx512f_<code>v8div16qi2_mask_store): Ditto.
36846         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
36847         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
36848         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
36849         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
36850         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
36851         (*avx512pf_gatherpf<mode>df_mask): Ditto.
36852         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
36853         (*avx512pf_scatterpf<mode>df_mask): Ditto.
36854         (avx512cd_maskb_vec_dupv8di): Ditto.
36855         (avx512cd_maskw_vec_dupv16si): Ditto.
36856         (avx512f_vpermi2var<mode>3_maskz): Ditto.
36857         (avx512f_vpermi2var<mode>3_mask): Ditto.
36858         (avx512f_vpermi2var<mode>3_mask): Ditto.
36859         (avx512f_vpermt2var<mode>3_maskz): Ditto.
36860         (*avx512f_gathersi<mode>): Ditto.
36861         (*avx512f_gathersi<mode>_2): Ditto.
36862         (*avx512f_gatherdi<mode>): Ditto.
36863         (*avx512f_gatherdi<mode>_2): Ditto.
36864         (*avx512f_scattersi<mode>): Ditto.
36865         (*avx512f_scatterdi<mode>): Ditto.
36866         (avx512f_compress<mode>_mask): Ditto.
36867         (avx512f_compressstore<mode>_mask): Ditto.
36868         (avx512f_expand<mode>_mask): Ditto.
36869         * config/i386/subst.md (mask): Change k to Yk.
36870         (mask_scalar_merge): Ditto.
36871         (sd): Ditto.
36872
36873 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
36874
36875         * doc/extend.texi (Vector Extensions): Document ?: in C++.
36876
36877 2014-01-31  Richard Biener  <rguenther@suse.de>
36878
36879         PR middle-end/59990
36880         * builtins.c (fold_builtin_memory_op): Make sure to not
36881         use a floating-point mode or a boolean or enumeral type for
36882         the copy operation.
36883
36884 2014-01-30  DJ Delorie  <dj@redhat.com>
36885
36886         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
36887         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
36888         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
36889         whenever main() has an epilogue.
36890
36891 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36892
36893         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
36894         unused variable "field".
36895         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
36896         (vsx_mergeh_<mode>): Likewise.
36897         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
36898         (altivec_vmrghh): Likewise.
36899         (altivec_vmrghw): Likewise.
36900         (altivec_vmrglb): Likewise.
36901         (altivec_vmrglh): Likewise.
36902         (altivec_vmrglw): Likewise.
36903         (altivec_vspltb): Add missing uses.
36904         (altivec_vsplth): Likewise.
36905         (altivec_vspltw): Likewise.
36906         (altivec_vspltsf): Likewise.
36907
36908 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
36909
36910         PR target/59923
36911         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
36912         frame related instructions.
36913
36914 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
36915
36916         PR rtl-optimization/59959
36917         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
36918         any reload of register whose subreg is invalid.
36919
36920 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
36921
36922         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
36923         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
36924         Add missing return type - void.
36925
36926 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36927
36928         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
36929         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
36930         remove element index adjustment for endian (now handled in vsx.md
36931         and altivec.md).
36932         (altivec_expand_vec_perm_const): Use
36933         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
36934         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
36935         (vsx_xxspltw_<mode>): Adjust element index for little endian.
36936         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
36937         define_expand and a new define_insn *altivec_vspltb_internal;
36938         adjust for -maltivec=be on a little endian target.
36939         (altivec_vspltb_direct): New.
36940         (altivec_vsplth): Divide into a define_expand and a new
36941         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
36942         little endian target.
36943         (altivec_vsplth_direct): New.
36944         (altivec_vspltw): Divide into a define_expand and a new
36945         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
36946         little endian target.
36947         (altivec_vspltw_direct): New.
36948         (altivec_vspltsf): Divide into a define_expand and a new
36949         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
36950         a little endian target.
36951
36952 2014-01-30  Richard Biener  <rguenther@suse.de>
36953
36954         PR tree-optimization/59993
36955         * tree-ssa-forwprop.c (associate_pointerplus): Check we
36956         can propagate form the earlier stmt and avoid the transform
36957         when the intermediate result is needed.
36958
36959 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
36960
36961         * README.Portability: Fix typo.
36962
36963 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
36964
36965         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
36966         comparison_operator with ordered_comparison_operator.
36967
36968 2014-01-30  Nick Clifton  <nickc@redhat.com>
36969
36970         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
36971         Rename to mn10300_store_multiple_regs.
36972         * config/mn10300/mn10300.c: Likewise.
36973         * config/mn10300/mn10300.md (store_movm): Fix typo: call
36974         store_multiple_regs.
36975         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
36976         Call mn10300_store_multiple_regs.
36977
36978 2014-01-30  Nick Clifton  <nickc@redhat.com>
36979             DJ Delorie  <dj@redhat.com>
36980
36981         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
36982         %fp 2 to keep registers after it properly word-aligned.
36983         (rl78_alloc_physical_registers_umul): Handle the case where both
36984         input operands are the same.
36985
36986 2014-01-30  Richard Biener  <rguenther@suse.de>
36987
36988         PR tree-optimization/59903
36989         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
36990         check properly.
36991
36992 2014-01-30  Jason Merrill  <jason@redhat.com>
36993
36994         PR c++/59633
36995         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
36996
36997         PR c++/59645
36998         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
36999
37000 2014-01-30  Richard Biener  <rguenther@suse.de>
37001
37002         PR tree-optimization/59951
37003         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
37004
37005 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
37006
37007         PR target/59784
37008         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
37009         SFmode to DFmode case.
37010
37011 2014-01-29  DJ Delorie  <dj@redhat.com>
37012
37013         * config/msp430/msp430.opt (-minrt): New.
37014         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
37015         if -minrt given.
37016         (ENDFILE_SPEC): Likewise.
37017
37018 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
37019
37020         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
37021         (estimate_function_body_sizes): Use it.
37022
37023 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
37024
37025         PR c++/58561
37026         * dwarf2out.c (is_cxx_auto): New.
37027         (is_base_type): Use it.
37028         (gen_type_die_with_usage): Likewise.
37029
37030 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
37031
37032         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
37033         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
37034         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
37035         -maltivec=be with LE targets.
37036         (vsx_mergeh_<mode>): Likewise.
37037         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
37038         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
37039         (altivec_vmrghb): Replace with define_expand and new
37040         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
37041         (altivec_vmrghb_direct): New define_insn.
37042         (altivec_vmrghh): Replace with define_expand and new
37043         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
37044         (altivec_vmrghh_direct): New define_insn.
37045         (altivec_vmrghw): Replace with define_expand and new
37046         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
37047         (altivec_vmrghw_direct): New define_insn.
37048         (*altivec_vmrghsf): Adjust for endianness.
37049         (altivec_vmrglb): Replace with define_expand and new
37050         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
37051         (altivec_vmrglb_direct): New define_insn.
37052         (altivec_vmrglh): Replace with define_expand and new
37053         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
37054         (altivec_vmrglh_direct): New define_insn.
37055         (altivec_vmrglw): Replace with define_expand and new
37056         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
37057         (altivec_vmrglw_direct): New define_insn.
37058         (*altivec_vmrglsf): Adjust for endianness.
37059         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
37060         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
37061         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
37062         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
37063         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
37064         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
37065         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
37066         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
37067
37068 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37069
37070         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
37071         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
37072         whitespace.
37073
37074 2014-01-29  Richard Biener  <rguenther@suse.de>
37075
37076         PR tree-optimization/58742
37077         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
37078         associate_pointerplus_align.
37079         (associate_pointerplus_diff): New function.
37080         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
37081         and associate_pointerplus_diff.
37082
37083 2014-01-29  Richard Biener  <rguenther@suse.de>
37084
37085         * lto-streamer.h (LTO_major_version): Bump to 3.
37086         (LTO_minor_version): Reset to 0.
37087
37088 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
37089
37090         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
37091         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
37092         (arm_file_start): Generate correct asm header for armv7ve.
37093         * config/arm/bpabi.h: Add multilib support for armv7ve.
37094         * config/arm/driver-arm.c: Change the architectures of cortex-a7
37095         and cortex-a15 to armv7ve.
37096         * config/arm/t-aprofile: Add multilib support for armv7ve.
37097         * doc/invoke.texi: Document -march=armv7ve.
37098
37099 2014-01-29  Richard Biener  <rguenther@suse.de>
37100
37101         PR tree-optimization/58742
37102         * tree-ssa-forwprop.c (associate_plusminus): Return true
37103         if we changed sth, defer EH cleanup to ...
37104         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
37105         (simplify_mult): New function.
37106
37107 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
37108
37109         PR middle-end/59917
37110         PR tree-optimization/59920
37111         * tree.c (build_common_builtin_nodes): Remove
37112         __builtin_setjmp_dispatcher initialization.
37113         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
37114         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
37115         instead of gsi_after_labels + manually skipping debug stmts.
37116         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
37117         ignore bbs with IFN_ABNORMAL_DISPATCHER.
37118         * tree-inline.c (copy_edges_for_bb): Remove
37119         can_make_abnormal_goto argument, instead add abnormal_goto_dest
37120         argument.  Ignore computed_goto_p stmts.  Don't call
37121         make_abnormal_goto_edges.  If a call might need abnormal edges
37122         for non-local gotos, see if it already has an edge to
37123         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
37124         with true argument, don't do anything then, otherwise add
37125         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
37126         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
37127         caller.
37128         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
37129         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
37130         (lower_stmt): Don't set data->calls_builtin_setjmp.
37131         (lower_builtin_setjmp): Adjust comment.
37132         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
37133         * tree-cfg.c (found_computed_goto): Remove.
37134         (factor_computed_gotos): Remove.
37135         (make_goto_expr_edges): Return bool, true for computed gotos.
37136         Don't call make_abnormal_goto_edges.
37137         (build_gimple_cfg): Don't set found_computed_goto, don't call
37138         factor_computed_gotos.
37139         (computed_goto_p): No longer static.
37140         (make_blocks): Don't set found_computed_goto.
37141         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
37142         (make_edges): If make_goto_expr_edges returns true, push bb
37143         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
37144         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
37145         vector.  Record mapping between bbs and OpenMP regions if there
37146         are any, adjust make_gimple_omp_edges caller.  Call
37147         handle_abnormal_edges.
37148         (make_abnormal_goto_edges): Remove.
37149         * tree-cfg.h (make_abnormal_goto_edges): Remove.
37150         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
37151         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
37152         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
37153         * internal-fn.def (ABNORMAL_DISPATCHER): New.
37154         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
37155         filling *region also set *region_idx to (*region)->entry->index.
37156
37157         PR other/58712
37158         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
37159         For REGs set ORIGINAL_REGNO.
37160
37161 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
37162
37163         * doc/md.texi: Mention that a target shouldn't implement
37164         vec_widen_(s|u)mul_even/odd pair if it is less efficient
37165         than hi/lo pair.
37166
37167 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
37168
37169         PR tree-optimization/59594
37170         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
37171         a copy of the datarefs vector rather than the vector itself.
37172
37173 2014-01-28  Jason Merrill  <jason@redhat.com>
37174
37175         PR c++/53756
37176         * dwarf2out.c (auto_die): New static.
37177         (gen_type_die_with_usage): Handle C++1y 'auto'.
37178         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
37179         on definition.
37180
37181 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
37182
37183         PR target/59672
37184         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
37185         (SPEC_X32): Likewise.
37186         (SPEC_64): Likewise.
37187         * config/i386/i386.c (ix86_option_override_internal): Turn off
37188         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
37189         for TARGET_16BIT.
37190         (x86_file_start): Output .code16gcc for TARGET_16BIT.
37191         * config/i386/i386.h (TARGET_16BIT): New macro.
37192         (TARGET_16BIT_P): Likewise.
37193         * config/i386/i386.opt: Add m16.
37194         * doc/invoke.texi: Document -m16.
37195
37196 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
37197
37198         PR preprocessor/59935
37199         * input.c (location_get_source_line): Bail out on when line number
37200         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
37201
37202 2014-01-28  Richard Biener  <rguenther@suse.de>
37203
37204         PR tree-optimization/58742
37205         * tree-ssa-forwprop.c (associate_plusminus): Handle
37206         pointer subtraction of the form (T)(P + A) - (T)P.
37207
37208 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
37209
37210         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
37211         at const_int_cost.
37212
37213 2014-01-28  Richard Biener  <rguenther@suse.de>
37214
37215         Revert
37216         2014-01-28  Richard Biener  <rguenther@suse.de>
37217
37218         PR rtl-optimization/45364
37219         PR rtl-optimization/59890
37220         * var-tracking.c (local_get_addr_clear_given_value): Handle
37221         already cleared slot.
37222         (val_reset): Handle not allocated local_get_addr_cache.
37223         (vt_find_locations): Use post-order on the inverted CFG.
37224
37225 2014-01-28  Richard Biener  <rguenther@suse.de>
37226
37227         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
37228
37229 2014-01-28  Richard Biener  <rguenther@suse.de>
37230
37231         PR rtl-optimization/45364
37232         PR rtl-optimization/59890
37233         * var-tracking.c (local_get_addr_clear_given_value): Handle
37234         already cleared slot.
37235         (val_reset): Handle not allocated local_get_addr_cache.
37236         (vt_find_locations): Use post-order on the inverted CFG.
37237
37238 2014-01-28  Alan Modra  <amodra@gmail.com>
37239
37240         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
37241         * configure.ac <recursive call for build != host>: Define
37242         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
37243         and LD_FOR_BUILD too.
37244         * configure: Regenerate.
37245
37246 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
37247
37248         * config/i386/i386.c (get_builtin_code_for_version): Separate
37249         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
37250         Broadwell from Haswell.
37251
37252 2014-01-27  Steve Ellcey  <sellcey@mips.com>
37253
37254         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
37255         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
37256         * config/mips/mips.c (mips_option_override): Change setting
37257         of TARGET_DSP.
37258         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
37259         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
37260         Change from Mask to Var.
37261
37262 2014-01-27  Jeff Law  <law@redhat.com>
37263
37264         * ipa-inline.c (inline_small_functions): Fix typo.
37265
37266 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
37267
37268         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
37269         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
37270         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
37271         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
37272         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
37273         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
37274         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
37275         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
37276         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
37277         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
37278         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
37279         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
37280         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
37281         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
37282         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
37283         (_mm512_storeu_epi64): Ditto.
37284         (_mm512_cmpge_epi32_mask): Ditto.
37285         (_mm512_cmpge_epu32_mask): Ditto.
37286         (_mm512_cmpge_epi64_mask): Ditto.
37287         (_mm512_cmpge_epu64_mask): Ditto.
37288         (_mm512_cmple_epi32_mask): Ditto.
37289         (_mm512_cmple_epu32_mask): Ditto.
37290         (_mm512_cmple_epi64_mask): Ditto.
37291         (_mm512_cmple_epu64_mask): Ditto.
37292         (_mm512_cmplt_epi32_mask): Ditto.
37293         (_mm512_cmplt_epu32_mask): Ditto.
37294         (_mm512_cmplt_epi64_mask): Ditto.
37295         (_mm512_cmplt_epu64_mask): Ditto.
37296         (_mm512_cmpneq_epi32_mask): Ditto.
37297         (_mm512_cmpneq_epu32_mask): Ditto.
37298         (_mm512_cmpneq_epi64_mask): Ditto.
37299         (_mm512_cmpneq_epu64_mask): Ditto.
37300         (_mm512_expand_pd): Ditto.
37301         (_mm512_expand_ps): Ditto.
37302         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
37303         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
37304         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
37305         * config/i386/i386.c (ix86_builtins): Add
37306         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
37307         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
37308         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
37309         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
37310         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
37311         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
37312         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
37313         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
37314         IX86_BUILTIN_PMOVUSQW512_MEM.
37315         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
37316         __builtin_ia32_pmovsqd512mem_mask,
37317         __builtin_ia32_pmovqd512mem_mask,
37318         __builtin_ia32_pmovusqw512mem_mask,
37319         __builtin_ia32_pmovsqw512mem_mask,
37320         __builtin_ia32_pmovqw512mem_mask,
37321         __builtin_ia32_pmovusdw512mem_mask,
37322         __builtin_ia32_pmovsdw512mem_mask,
37323         __builtin_ia32_pmovdw512mem_mask,
37324         __builtin_ia32_pmovqb512mem_mask,
37325         __builtin_ia32_pmovusqb512mem_mask,
37326         __builtin_ia32_pmovsqb512mem_mask,
37327         __builtin_ia32_pmovusdb512mem_mask,
37328         __builtin_ia32_pmovsdb512mem_mask,
37329         __builtin_ia32_pmovdb512mem_mask.
37330         (bdesc_args): Add __builtin_ia32_expanddf512,
37331         __builtin_ia32_expandsf512.
37332         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
37333         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
37334         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
37335         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
37336         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
37337         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
37338         (avx512f_<code>v8div16qi2_mask_store): This.
37339         (avx512f_expand<mode>): New.
37340
37341 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
37342
37343         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
37344         New.
37345         (_mm512_mask_prefetch_i64gather_pd): Ditto.
37346         (_mm512_prefetch_i32scatter_pd): Ditto.
37347         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
37348         (_mm512_prefetch_i64scatter_pd): Ditto.
37349         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
37350         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
37351         (_mm512_mask_prefetch_i64gather_ps): Ditto.
37352         (_mm512_prefetch_i32scatter_ps): Ditto.
37353         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
37354         (_mm512_prefetch_i64scatter_ps): Ditto.
37355         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
37356         * config/i386/i386-builtin-types.def: Define
37357         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
37358         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
37359         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
37360         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
37361         IX86_BUILTIN_SCATTERPFQPD.
37362         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
37363         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
37364         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
37365         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
37366         __builtin_ia32_scatterpfqps.
37367         (ix86_expand_builtin): Expand new built-ins.
37368         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
37369         fix memory access data type.
37370         (*avx512pf_gatherpf<mode>_mask): Ditto.
37371         (*avx512pf_gatherpf<mode>): Ditto.
37372         (avx512pf_scatterpf<mode>): Ditto.
37373         (*avx512pf_scatterpf<mode>_mask): Ditto.
37374         (*avx512pf_scatterpf<mode>): Ditto.
37375         (GATHER_SCATTER_SF_MEM_MODE): New.
37376         (avx512pf_gatherpf<mode>df): Ditto.
37377         (*avx512pf_gatherpf<mode>df_mask): Ditto.
37378         (*avx512pf_scatterpf<mode>df): Ditto.
37379
37380 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
37381
37382         PR bootstrap/59934
37383         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
37384         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
37385         reached.
37386
37387 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
37388
37389         * common/config/arm/arm-common.c
37390         (arm_rewrite_mcpu): Handle multiple names.
37391         * config/arm/arm.h
37392         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
37393
37394 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
37395
37396         * gimple-builder.h (create_gimple_tmp): Delete.
37397
37398 2014-01-27  Christian Bruel  <christian.bruel@st.com>
37399
37400         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
37401         words comparisons.
37402
37403 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
37404
37405         * config/pa/pa.md (call): Generate indirect long calls to non-local
37406         functions when outputing 32-bit code.
37407         (call_value): Likewise except for special call to buggy powf function.
37408
37409         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
37410         portable runtime and PIC indirect calls.
37411         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
37412         and PIC call sequences.  Use ldo instead of blr to set return register
37413         in PIC call sequence.
37414
37415 2014-01-25  Walter Lee  <walt@tilera.com>
37416
37417         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
37418         avoid clobbering a live register.
37419
37420 2014-01-25  Walter Lee  <walt@tilera.com>
37421
37422         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
37423         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
37424         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
37425         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
37426
37427 2014-01-25  Walter Lee  <walt@tilera.com>
37428
37429         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
37430         arguments on even registers.
37431         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
37432         STACK_BOUNDARY.
37433         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
37434         (BIGGEST_ALIGNMENT): Ditto.
37435         (BIGGEST_FIELD_ALIGNMENT): Ditto.
37436
37437 2014-01-25  Walter Lee  <walt@tilera.com>
37438
37439         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
37440         insns before bundling.
37441         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
37442
37443 2014-01-25  Walter Lee  <walt@tilera.com>
37444
37445         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
37446         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
37447         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
37448
37449 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
37450
37451         * config/mips/constraints.md (kl): Delete.
37452         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
37453         define expands, using...
37454         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
37455         instructions for MIPS16.
37456         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
37457         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
37458
37459 2014-01-25  Walter Lee  <walt@tilera.com>
37460
37461         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
37462         (clzdi2): Ditto.
37463         (ffsdi2): Ditto.
37464
37465 2014-01-25  Walter Lee  <walt@tilera.com>
37466
37467         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
37468         (TARGET_EXPAND_TO_RTL_HOOK): Define.
37469
37470 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
37471
37472         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
37473         Handle XOR.
37474
37475 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
37476
37477         * print-rtl.c (in_call_function_usage): New var.
37478         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
37479         EXPR_LIST mode as mode and not as reg note name.
37480
37481         PR middle-end/59561
37482         * cfgloopmanip.c (copy_loop_info): If
37483         loop->warned_aggressive_loop_optimizations, make sure
37484         the flag is set in target loop too.
37485
37486 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
37487
37488         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
37489         flag_cilkplus.
37490         * builtins.def: Likewise.
37491         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
37492         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
37493         * ira.c (ira_setup_eliminable_regset): Likewise.
37494         * omp-low.c (gate_expand_omp): Likewise.
37495         (execute_lower_omp): Likewise.
37496         (diagnose_sb_0): Likewise.
37497         (gate_diagnose_omp_blocks): Likewise.
37498         (simd_clone_clauses_extract): Likewise.
37499         (gate): Likewise.
37500
37501 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
37502
37503         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
37504         correction for little endian...
37505         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
37506         here.
37507
37508 2014-01-24  Jeff Law  <law@redhat.com>
37509
37510         PR tree-optimization/59919
37511         * tree-vrp.c (find_assert_locations_1): Do not register asserts
37512         for non-returning calls.
37513
37514 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
37515
37516         * common/config/aarch64/aarch64-common.c
37517         (aarch64_rewrite_mcpu): Handle multiple names.
37518         * config/aarch64/aarch64.h
37519         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
37520
37521 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
37522
37523         * input.c (add_file_to_cache_tab): Handle the case where fopen
37524         returns NULL.
37525
37526 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
37527
37528         PR target/59929
37529         * config/i386/i386.md (pushsf splitter): Get stack adjustment
37530         from push operand if code of push isn't PRE_DEC.
37531
37532 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
37533
37534         PR target/59909
37535         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
37536         -mquad-memory-atomic.  Update -mquad-memory documentation to say
37537         it is only used for non-atomic loads/stores.
37538
37539         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
37540         -mquad-memory or -mquad-memory-atomic switches.
37541
37542         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
37543         -mquad-memory-atomic to ISA 2.07 support.
37544
37545         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
37546         to separate support of normal quad word memory operations (ldq, stq)
37547         from the atomic quad word memory operations.
37548
37549         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
37550         support to separate non-atomic quad word operations from atomic
37551         quad word operations.  Disable non-atomic quad word operations in
37552         little endian mode so that we don't have to swap words after the
37553         load and before the store.
37554         (quad_load_store_p): Add comment about atomic quad word support.
37555         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
37556         options printed with -mdebug=reg.
37557
37558         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
37559         -mquad-memory-atomic as the test for whether we have quad word
37560         atomic instructions.
37561         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
37562         or -mp8-vector are used, allow byte/half-word atomic operations.
37563
37564         * config/rs6000/sync.md (load_lockedti): Insure that the address
37565         is a proper indexed or indirect address for the lqarx instruction.
37566         On little endian systems, swap the hi/lo registers after the lqarx
37567         instruction.
37568         (load_lockedpti): Use indexed_or_indirect_operand predicate to
37569         insure the address is valid for the lqarx instruction.
37570         (store_conditionalti): Insure that the address is a proper indexed
37571         or indirect address for the stqcrx. instruction.  On little endian
37572         systems, swap the hi/lo registers before doing the stqcrx.
37573         instruction.
37574         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
37575         insure the address is valid for the stqcrx. instruction.
37576
37577         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
37578         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
37579         type of quad memory support is available.
37580
37581 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
37582
37583         PR regression/59915
37584         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
37585         there is a danger of looping.
37586
37587 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
37588
37589         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
37590         force flag_ira_loop_pressure if set via command line.
37591
37592 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
37593
37594         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
37595         (ashr_simd): New builtin handling DI mode.
37596         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
37597         (aarch64_sshr_simddi): New match pattern.
37598         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
37599         (vshrd_n_s64): Likewise.
37600         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
37601
37602 2014-01-23  Nick Clifton  <nickc@redhat.com>
37603
37604         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
37605         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
37606         favour of mcu specific scripts.
37607         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
37608         430x multilibs.
37609
37610 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
37611             Alex Velenko  <Alex.Velenko@arm.com>
37612
37613         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
37614         (vaddv_s16): Likewise.
37615         (vaddv_s32): Likewise.
37616         (vaddv_u8): Likewise.
37617         (vaddv_u16): Likewise.
37618         (vaddv_u32): Likewise.
37619         (vaddvq_s8): Likewise.
37620         (vaddvq_s16): Likewise.
37621         (vaddvq_s32): Likewise.
37622         (vaddvq_s64): Likewise.
37623         (vaddvq_u8): Likewise.
37624         (vaddvq_u16): Likewise.
37625         (vaddvq_u32): Likewise.
37626         (vaddvq_u64): Likewise.
37627         (vaddv_f32): Likewise.
37628         (vaddvq_f32): Likewise.
37629         (vaddvq_f64): Likewise.
37630         (vmaxv_f32): Likewise.
37631         (vmaxv_s8): Likewise.
37632         (vmaxv_s16): Likewise.
37633         (vmaxv_s32): Likewise.
37634         (vmaxv_u8): Likewise.
37635         (vmaxv_u16): Likewise.
37636         (vmaxv_u32): Likewise.
37637         (vmaxvq_f32): Likewise.
37638         (vmaxvq_f64): Likewise.
37639         (vmaxvq_s8): Likewise.
37640         (vmaxvq_s16): Likewise.
37641         (vmaxvq_s32): Likewise.
37642         (vmaxvq_u8): Likewise.
37643         (vmaxvq_u16): Likewise.
37644         (vmaxvq_u32): Likewise.
37645         (vmaxnmv_f32): Likewise.
37646         (vmaxnmvq_f32): Likewise.
37647         (vmaxnmvq_f64): Likewise.
37648         (vminv_f32): Likewise.
37649         (vminv_s8): Likewise.
37650         (vminv_s16): Likewise.
37651         (vminv_s32): Likewise.
37652         (vminv_u8): Likewise.
37653         (vminv_u16): Likewise.
37654         (vminv_u32): Likewise.
37655         (vminvq_f32): Likewise.
37656         (vminvq_f64): Likewise.
37657         (vminvq_s8): Likewise.
37658         (vminvq_s16): Likewise.
37659         (vminvq_s32): Likewise.
37660         (vminvq_u8): Likewise.
37661         (vminvq_u16): Likewise.
37662         (vminvq_u32): Likewise.
37663         (vminnmv_f32): Likewise.
37664         (vminnmvq_f32): Likewise.
37665         (vminnmvq_f64): Likewise.
37666
37667 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
37668
37669         * config/aarch64/aarch64-simd.md
37670         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
37671         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
37672         (*aarch64_mul3_elt<mode>): Likewise.
37673         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
37674         (*aarch64_mul3_elt_to_64v2df): Likewise.
37675         (*aarch64_mla_elt<mode>): Likewise.
37676         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
37677         (*aarch64_mls_elt<mode>): Likewise.
37678         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
37679         (*aarch64_fma4_elt<mode>): Likewise.
37680         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
37681         (*aarch64_fma4_elt_to_64v2df): Likewise.
37682         (*aarch64_fnma4_elt<mode>): Likewise.
37683         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
37684         (*aarch64_fnma4_elt_to_64v2df): Likewise.
37685         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
37686         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
37687         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
37688         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
37689         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
37690         (aarch64_sqdmull_lane<mode>_internal): Likewise.
37691         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
37692
37693 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
37694
37695         * config/aarch64/aarch64-simd.md
37696         (aarch64_be_checked_get_lane<mode>): New define_expand.
37697         * config/aarch64/aarch64-simd-builtins.def
37698         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
37699         New builtin definition.
37700         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
37701         Use new safe be builtin.
37702
37703 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
37704
37705         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
37706         New define_insn.
37707         (aarch64_be_st1<mode>): Likewise.
37708         (aarch_ld1<VALL:mode>): Define_expand modified.
37709         (aarch_st1<VALL:mode>): Likewise.
37710         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
37711         (UNSPEC_ST1): Likewise.
37712
37713 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
37714
37715         * config/microblaze/microblaze.md: Add trap insn and attribute
37716
37717 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
37718
37719         PR preprocessor/58580
37720         * input.h (location_get_source_line): Take an additional line_size
37721         parameter.
37722         (void diagnostics_file_cache_fini): Declare new function.
37723         * input.c (struct fcache): New type.
37724         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
37725         New static constants.
37726         (diagnostic_file_cache_init, total_lines_num)
37727         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
37728         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
37729         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
37730         (get_next_line, read_next_line, goto_next_line, read_line_num):
37731         New static function definitions.
37732         (diagnostic_file_cache_fini): New function.
37733         (location_get_source_line): Take an additional output line_len
37734         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
37735         read_line_num.
37736         * diagnostic.c (diagnostic_finish): Call
37737         diagnostic_file_cache_fini.
37738         (adjust_line): Take an additional input parameter for the length
37739         of the line, rather than calculating it with strlen.
37740         (diagnostic_show_locus): Adjust the use of
37741         location_get_source_line and adjust_line with respect to their new
37742         signature.  While displaying a line now, do not stop at the first
37743         null byte.  Rather, display the zero byte as a space and keep
37744         going until we reach the size of the line.
37745         * Makefile.in: Add vec.o to OBJS-libcommon
37746
37747 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
37748             Ilya Tocar  <ilya.tocar@intel.com>
37749
37750         * config/i386/avx512fintrin.h (_mm512_kmov): New.
37751         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
37752         (__builtin_ia32_kmov16): Ditto.
37753         * config/i386/i386.md (UNSPEC_KMOV): New.
37754         (kmovw): Ditto.
37755
37756 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
37757
37758         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
37759         (_mm512_storeu_si512): Ditto.
37760
37761 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
37762
37763         PR target/52125
37764         * rtl.h (get_referenced_operands): Declare.
37765         * recog.c (get_referenced_operands): New function.
37766         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
37767         operands have been referenced when recording LO_SUM references.
37768
37769 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
37770
37771         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
37772
37773 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
37774
37775         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
37776         Enable for generic and recent AMD targets.
37777
37778 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
37779
37780         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
37781         ARG_SIZE note when adjustment was eliminated.
37782
37783 2014-01-22  Jeff Law  <law@redhat.com>
37784
37785         PR tree-optimization/59597
37786         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
37787         in file.  Accept new argument REGISTERING and use it to modify
37788         dump output appropriately.
37789         (register_jump_thread): Corresponding changes.
37790         (mark_threaded_blocks): Reinstate code to cancel unprofitable
37791         thread paths involving joiner blocks.  Add code to dump cancelled
37792         jump threading paths.
37793
37794 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
37795
37796         PR rtl-optimization/59477
37797         * lra-constraints.c (inherit_in_ebb): Process call for living hard
37798         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
37799
37800 2014-01-22  Tom Tromey  <tromey@redhat.com>
37801
37802         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
37803         PARAMS.
37804         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
37805
37806 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
37807
37808         PR rtl-optimization/59896
37809         * lra-constraints.c (process_alt_operands): Check unused note for
37810         matched operands of insn with no output reloads.
37811
37812 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
37813
37814         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
37815         (mips_move_from_gpr_cost): Likewise.
37816
37817 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
37818
37819         PR rtl-optimization/59858
37820         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
37821         ira_class_hard_regs_num.
37822         (process_alt_operands): Increase reject for dying matched operand.
37823
37824 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
37825
37826         PR target/59003
37827         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
37828         smaller than size, perform several stores or loads and stores
37829         at dst + count - size to store or copy all of size bytes, rather
37830         than just last modesize bytes.
37831
37832 2014-01-20  DJ Delorie  <dj@redhat.com>
37833
37834         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
37835         that CLOBBERs are REGs before propogating their values.
37836
37837 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
37838
37839         PR middle-end/59789
37840         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
37841         (cgraph_inline_failed_type): New function.
37842         * cgraph.h (DEFCIFCODE): Add type.
37843         (cgraph_inline_failed_type_t): New enum.
37844         (cgraph_inline_failed_type): New prototype.
37845         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
37846         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
37847         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
37848         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
37849         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
37850         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
37851         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
37852         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
37853         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
37854         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
37855         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
37856         OPTIMIZATION_MISMATCH.
37857         * tree-inline.c (expand_call_inline): Emit errors during
37858         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
37859
37860 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
37861
37862         PR target/59685
37863         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
37864         mode attribute in insn output.
37865
37866 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
37867
37868         * output.h (output_constant): Delete.
37869         * varasm.c (output_constant): Make private.
37870
37871 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
37872
37873         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
37874
37875 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
37876
37877         PR middle-end/59860
37878         * tree.h (fold_builtin_strcat): New prototype.
37879         * builtins.c (fold_builtin_strcat): No longer static.  Add len
37880         argument, if non-NULL, don't call c_strlen.  Optimize
37881         directly into __builtin_memcpy instead of __builtin_strcpy.
37882         (fold_builtin_2): Adjust fold_builtin_strcat caller.
37883         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
37884
37885 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
37886
37887         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
37888         for SImode_address_operand operands, having only a REG argument.
37889
37890 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37891
37892         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
37893         loader name using mbig-endian.
37894         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
37895
37896 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
37897
37898         * doc/invoke.texi (-march): Clarify documentation for AArch64.
37899         (-mtune): Likewise.
37900         (-mcpu): Likewise.
37901
37902 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
37903
37904         * config/aarch64/aarch64-protos.h
37905         (aarch64_cannot_change_mode_class_ptr): Declare.
37906         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
37907         aarch64_cannot_change_mode_class_ptr): New.
37908         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
37909         backend hook aarch64_cannot_change_mode_class.
37910
37911 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
37912
37913         * common/config/aarch64/aarch64-common.c
37914         (aarch64_handle_option): Don't handle any option order logic here.
37915         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
37916         selected_cpu, warn on architecture version mismatch.
37917         (aarch64_override_options): Fix parsing order for option strings.
37918
37919 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
37920             Iain Sandoe  <iain@codesourcery.com>
37921
37922         PR bootstrap/59496
37923         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
37924         warning.  Amend comment to reflect current functionality.
37925
37926 2014-01-20  Richard Biener  <rguenther@suse.de>
37927
37928         PR middle-end/59860
37929         * builtins.c (fold_builtin_strcat): Remove case better handled
37930         by tree-ssa-strlen.c.
37931
37932 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
37933
37934         * config/aarch64/aarch64.opt
37935         (mcpu, march, mtune): Make case-insensitive.
37936
37937 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
37938
37939         PR target/59880
37940         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
37941         if operands[1] is a REG or ZERO_EXTEND of a REG.
37942
37943 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
37944
37945         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
37946
37947 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
37948
37949         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
37950         long non-pic millicode calls.
37951
37952 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
37953
37954         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
37955
37956 2014-01-19  Kito Cheng  <kito@0xlab.org>
37957
37958         * builtins.c (expand_movstr): Check movstr expand done or fail.
37959
37960 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
37961             H.J. Lu  <hongjiu.lu@intel.com>
37962
37963         PR target/59379
37964         * config/i386/i386.md (*lea<mode>): Zero-extend return register
37965         to DImode for zero-extended addresses.
37966
37967 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
37968
37969         PR rtl-optimization/57763
37970         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
37971         on the new indirect jump_insn and increment LABEL_NUSES (label).
37972
37973 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
37974
37975         PR bootstrap/59580
37976         PR bootstrap/59583
37977         * config.gcc (x86_archs): New variable.
37978         (x86_64_archs): Likewise.
37979         (x86_cpus): Likewise.
37980         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
37981         --with-arch/--with-cpu= options.
37982         Support --with-arch=/--with-cpu={nehalem,westmere,
37983         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
37984
37985 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
37986
37987         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
37988         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
37989
37990 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
37991
37992         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
37993
37994 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
37995
37996         PR target/58944
37997         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
37998         clear cpp_get_options (parse_in)->warn_unused_macros for
37999         ix86_target_macros_internal with cpp_define.
38000
38001 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
38002
38003         * jump.c (delete_related_insns): Keep (use (insn))s.
38004         * reorg.c (redundant_insn): Check for barriers too.
38005
38006 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
38007
38008         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
38009
38010 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
38011
38012         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
38013         call to $$dyncall when TARGET_LONG_CALLS is true.
38014
38015 2014-01-17  Jeff Law  <law@redhat.com>
38016
38017         * ree.c (combine_set_extension): Temporarily disable test for
38018         changing number of hard registers.
38019
38020 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
38021
38022         PR middle-end/58125
38023         * ipa-inline-analysis.c (inline_free_summary):
38024         Do not free summary of aliases.
38025
38026 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
38027
38028         PR middle-end/59706
38029         * gimplify.c (gimplify_expr): Use create_tmp_var
38030         instead of create_tmp_var_raw.  If cond doesn't have
38031         integral type, don't add the IFN_ANNOTATE builtin at all.
38032
38033 2014-01-17  Martin Jambor  <mjambor@suse.cz>
38034
38035         PR ipa/59736
38036         * ipa-cp.c (prev_edge_clone): New variable.
38037         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
38038         Also resize prev_edge_clone vector.
38039         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
38040         (ipcp_edge_removal_hook): New function.
38041         (ipcp_driver): Register ipcp_edge_removal_hook.
38042
38043 2014-01-17  Andrew Pinski  <apinski@cavium.com>
38044             Steve Ellcey  <sellcey@mips.com>
38045
38046         PR target/59462
38047         * config/mips/mips.c (mips_print_operand): Check operand mode instead
38048         of operator mode.
38049
38050 2014-01-17  Jeff Law  <law@redhat.com>
38051
38052         PR middle-end/57904
38053         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
38054         so that pass_ccp runs first.
38055
38056 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
38057
38058         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
38059         (ix86_adjust_cost): Use !TARGET_XXX.
38060         (do_reorder_for_imul): Likewise.
38061         (swap_top_of_ready_list): Likewise.
38062         (ix86_sched_reorder): Likewise.
38063
38064 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
38065
38066         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
38067         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
38068         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
38069         (intel_memset): New.  Duplicate slm_memset.
38070         (intel_cost): New.  Duplicate slm_cost.
38071         (m_INTEL): New macro.
38072         (processor_target_table): Add "intel".
38073         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
38074         with PROCESSOR_INTEL for "intel".
38075         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
38076         PROCESSOR_SILVERMONT.
38077         (ix86_issue_rate): Likewise.
38078         (ix86_adjust_cost): Likewise.
38079         (ia32_multipass_dfa_lookahead): Likewise.
38080         (swap_top_of_ready_list): Likewise.
38081         (ix86_sched_reorder): Likewise.
38082         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
38083         instead of TARGET_OPT_AGU.
38084         * config/i386/i386.h (TARGET_INTEL): New.
38085         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
38086         (processor_type): Add PROCESSOR_INTEL.
38087         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
38088         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
38089
38090 2014-01-17  Marek Polacek  <polacek@redhat.com>
38091
38092         PR c/58346
38093         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
38094         size is zero.
38095
38096 2014-01-17  Richard Biener  <rguenther@suse.de>
38097
38098         PR tree-optimization/46590
38099         * opts.c (default_options_table): Add entries for
38100         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
38101         all enabled at -O1 but not for -Og.
38102         * common.opt (fbranch-count-reg): Remove Init(1).
38103         (fmove-loop-invariants): Likewise.
38104         (ftree-pta): Likewise.
38105
38106 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
38107
38108         * config/i386/i386.c (ix86_data_alignment): For compatibility with
38109         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
38110         decls to at least the GCC 4.8 used alignments.
38111
38112         PR fortran/59440
38113         * tree-nested.c (convert_nonlocal_reference_stmt,
38114         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
38115         of GIMPLE_BIND stmts, adjust associated decls.
38116
38117 2014-01-17  Richard Biener  <rguenther@suse.de>
38118
38119         PR tree-optimization/46590
38120         * vec.h (vec<>::bseach): New member function implementing
38121         binary search according to C89 bsearch.
38122         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
38123         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
38124         bitmap pointer again.  Make accesses_in_loop a flat array.
38125         (mem_ref_obstack): New global.
38126         (outermost_indep_loop): Adjust for mem_ref->stored changes.
38127         (mark_ref_stored): Likewise.
38128         (ref_indep_loop_p_2): Likewise.
38129         (set_ref_stored_in_loop): New helper function.
38130         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
38131         (memref_free): Adjust.
38132         (record_mem_ref_loc): Simplify.
38133         (gather_mem_refs_stmt): Adjust.
38134         (sort_locs_in_loop_postorder_cmp): New function.
38135         (analyze_memory_references): Sort accesses_in_loop after
38136         loop postorder number.
38137         (find_ref_loc_in_loop_cmp): New function.
38138         (for_all_locs_in_loop): Find relevant cluster of locs in
38139         accesses_in_loop and iterate without recursion.
38140         (execute_sm): Avoid uninit warning.
38141         (struct ref_always_accessed): Simplify.
38142         (ref_always_accessed::operator ()): Likewise.
38143         (ref_always_accessed_p): Likewise.
38144         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
38145         loop postorder numbers here.
38146         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
38147         numbers.
38148
38149 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
38150
38151         PR c++/57945
38152         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
38153         on decls for which assemble_alias has been called.
38154
38155 2014-01-17  Nick Clifton  <nickc@redhat.com>
38156
38157         * config/msp430/msp430.opt: (mcpu): New option.
38158         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
38159         (msp430_option_override): Parse target_cpu.  If the MCU name
38160         matches a generic string, clear target_mcu.
38161         (msp430_attr): Allow numeric interrupt values up to 63.
38162         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
38163         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
38164         option.
38165         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
38166         Add mcpu matches.
38167         * config/msp430/msp430.md (popm): Use %J rather than %I.
38168         (addsi3): Use msp430_nonimmediate_operand for operand 2.
38169         (addhi_cy_i): Use immediate_operand for operand 2.
38170         * doc/invoke.texi: Document -mcpu option.
38171
38172 2014-01-17  Richard Biener  <rguenther@suse.de>
38173
38174         PR rtl-optimization/38518
38175         * df.h (df_analyze_loop): Declare.
38176         * df-core.c: Include cfgloop.h.
38177         (df_analyze_1): Split out main part of df_analyze.
38178         (df_analyze): Adjust.
38179         (loop_inverted_post_order_compute): New function.
38180         (loop_post_order_compute): Likewise.
38181         (df_analyze_loop): New function avoiding whole-function
38182         postorder computes.
38183         * loop-invariant.c (find_defs): Use df_analyze_loop.
38184         (find_invariants): Adjust.
38185         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
38186
38187 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
38188
38189         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
38190         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
38191
38192 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
38193
38194         * ipa-ref.c (ipa_remove_stmt_references): Fix references
38195         traversal when removing references.
38196
38197 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
38198
38199         PR ipa/59775
38200         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
38201
38202 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
38203
38204         PR middle-end/56791
38205         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
38206         pushing a reload for an autoinc when we had previously reloaded an
38207         inner part of the address.
38208
38209 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
38210
38211         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
38212         field.
38213         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
38214         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
38215         when not giving up or versioning for alias only because of
38216         loop->safelen.
38217         (vect_analyze_data_ref_dependences): Set to true.
38218         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
38219         is a GIMPLE_PHI.
38220         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
38221         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
38222         to the condition.
38223
38224         PR middle-end/58344
38225         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
38226
38227         PR target/59839
38228         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
38229         operand 0 predicate for gathers, use a new pseudo as subtarget.
38230
38231 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
38232
38233         PR middle-end/59609
38234         * lra-constraints.c (process_alt_operands): Add printing debug info.
38235         Check absence of input/output reloads for matched operands too.
38236
38237 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
38238
38239         PR rtl-optimization/59835
38240         * ira.c (ira_init_register_move_cost): Increase cost for
38241         impossible modes.
38242
38243 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
38244
38245         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
38246
38247 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
38248
38249         PR target/59780
38250         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
38251         non-register objects.  Use gen_(high/low)part more consistently.
38252         Fix assertions.
38253
38254 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
38255
38256         PR target/59844
38257         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
38258         endian support, remove tests for WORDS_BIG_ENDIAN.
38259         (p8_mfvsrd_3_<mode>): Likewise.
38260         (reload_gpr_from_vsx<mode>): Likewise.
38261         (reload_gpr_from_vsxsf): Likewise.
38262         (p8_mfvsrd_4_disf): Likewise.
38263
38264 2014-01-16  Richard Biener  <rguenther@suse.de>
38265
38266         PR rtl-optimization/46590
38267         * lcm.c (compute_antinout_edge): Use postorder iteration.
38268         (compute_laterin): Use inverted postorder iteration.
38269
38270 2014-01-16  Nick Clifton  <nickc@redhat.com>
38271
38272         PR middle-end/28865
38273         * varasm.c (output_constant): Return the number of bytes actually
38274         emitted.
38275         (output_constructor_array_range): Update the field size with the
38276         number of bytes emitted by output_constant.
38277         (output_constructor_regular_field): Likewise.  Also do not
38278         complain if the total number of bytes emitted is now greater
38279         than the expected fieldpos.
38280         * output.h (output_constant): Update prototype and descriptive comment.
38281
38282 2014-01-16  Marek Polacek  <polacek@redhat.com>
38283
38284         PR middle-end/59827
38285         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
38286         it is error_mark_node.
38287
38288 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
38289
38290         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
38291         VALID_AVX256_REG_OR_OI_MODE.
38292
38293 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
38294
38295         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
38296         current procedure should be profiled.
38297
38298 2014-01-15  Andrew Pinski  <apinski@cavium.com>
38299
38300         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
38301         of moving from/to the STACK_REG register class.
38302
38303 2014-01-15  Richard Henderson  <rth@redhat.com>
38304
38305         PR debug/54694
38306         * reginfo.c (global_regs_decl): Globalize.
38307         * rtl.h (global_regs_decl): Declare.
38308         * ira.c (do_reload): Diagnose frame_pointer_needed and it
38309         reserved via global_regs.
38310
38311 2014-01-15  Teresa Johnson  <tejohnson@google.com>
38312
38313         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
38314
38315 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
38316
38317         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
38318         and vmulosh rather than call gen_vec_widen_smult_*.
38319         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
38320         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
38321         (vec_widen_smult_even_v16qi): Likewise.
38322         (vec_widen_umult_even_v8hi): Likewise.
38323         (vec_widen_smult_even_v8hi): Likewise.
38324         (vec_widen_umult_odd_v16qi): Likewise.
38325         (vec_widen_smult_odd_v16qi): Likewise.
38326         (vec_widen_umult_odd_v8hi): Likewise.
38327         (vec_widen_smult_odd_v8hi): Likewise.
38328         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
38329         vmuloub rather than call gen_vec_widen_umult_*.
38330         (vec_widen_umult_lo_v16qi): Likewise.
38331         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
38332         vmulosb rather than call gen_vec_widen_smult_*.
38333         (vec_widen_smult_lo_v16qi): Likewise.
38334         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
38335         rather than call gen_vec_widen_umult_*.
38336         (vec_widen_umult_lo_v8hi): Likewise.
38337         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
38338         rather than call gen_vec_widen_smult_*.
38339         (vec_widen_smult_lo_v8hi): Likewise.
38340
38341 2014-01-15  Jeff Law  <law@redhat.com>
38342
38343         PR tree-optimization/59747
38344         * ree.c (find_and_remove_re): Properly handle case where a second
38345         eliminated extension requires widening a copy created for elimination
38346         of a prior extension.
38347         (combine_set_extension): Ensure that the number of hard regs needed
38348         for a destination register does not change when we widen it.
38349
38350 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
38351
38352         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
38353         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
38354         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
38355         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
38356         (avr-*-rtems*): Likewise.
38357         (bfin*-rtems*): Likewise.
38358         (moxie-*-rtems*): Likewise.
38359         (h8300-*-rtems*): Likewise.
38360         (i[34567]86-*-rtems*): Likewise.
38361         (lm32-*-rtems*): Likewise.
38362         (m32r-*-rtems*): Likewise.
38363         (m68k-*-rtems*): Likewise.
38364         (microblaze*-*-rtems*): Likewise.
38365         (mips*-*-rtems*): Likewise.
38366         (powerpc-*-rtems*): Likewise.
38367         (sh-*-rtems*): Likewise.
38368         (sparc-*-rtems*): Likewise.
38369         (sparc64-*-rtems*): Likewise.
38370         (v850-*-rtems*): Likewise.
38371         (m32c-*-rtems*): Likewise.
38372
38373 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
38374
38375         PR rtl-optimization/59511
38376         * ira.c (ira_init_register_move_cost): Use memory costs for some
38377         cases of register move cost calculations.
38378         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
38379         instead of BB frequency.
38380         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
38381         * lra-assigns.c (find_hard_regno_for): Ditto.
38382
38383 2014-01-15  Richard Biener  <rguenther@suse.de>
38384
38385         PR tree-optimization/59822
38386         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
38387         (vectorizable_load): Use it to hoist defs of uses of invariant
38388         loads out of the loop.
38389
38390 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
38391             Kugan Vivekanandarajah  <kuganv@linaro.org>
38392
38393         PR target/59695
38394         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
38395         truncation.
38396
38397 2014-01-15  Richard Biener  <rguenther@suse.de>
38398
38399         PR rtl-optimization/59802
38400         * lcm.c (compute_available): Use inverted postorder to seed
38401         the initial worklist.
38402
38403 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38404
38405         PR target/59803
38406         * config/s390/s390.c (s390_preferred_reload_class): Don't return
38407         ADDR_REGS for invalid symrefs in non-PIC code.
38408
38409 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
38410
38411         PR other/58712
38412         * builtins.c (determine_block_size): Initialize *probable_max_size
38413         even if len_rtx is CONST_INT.
38414
38415 2014-01-14  Andrew Pinski  <apinski@cavium.com>
38416
38417         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
38418         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
38419         (cortexa53_tunings): Likewise.
38420         (aarch64_sched_issue_rate): New function.
38421         (TARGET_SCHED_ISSUE_RATE): Define.
38422
38423 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
38424
38425         * ira-costs.c (find_costs_and_classes): Add missed
38426         ira_init_register_move_cost_if_necessary.
38427
38428 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
38429
38430         PR target/59787
38431         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
38432
38433 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
38434
38435         PR target/59794
38436         * config/i386/i386.c (type_natural_mode): Add a bool parameter
38437         to indicate if type is used for function return value.  Warn ABI
38438         change if the vector mode isn't available for function return value.
38439         (ix86_function_arg_advance): Pass false to type_natural_mode.
38440         (ix86_function_arg): Likewise.
38441         (ix86_gimplify_va_arg): Likewise.
38442         (function_arg_32): Don't warn ABI change.
38443         (ix86_function_value): Pass true to type_natural_mode.
38444         (ix86_return_in_memory): Likewise.
38445         (ix86_struct_value_rtx): Removed.
38446         (TARGET_STRUCT_VALUE_RTX): Likewise.
38447
38448 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
38449
38450         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
38451         converting a conditional jump into a conditional return.
38452
38453 2014-01-14  Richard Biener  <rguenther@suse.de>
38454
38455         PR tree-optimization/58921
38456         PR tree-optimization/59006
38457         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
38458         hoisting invariant stmts.
38459         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
38460         invariant loads on the preheader edge if possible.
38461
38462 2014-01-14  Joey Ye  <joey.ye@arm.com>
38463
38464         * doc/plugin.texi (Building GCC plugins): Update to C++.
38465
38466 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
38467
38468         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
38469         (_mm_rcp28_round_ss): Ditto.
38470         (_mm_rsqrt28_round_sd): Ditto.
38471         (_mm_rsqrt28_round_ss): Ditto.
38472         (_mm_rcp28_sd): Ditto.
38473         (_mm_rcp28_ss): Ditto.
38474         (_mm_rsqrt28_sd): Ditto.
38475         (_mm_rsqrt28_ss): Ditto.
38476         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
38477         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
38478         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
38479         (IX86_BUILTIN_RCP28SD): Ditto.
38480         (IX86_BUILTIN_RCP28SS): Ditto.
38481         (IX86_BUILTIN_RSQRT28SD): Ditto.
38482         (IX86_BUILTIN_RSQRT28SS): Ditto.
38483         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
38484         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
38485         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
38486         (ix86_expand_special_args_builtin): Expand new FTYPE.
38487         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
38488         (srcp14<mode>): Make insn unary.
38489         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
38490         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
38491         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
38492         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
38493         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
38494         Fix rounding: make it SAE only.
38495         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
38496         Ditto.
38497         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
38498         Ditto.
38499         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
38500         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
38501         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
38502         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
38503         (round_saeonly_mask_scalar_operand4): Ditto.
38504         (round_saeonly_mask_scalar_op3): Ditto.
38505         (round_saeonly_mask_scalar_op4): Ditto.
38506
38507 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
38508
38509         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
38510         Implement -maltivec=be for vec_insert and vec_extract.
38511
38512 2014-01-10  DJ Delorie  <dj@redhat.com>
38513
38514         * config/msp430/msp430.md (call_internal): Don't allow memory
38515         references with SP as the base register.
38516         (call_value_internal): Likewise.
38517         * config/msp430/constraints.md (Yc): New.  For memory references
38518         that don't use SP as a base register.
38519
38520         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
38521         "an integer without a # prefix"
38522         * config/msp430/msp430.md (epilogue_helper): Use it.
38523
38524 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
38525
38526         PR target/59617
38527         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
38528         AVX512F gather builtins.
38529         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
38530         on gather decls with INTEGER_TYPE masktype.
38531         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
38532         directly into the builtin rather than hoisting it before loop.
38533
38534         PR tree-optimization/59387
38535         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
38536         (scev_const_prop): If folded_casts and type has undefined overflow,
38537         use force_gimple_operand instead of force_gimple_operand_gsi and
38538         for each added stmt if it is assign with
38539         arith_code_with_undefined_signed_overflow, call
38540         rewrite_to_defined_overflow.
38541         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
38542         gimple-fold.h instead.
38543         (arith_code_with_undefined_signed_overflow,
38544         rewrite_to_defined_overflow): Moved to ...
38545         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
38546         rewrite_to_defined_overflow): ... here.  No longer static.
38547         Include gimplify-me.h.
38548         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
38549         rewrite_to_defined_overflow): New prototypes.
38550
38551 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38552
38553         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
38554
38555 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
38556
38557         * builtins.c (get_object_alignment_2): Minor tweak.
38558         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
38559
38560 2014-01-13  Christian Bruel  <christian.bruel@st.com>
38561
38562         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
38563         optimized non constant lengths.
38564
38565 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
38566
38567         PR libgomp/59194
38568         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
38569         load as __atomic_load_N if possible.
38570
38571 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
38572
38573         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
38574         target parameter.
38575         (rs6000_expand_builtin): Adjust call.
38576
38577 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
38578
38579         PR target/58115
38580         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
38581         * config/rs6000/rs6000.c: Include target-globals.h.
38582         (rs6000_set_current_function): Instead of doing target_reinit
38583         unconditionally, use save_target_globals_default_opts and
38584         restore_target_globals.
38585
38586         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
38587         FPSCR.
38588         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
38589         (rs6000_expand_builtin): Handle mffs and mtfsf.
38590         (rs6000_init_builtins): Define mffs and mtfsf.
38591         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
38592         (rs6000_mffs): New pattern.
38593         (rs6000_mtfsf): New pattern.
38594
38595 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
38596
38597         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
38598         Start narrowing with START.  Apply candidate-use pair
38599         and check overall cost in narrowing.
38600         (iv_ca_prune): Pass new argument.
38601
38602 2014-01-10  Jeff Law  <law@redhat.com>
38603
38604         PR middle-end/59743
38605         * ree.c (combine_reaching_defs): Ensure the defining statement
38606         occurs before the extension when optimizing extensions with
38607         different source and destination hard registers.
38608
38609 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
38610
38611         PR ipa/58585
38612         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
38613         vtables into the type inheritance graph.
38614
38615 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
38616
38617         PR rtl-optimization/59754
38618         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
38619         modes in the REGNO != REGNO case.
38620
38621 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
38622
38623         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
38624
38625 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
38626
38627         PR tree-optimization/59745
38628         * tree-predcom.c (tree_predictive_commoning_loop): Call
38629         free_affine_expand_cache if giving up because components is NULL.
38630
38631         * target-globals.c (save_target_globals): Allocate < 4KB structs using
38632         GC in payload of target_globals struct instead of allocating them on
38633         the heap and the larger structs separately using GC.
38634         * target-globals.h (struct target_globals): Make regs, hard_regs,
38635         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
38636         of GTY((skip)) and change type to void *.
38637         (reset_target_globals): Cast loads from those fields to corresponding
38638         types.
38639
38640 2014-01-10  Steve Ellcey  <sellcey@mips.com>
38641
38642         PR plugins/59335
38643         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
38644         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
38645         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
38646
38647 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
38648
38649         PR target/59744
38650         * aarch64-modes.def (CC_Zmode): New flags mode.
38651         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
38652         represents an equality.
38653         (aarch64_get_condition_code): Handle CC_Zmode.
38654         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
38655
38656 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38657
38658         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
38659         extraction in good case.
38660
38661 2014-01-10  Richard Biener  <rguenther@suse.de>
38662
38663         PR tree-optimization/59374
38664         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
38665         checking after SLP discovery.  Mark stmts not participating
38666         in any SLP instance properly.
38667
38668 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38669
38670         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
38671         when handling a SET rtx.
38672
38673 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38674
38675         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
38676         (cortex-a57): Likewise.
38677         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
38678
38679 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38680
38681         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
38682         non-iwmmxt builtins.
38683
38684 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
38685
38686         PR ipa/58252
38687         PR ipa/59226
38688         * ipa-devirt.c record_target_from_binfo): Take as argument
38689         stack of binfos and lookup matching one for virtual inheritance.
38690         (possible_polymorphic_call_targets_1): Update.
38691
38692 2014-01-10  Huacai Chen  <chenhc@lemote.com>
38693
38694         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
38695         kernel strings for Loongson-2E/2F/3A.
38696
38697 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
38698
38699         PR middle-end/59670
38700         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
38701         is_gimple_call before calling gimple_call_internal_p.
38702
38703 2014-01-09  Steve Ellcey  <sellcey@mips.com>
38704
38705         * Makefile.in (TREE_FLOW_H): Remove.
38706         (TREE_SSA_H): Add file names from tree-flow.h.
38707         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
38708         * tree.h: Remove tree-flow.h reference.
38709         * hash-table.h: Remove tree-flow.h reference.
38710         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
38711         reference with tree-ssa-loop.h.
38712
38713 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
38714
38715         * doc/invoke.texi: Add -maltivec={be,le} options, and document
38716         default element-order behavior for -maltivec.
38717         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
38718         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
38719         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
38720         when targeting big endian, at least for now.
38721         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
38722
38723 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
38724
38725         PR middle-end/47735
38726         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
38727         var satisfies use_register_for_decl, just take into account type
38728         alignment, rather than decl alignment.
38729
38730         PR tree-optimization/59622
38731         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
38732         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
38733         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
38734         Don't devirtualize for inplace at all.  For targets.length () == 1,
38735         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
38736
38737 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
38738
38739         * config/i386/i386.md (cpu): Remove the unused btver1.
38740
38741 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
38742
38743         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
38744
38745 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
38746
38747         PR target/58115
38748         * tree-core.h (struct target_globals): New forward declaration.
38749         (struct tree_target_option): Add globals field.
38750         * tree.h (TREE_TARGET_GLOBALS): Define.
38751         (prepare_target_option_nodes_for_pch): New prototype.
38752         * target-globals.h (struct target_globals): Define even if
38753         !SWITCHABLE_TARGET.
38754         * tree.c (prepare_target_option_node_for_pch,
38755         prepare_target_option_nodes_for_pch): New functions.
38756         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
38757         * config/i386/i386.c: Include target-globals.h.
38758         (ix86_set_current_function): Instead of doing target_reinit
38759         unconditionally, use save_target_globals_default_opts and
38760         restore_target_globals.
38761
38762 2014-01-09  Richard Biener  <rguenther@suse.de>
38763
38764         PR tree-optimization/59715
38765         * tree-cfg.h (split_critical_edges): Declare.
38766         * tree-cfg.c (split_critical_edges): Export.
38767         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
38768
38769 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
38770
38771         * cfgexpand.c (expand_stack_vars): Optionally disable
38772         asan stack protection.
38773         (expand_used_vars): Likewise.
38774         (partition_stack_vars): Likewise.
38775         * asan.c (asan_emit_stack_protection): Optionally disable
38776         after return stack usage.
38777         (instrument_derefs): Optionally disable memory access instrumentation.
38778         (instrument_builtin_call): Likewise.
38779         (instrument_strlen_call): Likewise.
38780         (asan_protect_global): Optionally disable global variables protection.
38781         * doc/invoke.texi: Added doc for new options.
38782         * params.def: Added new options.
38783         * params.h: Likewise.
38784
38785 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
38786
38787         PR rtl-optimization/59724
38788         * ifcvt.c (cond_exec_process_if_block): Don't call
38789         flow_find_head_matching_sequence with 0 longest_match.
38790         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
38791         non-active insns if !stop_after.
38792         (try_head_merge_bb): Revert 2014-01-07 changes.
38793
38794 2014-01-08  Jeff Law  <law@redhat.com>
38795
38796         * ree.c (get_sub_rtx): New function, extracted from...
38797         (merge_def_and_ext): Here.
38798         (combine_reaching_defs): Use get_sub_rtx.
38799
38800 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
38801
38802         * cgraph.h (varpool_variable_node): Do not choke on null node.
38803
38804 2014-01-08  Catherine Moore  <clm@codesourcery.com>
38805
38806         * config/mips/mips.md (simple_return): Attempt to use JRC
38807         for microMIPS.
38808         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
38809
38810 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
38811
38812         PR rtl-optimization/59137
38813         * reorg.c (steal_delay_list_from_target): Call update_block for
38814         elided insns.
38815         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
38816
38817 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
38818
38819         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
38820         two duplicate entries.
38821
38822 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
38823
38824         Revert:
38825         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
38826
38827         * config/mips/mips.c (mips_truncated_op_cost): New function.
38828         (mips_rtx_costs): Adjust test for BADDU.
38829         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
38830
38831         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
38832
38833         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
38834         (*baddu_si): ...this new pattern.
38835
38836 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
38837
38838         PR ipa/59722
38839         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
38840
38841 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
38842
38843         PR middle-end/57748
38844         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
38845         inner_reference_p.
38846         (expand_expr, expand_normal): Adjust.
38847         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
38848         inner_reference_p. Use inner_reference_p to expand inner references.
38849         (store_expr): Adjust.
38850         * cfgexpand.c (expand_call_stmt): Adjust.
38851
38852 2014-01-08  Rong Xu  <xur@google.com>
38853
38854         * gcov-io.c (gcov_var): Move from gcov-io.h.
38855         (gcov_position): Ditto.
38856         (gcov_is_error): Ditto.
38857         (gcov_rewrite): Ditto.
38858         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
38859         only part to libgcc/libgcov.h.
38860
38861 2014-01-08  Marek Polacek  <polacek@redhat.com>
38862
38863         PR middle-end/59669
38864         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
38865
38866 2014-01-08  Marek Polacek  <polacek@redhat.com>
38867
38868         PR sanitizer/59667
38869         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
38870
38871 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
38872
38873         PR rtl-optimization/59649
38874         * stor-layout.c (get_mode_bounds): For BImode return
38875         0 and STORE_FLAG_VALUE.
38876
38877 2014-01-08  Richard Biener  <rguenther@suse.de>
38878
38879         PR middle-end/59630
38880         * gimple.h (is_gimple_builtin_call): Remove.
38881         (gimple_builtin_call_types_compatible_p): New.
38882         (gimple_call_builtin_p): New overload.
38883         * gimple.c (is_gimple_builtin_call): Remove.
38884         (validate_call): Rename to ...
38885         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
38886         check return types.
38887         (validate_type): New static function.
38888         (gimple_call_builtin_p): New overload and adjust.
38889         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
38890         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
38891         (gimple_fold_stmt_to_constant_1): Likewise.
38892         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
38893
38894 2014-01-08  Richard Biener  <rguenther@suse.de>
38895
38896         PR middle-end/59471
38897         * gimplify.c (gimplify_expr): Gimplify register-register type
38898         VIEW_CONVERT_EXPRs to separate stmts.
38899
38900 2014-01-07  Jeff Law  <law@redhat.com>
38901
38902         PR middle-end/53623
38903         * ree.c (combine_set_extension): Handle case where source
38904         and destination registers in an extension insn are different.
38905         (combine_reaching_defs): Allow source and destination registers
38906         in extension to be different under limited circumstances.
38907         (add_removable_extension): Remove restriction that the
38908         source and destination registers in the extension are the same.
38909         (find_and_remove_re): Emit a copy from the extension's
38910         destination to its source after the defining insn if
38911         the source and destination registers are different.
38912
38913         PR middle-end/59285
38914         * ifcvt.c (merge_if_block): If we are merging a block with more than
38915         one successor with a block with no successors, remove any BARRIER
38916         after the second block.
38917
38918 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
38919
38920         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
38921
38922 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
38923
38924         PR target/59652
38925         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
38926         for 14-bit register offsets when INT14_OK_STRICT is false.
38927
38928 2014-01-07  Roland Stigge  <stigge@antcom.de>
38929             Michael Meissner  <meissner@linux.vnet.ibm.com>
38930
38931         PR 57386/target
38932         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
38933         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
38934
38935 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
38936
38937         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
38938         -mcpu.
38939
38940 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
38941
38942         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
38943         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
38944         rtx is const0_rtx or not.
38945
38946 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
38947
38948         PR target/58115
38949         * target-globals.c (save_target_globals): Remove this_fn_optab
38950         handling.
38951         * toplev.c: Include optabs.h.
38952         (target_reinit): Temporarily restore the global options if another
38953         set of options are in force.
38954
38955 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
38956
38957         PR rtl-optimization/58668
38958         * cfgcleanup.c (flow_find_cross_jump): Don't count
38959         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
38960         to determine what is counted.
38961         (flow_find_head_matching_sequence): Use active_insn_p to determine
38962         what is counted.
38963         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
38964         counting change.
38965         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
38966         determine what is counted.
38967
38968         PR tree-optimization/59643
38969         * tree-predcom.c (split_data_refs_to_components): If one dr is
38970         read and one write, determine_offset fails and the write isn't
38971         in the bad component, just put the read into the bad component.
38972
38973 2014-01-07  Mike Stump  <mikestump@comcast.net>
38974             Jakub Jelinek  <jakub@redhat.com>
38975
38976         PR pch/59436
38977         * tree-core.h (struct tree_optimization_option): Change optabs
38978         type from unsigned char * to void *.
38979         * optabs.c (init_tree_optimization_optabs): Adjust
38980         TREE_OPTIMIZATION_OPTABS initialization.
38981
38982 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
38983
38984         PR target/59644
38985         * config/i386/i386.h (struct machine_function): Add
38986         no_drap_save_restore field.
38987         * config/i386/i386.c (ix86_save_reg): Use
38988         !cfun->machine->no_drap_save_restore instead of
38989         crtl->stack_realign_needed.
38990         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
38991         this function clears frame_pointer_needed.  Set
38992         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
38993         and DRAP reg is needed.
38994
38995 2014-01-06  Marek Polacek  <polacek@redhat.com>
38996
38997         PR c/57773
38998         * doc/implement-c.texi: Mention that other integer types are
38999         permitted as bit-field types in strictly conforming mode.
39000
39001 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
39002
39003         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
39004         is newly allocated.
39005
39006 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
39007
39008         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
39009
39010 2014-01-06  Martin Jambor  <mjambor@suse.cz>
39011
39012         PR ipa/59008
39013         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
39014         to int.
39015         * ipa-prop.c (ipa_print_node_params): Fix indentation.
39016
39017 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
39018
39019         PR debug/59350
39020         PR debug/59510
39021         * var-tracking.c (add_stores): Preserve the value of the source even if
39022         we don't record the store.
39023
39024 2014-01-06  Terry Guo  <terry.guo@arm.com>
39025
39026         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
39027
39028 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
39029
39030         PR bootstrap/59541
39031         * config/darwin.c (darwin_function_section): Adjust return values to
39032         correspond to optimisation changes made in r206070.
39033
39034 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
39035
39036         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
39037         from prefetch_block tune setting.
39038         (nocona_cost): Correct size of prefetch block to 64.
39039
39040 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
39041
39042         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
39043         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
39044         used to save the static chain register in the computation of the offset
39045         from which the FP registers need to be restored.
39046
39047 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
39048
39049         PR tree-optimization/59519
39050         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
39051         ICE if get_current_def (current_new_name) is already non-NULL, as long
39052         as it is a phi result of some other phi in *new_exit_bb that has
39053         the same argument.
39054
39055         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
39056         or vmovdqu* for misaligned_operand.
39057         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
39058         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
39059         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
39060         aligned_mem for AVX512F masked aligned load and store builtins and for
39061         non-temporal moves.
39062
39063 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
39064
39065         PR tree-optimization/59651
39066         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
39067         Address range for negative step should be added by TYPE_SIZE_UNIT.
39068
39069 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
39070
39071         * config/m68k/m68k.c (handle_move_double): Handle pushes with
39072         overlapping registers also for registers other than the stack pointer.
39073
39074 2014-01-03  Marek Polacek  <polacek@redhat.com>
39075
39076         PR other/59661
39077         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
39078         __builtin_FILE.
39079
39080 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
39081
39082         PR target/59625
39083         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
39084         asm goto as jump.
39085
39086         * config/i386/i386.md (MODE_SIZE): New mode attribute.
39087         (push splitter): Use <P:MODE_SIZE> instead of
39088         GET_MODE_SIZE (<P:MODE>mode).
39089         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
39090         (mov -1, reg peephole2): Likewise.
39091         * config/i386/sse.md (*mov<mode>_internal,
39092         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
39093         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
39094         *<code><mode>3, *andnot<mode>3<mask_name>,
39095         <mask_codefor><code><mode>3<mask_name>): Likewise.
39096         * config/i386/subst.md (mask_mode512bit_condition,
39097         sd_mask_mode512bit_condition): Likewise.
39098
39099 2014-01-02  Xinliang David Li  <davidxl@google.com>
39100
39101         PR tree-optimization/59303
39102         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
39103         (dump_predicates): Better output format.
39104         (pred_equal_p): New function.
39105         (is_neq_relop_p): Ditto.
39106         (is_neq_zero_form_p): Ditto.
39107         (pred_expr_equal_p): Ditto.
39108         (pred_neg_p): Ditto.
39109         (simplify_pred): Ditto.
39110         (simplify_preds_2): Ditto.
39111         (simplify_preds_3): Ditto.
39112         (simplify_preds_4): Ditto.
39113         (simplify_preds): Ditto.
39114         (push_pred): Ditto.
39115         (push_to_worklist): Ditto.
39116         (get_pred_info_from_cmp): Ditto.
39117         (is_degenerated_phi): Ditto.
39118         (normalize_one_pred_1): Ditto.
39119         (normalize_one_pred): Ditto.
39120         (normalize_one_pred_chain): Ditto.
39121         (normalize_preds): Ditto.
39122         (normalize_cond_1): Remove function.
39123         (normalize_cond): Ditto.
39124         (is_gcond_subset_of): Ditto.
39125         (is_subset_of_any): Ditto.
39126         (is_or_set_subset_of): Ditto.
39127         (is_and_set_subset_of): Ditto.
39128         (is_norm_cond_subset_of): Ditto.
39129         (pred_chain_length_cmp): Ditto.
39130         (convert_control_dep_chain_into_preds): Type change.
39131         (find_predicates): Ditto.
39132         (find_def_preds): Ditto.
39133         (destroy_predicates_vecs): Ditto.
39134         (find_matching_predicates_in_rest_chains): Ditto.
39135         (use_pred_not_overlap_with_undef_path_pred): Ditto.
39136         (is_pred_expr_subset): Ditto.
39137         (is_pred_chain_subset_of): Ditto.
39138         (is_included_in): Ditto.
39139         (is_superset_of): Ditto.
39140
39141 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
39142
39143         Update copyright years.
39144
39145 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
39146
39147         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
39148         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
39149         config/arc/arc.md, config/arc/arc.opt,
39150         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
39151         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
39152         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
39153         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
39154         config/linux-protos.h, config/linux.c, config/winnt-c.c,
39155         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
39156         vtable-verify.c, vtable-verify.h: Use the standard form for the
39157         copyright notice.
39158
39159 2014-01-02  Tobias Burnus  <burnus@net-b.de>
39160
39161         * gcc.c (process_command): Update copyright notice dates.
39162         * gcov-dump.c: Ditto.
39163         * gcov.c: Ditto.
39164         * doc/cpp.texi: Bump @copying's copyright year.
39165         * doc/cppinternals.texi: Ditto.
39166         * doc/gcc.texi: Ditto.
39167         * doc/gccint.texi: Ditto.
39168         * doc/gcov.texi: Ditto.
39169         * doc/install.texi: Ditto.
39170         * doc/invoke.texi: Ditto.
39171
39172 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
39173
39174         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
39175
39176 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
39177
39178         * config/i386/sse.md (*mov<mode>_internal): Guard
39179         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
39180
39181         PR rtl-optimization/59647
39182         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
39183         new_rtx into UNSIGNED_FLOAT rtxes.
39184 \f
39185 Copyright (C) 2014 Free Software Foundation, Inc.
39186
39187 Copying and distribution of this file, with or without modification,
39188 are permitted in any medium without royalty provided the copyright
39189 notice and this notice are preserved.