[PATCH AArch64] Add a builtin for rbit(q?)_p8; add intrinsics and tests.
[official-gcc.git] / gcc / ChangeLog
blob9f13d1ee5cbb6bc16f00821d4f220c0f0a5e124c
1 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
3         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
4         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
5         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6         Replace temporary asm with call to builtin.
7         (vrbit_p8, vrbitq_p8): New functions.
9 2014-09-05  Richard Biener  <rguenther@suse.de>
11         * cfgloop.c (mark_loop_for_removal): New function.
12         * cfgloop.h (mark_loop_for_removal): Declare.
13         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
14         (merge_blocks): Likewise.
15         (duplicate_block): Likewise.
16         * except.c (sjlj_emit_dispatch_table): Likewise.
17         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
18         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
19         (thread_through_loop_header): Likewise.
21 2014-09-05  Richard Biener  <rguenther@suse.de>
23         PR middle-end/63148
24         * fold-const.c (try_move_mult_to_index): Remove.
25         (fold_binary_loc): Do not call it.
26         * tree-data-ref.c (dr_analyze_indices): Strip conversions
27         from the base object again.
29 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
31         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
32         DImode.
34 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
36         PR target/55701
37         * config/arm/arm.md (setmem): New pattern.
38         * config/arm/arm-protos.h (struct tune_params): New fields.
39         (arm_gen_setmem): New prototype.
40         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
41         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
42         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
43         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
44         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
45         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
46         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
47         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
48         (arm_const_inline_cost): New function.
49         (arm_block_set_max_insns): New function.
50         (arm_block_set_non_vect_profit_p): New function.
51         (arm_block_set_vect_profit_p): New function.
52         (arm_block_set_unaligned_vect): New function.
53         (arm_block_set_aligned_vect): New function.
54         (arm_block_set_unaligned_non_vect): New function.
55         (arm_block_set_aligned_non_vect): New function.
56         (arm_block_set_vect, arm_gen_setmem): New functions.
58 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
60         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
62 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
64         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
66 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
68         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
69         an rtx.
70         * valtrack.h: Adjust.
72 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
74         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
75         an rtx.
76         (emit_jump_insn_before_noloc): Likewise.
77         (emit_call_insn_before_noloc): Likewise.
78         (emit_label_before): Likewise.
79         (emit_label_after): Likewise.
80         (emit_insn_before_setloc): Likewise.
81         (emit_jump_insn_before_setloc): Likewise.
82         (emit_call_insn_before_setloc): Likewise.
83         (emit_call_insn_before): Likewise.
84         * rtl.h: Adjust.
86 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
88         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
89         rtx_insn *, eliminating a checked cast.
91 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
93         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
94         const_rtx to const rtx_insn *.
95         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
96         cast.
98 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
100         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
101         fixup_args_size_notes.
102         * expr.c (fixup_args_size_notes): Strengthen first two params from
103         rtx to rtx_insn *, eliminating a checked cast.
104         * rtl.h (fixup_args_size_notes): Strengthen first two params from
105         rtx to rtx_insn *.
107 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
109         * haifa-sched.c (get_ready_element): Strengthen return type from
110         rtx to rtx_insn *.
111         * sched-int.h (get_ready_element): Likewise.
113 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
115         PR target/63165
116         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
117         indexed_or_indirect_operand instead of memory_operand.
118         (floatsi<mode>2_lfiwzx_mem): Ditto.
120 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
122         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
123         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
124         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
126 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
128         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
129         rtx.
130         (get_last_nonnote_insn): Likewise.
131         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
132         * resource.c (find_basic_block): Likewise.
133         * rtl.h: Adjust.
134         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
135         const_rtx.
137 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
139         * genattr.c (main): Within the prototype of insn_latency written
140         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
141         * genautomata.c (output_internal_maximal_insn_latency_func):
142         Within the implementation of insn_latency written out to
143         insn-automata.c, strengthen both params from rtx to rtx_insn *,
144         eliminating a pair of checked casts.
146 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
148         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
149         rtx_insn *.
151         * rtl.h (eh_returnjump_p): Likewise.
153 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
155         * Makefile.in (TAGS): Handle constructs in timevar.def.
157 2014-09-04  Guozhi Wei  <carrot@google.com>
159         PR target/62040
160         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
161         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
162         it into two patterns.
163         (move_lo_quad_internal_be_<mode>): Likewise.
165 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
167         * doc/options.texi: Document that Var and Init are required if CPP
168         is given.
169         * optc-gen.awk: Require Var and Init if CPP is given.
170         * common.opt (Wpedantic): Use Init.
172 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
174         * config/rs6000/rs6000.c (special_handling_values): Add
175         SH_EXTRACT.
176         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
177         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
178         as swappable with special handling SH_EXTRACT.  Remove
179         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
180         optimization.
181         (adjust_extract): New function.
182         (handle_special_swappables): Add default to case statement; add
183         case for SH_EXTRACT that calls adjust_extract.
184         (dump_swap_insn_table): Handle SH_EXTRACT.
186 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
188         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
189         selection of 0th memory doubleword, regardless of endianness.
191 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
193         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
195 2014-09-04  Alan Modra  <amodra@gmail.com>
197         PR debug/60655
198         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
199         can't be output.
201 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
203         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
204         * targhooks.c (default_dwarf_frame_reg_mode): New function.
205         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
206         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
207         * doc/tm.texi: Regenerate.
208         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
209         selection logic to default_dwarf_frame_reg_mode.
211 2014-09-03  Marek Polacek  <polacek@redhat.com>
213         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
214         by -Wall.
216 2014-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
218         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
219         the automodified register.
221 2014-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
223         * output.h (get_some_local_dynamic_name): Declare.
224         * final.c (some_local_dynamic_name): New variable.
225         (get_some_local_dynamic_name): New function.
226         (final_end_function): Clear some_local_dynamic_name.
227         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
228         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
229         (print_operand): Report an error if '%&' is used inappropriately.
230         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
231         (get_some_local_dynamic_name_1): Delete.
232         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
233         (rs6000_get_some_local_dynamic_name): Delete.
234         (rs6000_get_some_local_dynamic_name_1): Delete.
235         (print_operand): Report an error if '%&' is used inappropriately.
236         * config/s390/s390.c (machine_function): Remove some_ld_name.
237         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
238         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
239         * config/sparc/sparc.c: Include rtl-iter.h.
240         (machine_function): Remove some_ld_name.
241         (sparc_print_operand): Report an error if '%&' is used inappropriately.
242         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
244 2014-09-03  Richard Henderson  <rth@redhat.com>
246         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
247         (aarch64_popwb_pair_reg): Remove.
248         (aarch64_set_frame_expr): Remove.
249         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
250         the restore ops performed by the insns generated.
251         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
252         insn.  Perform the calls_eh_return addition later; do not attempt to
253         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
254         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
255         special markup at all.  Load cfun->machine->frame.hard_fp_offset
256         into a local variable.
257         (aarch64_frame_pointer_required): Don't check calls_alloca.
259 2014-09-03  Richard Biener  <rguenther@suse.de>
261         * opts.c (default_options_optimization): Adjust
262         max-combine-insns to 2 for -Og.
264 2014-09-03  Martin Jambor  <mjambor@suse.cz>
266         PR ipa/62015
267         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
268         pass-trough jump functions correctly.
270 2014-09-03  Martin Jambor  <mjambor@suse.cz>
272         PR ipa/61986
273         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
274         created replacements in ascending order of offsets.
275         (known_aggs_to_agg_replacement_list): Likewise.
277 2014-09-03  Martin Liska  <mliska@suse.cz>
279         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
280         is set to set uninitialized value for vnresult.
282 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
284         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
285         for TARGET_MUST_PASS_IN_STACK.
287 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
289         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
290         for TARGET_ARG_PARTIAL_BYTES.
292 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
294         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
295         instructions for varargs implementation.
296         (nds32_expand_epilogue): Emit stack adjustment instructions for
297         varargs implementation.
299 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
301         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
302         optimization detection.
304 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
306         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
307         arguments.
308         (nds32_function_arg_advance): Deal with nameless arguments.
309         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
310         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
311         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
313 2014-09-03  Richard Biener  <rguenther@suse.de>
315         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
316         (struct bb_bitmap_sets): Remove deferred member.
317         (BB_DEFERRED): Remove.
318         (defer_or_phi_translate_block): Remove.
319         (compute_antic_aux): Remove deferring of blocks, assert
320         proper iteration order.
321         (compute_antic): Do not set BB_DEFERRED.
322         (eliminate): Allocate el_avail of proper size initially.
324 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
326         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
327         according to the value of crtl->args.pretend_args_size.
329 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
331         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
332         varargs information.
334 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
336         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
337         implementation for TARGET_SETUP_INCOMING_VARARGS.
338         (nds32_strict_argument_naming): Refine comment.
339         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
340         Define for future implementation.
342 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
344         * config/i386/adxintrin.h (_subborrow_u32): New.
345         (_addcarry_u32): Ditto.
346         (_subborrow_u64): Ditto.
347         (_addcarry_u64): Ditto.
348         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
349         IX86_BUILTIN_SBB64.
350         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
351         __builtin_ia32_sbb_u64
353 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
355         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
356         GPR-specific stuff.
357         (nds32_function_arg_advance): Likewise.
358         (nds32_init_cumulative_args): Likewise.
359         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
360         (NDS32_FIRST_GPR_REGNUM): Define.
361         (NDS32_LAST_GPR_REGNUM): Define.
362         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
363         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
364         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
365         (machine_function): Use GRP-specific stuff.
367 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
369         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
370         (nds32_expand_epilogue): Likewise.
371         (nds32_expand_prologue_v3push): Likewise.
372         (nds32_expand_epilogue_v3pop): Likewise.
374 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
376         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
377         v3push/v3pop for variadic function.
378         * config/nds32/nds32.md (prologue, epilogue): Likewise.
380 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
382         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
383         Check rtx for varargs implementation.
384         (nds32_output_stack_pop): Likewise.
385         * config/nds32/nds32-protos.h: Have a rtx argument for
386         nds32_output_stack_push and nds32_output_stack_pop.
387         * config/nds32/nds32.md: Likewise.
389 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
391         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
392         to check if FUNC is an interrupt service routine.
393         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
395 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
397         * config/nds32/nds32.h (machine_function): Add some fields for variadic
398         arguments implementation.
400 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
402         * config/nds32/nds32-predicates.c
403         (nds32_valid_stack_push_pop): Rename to ...
404         (nds32_valid_stack_push_pop_p): ... this.
405         * config/nds32/nds32-protos.h: Likewise.
406         * config/nds32/predicates.md: Likewise.
408 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
410         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
411         (nds32_emit_stack_v3push): ... this.
412         (nds32_gen_stack_v3pop): Rename to ...
413         (nds32_emit_stack_v3pop): ... this and consider CFA restore
414         information.
416 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
418         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
419         (nds32_emit_stack_push_multiple): ... this.
420         (nds32_gen_stack_pop_multiple): Rename to ...
421         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
422         information.
424 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
426         PR target/61078
427         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
428         and add a second splitter to handle the remaining cases.
430 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
432         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
434 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
436         * cfgexpand.c (label_rtx_for_bb): Change type to
437         hash_map<basic_block, rtx_code_label *> *.
438         (expand_gimple_basic_block): Adjust.
439         (pass_expand::execute): Likewise.
441 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
443         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
444         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
445         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
446         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
447         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
448         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
449         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
450         of rtx.
452 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
454         * alloc-pool.c: Include coretypes.h.
455         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
456         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
457         hash_set instead of htab.
458         * ggc-page.c (in_gc): New variable.
459         (ggc_free): Do nothing if a collection is taking place.
460         (ggc_collect): Set in_gc appropriately.
461         * ggc.h (gt_ggc_mx(const char *)): New function.
462         (gt_pch_nx(const char *)): Likewise.
463         (gt_ggc_mx(int)): Likewise.
464         (gt_pch_nx(int)): Likewise.
465         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
466         (hash_map::hash_entry::pch_nx): Likewise.
467         (hash_map::hash_entry::pch_nx_helper): Likewise.
468 (hash_map::hash_map): Adjust.
469 (hash_map::create_ggc): New function.
470 (gt_ggc_mx): Likewise.
471 (gt_pch_nx): Likewise.
472         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
473 (default_hashset_traits::pch_nx): Likewise.
474 (hash_set::hash_entry::ggc_mx): Likewise.
475 (hash_set::hash_entry::pch_nx): Likewise.
476 (hash_set::hash_entry::pch_nx_helper): Likewise.
477 (hash_set::hash_set): Adjust.
478 (hash_set::create_ggc): New function.
479 (hash_set::elements): Likewise.
480 (gt_ggc_mx): Likewise.
481 (gt_pch_nx): Likewise.
482         * hash-table.h (hash_table::hash_table): Adjust.
483 (hash_table::m_ggc): New member.
484         (hash_table::~hash_table): Adjust.
485         (hash_table::expand): Likewise.
486         (hash_table::empty): Likewise.
487 (gt_ggc_mx): New function.
488         (hashtab_entry_note_pointers): Likewise.
489 (gt_pch_nx): Likewise.
491 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
493         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
494         built-in definition.
495         (XVCVUXDDP_SCALE): Likewise.
496         (XVCVDPSXDS_SCALE): Likewise.
497         (XVCVDPUXDS_SCALE): Likewise.
498         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
499         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
500         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
501         VSX_BUILTIN_XVCVDPUXDS_SCALE.
502         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
503         prototype.
504         * config/rs6000/rs6000.c (real.h): New include.
505         (rs6000_scale_v2df): New function.
506         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
507         (UNSPEC_VSX_XVCVUXDDP): Likewise.
508         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
509         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
510         (vsx_xvcvsxddp_scale): New define_expand.
511         (vsx_xvcvsxddp): New define_insn.
512         (vsx_xvcvuxddp_scale): New define_expand.
513         (vsx_xvcvuxddp): New define_insn.
514         (vsx_xvcvdpsxds_scale): New define_expand.
515         (vsx_xvcvdpsxds): New define_insn.
516         (vsx_xvcvdpuxds_scale): New define_expand.
517         (vsx_xvcvdpuxds): New define_insn.
518         * doc/extend.texi (vec_ctf): Add new prototypes.
519         (vec_cts): Likewise.
520         (vec_ctu): Likewise.
521         (vec_splat): Likewise.
522         (vec_div): Likewise.
523         (vec_mul): Likewise.
525 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
527         PR target/62275
528         * config/arm/neon.md
529         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
530         <v_cmp_result>): New pattern.
531         * config/arm/iterators.md (NEON_VCVT): New int iterator.
532         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
533         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
534         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
535         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
536         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
538 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
540         PR target/62275
541         * config/arm/iterators.md (FIXUORS): New code iterator.
542         (VCVT): New int iterator.
543         (su_optab): New code attribute.
544         (su): Likewise.
545         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
547 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
549         * config/aarch64/predicates.md (aarch64_comparison_operation):
550         New special predicate.
551         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
552         aarch64_comparison_operation instead of matching an operator.
553         Update operand numbers.
554         (csinc3<mode>_insn): Likewise.
555         (*csinv3<mode>_insn): Likewise.
556         (*csneg3<mode>_insn): Likewise.
557         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
558         * config/aarch64/aarch64.c (aarch64_get_condition_code):
559         Return -1 instead of aborting on invalid condition codes.
560         (aarch64_print_operand): Update aarch64_get_condition_code callsites
561         to assert that the returned condition code is valid.
562         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
564 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
566         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
567         tree.def, and gimple.def
569 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
570             Balaji V. Iyer  <balaji.v.iyer@intel.com>
571             Igor Zamyatin  <igor.zamyatin@intel.com>
573         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
574         (__cilkrts_cilk_for_64): Likewise.
575         * cilk-common.c (declare_cilk_for_builtin): New function.
576         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
577         __cilkrts_cilk_for_64 bultins.
578         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
579         CILK_TI_F_LOOP_64.
580         (cilk_for_32_fndecl): New define.
581         (cilk_for_64_fndecl): Likewise.
582         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
583         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
584         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
585         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
586         GF_OMP_FOR_COMBINED_INTO.
587         * gimplify.c (gimplify_scan_omp_clauses): Added
588         OMP_CLAUSE__CILK_FOR_COUNT_ case.
589         (gimplify_adjust_omp_clauses): Ditto.
590         (gimplify_omp_for): Added CILK_FOR case.
591         (gimplify_expr): Ditto.
592         * omp-low.c: Include cilk.h.
593         (extract_omp_for_data): Set appropriate kind for
594         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
595         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
596         (create_omp_child_function_name): Added second argument to handle
597         cilk_for case.
598         (cilk_for_check_loop_diff_type): New function.
599         (expand_cilk_for_call): Likewise.
600         (expand_cilk_for): Likewise.
601         (create_omp_child_function): Set cilk_for_count; handle the cases when
602         it is true; call create_omp_child_function_name with second argument.
603         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
604         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
605         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
606         * tree-nested.c (convert_nonlocal_omp_clauses): Added
607         OMP_CLAUSE__CILK_FOR_COUNT_ case.
608         (convert_local_omp_clauses): Ditto.
609         * tree-pretty-print.c (dump_omp_clause): Added
610         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
611         (dump_generic_node): Added CILK_FOR case.
612         * tree.c (omp_clause_num_ops): New element
613         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
614         (omp_clause_code_name): New element _Cilk_for_count_.
615         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
616         * tree.def: Add tree code for CILK_FOR.
618 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
620         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
621         (ppc403-compare): Add "exts with dot" case.
622         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
623         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
624         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
625         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
626         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
627         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
628         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
629         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
630         cell-cmp-microcoded): Similarly.
631         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
632         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
633         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
634         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
635         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
636         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
637         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
638         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
639         (power6-compare): Add "exts with dot" case.
640         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
641         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
642         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
644         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
645         if avoiding Cell microcode.
646         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
647         (is_cracked_insn): Ditto.
648         (insn_must_be_first_in_group): Ditto.
649         * config/rs6000/rs6000.md (dot): Adjust comment.
650         (cell_micro): Handle exts+dot.
651         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
652         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
653         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
654         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
655         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
656         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
657         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
659 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
661         * config/rs6000/rs6000.md (QHSI): Delete.
662         (EXTQI, EXTHI, EXTSI): New mode iterators.
663         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
664         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
665         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
666         9 anonymous instructions, and 8 splitters): Delete.
667         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
668         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
669         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
670         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
671         *zero_extendsi<mode>2_dot2): New.
673 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
675         * config/rs6000/rs6000.md (any_extend): New code iterator.
676         (u, su): New code attributes.
677         (dmode, DMODE): New mode attributes.
678         (<su>mul<mode>3_highpart): New.
679         (*<su>mul<mode>3_highpart): New.
680         (<su>mulsi3_highpart_le): New.
681         (<su>muldi3_highpart_le): New.
682         (<su>mulsi3_highpart_64): New.
683         (<u>mul<mode><dmode>3): New.
684         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
685         splitters): Delete.
686         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
687         splitters): Delete.
689 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
691         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
692         *mulsi3_internal2, and two splitters): Delete.
693         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
694         Delete.
695         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
697 2014-09-02  Richard Biener  <rguenther@suse.de>
699         PR tree-optimization/62695
700         * tree-ssa-structalias.c (find_func_clobbers): Add missing
701         vector truncate.
703 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
705         PR target/62312
706         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
708 2014-09-01  Andi Kleen  <ak@linux.intel.com>
710         * file-find.c (add_prefix_begin): Add.
711         (do_add_prefix): Rename from add_prefix with first argument.
712         (add_prefix): Add new wrapper.
713         * file-find.h (add_prefix_begin): Add.
714         * gcc-ar.c (main): Support -B option.
716 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
718         * genemit.c: Include dumpfile.h.
719         (gen_split): Print name of splitter function to dump file.
721 2014-09-01  Richard Biener  <rguenther@suse.de>
723         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
724         Use stack auto_vecs for constraint expressions.
725         (find_func_aliases_for_call): Likewise.
726         (find_func_aliases): Likewise.
727         (find_func_clobbers): Likewise.
729 2014-09-01  Richard Biener  <rguenther@suse.de>
731         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
732         operands vector in most cases.  Remove redundant code.
734 2014-09-01  Olivier Hainque  <hainque@adacore.com>
736         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
737         $WIND_BASE instead of designating a harcoded arbitrary home dir.
738         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
740 2014-09-01  Richard Biener  <rguenther@suse.de>
742         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
743         copy_reference_ops_from_call, vn_nary_op_compute_hash,
744         vn_reference_compute_hash, vn_reference_insert): Remove.
745         (vn_reference_lookup_call): New function.
746         * tree-ssa-sccvn.c (vn_reference_compute_hash,
747         copy_reference_ops_from_ref, copy_reference_ops_from_call,
748         vn_reference_insert, vn_nary_op_compute_hash): Make static.
749         (create_reference_ops_from_call): Remove.
750         (vn_reference_lookup_3): Properly update shared_lookup_references.
751         (vn_reference_lookup_pieces): Assert that we updated
752         shared_lookup_references properly.
753         (vn_reference_lookup): Likewise.
754         (vn_reference_lookup_call): New function.
755         (visit_reference_op_call): Use it.  Avoid re-building the
756         reference ops.
757         (visit_reference_op_load): Remove redundant lookup.
758         (visit_reference_op_store): Perform special tail-merging work
759         only when possibly doing tail-merging.
760         (visit_use): Likewise.
761         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
763 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
765         PR target/62025
766         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
767         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
768         (find_inc): Revert 2014-08-13 change.
770 2014-09-01  Marek Polacek  <polacek@redhat.com>
772         PR middle-end/61903
773         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
774         Change the type of V to unsigned HOST_WIDE_INT.
776 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
778         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
779         the size of byte markers.
780         (do_shift_rotate): Fix confusion between host, target and marker byte
781         size.
782         (verify_symbolic_number_p): Likewise.
783         (find_bswap_or_nop_1): Likewise.
784         (find_bswap_or_nop): Likewise.
786 2014-09-01  Olivier Hainque  <hainque@adacore.com>
788         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
789         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
791 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
793         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
794         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
795         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
797 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
799         PR sanitizer/61897
800         PR sanitizer/62140
801         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
802         (build_check_stmt): Likewise.
803         (instrument_strlen_call): Likewise.
804         (asan_expand_check_ifn): Likewise and fix types.
805         (maybe_cast_to_ptrmode): New function.
807 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
809         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
811 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
813         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
815 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
817         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
818         prefix to function labels when generating fast indirect calls.
820 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
822         PR bootstrap/62304
824         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
825         param back from rtx_insn * to rtx.  Rename param from "label" to
826         "label_or_return", reintroducing "label" as an rtx_insn * after
827         we've ensured it's not a RETURN.
828         (first_active_target_insn): Likewise for return type and param;
829         add a checked cast to rtx_insn * once we've ensured "insn" is not
830         a RETURN.
831         (steal_delay_list_from_target): Convert param "pnew_thread" back
832         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
833         with JUMP_LABEL.
834         (own_thread_p): Convert param "thread" back from an rtx_insn * to
835         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
836         cast once we've established we're not dealing with a RETURN,
837         renaming subsequent uses of "thread" to "thread_insn".
838         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
839         to JUMP_LABEL.
840         (follow_jumps): Convert return type and param "label" from
841         rtx_insn * back to rtx.  Move initialization of "value" to after
842         the handling for ANY_RETURN_P, adding a checked cast there to
843         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
844         rename to "this_label_or_return", reintroducing "this_label" as
845         an rtx_insn * once we've handled the case where it could be an
846         ANY_RETURN_P.
847         (fill_slots_from_thread): Rename param "thread" to
848         "thread_or_return", converting from an rtx_insn * back to an rtx.
849         Reintroduce name "thread" as an rtx_insn * local with a checked
850         cast once we've handled the case of it being an ANY_RETURN_P.
851         Convert local "new_thread" from an rtx_insn * back to an rtx.
852         Add a checked cast when assigning to "trial" from "new_thread".
853         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
854         checked cast to rtx_insn * from "new_thread" when invoking
855         get_label_before.
856         (fill_eager_delay_slots): Convert locals "target_label",
857         "insn_at_target" from rtx_insn * back to rtx.
858         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
859         (relax_delay_slots): Convert locals "trial", "target_label" from
860         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
861         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
862         invoking update_block.
863         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
864         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
866         * resource.h (mark_target_live_regs): Undo erroneous conversion
867         of second param of r214693, converting it back from rtx_insn * to
868         rtx, since it could be a RETURN.
870         * resource.c (find_dead_or_set_registers): Similarly, convert
871         param "jump_target" back from an rtx_insn ** to an rtx *, as we
872         could be writing back a RETURN.  Rename local rtx_insn * "next" to
873         "next_insn", and introduce "lab_or_return" as a local rtx,
874         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
875         (mark_target_live_regs): Undo erroneous conversion
876         of second param of r214693, converting it back from rtx_insn * to
877         rtx, since it could be a RETURN.  Rename it from "target" to
878         "target_maybe_return", reintroducing the name "target" as a local
879         rtx_insn * with a checked cast, after we've handled the case of
880         ANY_RETURN_P.
882 2014-08-29  DJ Delorie  <dj@redhat.com>
884         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
885         pointer size up to a power of two.
886         * defaults.h (DWARF2_ADDR_SIZE): Round up.
887         (POINTER_SIZE_UNITS): New, rounded up value.
888         * dwarf2asm.c (size_of_encoded_value): Use it.
889         (dw2_output_indirect_constant_1): Likewise.
890         * expmed.c (init_expmed_one_conv): We now know the sizes of
891         partial int modes.
892         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
893         * optabs.c (expand_float): Use precision, not size.
894         (expand_fix): Likewise.
895         * simplify-rtx (simplify_unary_operation_1): Likewise.
896         * tree-dfa.c (get_ref_base_and_extent): Likewise.
897         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
898         (default_assemble_integer) Likewise.
899         (dump_tm_clone_pairs): Likewise.
900         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
901         * var-tracking.c (adjust_mems): Allow partial-int modes also.
902         (prepare_call_arguments): Likewise.
903         * stor-layout.c (finalize_type_size): Preserve precision.
904         (layout_type): Use precision, not size.
906         * expr.c (convert_move): If the target has an explicit converter,
907         use it.
909 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
911         * gdbinit.in: Skip various inline functions in rtl.h when
912         stepping.
914 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
916         PR bootstrap/62301
917         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
919 2014-08-29  Richard Biener  <rguenther@suse.de>
921         PR tree-optimization/62291
922         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
923         exactly the vector size needed and use quick_push.
924         (phi_translate_1): Adjust comment.
925         (valid_in_sets): Remove block argument and remove pointless
926         checking of NAMEs.
927         (dependent_clean): Adjust for removal of block argument.
928         (clean): Likewise.
929         (compute_antic_aux): Likewise.
930         (compute_partial_antic_aux): Likewise.
932 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
933             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
934             Anna Tikhonova  <anna.tikhonova@intel.com>
935             Ilya Tocar  <ilya.tocar@intel.com>
936             Andrey Turetskiy  <andrey.turetskiy@intel.com>
937             Ilya Verbin  <ilya.verbin@intel.com>
938             Kirill Yukhin  <kirill.yukhin@intel.com>
939             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
941         * config/i386/sse.md
942         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
943         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
944         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
945         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
947 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
948             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
949             Anna Tikhonova  <anna.tikhonova@intel.com>
950             Ilya Tocar  <ilya.tocar@intel.com>
951             Andrey Turetskiy  <andrey.turetskiy@intel.com>
952             Ilya Verbin  <ilya.verbin@intel.com>
953             Kirill Yukhin  <kirill.yukhin@intel.com>
954             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
956         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
957         * config/i386/sse.md
958         (define_mode_iterator VI4_128_8_256): New.
959         (define_mode_iterator VI2_128_4_256): Ditto.
960         (define_mode_iterator PMOV_DST_MODE): Rename into
961         (define_mode_iterator PMOV_DST_MODE_1): this.
962         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
963         Use PMOV_DST_MODE_1 mode iterator.
964         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
965         Ditto.
966         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
967         Ditto.
968         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
969         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
970         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
971         (define_mode_iterator PMOV_DST_MODE_2): New.
972         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
973         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
974         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
975         Ditto.
976         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
977         (define_mode_attr pmov_dst_3): Ditto.
978         (define_mode_attr pmov_dst_zeroed_3): Ditto.
979         (define_mode_attr pmov_suff_3): Ditto.
980         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
981         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
982         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
983         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
984         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
985         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
986         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
987         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
988         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
989         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
990         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
991         (define_mode_attr pmov_dst_4): Ditto.
992         (define_mode_attr pmov_dst_zeroed_4): Ditto.
993         (define_mode_attr pmov_suff_4): Ditto.
994         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
995         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
996         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
997         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
998         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
999         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
1000         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
1001         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
1002         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
1003         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
1004         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
1006 2014-08-29  Richard Biener  <rguenther@suse.de>
1008         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
1009         NON_LVALUE_EXPR in gimple.
1011 2014-08-29  Richard Biener  <rguenther@suse.de>
1013         PR middle-end/62292
1014         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
1015         from previous refactoring.
1016         (gimple_fold_builtin_strncpy): Likewise.
1018 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
1020         PR bootstrap/62300
1021         * function.c (assign_parm_setup_reg): Remove erroneous checked
1022         cast to rtx_insn * on result of gen_extend_insn in favor of
1023         introducing a new local rtx "pat".
1025 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1027         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
1028         to silence warning.
1029         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
1031 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1033         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
1034         (next_insn): Likewise.
1035         * emit-rtl.c (next_insn): Likewise.
1036         (previous_insn): Likewise.
1037         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
1038         "insn" and "next" from rtx to rtx_insn *.
1039         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
1040         "insn", "insn1", "vliw_start",  "prologue_end_note",
1041         "last_insn_in_packet".
1043 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1045         * shrink-wrap.h (active_insn_between): Strengthen both params from
1046         rtx to rtx_insn *.
1047         * function.c (active_insn_between): Likewise.
1049 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1051         * genattr.c (main): When writing out insn-attr.h, strengthen param
1052         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
1053         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
1054         writing out the definition of dfa_clear_single_insn_cache to the
1055         generated insn-automata.c
1057 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1059         * resource.h (clear_hashed_info_for_insn): Strengthen param from
1060         rtx to rtx_insn *.
1061         (incr_ticks_for_insn): Likewise.
1062         (init_resource_info): Likewise.
1064         * resource.c (init_resource_info): Likewise.
1065         (clear_hashed_info_for_insn): Likewise.
1066         (incr_ticks_for_insn): Likewise.
1068         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
1069         rtx to rtx_insn *.
1070         (steal_delay_list_from_target): Use methods of "seq".
1071         (try_merge_delay_insns): Use methods of "merged_insns".
1072         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
1073         (reorg_redirect_jump): Likewise for param "jump".
1075 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1077         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
1078         rtx to rtx_insn *.
1079         * config/s390/s390.c (s390_split_branches): Eliminate top-level
1080         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
1081         "set_insn".
1082         (s390_mainpool_finish): In three places, split out a local rtx
1083         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
1084         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
1085          and split another local rtx "insn" out into rtx "pat" and
1086         rtx_insn * "insn".
1087         * config/sh/sh.c (output_branchy_insn): Rather than working
1088         directly on operands[9], introduce local rtx_code_label *
1089         variables named "lab" in two places, working on them, and then
1090         assigning them to operands[9], so that the intervening operations
1091         are known by the type system to be on insns.
1093 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1095         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
1096         const rtx_insn *.
1098         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
1099         in invocation of INSN_HAS_LOCATION.
1101 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1103         * config/rs6000/altivec.h (vec_xl): New #define.
1104         (vec_xst): Likewise.
1105         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
1106         (XXSPLTD_V2DI): Likewise.
1107         (DIV_V2DI): Likewise.
1108         (UDIV_V2DI): Likewise.
1109         (MUL_V2DI): Likewise.
1110         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1111         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
1112         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
1113         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
1114         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
1115         (UNSPEC_VSX_DIVSD): Likewise.
1116         (UNSPEC_VSX_DIVUD): Likewise.
1117         (UNSPEC_VSX_MULSD): Likewise.
1118         (vsx_mul_v2di): New insn-and-split.
1119         (vsx_div_v2di): Likewise.
1120         (vsx_udiv_v2di): Likewise.
1121         (vsx_xxspltd_<mode>): New insn.
1123 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1125         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
1126         NEXT_INSN.
1127         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
1128         (NEXT_INSN): Likewise.
1129         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
1130         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
1131         const rtx_insn *.
1132         (no_labels_between_p): Likewise for both params.
1134         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
1135         cast when using NEXT_INSN on operands[2].
1136         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
1137         "insn" from rtx to rtx_insn *, adding a checked cast.
1138         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
1139         rtx_insn *.
1140         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
1141         for third param.
1142         (arc_text_label): Likewise for param "insn".
1143         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
1144         "insn".
1145         (arc_ccfsm_record_condition): Likewise for param "jump".
1146         (arc_text_label): Likewise for local "label".
1147         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
1148         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
1149         a method for typesafety.  Add a checked cast.
1150         * config/arc/constraints.md (Clb): Add a checked cast when getting
1151         the CODE_LABEL from a LABEL_REF.
1152         * config/arm/arm.c (require_pic_register): Strengthen locals
1153         "seq", "insn" from rtx to rtx_insn *.
1154         (create_fix_barrier): Likewise for locals "selected", "next".
1155         (thumb1_reorg): Likewise for locals "prev", "insn".
1156         (arm_expand_prologue): Likewise for local "last".
1157         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
1158         operands[0].
1159         (thumb2_output_casesi): Likewise for operands[2].
1160         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
1161         strengthen local "insn" from rtx to rtx_insn *.
1162         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
1163         type and param "insn".
1164         (find_prev_insn_start): Likewise.
1165         (hwloop_optimize): Likewise for locals "insn", "last_insn",
1166         "prev".
1167         (gen_one_bundle): Likewise for loal "t".
1168         (find_load): Likewise for param "insn".
1169         (workaround_speculation): Likewise for locals "insn", "next",
1170         "target", "next_tgt".
1171         * config/c6x/c6x.c (assign_reservations): Likewise for both params
1172         and for locals "insn", "within", "last".
1173         (count_unit_reqs): Likewise for params "head", "tail" and local
1174         "insn".
1175         (try_rename_operands): Likewise for params "head", "tail".
1176         (reshuffle_units): Likewise for locals "head", "tail", "insn".
1177         (struct c6x_sched_context): Likewise for fields
1178         "last_scheduled_insn", "last_scheduled_iter0".
1179         (init_sched_state): Replace NULL_RTX with NULL.
1180         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
1181         to rtx_insn *.
1182         (undo_split_delayed_nonbranch): Likewise for param and for local
1183         "prev".
1184         (conditionalize_after_sched): Likewise for local "insn".
1185         (bb_earliest_end_cycle): Likewise.
1186         (filter_insns_above): Likewise for locals "insn", "next".
1187         (hwloop_optimize): Remove redundant checked cast.
1188         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
1189         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
1190         NULL_RTX with NULL.
1191         (cris_simple_epilogue): Likewise.
1192         (cris_expand_prologue): Likewise.
1193         (cris_expand_epilogue): Likewise.
1194         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
1195         local "insn" from rtx to rtx_insn *.
1196         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
1197         (struct frv_packet_group): Likewise for the elements within array
1198         fields "insns", "sorted", and for field "nop".
1199         (frv_packet): Likewise for the elements within array field
1200         "insns".
1201         (frv_add_insn_to_packet): Likewise for param "insn".
1202         (frv_insert_nop_in_packet): Likewise for param "insn" and local
1203         "last".
1204         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
1205         (frv_sort_insn_group_1): Likewise for local "insn".
1206         (frv_optimize_membar_local): Likewise.
1207         (frv_align_label): Likewise for locals "x", "last", "barrier",
1208         "label".
1209         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
1210         local.
1211         (ia64_sched_init): Likewise for local "insn".
1212         (scheduled_good_insn): Likewise for param "last".
1213         (struct _ia64_sched_context): Likewise for field
1214         "last_scheduled_insn".
1215         (ia64_init_sched_context): Replace NULL_RTX with NULL.
1216         (struct bundle_state): Likewise for field "insn".
1217         (issue_nops_and_insn): Likewise for param "insn".
1218         (get_next_important_insn): Likewise for return type and both
1219         params.
1220         (ia64_add_bundle_selector_before): Likewise for param "insn".
1221         (bundling): Likewise for params "prev_head_insn", "tail" and
1222         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
1223         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
1224         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
1225         Strengthen final param from rtx to rtx_insn *.
1226         (iq2000_move_1word): Likewise for second param.
1227         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
1228         param "cur_insn" and local "next_insn".
1229         (iq2000_move_1word): Likewise for param "insn".
1230         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
1231         casts when using NEXT_INSN on operands[1].
1232         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
1233         "insn" from rtx to rtx_insn *.
1234         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
1235         "x", introducing local rtx_insn * "insn" for when working with the
1236         CODE_LABEL of the LABEL_REF.
1237         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
1238         rtx_insn *.
1239         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
1240         param.
1241         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
1242         type.
1243         (conditionalize_block): Likewise for return type and param.
1244         (mcore_is_dead): Likewise for param "first" and local "insn".
1245         (emit_new_cond_insn): Likewise for return type.
1246         (conditionalize_block): Likewise for return type, param, and
1247         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
1248         "newinsn".
1249         (conditionalize_optimization): Likewise for local "insn".
1250         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
1251         using NEXT_INSN.
1252         * config/microblaze/microblaze.md: Add checked casts when using
1253         NEXT_INSN.
1254         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
1255         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
1256         and rtx_insn * "insn".
1257         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
1258         checked cast when using NEXT_INSN on operands[2].
1259         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
1260         local "insn" from rtx to rtx_insn *.
1261         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
1262         Likewise.
1263         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
1264         Add a checked cast when using NEXT_INSN on operands[1].
1265         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
1266         rtx to rtx_insn *.
1267         (pa_output_cbranch): Likewise for final param.
1268         (pa_output_lbranch): Likewise for second param.
1269         (pa_output_bb): Likewise for third param.
1270         (pa_output_bvb): Likewise.
1271         (pa_output_dbra): Likewise for second param.
1272         (pa_output_movb): Likewise.
1273         (pa_output_parallel_movb): Likewise.
1274         (pa_output_parallel_addb): Likewise.
1275         (pa_output_millicode_call): Likewise for first param.
1276         (pa_output_mul_insn): Likewise for second param.
1277         (pa_output_div_insn): Likewise for third param.
1278         (pa_output_mod_insn): Likewise for second param.
1279         (pa_jump_in_call_delay): Likewise for param.
1280         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
1281         (pa_output_div_insn): Likewise.
1282         (pa_output_mod_insn): Likewise.
1283         (pa_output_cbranch): Likewise.
1284         (pa_output_lbranch): Likewise.
1285         (pa_output_bb): Likewise.
1286         (pa_output_bvb): Likewise.
1287         (pa_output_dbra): Likewise.
1288         (pa_output_movb): Likewise.
1289         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
1290         to simplify and for typesafety.
1291         (pa_output_call): Use method of rtx_sequence *.
1292         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
1293         (pa_jump_in_call_delay): Likewise.
1294         (pa_output_parallel_movb): Likewise.
1295         (pa_output_parallel_addb): Likewise.
1296         (pa_following_call): Likewise.
1297         (pa_combine_instructions): Likewise for locals "anchor",
1298         "floater".
1299         (pa_can_combine_p): Likewise for params "anchor", "floater" and
1300         locals "start", "end".
1301         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
1302         param "insn" and local "local_insn".
1303         (picochip_final_prescan_insn): Likewise for local "local_insn".
1304         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
1305         local "insn".
1306         (uses_TOC): Likewise.
1307         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
1308         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
1309         splitting out to more tightly-scoped locals, 3 as rtx and one as
1310         rtx_insn *.
1311         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
1312         to rtx_insn *.
1313         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
1314         where needed.
1315         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
1316         to rtx_insn *.
1317         (fixup_addr_diff_vecs): Likewise.
1318         (reg_unused_after): Likewise for param 2.
1319         (sh_can_redirect_branch): Likewise for both params.
1320         (check_use_sfunc_addr): Likewise for param 1.
1321         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
1322         (find_barrier): Likewise for local "last_got".
1323         (gen_block_redirect): Likewise for return type, param "jump" and
1324         locals "prev", "scan", "next", "insn".
1325         (struct far_branch): Likewise for fields "near_label",
1326         "insert_place", "far_label".
1327         (gen_far_branch): Likewise for local "jump".
1328         (fixup_addr_diff_vecs): Likewise for param "first" and locals
1329         "insn", "prev".
1330         (barrier_align): Likewise for param and for locals "prev", "x".
1331         Introduce local rtx_sequence * "prev_seq" and use insn method for
1332         typesafety and clarity.
1333         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
1334         (get_dest_uid): Likewise for local "dest".
1335         (split_branches): Likewise for locals "next", "beyond", "label",
1336         "block", "far_label".  Add checked casts when assigning to
1337         bp->far_label and "far_label".
1338         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
1339         (sequence_insn_p): Likewise.
1340         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
1341         more loop-scoped rtx "insn" when walking LABEL_REFS.
1342         (sh_can_redirect_branch): Strengthen both params from rtx to
1343         rtx_insn *.
1344         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
1345         new local rtx_sequence * "seq" via a dyn_cast, and use a method
1346         for clarity and typesafety.
1347         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
1348         "insn" from rtx to rtx_insn *.
1349         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
1350         when using NEXT_INSN on the CODE_LABEL in operands[2].
1351         (define_insn "casesi_worker_2"): Likewise.
1352         (define_insn "casesi_shift_media"): Likewise.
1353         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
1354         operands[3].
1355         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
1356         Strengthen field "insn" from rtx to rtx_insn *.
1357         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
1358         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
1359         param "start_insn" and local "start_insn".
1360         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
1361         field "insn".
1362         (find_set_of_reg_bb): Likewise for param "insn".
1363         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
1364         (trace_reg_uses): Likewise for param "start_insn".
1365         (sh_treg_combine::cbranch_trace): Likewise for field
1366         "cbranch_insn".
1367         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
1368         param "insn".
1369         (sh_treg_combine::record_set_of_reg): Likewise for param
1370         "start_insn" and local "i".
1371         (sh_treg_combine::can_remove_cstore): Likewise for local
1372         "prev_insn".
1373         (sh_treg_combine::try_optimize_cbranch): Likewise for param
1374         "insn".
1375         (sh_treg_combine::execute): Likewise for local "i".
1376         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
1377         param.
1378         (sparc_check_64): Likewise for second param.
1379         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
1380         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
1381         dyn_cast, using its insn method for typesafety and clarity.
1382         (empty_delay_slot): Strengthen param "insn" from rtx to
1383         rtx_insn *.
1384         (set_extends): Likewise.
1385         (sparc_check_64): Likewise.
1386         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
1387         for locals "seq", "last_insn".
1388         (combine_bnp): Likewise for param "insn".
1389         (xstormy16_reorg): Likewise for local "insn".
1390         * config/v850/v850.c (substitute_ep_register): Likewise for params
1391         "first_insn", "last_insn" and local "insn".
1392         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
1393         elements of "regs" array, and local "insn".
1394         * except.c (emit_note_eh_region_end): Likewise for param "insn".
1395         * final.c (final_sequence): Strengthen this global from rtx to
1396         rtx_sequence *.
1397         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
1398         rtx_insn *.
1399         (final_scan_insn): Update assignment to "final_sequence" to be
1400         from "seq", the cast version of "body", for type-safety.
1401         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
1402         "insns" from rtx to rtx_insn *.
1403         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
1404         * genattr.c (main): When writing out generated insn-attr.h,
1405         strengthen params 1 and 3 of eligible_for_delay,
1406         eligible_for_annul_true, eligible_for_annul_false from rtx to
1407         rtx_insn *.
1408         * genattrtab.c (write_eligible_delay): Likewise when writing out
1409         generated insn-attrtab.c; also local "insn" the generated
1410         functions.
1411         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
1412         to rtx_insn *.
1413         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
1414         "start_label" from rtx to rtx_insn *.
1415         * ira.c (decrease_live_ranges_number): Likewise for local "p".
1416         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
1417         "insns" and local "insn".
1418         (validate_equiv_mem): Likewise for param "start" and local "insn".
1419         (memref_used_between_p): Likewise for params "start", "end" and
1420         local "insn".
1421         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
1422         final param.
1423         * loop-doloop.c (doloop_optimize): Within region guarded by
1424         INSN_P (doloop_pat), introduce a new local rtx_insn *
1425         "doloop_insn" via a checked cast, and use it for typesafety,
1426         eventually writing the value back into doloop_pat.
1427         * output.h (final_sequence): Strengthen this global from rtx to
1428         rtx_sequence *.
1429         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
1430         reintroducing "insn" as an rtx_insn * via a checked cast.
1431         Strengthen param "attempt" and local "new_insn"from rtx to
1432         rtx_insn *.
1433         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
1434         to rtx_insn *.
1435         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
1436         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
1437         "p" in favor of more tightly-scoped replacements, sometimes rtx
1438         and sometimes rtx_insn *, as appropriate.
1439         (delete_output_reload): Eliminate top-level rtx "i1", splitting
1440         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
1441         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
1442         local "trial" from rtx to rtx_insn *.
1443         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
1444         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
1445         rtx_sequence * and use methods for clarity and typesafety.
1446         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
1447         rtx to rtx_insn *.  Strenghten local "li" from rtx to
1448         rtx_insn_list * and use its methods for clarity and typesafety.
1449         (steal_delay_list_from_target): Strengthen param "insn" from rtx
1450         to rtx_insn *.
1451         (steal_delay_list_from_fallthrough): Likewise.
1452         (try_merge_delay_insns): Likewise for param "thread" and locals
1453         "trial", "next_trial", "delay_insn".
1454         (redundant_insn): Likewise for param "target" and local "trial".
1455         (own_thread_p): Likewise for param "thread" and locals
1456         "active_insn", "insn".
1457         (get_label_before): Likewise for param "insn".
1458         (fill_simple_delay_slots): Likewise for local "new_label"; use
1459         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
1460         (label_before_next_insn): Strengthen return type and local "insn"
1461         from rtx to rtx_insn *.
1462         (relax_delay_slots): Likewise for locals "other", "tmp".
1463         (make_return_insns): Likewise for param "first" and locals "insn",
1464         "jump_insn", "prev".  Move declaration of "pat" to its assignment
1465         and strengthen from rtx to rtx_sequence *.  Use its methods for
1466         clarity and typesafety.
1467         * rtlanal.c (no_labels_between_p): Strengthen params from
1468         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
1469         rtx_insn *.
1470         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
1471         from const_rtx to const rtx_insn *.
1472         (reg_set_between_p): Rename param "from_insn" to
1473         "uncast_from_insn", and reintroduce "from_insn" as a
1474         const rtx_insn * via a checked cast.
1475         (modified_between_p): Likewise for param "start" as "uncast_start".
1476         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
1477         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
1478         "tmp", head" from rtx to rtx_insn *.
1479         (recompute_rev_top_order): Likewise for local "insn".
1480         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
1481         * store-motion.c (build_store_vectors): Likewise for local "insn".
1482         Strengthen local "st" from rtx to rtx_insn_list * and use methods
1483         for clarity and typesafety.
1484         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
1485         rtx to rtx_insn *.
1486         (computation_cost): Likewise for local "seq".
1487         (get_address_cost): Likewise.
1489 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1491         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
1492         const rtx_insn *.
1493         (label_is_jump_target_p): Likewise for second param.
1495         * rtlanal.c (tablejump_p): Likewise for param "insn".
1496         (label_is_jump_target_p): Likewise for param "jump_insn".
1498 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1500         * rtl.h (find_first_parameter_load): Strengthen return type and
1501         both params from rtx to rtx_insn *.
1502         * rtlanal.c (find_first_parameter_load): Strengthen return type,
1503         both params and locals "before", "first_set" from rtx to
1504         rtx_insn *.  Remove now-redundant cast.
1505         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
1507 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1509         * rtl.h (find_last_value): Delete.
1510         * rtlanal.c (find_last_value): Delete.
1512 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1514         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
1515         from rtx to rtx_insn *.
1516         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
1517         rtx "note" with new local rtx_insn * "new_head" when calculating
1518         head insn of new basic block.
1519         * combine.c (combine_split_insns): Strengthen return type and local
1520         "ret" from rtx to rtx_insn *.
1521         (likely_spilled_retval_p): Likewise for locals "use" and "p".
1522         (try_combine): Eliminate local "m_split", splitting into new
1523         locals "m_split_insn" and "m_split_pat".
1524         (find_split_point): Strengthen local "seq" from rtx into
1525         rtx_insn *.
1526         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
1527         locals "label", "branch".
1528         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
1529         for local "insn".
1530         (define_expand "umulsi3_highpart"): Likewise for local "insn".
1531         * dse.c (note_add_store_info): Likewise for fields "first",
1532         "current".
1533         (note_add_store): Likewise for local "insn".
1534         (emit_inc_dec_insn_before): Likewise for locals "insn",
1535         "new_insn", "cur".
1536         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
1537         (replace_read): Likewise for locals "insns", "this_insn".
1538         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
1539         (notice_eh_throw): Likewise for param "insn".
1540         (before_next_cfi_note): Likewise for return type, param, and local
1541         "prev".
1542         (connect_traces): Likewise for local "note".
1543         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
1544         (verify_rtl_sharing): Likewise.
1545         (unshare_all_rtl_in_chain): Likewise for param "insn".
1546         (get_first_nonnote_insn): Likewise for local "insn".
1547         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
1548         "seq" and use its methods to clarify things.
1549         (next_insn): Strengthen return type from rtx to rtx_insn *.
1550         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
1551         local rtx_insn * using a checked cast, dropping a checked cast
1552         made redundant by this change.  Use a cast to and method of
1553         rtx_sequence to clarify the code.
1554         (previous_insn): Rename param "insn" to "uncast_insn" and
1555         reintroduce "insn" as a local rtx_insn * using a checked cast,
1556         dropping a checked cast made redundant by this change.  Use a cast
1557         to and method of rtx_sequence to clarify the code.
1558         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
1559         reintroduce "insn" as a local rtx_insn * using a checked cast,
1560         dropping a checked cast made redundant by this change.
1561         (next_nonnote_insn_bb): Likewise.
1562         (prev_nonnote_insn): Likewise.
1563         (prev_nonnote_insn_bb): Likewise.
1564         (next_nondebug_insn): Likewise.
1565         (prev_nondebug_insn): Likewise.
1566         (next_nonnote_nondebug_insn): Likewise.
1567         (prev_nonnote_nondebug_insn): Likewise.
1568         (next_real_insn): Likewise.
1569         (prev_real_insn): Likewise.
1570         (next_active_insn): Likewise.
1571         (prev_active_insn): Likewise.
1572         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
1573         clarity.
1574         (prev_cc0_setter): Likewise.
1575         (try_split): Rename param "trial" to "uncast_trial" and
1576         reintroduce "insn" as a local rtx_insn * using a checked cast,
1577         dropping checked casts made redundant by this change.
1578         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
1579         rtx to rtx_insn *.
1580         (remove_insn): Rename param "insn" to "uncast_insn" and
1581         reintroduce "insn" as a local rtx_insn * using a checked cast.
1582         (emit_pattern_after_setloc): Likewise for param "after", as
1583         "uncast_after".
1584         (emit_pattern_after): Likewise.  Strengthen local "prev" from
1585         rtx to rtx_insn *.
1586         (emit_pattern_before_setloc): Rename param "before" to
1587         "uncast_before" and reintroduce "before" as a local rtx_insn *
1588         using a checked cast.  Strengthen locals "first", "last" from
1589         rtx to rtx_insn *.
1590         (emit_pattern_before): Likewise rename/cast param "before" to
1591         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
1592         * except.c (copy_reg_eh_region_note_forward): Strengthen param
1593         "first" and local "insn" from rtx to rtx_insn *.
1594         (copy_reg_eh_region_note_backward): Likewise for param "last"
1595         and local "insn".
1596         * expr.c (fixup_args_size_notes): Rename param "last" to
1597         "uncast_last" and reintroduce "last" as a local rtx_insn *
1598         using a checked cast.  Strengthen local "insn" from rtx to
1599         rtx_insn *.
1600         * function.c (set_insn_locations): Strengthen param "insn" from
1601         rtx to rtx_insn *.
1602         (record_insns): Likewise for param "insns" and local "tmp".
1603         (active_insn_between): Rename param "tail" to
1604         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
1605         using a checked cast.
1606         (thread_prologue_and_epilogue_insns): Split out top-level local
1607         rtx "seq" into three different rtx_insn * locals.  Strengthen
1608         local "prologue_seq" from rtx to rtx_insn *.
1609         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
1610         from rtx to rtx_insn *.
1611         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
1612         (priority): Likewise for locals "prev_first", "twin".
1613         (setup_insn_max_reg_pressure): Likewise for param "after".
1614         (sched_setup_bb_reg_pressure_info): Likewise.
1615         (no_real_insns_p): Strengthen params from const_rtx to
1616         const rtx_insn *.
1617         (schedule_block): Strengthen local "next_tail" from rtx to
1618         rtx_insn *.
1619         * ifcvt.c (find_active_insn_before): Strengthen return type and
1620         param "insn" from rtx to rtx_insn *.
1621         (find_active_insn_after): Likewise.
1622         (cond_exec_process_insns): Likewise for param "start" and local "insn".
1623         (cond_exec_process_if_block): Likewise for locals "then_start",
1624         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
1625         (noce_process_if_block): Likewise for local "jump".
1626         (merge_if_block): Likewise for two locals named "end".
1627         (cond_exec_find_if_block): Likewise for local "last_insn".
1628         * jump.c (delete_related_insns): Rename param "insn" to
1629         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
1630         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
1631         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
1632         NULL.
1633         (split_reg): Likewise.
1634         * lra.c (lra_process_new_insns): Likewise.
1635         * modulo-sched.c (permute_partial_schedule): Strengthen param
1636         "last" from rtx to rtx_insn *.
1637         * optabs.c (add_equal_note): Likewise for param "insns" and local
1638         "last_insn".
1639         (expand_binop_directly): Add checked casts to rtx_insn * within
1640         NEXT_INSN (pat) uses.
1641         (expand_unop_direct): Likewise.
1642         (maybe_emit_unop_insn): Likewise.
1643         * recog.c (peep2_attempt): Strengthen locals "last",
1644         "before_try", "x" from rtx to rtx_insn *.
1645         * reorg.c (optimize_skip): Strengthen return type and local
1646         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
1647         and locals "trial", "next_trial" from rtx to rtx_insn *.
1648         * resource.c (next_insn_no_annul): Strengthen return type and
1649         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
1650         rtx_sequence to clarify the code.
1651         (mark_referenced_resources): Add a checked cast to rtx_insn *
1652         within PREV_INSN (x).
1653         (find_dead_or_set_registers): Strengthen return type, param
1654         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
1655         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
1656         to rtx_insn **.
1657         (mark_target_live_regs): Strengthen params "insns" and "target",
1658         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
1659         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
1660         the code.
1661         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
1662         from rtx to rtx_insn *.
1663         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
1664         from rtx to rtx_insn *.
1665         (copy_reg_eh_region_note_backward): Likewise.
1666         (unshare_all_rtl_in_chain): Likewise for sole param.
1667         (dump_rtl_slim): Strengthen second and third params from const_rtx
1668         to const rtx_insn *.
1669         * sched-deps.c (sched_free_deps): Strengthen params "head" and
1670         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
1671         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
1672         "next_tail" from rtx to rtx_insn *.
1673         (begin_move_insn): Likewise for local "next".
1674         * sched-int.h (sched_free_deps): Likewise for first and second
1675         params.
1676         (no_real_insns_p): Strengthen both params from const_rtx to
1677         const rtx_insn *.
1678         (sched_setup_bb_reg_pressure_info): Strengthen second params from
1679         rtx to rtx_insn *.
1680         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
1681         "next_tail".
1682         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
1683         and locals "insn", "tail" from const_rtx to const rtx_insn *.
1684         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
1685         rtx_insn *.
1686         (debug_rtl_slim): Strengthen params "first" and "last" from
1687         const_rtx to const rtx_insn *.
1688         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
1689         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
1690         (convert_to_simple_return): Likewise for param "returnjump".
1691         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
1692         "prologue_seq".
1693         (convert_to_simple_return): Likewise for param "returnjump".
1694         * valtrack.c (propagate_for_debug): Likewise for params
1695         "insn", "last".
1696         * valtrack.h (propagate_for_debug): Likewise for second param.
1698 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1700         * output.h (insn_current_reference_address): Strengthen param
1701         from rtx to rtx_insn *.
1702         * final.c (insn_current_reference_address): Likewise.
1704 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1706         * basic-block.h (inside_basic_block_p): Strengthen param from
1707         const_rtx to const rtx_insn *.
1708         * cfgbuild.c (inside_basic_block_p): Likewise.
1710 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1712         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
1713         rtx_insn *.
1714         (get_trace_info): Likewise for param "insn".
1715         (save_point_p): Likewise.
1716         (maybe_record_trace_start): Likewise for both params.
1717         (maybe_record_trace_start_abnormal): Likewise.
1718         (create_trace_edges): Likewise for sole param and for three of the
1719         locals named "lab".
1720         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
1721         to rtx_insn *, and update a call to pat->element to pat->insn.
1723 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1725         * function.h (struct expr_status): Convert field "x_forced_labels"
1726         from rtx_expr_list * to rtx_insn_list *.
1728         * cfgbuild.c (make_edges): Convert local "x" from an
1729         rtx_expr_list * to an rtx_insn_list *, replacing use of
1730         "element" method with "insn" method.
1731         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1732         * except.c (sjlj_emit_dispatch_table): Replace use of
1733         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
1734         forced_labels.
1735         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
1736         rtx_expr_list * to an rtx_insn_list *, replacing use of
1737         "element" method with "insn" method.
1738         * reload1.c (set_initial_label_offsets): Likewise for local "x".
1739         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
1740         rtx_insn *, adding a checked cast.  Replace use of
1741         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
1742         forced_labels.
1743         (expand_label): Likewise for local "label_r".
1745 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1747         * function.h (struct rtl_data): Convert field
1748         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
1749         rtx_insn_list *.
1750         * rtl.h (remove_node_from_insn_list): New prototype.
1752         * builtins.c (expand_builtin): When prepending to
1753         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
1754         gen_rtx_EXPR_LIST.
1755         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
1756         to rtx_insn_list *, and use its "insn" method rather than
1757         "element" method.
1758         * cfgrtl.c (delete_insn): Use new function
1759         remove_node_from_insn_list rather than
1760         remove_node_from_expr_list.
1761         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
1762         to rtx_insn_list *, and use its "insn" method rather than
1763         "element" method.
1764         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
1765         * reload1.c (set_initial_label_offsets): Likewise for local "x".
1766         * rtlanal.c (remove_node_from_insn_list): New function, adapted
1767         from remove_node_from_expr_list.
1768         * stmt.c (expand_label): When prepending to
1769         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
1770         gen_rtx_EXPR_LIST.
1772 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1774         * function.h (struct rtl_data): Strengthen fields "x_return_label"
1775         and "x_naked_return_label" from rtx to rtx_code_label *.
1777 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1779         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
1780         (SET_NEXT_INSN): Likewise.
1781         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
1783         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
1784         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
1785         to split out the SEQUENCE from local "bundle", strengthening the
1786         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
1787         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
1788         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
1789         and the type of the elements of the "slot" array from rtx to
1790         rtx_insn *.
1791         (reorg_split_calls): Likewise for locals "insn" and "next", and
1792         the type of the elements of the "slot" array.
1794         * config/frv/frv.c (frv_nops): Likewise for the elements of this
1795         array.
1796         (frv_function_prologue): Likewise for locals "insn", "next",
1797         "last_call".
1798         (frv_register_nop): Introduce a local "nop_insn" to be the
1799         rtx_insn * containing rtx "nop".
1801         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
1802         used as an insn and sometimes as a pattern, so rename it to
1803         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
1804         using it where dealing with the core insn.
1806         * config/picochip/picochip.c (reorder_var_tracking_notes):
1807         Strengthen locals "insn", "next", "last_insn", "queue",
1808         "next_queue", "prev" from rtx to rtx_insn *.
1810         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
1811         the second param is an rtx_insn ** rather than an rtx **.
1812         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
1813         from rtx to rtx_sequence *, and introduce local named "sequence",
1814         using methods of rtx_sequence to clarify the code.
1815         (remove_insn): Introduce local rtx_sequence * named "sequence" and
1816         use its methods.
1817         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
1818         Rename param "after" to "uncast_after", reintroducing "after" as a
1819         local rtx_insn * with a checked cast.
1820         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
1821         reintroducing "after" as a local rtx_insn * with a checked cast.
1822         Strengthen local "last" from rtx to rtx_insn * and remove the
1823         now-redundant checked casts.
1824         (copy_delay_slot_insn): Strengthen return type and param from rtx
1825         to rtx_insn *.
1827         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
1828         "last" from rtx to rtx_insn *.
1830 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
1832         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
1833         param from rtx to rtx_insn *.
1835         * emit-rtl.c (copy_delay_slot_insn): Likewise.
1837         * reorg.c (skip_consecutive_labels): Strengthen return type, param
1838         and local "insn" from rtx to rtx_insn *.
1839         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
1840         (unfilled_slots_next): Likewise.
1841         (function_return_label): Strengthen from rtx to rtx_code_label *.
1842         (function_simple_return_label): Likewise.
1843         (first_active_target_insn): Strengthen return type and param from
1844         rtx to rtx_insn *.
1845         (find_end_label): Strengthen return type from rtx to
1846         rtx_code_label *; strengthen locals as appropriate.
1847         (emit_delay_sequence): Strengthen return type, param "insn" and
1848         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
1849         and local "li" from rtx to rtx_insn_list *, using methods of
1850         rtx_insn_list for clarity and typesafety.
1851         (add_to_delay_list): Strengthen return type and param "insn" from
1852         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
1853         rtx_insn_list * and use methods of rtx_insn_list.
1854         (delete_from_delay_slot): Strengthen return type, param "insn",
1855         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
1856         Strengthen local "seq" from rtx to rtx_sequence *, and local
1857         "delay_list" from rtx to rtx_insn_list *, using methods of
1858         rtx_sequence for clarity and type-safety.
1859         (delete_scheduled_jump): Add checked cast when invoking
1860         delete_from_delay_slot.  Strengthen local "trial" from rtx to
1861         rtx_insn *.
1862         (optimize_skip): Strengthen return type and local "delay_list"
1863         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
1864         rtx_insn *.
1865         (steal_delay_list_from_target): Strengthen return type, param
1866         "delay_list" and local "new_delay_list" from rtx to
1867         rtx_insn_list *.  Strengthen param "seq" from rtx to
1868         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
1869         rtx_insn **.
1870         Split out local "temp" into multiple more-tightly scoped locals:
1871         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
1872         of rtx_insn_list and rtx_sequence for clarity and typesafety.
1873         Strengthen locals named "trial" from rtx to rtx_insn *.
1874         (steal_delay_list_from_fallthrough): Strengthen return type and
1875         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
1876         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
1877         Strengthen local "trial" from rtx to rtx_insn *.
1878         (try_merge_delay_insns): Strength local "merged_insns" from rtx
1879         to rtx_insn_list * and use its methods.  Strengthen local "pat"
1880         from rtx to rtx_sequence * and use its methods.  Strengthen locals
1881         "dtrial" and "new_rtx" from rtx to rtx_insn *.
1882         (get_label_before): Strengthen return type and local "label" from
1883         rtx to rtx_insn *.
1884         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
1885         "next_trial", "next", prev".  Strengthen local "delay_list" from
1886         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
1887         rtx_insn **.
1888         (follow_jumps): Strengthen return type, param "label" and locals
1889         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
1890         (fill_slots_from_thread): Strengthen return type, param
1891         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
1892         "insn", "thread", "opposite_thread" and locals "new_thread",
1893         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
1894         "sequence" from a checked cast to rtx_sequence so that we can call
1895         steal_delay_list_from_target and steal_delay_list_from_fallthrough
1896         with an rtx_sequence *.
1897         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
1898         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
1899         Strengthen local "delay_list" from rtx to rtx_insn_list *.
1900         (relax_delay_slots): Strengthen param "first" and locals "insn",
1901         "next", "trial", "delay_insn", "target_label" from rtx to
1902         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
1903         Introduce a local "trial_seq" for PATTERN (trial) of type
1904         rtx_sequence *, in both cases using methods of rtx_sequence.
1905         (dbr_schedule): Strengthen param "first" and locals "insn",
1906         "next", "epilogue_insn" from rtx to rtx_insn *.
1908 2014-08-28  Richard Biener  <rguenther@suse.de>
1910         PR tree-optimization/62283
1911         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1912         Do not peel loops for alignment where the vector loop likely
1913         doesn't run at least VF times.
1915 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
1917         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
1918         important_candidates.  Consider all important candidates if
1919         IVS doesn't give any result.  Remove check on ivs->upto.
1920         (try_add_cand_for): Call iv_ca_add_use only once.
1922 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1923             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1924             Anna Tikhonova  <anna.tikhonova@intel.com>
1925             Ilya Tocar  <ilya.tocar@intel.com>
1926             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1927             Ilya Verbin  <ilya.verbin@intel.com>
1928             Kirill Yukhin  <kirill.yukhin@intel.com>
1929             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1931         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
1932         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
1933         masking.
1934         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
1935         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1936         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
1937         (define_insn "*mul<mode>3"): Add EVEX version.
1939 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1940             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1941             Anna Tikhonova  <anna.tikhonova@intel.com>
1942             Ilya Tocar  <ilya.tocar@intel.com>
1943             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1944             Ilya Verbin  <ilya.verbin@intel.com>
1945             Kirill Yukhin  <kirill.yukhin@intel.com>
1946             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1948         * config/i386/sse.md
1949         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
1950         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
1951         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
1952         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
1953         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
1954         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
1955         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
1956         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
1957         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
1958         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
1959         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
1960         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
1961         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
1962         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
1963         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
1964         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
1966 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1967             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1968             Anna Tikhonova  <anna.tikhonova@intel.com>
1969             Ilya Tocar  <ilya.tocar@intel.com>
1970             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1971             Ilya Verbin  <ilya.verbin@intel.com>
1972             Kirill Yukhin  <kirill.yukhin@intel.com>
1973             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1975         * config/i386/sse.md
1976         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
1977         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
1978         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
1980 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1981             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1982             Anna Tikhonova  <anna.tikhonova@intel.com>
1983             Ilya Tocar  <ilya.tocar@intel.com>
1984             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1985             Ilya Verbin  <ilya.verbin@intel.com>
1986             Kirill Yukhin  <kirill.yukhin@intel.com>
1987             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1989         * config/i386/sse.md
1990         (define_mode_iterator VI128_256): New.
1991         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1993 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1994             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1995             Anna Tikhonova  <anna.tikhonova@intel.com>
1996             Ilya Tocar  <ilya.tocar@intel.com>
1997             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1998             Ilya Verbin  <ilya.verbin@intel.com>
1999             Kirill Yukhin  <kirill.yukhin@intel.com>
2000             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2002         * config/i386/sse.md
2003         (define_mode_iterator VI8_256_512): New.
2004         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
2005         Ditto.
2006         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
2007         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
2008         Ditto.
2009         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
2011 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2013         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
2014         pointer to the cumulative reloc value and return the value for
2015         this reloc instead.
2016         (compute_reloc_for_rtx): Take a const_rtx.  Call
2017         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
2018         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
2019         for_each_rtx for the CONST case.
2021 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2023         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
2024         (mark_constants_in_pattern): ...this new function to iterate over
2025         all the subrtxes.
2026         (mark_constants): Update accordingly.
2028 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2030         * varasm.c: Include rtl-iter.h.
2031         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
2032         Remove the pointer to the cumulative hashval_t and just return
2033         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
2034         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2035         Accumulate the hashval_ts here instead of const_rtx_hash_1.
2037 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2039         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
2040         Give real type of data parameter.  Remove return value.
2041         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
2042         to iterate over subrtxes.
2044 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2046         * var-tracking.c (use_narrower_mode_test): Turn from being a
2047         for_each_rtx callback to being a function that examines each
2048         subrtx itself.
2049         (adjust_mems): Update accordingly.
2051 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2053         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
2054         callback to being a function that examines each subrtx itself.
2055         Remove handling of null rtxes.
2056         (add_uses): Update accordingly.
2058 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2060         * var-tracking.c: Include rtl-iter.h.
2061         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
2062         to being a function that examines each subrtx itself.
2063         (use_type): Update accordingly.
2065 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2067         * store-motion.c: Include rtl-iter.h.
2068         (extract_mentioned_regs_1): Delete.
2069         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
2070         for_each_rtx to iterate over subrtxes.
2072 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2074         * sel-sched.c: Include rtl-iter.h
2075         (count_occurrences_1): Delete.
2076         (count_occurrences_equiv): Turn rtxes into const_rtxes.
2077         Use FOR_EACH_SUBRTX rather than for_each_rtx.
2079 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2081         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
2082         * rtlanal.c (tls_referenced_p_1): Delete.
2083         (tls_referenced_p): Take a const_rtx rather than an rtx.
2084         Use FOR_EACH_SUBRTX rather than for_each_rtx.
2086 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2088         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
2089         (for_each_inc_dec): Take an rtx rather than an rtx *.
2090         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
2091         (cselib_record_sets): Likewise.
2092         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
2093         (check_for_inc_dec): Likewise.
2094         * rtlanal.c (for_each_inc_dec_ops): Delete.
2095         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
2096         rather than a pointer to the memory address.  Replace
2097         for_each_inc_dec_ops argument with separate function and data
2098         arguments.  Abort on non-autoinc addresses.
2099         (for_each_inc_dec_find_mem): Delete.
2100         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
2101         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
2103 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2105         * rtl.h (find_all_hard_regs): Declare.
2106         * rtlanal.c (find_all_hard_regs): New function.
2107         (record_hard_reg_uses_1): Delete.
2108         (record_hard_reg_uses): Use find_all_hard_regs.
2110 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2112         * rtl.h (replace_label_data): Delete.
2113         (replace_label): Take the old label, new label and update-nuses flag
2114         as direct arguments.  Return void.
2115         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
2116         * rtlanal.c (replace_label): Update interface as above.  Handle
2117         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
2118         iterator.  Use FOR_EACH_SUBRTX_PTR.
2120 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2122         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
2123         with const_rtx parameters.
2124         * varasm.c (get_pool_constant): Likewise.
2125         * rtlanal.c (rtx_referenced_p_1): Delete.
2126         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2127         Assert that the rtx we're looking for is nonnull.  Allow searches
2128         for constant pool SYMBOL_REFs.
2130 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2132         * reload1.c: Include rtl-iter.h.
2133         (note_reg_elim_costly): Turn from being a for_each_rtx callback
2134         to being a function that examines each subrtx itself.
2135         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
2137 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2139         * regcprop.c (cprop_find_used_regs_1): Delete.
2140         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2142 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2144         * regcprop.c: Include rtl-iter.h.
2145         (kill_value): Take a const_rtx.
2146         (kill_autoinc_value): Turn from being a for_each_rtx callback
2147         to being a function that examines each subrtx itself.
2148         (copyprop_hardreg_forward_1): Update accordingly.
2150 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2152         * reg-stack.c: Include rtl-iter.h.
2153         (subst_stack_regs_in_debug_insn): Delete.
2154         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
2155         instead of for_each_rtx.
2157 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2159         * lower-subreg.c (find_decomposable_subregs): Turn from being
2160         a for_each_rtx callback to being a function that examines each
2161         subrtx itself.  Remove handling of null rtxes.
2162         (decompose_multiword_subregs): Update accordingly.
2164 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2166         * lower-subreg.c (adjust_decomposed_uses): Delete.
2167         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
2168         Remove handling of null rtxes.
2170 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2172         * lower-subreg.c: Include rtl-iter.h.
2173         (resolve_subreg_use): Turn from being a for_each_rtx callback
2174         to being a function that examines each subrtx itself.  Remove
2175         handling of null rtxes.
2176         (resolve_reg_notes, resolve_simple_move): Update accordingly.
2177         (decompose_multiword_subregs): Likewise.
2179 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2181         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
2182         to being a function that examines each subrtx itself.
2183         (simplify_using_condition, simplify_using_initial_values): Update
2184         accordingly.
2186 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2188         * loop-iv.c: Include rtl-iter.h.
2189         (find_single_def_src): New function.
2190         (replace_single_def_regs): Turn from being a for_each_rtx callback
2191         to being a function that examines each subrtx itself.
2192         (replace_in_expr, simplify_using_initial_values): Update accordingly.
2194 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2196         * jump.c (eh_returnjump_p_1): Delete.
2197         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2198         Remove handling of null rtxes.
2200 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2202         * jump.c: Include rtl-iter.h.
2203         (returnjump_p_1): Delete.
2204         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2205         Remove handling of null rtxes.
2207 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2209         * ira.c: Include rtl-iter.h.
2210         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
2211         to being a function that examines each subrtx itself.  Remove
2212         handling of null rtxes.
2213         (update_equiv_regs): Update call accordingly.
2215 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2217         * fwprop.c: Include rtl-iter.h.
2218         (varying_mem_p): Turn from being a for_each_rtx callback to being
2219         a function that examines each subrtx itself.
2220         (propagate_rtx): Update accordingly.
2222 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2224         * function.c: Include rtl-iter.h
2225         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
2226         callback to being a function that examines each subrtx itself.
2227         Return the changed flag.
2228         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
2229         (instantiate_virtual_regs): Update calls accordingly.
2231 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2233         * final.c: Include rtl-iter.h.
2234         (mark_symbol_ref_as_used): Delete.
2235         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
2236         for_each_rtx.
2238 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2240         * emit-rtl.c: Include rtl-iter.h.
2241         (find_auto_inc): Turn from being a for_each_rtx callback to being
2242         a function that examines each subrtx itself.  Assume the first operand
2243         to an RTX_AUTOINC is the automodified register.
2244         (try_split): Update call accordingly.
2246 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2248         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
2249         Return a bool, inverting the result so that 0/false means "not ok".
2250         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
2251         subrtxes of a CONST.
2252         (mem_loc_descriptor, add_const_value_attribute)
2253         (resolve_addr_in_expr): Update calls accordingly.
2255 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2257         * dwarf2out.c: Include rtl-iter.h.
2258         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
2259         Remove unused data parameter.  Return a bool, inverting the result
2260         so that 0/false means "not ok".
2261         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
2262         instead of for_each_rtx.
2264 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2266         * dse.c: Include rtl-iter.h.
2267         (check_mem_read_rtx): Change void * parameter to real type.
2268         Remove return value.
2269         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
2270         for_each_rtx.  Don't handle null rtxes.
2272 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2274         * df-problems.c: Include rtl-iter.h.
2275         (find_memory): Turn from being a for_each_rtx callback to being
2276         a function that examines each subrtx itself.  Continue to look for
2277         volatile references even after a nonvolatile one has been found.
2278         (can_move_insns_across): Update calls accordingly.
2280 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2282         * ddg.c (walk_mems_2, walk_mems_1): Delete.
2283         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
2284         to iterate over subrtxes.  Return a bool rather than an int.
2286 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2288         * ddg.c: Include rtl-iter.h.
2289         (mark_mem_use_1): Rename to...
2290         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
2291         instead of for_each_rtx.
2292         (mem_read_insn_p): Update accordingly.
2294 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2296         * cse.c (change_cc_mode_args): Delete.
2297         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
2298         a function that examines each subrtx itself.  Take the fields of
2299         change_cc_mode_args as argument and return void.
2300         (cse_change_cc_mode_insn): Update calls accordingly.
2302 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2304         * cse.c (is_dead_reg): Change argument to const_rtx.
2305         (dead_debug_insn_data): Delete.
2306         (is_dead_debug_insn): Expand commentary.  Turn from being a
2307         for_each_rtx callback to being a function that examines
2308         each subrtx itself.  Take the fields of dead_debug_insn_data
2309         as argument.
2310         (delete_trivially_dead_insns): Update call accordingly.
2312 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2314         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
2315         being a for_each_rtx callback to being a function that examines
2316         each subrtx itself.
2317         (cse_extended_basic_block): Update call accordingly.
2319 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2321         * cse.c (check_dependence_data): Delete.
2322         (check_dependence): Change from being a for_each_rtx callback to being
2323         a function that examines all subrtxes itself.  Don't handle null rtxes.
2324         (invalidate): Update call accordingly.
2326 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2328         * cse.c: Include rtl-iter.h.
2329         (approx_reg_cost_1): Delete.
2330         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2331         Don't handle null rtxes.
2333 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2335         * cfgcleanup.c: Include rtl-iter.h.
2336         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
2337         to being a function that examines each subrtx itself.
2338         (thread_jump): Update accordingly.
2340 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2342         * combine-stack-adj.c: Include rtl-iter.h.
2343         (record_stack_refs_data): Delete.
2344         (record_stack_refs): Turn from being a for_each_rtx callback
2345         to being a function that examines each subrtx itself.
2346         Take a pointer to the reflist.  Invert sense of return value
2347         so that true means success and false means failure.  Don't
2348         handle null rtxes.
2349         (combine_stack_adjustments_for_block): Update accordingly.
2351 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2353         * combine.c (record_truncated_value): Turn from being a for_each_rtx
2354         callback to a function that takes an rtx and returns a bool
2355         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
2356         for_each_rtx.
2358 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2360         * combine.c: Include rtl-iter.h.
2361         (unmentioned_reg_p_1): Delete.
2362         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
2363         Don't handle null rtxes.
2365 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2367         * calls.c: Include rtl-iter.h.
2368         (internal_arg_pointer_based_exp_1): Delete.
2369         (internal_arg_pointer_based_exp): Take a const_rtx.
2370         Use FOR_EACH_SUBRTX to iterate over subrtxes.
2372 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2374         * caller-save.c: Include rtl-iter.h.
2375         (add_used_regs_1): Delete.
2376         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
2377         to iterate over subrtxes.  Assert that any remaining pseudos
2378         have been spilled.
2380 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2382         * bt-load.c: Include rtl-iter.h.
2383         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
2384         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
2385         to iterate over subrtxes.
2386         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
2387         find_btr_use rather than btr_referenced_p.
2389 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2391         * alias.c: Include rtl-iter.h.
2392         (refs_newer_value_cb): Delete.
2393         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
2395 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2397         * rtl-iter.h: New file.
2398         * rtlanal.c: Include it.
2399         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
2400         (generic_subrtx_iterator <T>::add_single_to_queue)
2401         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
2402         (generic_subrtx_iterator <T>::free_array): New functions.
2403         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
2404         (generic_subrtx_iterator <const_rtx_accessor>)
2405         (generic_subrtx_iterator <rtx_var_accessor>
2406         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
2407         (setup_reg_subrtx_bounds): New function.
2408         (init_rtlanal): Call it.
2410 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
2412         PR target/62261
2413         * config/sh/sh.md (ashlsi3): Handle negative shift count for
2414         TARGET_SHMEDIA.
2415         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
2417 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
2419         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
2421 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2423         * rtl.h (JUMP_LABEL_AS_INSN): New.
2425 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2427         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
2428         rtx_expr_list **.
2429         (alloc_EXPR_LIST): Strengthen return type from rtx to
2430         rtx_expr_list *.
2431         (remove_free_EXPR_LIST_node): Likewise for param.
2432         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
2433         from rtx to rtx_expr_list *.
2434         * sched-int.h (struct deps_desc): Strengthen fields
2435         "pending_read_mems" and "pending_write_mems" from rtx to
2436         rtx_expr_list *.
2438         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
2439         rtx to rtx_expr_list *.
2440         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
2441         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
2442         rtx_expr_list **.
2443         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
2444         from rtx to rtx_expr_list *.
2445         * loop-iv.c (simplify_using_initial_values): Strengthen local
2446         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
2447         "pnote_next" from rtx * to rtx_expr_list **.
2448         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
2449         param "exprp" from rtx * to rtx_expr_list **.
2450         (add_insn_mem_dependence): Strengthen local "mem_list" from
2451         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
2452         to rtx_expr_list *.
2453         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
2454         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
2455         param "old_mems_p" from rtx * to rtx_expr_list **.
2456         * var-tracking.c (struct adjust_mem_data): Strengthen field
2457         "side_effects" from rtx to rtx_expr_list *.
2458         (adjust_insn): Replace NULL_RTX with NULL when assigning to
2459         rtx_expr_list *.
2460         (prepare_call_arguments): Likewise.
2462 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2464         * function.h (struct rtl_data): Strengthen field
2465         "x_stack_slot_list" from rtx to rtx_expr_list *.
2467         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
2468         when assigning to stack_slot_list.
2470 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2472         * function.h (struct rtl_data): Strengthen field
2473         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
2474         * rtl.h (remove_node_from_expr_list): Strengthen second param from
2475         rtx * to rtx_expr_list **.
2477         * cfgbuild.c (make_edges): In loop over
2478         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
2479         rtx_expr_list *, and use methods of the latter class to clarify
2480         the code.
2481         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
2482         rtx_expr_list *, and use methods of the latter class to clarify
2483         the code.
2484         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
2485         * reload1.c (set_initial_label_offsets): Likewise for local "x".
2486         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
2487         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
2488         to rtx_expr_list *.  Use methods of the latter class to clarify
2489         the code.
2491 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2493         * function.h (struct expr_status): Strengthen field
2494         "x_forced_labels" from rtx to rtx_expr_list *.
2496         * cfgbuild.c (make_edges): Split local "x" into two locals,
2497         strengthening one from rtx to rtx_expr_list *, and using methods
2498         of said class.
2499         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
2500         loop over forced_labels, introduce strengthen it from rtx to
2501         rtx_expr_list *, using methods to clarify the code.
2502         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
2503         to rtx_expr_list *, using methods of said class to clarify the
2504         code.
2505         * reload1.c (set_initial_label_offsets): Split local "x" into two
2506         per-loop variables, strengthening the first from rtx to
2507         rtx_expr_list * and using methods.
2509 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2511         * coretypes.h (class rtx_expr_list): Add forward declaration.
2512         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
2513         * gengenrtl.c (special_rtx): Add EXPR_LIST.
2514         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
2515         invariant: GET_CODE (X) == EXPR_LIST.
2516         (is_a_helper <rtx_expr_list *>::test): New.
2517         (rtx_expr_list::next): New.
2518         (rtx_expr_list::element): New.
2519         (gen_rtx_EXPR_LIST): New.
2521 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2523         * varasm.c (mark_constants): Convert a GET_CODE check into a
2524         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
2525         Use methods of rtx_sequence to clarify the code.
2527 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2529         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
2530         local "seq" via a checked cast, and use methods of rtx_sequence
2531         to simplify the code.
2533 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2535         * resource.c (mark_referenced_resources): Strengthen local
2536         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
2537         using methods of rtx_sequence to clarify the code.
2538         (find_dead_or_set_registers): Within the switch statement, convert
2539         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
2540         the JUMP_P handling, introduce another local "seq", adding a
2541         checked cast to rtx_sequence *.  In both cases, use methods of
2542         rtx_sequence to clarify the code.
2543         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
2544         via a checked cast, and use methods of rtx_sequence to simplify
2545         the code.
2547 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2549         * reorg.c (redundant_insn): In two places in the function, replace
2550         a check of GET_CODE with a dyn_cast, introducing local "seq", and
2551         usings methods of rtx_sequence to clarify the code.
2553 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2555         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
2556         local "seq" with a checked cast, and use methods of rtx_sequence
2557         to clarify the code.
2559 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2561         * function.c (contains): Introduce local "seq" for PATTERN (insn),
2562         with a checked cast, in the region for where we know it's a
2563         SEQUENCE.  Use methods of rtx_sequence.
2565 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2567         * final.c (get_attr_length_1): Replace GET_CODE check with a
2568         dyn_cast, introducing local "seq" and the use of methods of
2569         rtx_sequence.
2570         (shorten_branches): Likewise, introducing local "body_seq".
2571         Strengthen local "inner_insn" from rtx to rtx_insn *.
2572         (reemit_insn_block_notes): Replace GET_CODE check with a
2573         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
2574         Use methods of rtx_sequence.
2575         (final_scan_insn): Likewise, introducing local "seq" for when
2576         "body" is known to be a SEQUENCE, using its methods.
2578 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2580         * except.c (can_throw_external): Strengthen local "seq" from rtx
2581         to rtx_sequence *.  Use methods of rtx_sequence.
2582         (insn_nothrow_p): Likewise.
2584 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2586         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
2587         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
2588         Use methods of rtx_sequence.
2589         (scan_trace): Likewise for local "pat".
2591 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2593         * coretypes.h (class rtx_sequence): Add forward declaration.
2594         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
2595         invariant: GET_CODE (X) == SEQUENCE.
2596         (is_a_helper <rtx_sequence *>::test): New.
2597         (is_a_helper <const rtx_sequence *>::test): New.
2598         (rtx_sequence::len): New.
2599         (rtx_sequence::element): New.
2600         (rtx_sequence::insn): New.
2602 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2604         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
2605         rtx_insn_list **.
2606         (alloc_INSN_LIST): Strengthen return type from rtx to
2607         rtx_insn_list *.
2608         (copy_INSN_LIST): Likewise for return type and param.
2609         (concat_INSN_LIST): Likewise for both params and return type.
2610         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
2611         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
2612         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
2613         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
2615         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
2616         "implicit_sets", "control_uses", "clobbers" from rtx to
2617         rtx_insn_list *.
2618         (struct deps_desc): Likewise for fields "pending_read_insns",
2619         "pending_write_insns", "pending_jump_insns",
2620         "last_pending_memory_flush", "last_function_call",
2621         "last_function_call_may_noreturn", "sched_before_next_call",
2622         "sched_before_next_jump".
2623         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
2624         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
2626         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
2627         from rtx to rtx_insn_list *.
2628         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
2629         rtx_insn_list *.
2631         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
2632         to rtx_insn_list **.
2633         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
2634         rtx_insn_list *.
2635         (queue_insn): Likewise for local "link".
2636         (struct haifa_saved_data): Strengthen field "insn_queue" from
2637         rtx * to rtx_insn_list **.
2638         (save_backtrack_point): Update allocation of save->insn_queue to
2639         reflect the strengthening of elements from rtx to rtx_insn_list *.
2640         (queue_to_ready): Strengthen local "link" from rtx to
2641         rtx_insn_list *; use methods "next" and "insn" when traversing the
2642         list.
2643         (early_queue_to_ready): Likewise for locals "link", "next_link",
2644         "prev_link".
2645         (schedule_block): Update allocation of insn_queue to reflect the
2646         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
2647         local "link" from rtx to rtx_insn_list *, and use methods when
2648         working it.
2649         (add_to_speculative_block): Strengthen locals "twins" and
2650         "next_node" from rtx to rtx_insn_list *, and use methods when
2651         working with them.  Strengthen local "twin" from rtx to
2652         rtx_insn *, eliminating a checked cast.
2653         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
2654         from rtx to rtx_insn_list *, and use methods when working with
2655         them.
2657         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
2658         from rtx to rtx_insn_list *, adding a checked cast.
2659         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
2660         rtx_insn_list **.
2661         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
2662         "newlink" from rtx to rtx_insn_list *.  Strengthen local
2663         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
2664         from rtx to rtx_insn *.
2665         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
2666         from rtx to rtx_insn_list *.  Use methods of the latter class.
2667         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
2668         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
2669         (remove_free_INSN_LIST_node): Strengthen return type and local
2670         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
2671         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
2672         rtx_insn_list *, using "insn" method.
2674         * sched-deps.c (add_dependence_list):  Strengthen param "list"
2675         from rtx to rtx_insn_list *, and use methods when working with it.
2676         (add_dependence_list_and_free):  Strengthen param "listp" from
2677         rtx * to rtx_insn_list **.
2678         (remove_from_dependence_list): Strenghten param "listp" from rtx *
2679         to rtx_insn_list **, and use methods when working with *listp.
2680         (remove_from_both_dependence_lists): Strengthen param "listp" from
2681         rtx * to rtx_insn_list **
2682         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
2683         to rtx_insn_list **.  Eliminate local "link", in favor of two new
2684         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
2685         respectively.
2686         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
2687         by introducing local "cond_deps".
2688         (remove_from_deps): Strengthen param "insn" from rtx to
2689         rtx_insn *.
2691         * sched-rgn.c (concat_insn_mem_list): Strengthen param
2692         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
2693         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
2694         Use methods of rtx_insn_list.
2696         * store-motion.c (struct st_expr): Strengthen fields
2697         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
2698         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
2699         rtx_insn_list *.
2700         (find_moveable_store): Split out "tmp" into multiple more-tightly
2701         scoped locals.  Use methods of rtx_insn_list *.
2702         (compute_store_table): Strengthen local "tmp" from rtx to
2703         rtx_insn *.  Use methods of rtx_insn_list *.
2705 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2707         * coretypes.h (class rtx_insn_list): Add forward declaration.
2708         * rtl.h (class rtx_insn_list): New subclass of rtx_def
2709         (is_a_helper <rtx_insn_list *>::test): New.
2710         (rtx_insn_list::next): New.
2711         (rtx_insn_list::insn): New.
2712         (gen_rtx_INSN_LIST): Add prototype.
2713         * emit-rtl.c (gen_rtx_INSN_LIST): New.
2714         * gengenrtl.c (special_rtx): Add INSN_LIST.
2716 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2718         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
2719         "prev" from rtx to rtx_insn *.
2721 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2723         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
2724         functions.  Require merely an rtx for now, not an rtx_insn *.
2725         (BLOCK_FOR_INSN): Likewise.
2726         (INSN_LOCATION): Likewise.
2727         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
2729 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2731         * rtl.h (PATTERN): Convert this macro into a pair of inline
2732         functions, for now, requiring const_rtx and rtx.
2734 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2736         * target.def (unwind_emit): Strengthen param "insn" from rtx to
2737         rtx_insn *.
2738         (final_postscan_insn): Likewise.
2739         (adjust_cost): Likewise.
2740         (adjust_priority): Likewise.
2741         (variable_issue): Likewise.
2742         (macro_fusion_pair_p): Likewise.
2743         (dfa_post_cycle_insn): Likewise.
2744         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
2745         (first_cycle_multipass_issue): Likewise.
2746         (dfa_new_cycle): Likewise.
2747         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
2748         (speculate_insn): Likewise for param "insn".
2749         (gen_spec_check): Likewise for params "insn" and "label".
2750         (get_insn_spec_ds): Likewise for param "insn".
2751         (get_insn_checked_ds): Likewise.
2752         (dispatch_do): Likewise.
2753         (dispatch): Likewise.
2754         (cannot_copy_insn_p): Likewise.
2755         (invalid_within_doloop): Likewise.
2756         (legitimate_combined_insn): Likewise.
2757         (needed): Likewise.
2758         (after): Likewise.
2760         * doc/tm.texi: Automatically updated to reflect changes to
2761         target.def.
2763         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
2764         working with insn.
2765         (schedule_block): Likewise.
2766         (sched_init): Likewise.
2767         (sched_speculate_insn): Strengthen param "insn" from rtx to
2768         rtx_insn *.
2769         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
2770         working with insn.
2771         * hooks.c (hook_bool_rtx_true): Rename to...
2772         hook_bool_rtx_insn_true): ...this, and strengthen first param from
2773         rtx to rtx_insn *.
2774         (hook_constcharptr_const_rtx_null): Rename to...
2775         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2776         first param from const_rtx to const rtx_insn *.
2777         (hook_bool_rtx_int_false): Rename to...
2778         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2779         param from rtx to rtx_insn *.
2780         (hook_void_rtx_int): Rename to...
2781         (hook_void_rtx_insn_int): ...this, and strengthen first param from
2782         rtx to rtx_insn *.
2784         * hooks.h (hook_bool_rtx_true): Rename to...
2785         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
2786         rtx to rtx_insn *.
2787         (hook_bool_rtx_int_false): Rename to...
2788         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
2789         param from rtx to rtx_insn *.
2790         (hook_void_rtx_int): Rename to...
2791         (hook_void_rtx_insn_int): ...this, and strengthen first param from
2792         rtx to rtx_insn *.
2793         (hook_constcharptr_const_rtx_null): Rename to...
2794         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
2795         first param from const_rtx to const rtx_insn *.
2797         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
2798         and local "prev" from rtx to rtx_insn *.
2800         * sched-int.h (sched_speculate_insn): Strengthen first param from
2801         rtx to rtx_insn *.
2803         * sel-sched.c (create_speculation_check): Likewise for local "label".
2804         * targhooks.c (default_invalid_within_doloop): Strengthen param
2805         "insn" from const_rtx to const rtx_insn *.
2806         * targhooks.h (default_invalid_within_doloop): Strengthen param
2807         from const_rtx to const rtx_insn *.
2809         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
2810         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
2812         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
2813         "insn".
2814         (arc_invalid_within_doloop): Likewise, with const.
2816         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
2817         (arm_cannot_copy_insn_p): Likewise for param "insn".
2818         (arm_unwind_emit): Likewise.
2820         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
2821         "dep_insn".
2823         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
2824         (c6x_variable_issue): Likewise.  Removed now-redundant checked
2825         cast.
2826         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
2828         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
2829         Likewise for param "insn".
2830         (epiphany_mode_after): Likewise.
2831         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
2832         params "insn", "dep_insn".
2833         (epiphany_mode_needed): Likewise for param "insn".
2834         (epiphany_mode_after): Likewise.
2836         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
2837         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
2838         (ix86_avx_u128_mode_needed): Likewise.
2839         (ix86_i387_mode_needed): Likewise.
2840         (ix86_mode_needed): Likewise.
2841         (ix86_avx_u128_mode_after): Likewise.
2842         (ix86_mode_after): Likewise.
2843         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
2844         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
2845         (ix86_adjust_priority): Likewise for param "insn".
2846         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
2847         (do_dispatch): Likewise.
2848         (has_dispatch): Likewise.
2849         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
2851         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
2852         reflect renaming of default hook implementation from
2853         hook_constcharptr_const_rtx_null to
2854         hook_constcharptr_const_rtx_insn_null.
2855         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
2856         rtx to rtx_insn *.
2857         (ia64_variable_issue): Likewise for param "insn".
2858         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
2859         (ia64_dfa_new_cycle): Likewise.
2860         (ia64_get_insn_spec_ds): Likewise.
2861         (ia64_get_insn_checked_ds): Likewise.
2862         (ia64_speculate_insn): Likewise.
2863         (ia64_gen_spec_check): Likewise for params "insn", "label".
2864         (ia64_asm_unwind_emit): Likewise for param "insn".
2866         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
2868         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
2869         "insn", "def_insn".
2870         (m68k_sched_variable_issue): Likewise for param "insn".
2872         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
2873         "def_insn".
2875         * config/microblaze/microblaze.c (microblaze_adjust_cost):
2876         Likewise for params "insn", "dep".
2878         * config/mips/mips.c (mips_adjust_cost): Likewise.
2879         (mips_variable_issue): Likewise for param "insn".
2880         (mips_final_postscan_insn): Likewise.
2882         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
2883         for params "insn", "dep".
2885         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
2886         "dep_insn".
2887         (pa_adjust_priority): Likewise for param "insn".
2889         * config/picochip/picochip.c (picochip_sched_adjust_cost):
2890         Likewise for params "insn", "dep_insn".
2892         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
2893         param "insn".
2894         (rs6000_variable_issue): Likewise.
2895         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
2896         (rs6000_debug_adjust_cost): Likewise.
2897         (rs6000_adjust_priority): Likewise for param "insn".
2898         (rs6000_use_sched_lookahead_guard): Likewise.
2899         (get_next_active_insn): Likewise for return type and both params.
2900         (redefine_groups): Likewise for params "prev_head_insn", "tail"
2901         and locals "insn", "next_insn".
2902         (pad_groups): Likewise.
2904         * config/s390/s390.c (s390_adjust_priority): Likewise for param
2905         "insn".
2906         (s390_cannot_copy_insn_p): Likewise.
2907         (s390_sched_variable_issue): Likewise for third param, eliminating
2908         checked cast.
2909         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
2910         default hook implementation from hook_constcharptr_const_rtx_null
2911         to hook_constcharptr_const_rtx_insn_null.
2913         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
2914         from rtx to rtx_insn *.
2915         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
2916         (sh_variable_issue): Likewise for param "insn".
2917         (sh_dfa_new_cycle): Likewise.
2918         (sh_mode_needed): Likewise.
2919         (sh_mode_after): Likewise.
2921         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
2922         params "insn", "dep_insn".
2923         (hypersparc_adjust_cost): Likewise.
2924         (sparc_adjust_cost): Likewise.
2926         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
2927         param, eliminated checked cast.
2928         (spu_sched_adjust_cost): Likewise for first and third params.
2930         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
2931         params "insn" and "dep_insn" from rtx to rtx_insn *.
2933         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
2935 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
2937         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
2938         (set_is_load_p): ...this, updating to work on a SET pattern rather
2939         than an insn.
2940         (is_store_insn): Rename to...
2941         (set_is_store_p): ...this, updating to work on a SET pattern
2942         rather than an insn.
2943         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
2944         top of function to where it is needed.  Rewrite the bogus
2945         condition that checks for "insn" and "dep" being PARALLEL to
2946         instead use single_set, introducing locals "insn_set" and
2947         "dep_set".  Given that we only ever returned "cost" for a non-pair
2948         of SETs, bail out early if we don't have a pair of SET.
2949         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
2950         use the new locals "insn_set" and "dep_set", and update calls to
2951         is_load_insn and is_store_insn to be calls to set_is_load_p and
2952         set_is_store_p.
2954 2014-08-27  Guozhi Wei  <carrot@google.com>
2956         PR target/62262
2957         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
2958         amount before using it.
2960 2014-08-27  Richard Biener  <rguenther@suse.de>
2962         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
2963         get_maxval_strlen inside a more useful API.
2964         (gimple_fold_builtin_with_strlen): Remove and fold into ...
2965         (gimple_fold_builtin): ... caller.
2966         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
2967         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
2968         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
2969         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
2970         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
2971         gimple_fold_builtin_sprintf): Adjust to compute maxval
2972         themselves.
2974 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
2976         PR other/62248
2977         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
2979 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2980             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2981             Anna Tikhonova  <anna.tikhonova@intel.com>
2982             Ilya Tocar  <ilya.tocar@intel.com>
2983             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2984             Ilya Verbin  <ilya.verbin@intel.com>
2985             Kirill Yukhin  <kirill.yukhin@intel.com>
2986             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2988         * config/i386/sse.md
2989         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
2990         Use `concat_tg_mode' attribute to determine asm register size.
2992 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2993             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2994             Anna Tikhonova  <anna.tikhonova@intel.com>
2995             Ilya Tocar  <ilya.tocar@intel.com>
2996             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2997             Ilya Verbin  <ilya.verbin@intel.com>
2998             Kirill Yukhin  <kirill.yukhin@intel.com>
2999             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3001         * config/i386/sse.md
3002         (define_mode_iterator VI48_AVX512VL): New.
3003         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
3004         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
3005         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
3006         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3007         with VI1): Change mode iterator.
3008         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3009         with VI_ULOADSTORE_BW_AVX512VL): New.
3010         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3011         with VI_ULOADSTORE_F_AVX512VL): Ditto.
3012         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3013         with VI1): Change mode iterator.
3014         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3015         with VI_ULOADSTORE_BW_AVX512VL): New.
3016         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
3017         with VI_ULOADSTORE_F_AVX512VL): Ditto.
3018         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3019         with VI1): Change mode iterator.
3020         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3021         with VI_ULOADSTORE_BW_AVX512VL): New.
3022         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
3023         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
3024         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
3025         (define_insn "<avx512>_storedqu<mode>_mask" with
3026         VI48_AVX512VL): New.
3027         (define_insn "<avx512>_storedqu<mode>_mask" with
3028         VI12_AVX512VL): Ditto.
3030 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3031             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3032             Anna Tikhonova  <anna.tikhonova@intel.com>
3033             Ilya Tocar  <ilya.tocar@intel.com>
3034             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3035             Ilya Verbin  <ilya.verbin@intel.com>
3036             Kirill Yukhin  <kirill.yukhin@intel.com>
3037             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3039         * config/i386/sse.md
3040         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
3041         (define_mode_iterator VI48_AVX512BW): New.
3042         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
3043         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
3044         with VI48_AVX2_48_AVX512F): New.
3045         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
3046         with VI2_AVX512VL): Ditto.
3048 2014-08-27  Richard Biener  <rguenther@suse.de>
3050         PR middle-end/62239
3051         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
3052         (fold_builtin_3): Do not fold strcat_chk here.
3053         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
3054         from builtins.c.
3055         (gimple_fold_builtin): Fold strcat_chk here.
3057 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
3059         * dwarf2out.h (dwarf2out_decl): Remove prototype.
3060         * dwarf2out.c (dwarf2out_decl): Make static.
3062 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
3064         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
3066 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3068         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
3069         from rtx to rtx_insn *.
3070         (cselib_lookup_from_insn): Likewise for final param.
3071         (cselib_subst_to_values_from_insn): Likewise.
3072         (cselib_add_permanent_equiv): Likewise.
3074         * cselib.c (cselib_current_insn): Likewise for this variable.
3075         (cselib_subst_to_values_from_insn): Likewise for param "insn".
3076         (cselib_lookup_from_insn): Likewise.
3077         (cselib_add_permanent_equiv): Likewise for param "insn" and local
3078         "save_cselib_current_insn".
3079         (cselib_process_insn): Replace use of NULL_RTX with NULL.
3081         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
3082         from rtx to rtx_insn *.
3084 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3086         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
3087         rtx_insn *.
3089 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3091         * df.h (df_dump_insn_problem_function): Strengthen first param of
3092         this callback from const_rtx to const rtx_insn *.
3093         (struct df_insn_info): Strengthen field "insn" from rtx to
3094         rtx_insn *.
3095         (DF_REF_INSN): Eliminate this function, reinstating the older
3096         macro definition.
3097         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
3098         (df_reg_defined): Likewise.
3099         (df_find_use): Likewise.
3100         (df_reg_used): Likewise.
3101         (df_dump_insn_top): Strengthen param 1 from const_rtx to
3102         const rtx_insn *.
3103         (df_dump_insn_bottom): Likewise.
3104         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
3105         (df_insn_debug_regno): Likewise.
3106         (debug_df_insn): Likewise.
3107         (df_rd_simulate_one_insn): Likewise for param 2.
3108         (df_word_lr_simulate_defs): Likewise for param 1.
3109         (df_word_lr_simulate_uses): Likewise.
3110         (df_md_simulate_one_insn): Likewise for param 2.
3111         (df_simulate_find_noclobber_defs): Likewise for param 1.
3112         (df_simulate_find_defs): Likewise.
3113         (df_simulate_defs): Likewise.
3114         (df_simulate_uses): Likewise.
3115         (df_simulate_one_insn_backwards): Likewise for param 2.
3116         (df_simulate_one_insn_forwards): Likewise.
3117         (df_uses_create): Likewise for param 2.
3118         (df_insn_create_insn_record): Likewise for param 1.
3119         (df_insn_delete): Likewise.
3120         (df_insn_rescan): Likewise.
3121         (df_insn_rescan_debug_internal): Likewise.
3122         (df_insn_change_bb): Likewise.
3123         (df_notes_rescan): Likewise.
3124         * rtl.h (remove_death): Likewise for param 2.
3125         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
3126         const rtx_insn *.
3127         * sched-int.h (reemit_notes): Strengthen param from rtx to
3128         rtx_insn *.
3129         * valtrack.h (propagate_for_debug): Likewise for param 1.
3131         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
3132         local "tmp_rtx" from const_rtx to const rtx_insn *.
3133         * combine.c (remove_death): Strengthen param "insn" from rtx to
3134         rtx_insn *.
3135         (move_deaths): Likewise for local "where_dead".
3136         * cse.c (delete_trivially_dead_insns): Introduce local
3137         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
3138         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
3139         rtx_insn *.
3140         (df_reg_defined): Likewise.
3141         (df_find_use): Likewise.
3142         (df_reg_used): Likewise.
3143         (df_dump_insn_problem_data): Strengthen param "insn" from
3144         const_rtx to const rtx_insn *.
3145         (df_dump_insn_top): Likewise.
3146         (df_dump_insn_bottom): Likewise.
3147         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
3148         (df_insn_debug_regno): Likewise.
3149         (debug_df_insn): Likewise.
3150         (DF_REF_INSN): Delete.
3151         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
3152         from rtx to rtx_insn *.
3153         (df_chain_insn_top_dump): Strengthen param "insn" from
3154         const_rtx to const rtx_insn *.
3155         (df_chain_insn_bottom_dump): Likewise.
3156         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
3157         rtx_insn *.
3158         (df_word_lr_simulate_uses): Likewise.
3159         (df_print_note): Likewise.
3160         (df_remove_dead_and_unused_notes): Likewise.
3161         (df_set_unused_notes_for_mw): Likewise.
3162         (df_set_dead_notes_for_mw): Likewise.
3163         (df_create_unused_note): Likewise.
3164         (df_simulate_find_defs): Likewise.
3165         (df_simulate_find_uses): Likewise.
3166         (df_simulate_find_noclobber_defs): Likewise.
3167         (df_simulate_defs): Likewise.
3168         (df_simulate_uses): Likewise.
3169         (df_simulate_one_insn_backwards): Likewise.
3170         (df_simulate_one_insn_forwards): Likewise.
3171         (df_md_simulate_one_insn): Likewise.
3172         * df-scan.c (df_uses_create): Likewise.
3173         (df_insn_create_insn_record): Likewise.
3174         (df_insn_delete): Likewise.
3175         (df_insn_rescan): Likewise.
3176         (df_insn_rescan_debug_internal): Likewise.
3177         (df_insn_change_bb): Likewise.
3178         (df_notes_rescan): Likewise.
3179         (df_refs_add_to_chains): Likewise.
3180         (df_insn_refs_verify): Likewise.
3181         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
3182         when invoking df_insn_delete.
3183         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
3184         (set_unique_reg_note): Add checked cast.
3185         * final.c (cleanup_subreg_operands): Likewise.
3186         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
3187         "insn" from rtx to rtx_insn *.
3188         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
3189         "last" from rtx to rtx_insn *.
3190         * ira-emit.c (change_regs_in_insn): New function.
3191         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
3192         Invoke change_regs_in_insn rather than change_regs.
3193         * ira.c (update_equiv_regs): Strengthen locals "insn",
3194         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
3195         for_each_rtx_in_insn rather than for_each_rtx.
3196         * recog.c (confirm_change_group): Add checked casts.
3197         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
3198         Add checked cast.
3199         (peep2_fill_buffer): Add checked cast.
3200         * rtlanal.c (remove_note): Likewise.
3201         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
3202         locals "next" "end" from rtx to rtx_insn *.
3204 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3206         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
3207         to rtx_insn *.
3208         (struct reg_use_data): Likewise for field "insn".
3209         (insn_cost): Likewise for param.
3210         (real_insn_for_shadow): Likewise for return type and param.
3211         (increase_insn_priority): Likewise for param 1.
3212         (debug_dependencies): Likewise for both params.
3214         * haifa-sched.c (insn_delay): Likewise for param "insn".
3215         (real_insn_for_shadow): Likewise for return type and param "insn".
3216         (update_insn_after_change): Likewise for param "insn".
3217         (recompute_todo_spec): Likewise for param "next" and locals "pro",
3218         "other".
3219         (insn_cost): Likewise for param "insn".
3220         (increase_insn_priority): Likewise.
3221         (calculate_reg_deaths): Likewise.
3222         (setup_insn_reg_pressure_info): Likewise.
3223         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
3224         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
3225         (model_recompute): Likewise.
3226         (must_restore_pattern_p): Likewise for param "next".
3227         (model_excess_cost): Likewise for param "insn".
3228         (queue_remove): Likewise.
3229         (adjust_priority): Likewise for param "prev".
3230         (update_register_pressure): Likewise for param "insn".
3231         (setup_insn_max_reg_pressure): Likewise for local "insn".
3232         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
3233         (model_add_to_schedule): Likewise.
3234         (model_reset_queue_indices): Likewise for local "insn".
3235         (unschedule_insns_until): Strengthen local "recompute_vec" from
3236         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
3237         "con" from rtx to rtx_insn *.
3238         (restore_last_backtrack_point): Likewise for both locals "x". Add
3239         checked casts.
3240         (estimate_insn_tick): Likewise for param "insn".
3241         (commit_schedule): Likewise for params "prev_head", "tail" and
3242         local "x".
3243         (verify_shadows): Likewise for locals "i1", "i2".
3244         (dump_insn_stream): Likewise for params "head", "tail" and locals
3245         "next_tail", "insn".
3246         (schedule_block): Likewise for locals "insn", "x".  Add a checked
3247         cast.
3248         (fix_inter_tick): Likewise for params "head", "tail".
3249         (create_check_block_twin): Likewise for local "jump".
3250         (haifa_change_pattern): Likewise for param "insn".
3251         (haifa_speculate_insn): Likewise.
3252         (dump_new_block_header): Likewise for params "head", "tail".
3253         (fix_jump_move): Likewise for param "jump".
3254         (move_block_after_check): Likewise.
3255         (sched_init_insn_luid): Likewise for param "insn".
3256         (sched_init_luids): Likewise for local "insn".
3257         (insn_luid): Likewise for param "insn".
3258         (init_h_i_d): Likewise.
3259         (haifa_init_h_i_d): Likewise for local "insn".
3260         (haifa_init_insn): Likewise for param "insn".
3261         * sched-deps.c (add_dependence): Likewise for local "real_pro",
3262         "other".
3263         (create_insn_reg_use): Likewise for param "insn".
3264         (setup_insn_reg_uses): Likewise.  Add a checked cast.
3265         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
3266         "tail" from rtx to rtx_insn *.
3267         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
3268         "insn", "next_tail".
3270 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3272         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
3273         from rtx to rtx_insn *.
3274         (model_add_to_schedule): Likewise for locals "start", "end",
3275         "iter".
3277 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3279         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
3280         rtx_insn *.
3281         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
3282         "to" and locals "insn", "next", "copy".  Remove now-redundant
3283         checked cast.
3285 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3287         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
3288         rtx_insn * and param 4 from rtx * to rtx_insn **.
3289         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
3290         param 2 from rtx * to rtx_insn **.
3292         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
3293         rtx_insn * and final param from rtx * to rtx_insn **.
3295         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
3296         from rtx to rtx_insn *.
3297         (try_head_merge_bb): Likewise for both locals named "move_upto".
3298         * df-problems.c (can_move_insns_across): Likewise for params
3299         "from", "to", "across_from", "across_to" and locals "insn",
3300         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
3301         rtx_insn **.
3302         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
3303         from rtx to rtx_insn *.
3304         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
3305         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
3306         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
3307         rtx_insn *.
3308         (noce_try_abs): Likewise.
3309         (noce_get_condition): Likewise for param "jump".  Strengthen param
3310         "earliest" from rtx * to rtx_insn **.
3311         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
3312         rtx_insn *.
3313         (find_cond_trap): Likewise.
3314         (dead_or_predicable): Likewise for local "earliest".
3315         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
3316         checked cast.
3317         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
3318         and local "prev".  Strengthen param "earliest" from rtx * to
3319         rtx_insn **.
3320         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
3321         Strengthen param "earliest" from rtx * to rtx_insn **.
3323 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3325         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
3326         "to" and local "insn" from rtx to rtx_insn *.
3328 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3330         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
3331         from rtx to rtx_insn *.
3332         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
3333         (code_motion_path_driver): Likewise for local "last_insn".
3334         (simplify_changed_insns): Likewise for local "insn".
3336 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3338         * rtl.h (push_to_sequence): Strengthen param from rtx to
3339         rtx_insn *.
3340         (push_to_sequence2): Likewise for both params.
3341         (delete_insns_since): Likewise for param.
3342         (reorder_insns_nobb): Likewise for all three params.
3343         (set_new_first_and_last_insn): Likewise for both params.
3345         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
3346         rtx_insn *.  Remove now-redundant cast.
3347         (set_last_insn): Likewise.
3349         * builtins.c (expand_builtin_return): Strengthen local
3350         "call_fusage" from rtx to rtx_insn *.
3351         * cfgrtl.c (create_basic_block_structure): Likewise for local
3352         "after".
3353         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
3354         "first", "last" and local "insn".
3355         (delete_insns_since): Likewise for param "from".
3356         (reorder_insns_nobb): Likewise for params "from", "to", "after"
3357         and local "x".
3358         (push_to_sequence): Likewise for param "first" and local "last".
3359         (push_to_sequence2): Likewise for params "first" and "last".
3360         * lra.c (emit_add3_insn): Likewise for local "last".
3361         (lra_emit_add): Likewise.
3362         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
3363         "last_insn".
3364         (process_address_1): Likewise for locals "insn", last".
3365         * modulo-sched.c (ps_first_note): Likewise for return type.
3366         * optabs.c (expand_binop_directly): Likewise for param "last".
3368 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3370         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
3371         to rtx_insn*.
3372         * emit-rtl.c (get_last_insn_anywhere): Likewise.
3374 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3376         * function.h (struct sequence_stack): Strengthen fields "first"
3377         and "last" from rtx to rtx_insn *.
3378         (struct emit_status): Likewise for fields "x_first_insn" and
3379         "x_last_insn".
3381         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
3382         (set_first_insn): Add checked cast.
3383         (get_last_insn): Remove now-redundant checked cast.
3384         (set_last_insn): Add checked cast.
3386         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
3387         "saved_first" and "saved_last" from rtx to rtx_insn *.
3389 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3391         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
3392         (unlink_insn_chain): Strengthen both params from rtx to
3393         rtx_insn *.
3395         * cfgrtl.c (cfg_layout_function_header): Likewise for this
3396         variable.
3397         (unlink_insn_chain): Likewise for params "first" and "last".
3398         Remove now-redundant checked cast.
3399         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
3400         (fixup_reorder_chain): Strengthen local "insn" from rtx to
3401         rtx_insn *.
3402         * emit-rtl.c (link_insn_into_chain): Likewise for all three
3403         params.
3404         (add_insn): Likewise for param "insn" and local "prev".
3405         (add_insn_after_nobb): Likewise for both params and local "next".
3406         (add_insn_before_nobb): Likewise for both params and local "prev".
3407         (add_insn_after): Rename param "after" to "uncast_after",
3408         introducing local "after" with another checked cast.
3409         (add_insn_before): Rename params "insn" and "before", giving them
3410         "uncast_" prefixes, adding the old names back using checked casts.
3411         (emit_note_after): Likewise for param "after".
3412         (emit_note_before): Likewise for param "before".
3413         (emit_label): Add a checked cast.
3415 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3417         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
3418         "insn" from rtx to rtx_insn *.
3420         * cselib.c (cselib_record_sets_hook): Likewise.
3422         * var-tracking.c (add_with_sets): Likewise, renaming back from
3423         "uncast_insn" to "insn" and eliminating the checked cast from rtx
3424         to rtx_insn *.
3426 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3428         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
3429         and "header_" from rtx to rtx_insn *.
3430         (struct basic_block_d): Likewise for field "head_" within "x"
3431         field of union basic_block_il_dependent.
3432         (BB_HEAD): Drop function...
3433         (SET_BB_HEAD): ...and this function in favor of...
3434         (BB_HEAD): ...reinstate macro.
3435         (BB_END): Drop function...
3436         (SET_BB_END): ...and this function in favor of...
3437         (BB_END): ...reinstate macro.
3438         (BB_HEADER): Drop function...
3439         (SET_BB_HEADER): ...and this function in favor of...
3440         (BB_HEADER): ...reinstate macro.
3442         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
3443         (fix_crossing_unconditional_branches): Likewise.
3444         * caller-save.c (save_call_clobbered_regs): Likewise.
3445         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
3446         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
3447         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
3448         (merge_blocks_move_successor_nojumps): Likewise.
3449         (outgoing_edges_match): Update use of for_each_rtx to
3450         for_each_rtx_in_insn.
3451         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
3452         (expand_gimple_cond): Likewise.
3453         (expand_gimple_tailcall): Likewise.
3454         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
3455         SET_BB_END.
3456         (construct_exit_block): Drop use of SET_BB_END.
3457         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
3458         rtx_insn *.
3459         (delete_insn): Rename param "insn" to "uncast_insn", introducing
3460         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
3461         SET_BB_HEAD and SET_BB_END.
3462         (create_basic_block_structure): Drop use of SET_BB_HEAD and
3463         SET_BB_END.
3464         (rtl_delete_block): Drop use of SET_BB_HEAD.
3465         (rtl_split_block): Drop use of SET_BB_END.
3466         (emit_nop_for_unique_locus_between): Likewise.
3467         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
3468         (block_label): Drop use of SET_BB_HEAD.
3469         (fixup_abnormal_edges): Drop use of SET_BB_END.
3470         (record_effective_endpoints): Drop use of SET_BB_HEADER.
3471         (relink_block_chain): Likewise.
3472         (fixup_reorder_chain): Drop use of SET_BB_END.
3473         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
3474         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
3475         rtx_insn **.  Drop use of SET_BB_HEADER.
3476         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
3477         SET_BB_HEAD.
3478         (BB_HEAD): Delete this function.
3479         (SET_BB_HEAD): Likewise.
3480         (BB_END): Likewise.
3481         (SET_BB_END): Likewise.
3482         (BB_HEADER): Likewise.
3483         (SET_BB_HEADER): Likewise.
3484         * emit-rtl.c (add_insn_after):  Rename param "insn" to
3485         "uncast_insn", adding a new local "insn" and a checked cast to
3486         rtx_insn *.  Drop use of SET_BB_END.
3487         (remove_insn): Strengthen locals "next" and "prev" from rtx to
3488         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
3489         (reorder_insns): Drop use of SET_BB_END.
3490         (emit_insn_after_1): Strengthen param "first" and locals "last",
3491         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
3492         (emit_pattern_after_noloc): Add checked cast.
3493         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
3494         (restore_other_notes): Likewise.
3495         (move_insn): Likewise.
3496         (sched_extend_bb): Likewise.
3497         (fix_jump_move): Likewise.
3498         * ifcvt.c (noce_process_if_block): Likewise.
3499         (dead_or_predicable): Likewise.
3500         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
3501         * reg-stack.c (change_stack): Drop use of SET_BB_END.
3502         * sel-sched-ir.c (sel_move_insn): Likewise.
3503         * sel-sched.c (move_nop_to_previous_block): Likewise.
3505         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
3506         SET_BB_END.
3507         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
3509 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3511         * basic-block.h (create_basic_block_structure): Strengthen params
3512         1 "head" and 2 "end" from rtx to rtx_insn *.
3513         * cfgrtl.c (create_basic_block_structure): Likewise.
3514         (rtl_create_basic_block): Update casts from void * to rtx to
3515         rtx_insn *, so that we can pass them as rtx_insn * to
3516         create_basic_block_structure.
3517         * sel-sched-ir.c (sel_create_basic_block): Likewise.
3519 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3521         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
3522         rtx_insn **.
3523         (check_for_inc_dec): Strengthen param "insn" from rtx to
3524         rtx_insn *.
3526         * cselib.h (cselib_process_insn): Likewise.
3528         * cselib.c (cselib_record_sets): Likewise.
3529         (cselib_process_insn): Likewise.
3531         * dse.c (struct insn_info): Likewise for field "insn".
3532         (check_for_inc_dec_1): Likewise for local "insn".
3533         (check_for_inc_dec): Likewise for param "insn".
3534         (scan_insn): Likewise.
3535         (dse_step1): Likewise for local "insn".
3537         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
3538         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
3540 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3542         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
3543         from rtx to rtx_insn *.
3544         (DEP_PRO): Delete this function and...
3545         (SET_DEP_PRO): ...this function in favor of...
3546         (DEP_PRO): ...reinstate this macro.
3547         (DEP_CON): Delete this function and...
3548         (SET_DEP_CON): ...this function in favor of...
3549         (DEP_CON): ...reinstate this old macro.
3550         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
3551         (init_dep): Likewise.
3552         (set_priorities): Likewise for both params.
3553         (sd_copy_back_deps): Likewise for params 1 and 2.
3555         * haifa-sched.c (priority): Likewise for param "insn" and local
3556         "next".
3557         (set_priorities): Likewise for params "head" and "tail" and local
3558         "insn".
3559         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
3560         local "consumer".
3561         (add_to_speculative_block): Add a checked cast.
3562         (create_check_block_twin): Drop use of SET_DEP_CON.
3563         (add_jump_dependencies): Strengthen params "insn" and "jump" from
3564         rtx to rtx_insn *.
3566         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
3567         Drop use of SET_DEP_PRO
3568         (init_dep): Strengthen params "pro" and "con" from rtx to
3569         rtx_insn *.
3570         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
3571         use of SET_DEP_CON.
3572         (DEP_PRO): Delete.
3573         (DEP_CON): Delete.
3574         (SET_DEP_PRO): Delete.
3575         (SET_DEP_CON): Delete.
3577 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3579         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
3580         from rtx to rtx_insn *.
3581         (VINSN_INSN_RTX): Eliminate rvalue function and...
3582         (SET_VINSN_INSN): ...lvalue function in favor of...
3583         (VINSN_INSN_RTX): reinstate this old macro.
3585         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
3586         in favor of VINSN_INSN_RTX.
3587         (VINSN_INSN_RTX): Delete this function.
3588         (SET_VINSN_INSN_RTX): Likewise.
3590 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3592         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
3593         (BND_TO): Delete this function and...
3594         (SET_BND_TO): ...this functions in favor of...
3595         (BND_TO): ...reinstating this macro.
3596         (struct _fence): Strengthen field "executing_insns" from
3597         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
3598         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
3599         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
3600         and param "insn" from rtx to insn_t.
3601         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
3602         rtx_insn *.
3604         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
3605         vec<rtx_insn *> .
3606         (rtx_vec_t): Likewise.
3607         (struct sched_deps_info_def): Strengthen param of "start_insn"
3608         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
3609         "note_mem_dep" callback and first param of "note_dep" callback.
3611         * haifa-sched.c (add_to_speculative_block): Strengthen param
3612         "insn" from rtx to rtx_insn *.
3613         (clear_priorities): Likewise.
3614         (calc_priorities): Likewise for local "insn".
3616         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
3617         Remove redundant checked cast.
3618         (haifa_note_mem_dep): Likewise for param "pending_insn".
3619         (haifa_note_dep): Likewise for param "elem".
3620         (note_mem_dep): Likewise for param "e".
3621         (sched_analyze_1): Add checked casts.
3622         (sched_analyze_2): Likewise.
3624         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
3625         from rtx to rtx_insn *.
3626         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
3627         from vec<rtx> * to vec<rtx_insn *> *.
3629         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
3630         scaffolding.
3631         (flist_add): Strengthen param "executing_insns" from
3632         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
3633         (advance_deps_context): Remove now-redundant checked cast.
3634         (init_fences): Replace uses of NULL_RTX with NULL.
3635         (merge_fences): Strengthen params "last_scheduled_insn" and
3636         "sched_next" from rtx to rtx_insn * and "executing_insns" from
3637         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
3638         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
3639         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
3640         an instruction, rather than doing double-duty as a pattern.
3641         (return_nop_to_pool): Update for change of insn_t.
3642         (deps_init_id): Remove now-redundant checked cast.
3643         (struct sched_scan_info_def): Strengthen param of "init_insn"
3644         callback from rtx to insn_t.
3645         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
3646         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
3647         NULL.
3648         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
3649         "end" from rtx to rtx_insn *.
3650         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
3651         (rtx insn_rtx, bool force_unique_p)
3652         (BND_TO): Delete function.
3653         (SET_BND_TO): Delete function.
3655         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
3656         rtx to rtx_insn *.
3657         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
3658         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
3659         rtx to rtx_insn *.
3660         (undo_transformations): Likewise for param "insn".
3661         (update_liveness_on_insn): Likewise.
3662         (compute_live_below_insn): Likewise for param "insn" and local
3663         "succ".
3664         (update_data_sets): Likewise for param "insn".
3665         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
3666         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
3667         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
3668         rtx_insn *.
3669         (move_cond_jump): Likewise for param "insn".
3670         (move_cond_jump): Drop use of SET_BND_TO.
3671         (compute_av_set_on_boundaries): Likewise.
3672         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
3673         (update_and_record_unavailable_insns): Strengthen local "bb_end"
3674         from rtx to rtx_insn *.
3675         (maybe_emit_renaming_copy): Likewise for param "insn".
3676         (maybe_emit_speculative_check): Likewise.
3677         (handle_emitting_transformations): Likewise.
3678         (remove_insn_from_stream): Likewise.
3679         (code_motion_process_successors): Strengthen local "succ" from rtx
3680         to insn_t.
3682 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3684         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
3685         ilist_t, not _xlist_t;
3686         (ILIST_INSN): Define in terms of new union field "insn".
3687         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
3688         _XLIST_NEXT.
3689         (struct _list_node): Add new field "insn" to the union, of type
3690         insn_t.
3691         (ilist_add): Replace macro with an inline function, requiring an
3692         insn_t.
3693         (ilist_remove): Define this macro directly in terms of
3694         _list_remove, rather than indirectly via _xlist_remove.
3695         (ilist_clear): Likewise, in terms of _list_clear rather than
3696         _xlist_clear.
3697         (ilist_is_in_p): Replace macro with an inline function, requiring
3698         an insn_t.
3699         (_list_iter_cond_insn): New function.
3700         (ilist_iter_remove): Define this macro directly in terms of
3701         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
3702         (ilist_iterator): Define directly in terms of _list_iterator
3703         rather than indirectly through _xlist_iterator.
3704         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
3705         than in terms of _FOR_EACH_X.
3706         (FOR_EACH_INSN_1): Likewise.
3708 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
3710         PR target/60606
3711         PR target/61330
3712         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
3713         DECL_HARD_REGISTER and return for invalid register specifications.
3714         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
3715         DECL_HARD_REGISTER, call expand_one_error_var.
3716         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
3717         CC_REGNUM with non-MODE_CC modes.
3718         (arm_regno_class): Return NO_REGS for PC_REGNUM.
3720 2014-08-26  Marek Polacek  <polacek@redhat.com>
3722         PR c/61271
3723         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
3725 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
3727         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
3728         qi cost; add di cost.
3729         (cortexa57_addrcost_table): Likewise.
3731 2014-08-26  Marek Polacek  <polacek@redhat.com>
3733         PR c/61271
3734         * expr.c (is_aligning_offset): Remove logical not.
3736 2014-08-26  Marek Polacek  <polacek@redhat.com>
3738         PR c/61271
3739         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
3740         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
3742 2014-08-26  Richard Biener  <rguenther@suse.de>
3744         PR tree-optimization/62175
3745         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
3746         expand possibly trapping operations.
3748 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
3750         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
3751         "insn" from rtx to rtx_insn *.
3752         (permute_load): Likewise for param "insn".
3753         (permute_store): Likewise.
3754         (handle_special_swappables): Likewise for local "insn".
3755         (replace_swap_with_copy): Likewise for locals "insn" and
3756         "new_insn".
3757         (rs6000_analyze_swaps): Likewise for local "insn".
3759 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3761         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
3762         to rtx_insn *.
3764 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3766         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
3767         "note_list" from rtx to rtx_insn *.
3768         (BB_NOTE_LIST): Replace this function and...
3769         (SET_BB_NOTE_LIST): ...this function with...
3770         (BB_NOTE_LIST): ...the former macro implementation.
3772         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
3773         local "from_start" from rtx to rtx_insn *.  Strengthen param
3774         "to_endp" from rtx * to rtx_insn **.
3776         * haifa-sched.c (concat_note_lists): Likewise.
3777         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
3778         BB_NOTE_LIST.
3779         (sel_restore_notes): Likewise.
3780         (move_bb_info): Likewise.
3781         (BB_NOTE_LIST): Delete this function.
3782         (SET_BB_NOTE_LIST): Delete this function.
3783         * sel-sched.c (create_block_for_bookkeeping): Eliminate
3784         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
3786 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
3788         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
3789         from rtx * to rtx_insn **.
3790         (reorder2): Likewise.
3791         (dependencies_evaluation_hook): Strengthen params "head", "tail"
3792         from rtx to rtx_insn *.
3794         * doc/tm.texi: Update mechanically for above change to target.def.
3796         * sched-int.h (note_list): Strengthen this variable from rtx to
3797         rtx_insn *.
3798         (remove_notes): Likewise for both params.
3799         (restore_other_notes): Likewise for return type and first param.
3800         (struct ready_list): Strengthen field "vec" from rtx * to
3801         rtx_insn **.
3802         (struct dep_replacement): Strenghten field "insn" from rtx to
3803         rtx_insn *.
3804         (struct deps_desc): Likewise for fields "last_debug_insn",
3805         "last_args_size".
3806         (struct haifa_sched_info): Likewise for callback field
3807         "can_schedule_ready_p"'s param, for first param of "new_ready"
3808         callback field, for both params of "rank" callback field, for
3809         first field of "print_insn" callback field (with a const), for
3810         both params of "contributes_to_priority" callback, for param
3811         of "insn_finishes_block_p" callback, for fields "prev_head",
3812         "next_tail", "head", "tail", for first param of "add_remove_insn"
3813         callback, for first param of "begin_schedule_ready" callback, for
3814         both params of "begin_move_insn" callback, and for second param
3815         of "advance_target_bb" callback.
3816         (add_dependence): Likewise for params 1 and 2.
3817         (sched_analyze): Likewise for params 2 and 3.
3818         (deps_analyze_insn): Likewise for param 2.
3819         (ready_element): Likewise for return type.
3820         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3821         (try_ready): Strenghten param from rtx to rtx_insn *.
3822         (sched_emit_insn): Likewise for return type.
3823         (record_delay_slot_pair): Likewise for params 1 and 2.
3824         (add_delay_dependencies): Likewise for param.
3825         (contributes_to_priority): Likewise for both params.
3826         (find_modifiable_mems): Likewise.
3828         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
3829         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
3830         "first_older_only_insn" from rtx to rtx_insn *.
3831         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
3832         rtx_insn **.
3834         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
3835         "last_scheduled_iter0" from rtx to rtx_insn *.
3836         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
3837         (c6x_sched_reorder_1): Strengthen param "ready" and locals
3838         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
3839         "insn" from rtx to rtx_insn *.
3840         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
3841         rtx_insn **.
3842         (c6x_sched_reorder2): Strengthen param "ready" and locals
3843         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
3844         "insn" from rtx to rtx_insn *.
3845         (c6x_variable_issue):  Add a checked cast when assigning from insn
3846         to ss.last_scheduled_iter0.
3847         (split_delayed_branch): Strengthen param "insn" and local "i1"
3848         from rtx to rtx_insn *.
3849         (split_delayed_nonbranch): Likewise.
3850         (undo_split_delayed_nonbranch): Likewise for local "insn".
3851         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
3852         "entry_after", "end_packet", "head_insn", "tail_insn",
3853         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
3854         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
3855         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
3856         but add a checked cast on loop->start_label.  Consolidate calls to
3857         avoid assigning result of gen_spkernel to "insn", now an
3858         rtx_insn *.
3860         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
3861         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
3862         rtx to rtx_insn *.
3863         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
3864         rtx_insn **.  Strengthen locals "top", "next" from rtx to
3865         rtx_insn *.
3866         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
3867         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
3868         (add_parameter_dependencies): Strengthen params "call", "head" and
3869         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
3870         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
3871         (add_dependee_for_func_arg): Likewise for param "arg" and local
3872         "insn".
3873         (ix86_dependencies_evaluation_hook): Likewise for params "head",
3874         "tail" and locals "insn", "first_arg".
3876         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
3877         for params "head", "tail" and locals "insn", "next", "next_tail".
3878         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
3879         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
3880         "insn", "lowest", "highest" from rtx to rtx_insn *.
3881         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
3882         rtx_insn **.
3883         (ia64_sched_reorder2): Likewise.
3885         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
3886         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
3887         from rtx * to rtx_insn **.
3888         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
3889         rtx_insn **.
3890         (mep_print_sched_insn): Strengthen param "insn" from rtx to
3891         rtx_insn *.
3892         (mep_sched_reorder): Strengthen param "ready" from rtx * to
3893         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
3894         to rtx_insn *.
3896         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
3897         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
3898         to rtx_insn *.
3899         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
3900         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
3901         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
3902         rtx_insn **.
3903         (vr4130_reorder): Likewise.
3904         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
3905         rtx to rtx_insn *.
3906         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
3907         rtx_insn **.
3908         (mips_sched_reorder): Likewise.
3909         (mips_sched_reorder2): Likewise.
3911         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
3913         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
3914         Strengthen local "tmp" from rtx to rtx_insn *.
3915         (rs6000_sched_reorder2): Likewise.
3917         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
3918         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
3919         (s390_sched_reorder): Strengthen param "ready" from rtx * to
3920         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
3922         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
3923         "tmp2" from rtx to rtx_insn *.
3924         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
3925         Strengthen local "insn" from rtx to rtx_insn *.
3926         (ready_reorder): Strengthen param "ready" from rtx * to
3927         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
3928         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
3929         (sh_reorder2): Likewise.
3931         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
3932         local "insn" from rtx to rtx_insn *.
3934         * haifa-sched.c (note_list): Strengthen this variable from rtx to
3935         rtx_insn *.
3936         (scheduled_insns): Strengthen this variable from vec<rtx> to
3937         vec<rtx_insn *>.
3938         (set_modulo_params): Likewise for locals "i1", "i2".
3939         (record_delay_slot_pair): Likewise for params "i1", "i2".
3940         (add_delay_dependencies): Likewise for param "insn".
3941         (cond_clobbered_p): Likewise.
3942         (recompute_todo_spec): Likewise for local "prev".
3943         (last_scheduled_insn): Likewise for this variable.
3944         (nonscheduled_insns_begin): Likewise.
3945         (model_set_excess_costs): Strengthen param "insns" from rtx * to
3946         rtx_insn **.
3947         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
3948         rtx_insn *.
3949         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
3950         Strengthen local "insn" from rtx to rtx_insn *.
3951         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
3952         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
3953         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
3954         (ready_remove_first): Likewise for return type and local "t".
3955         (ready_element): Likewise for return type.
3956         (ready_remove): Likewise for return type and local "t".
3957         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
3958         (check_clobbered_conditions): Strengthen local "x" from rtx to
3959         rtx_insn *, adding a checked cast.
3960         (schedule_insn): Likewise for param "insn".
3961         (remove_notes): Likewise for params "head", "tail" and locals
3962         "next_tail", "insn", "next".
3963         (struct haifa_saved_data): Likewise for fields
3964         "last_scheduled_insn", "nonscheduled_insns_begin".
3965         (save_backtrack_point): Update for change to field "vec" of
3966         struct ready_list.
3967         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
3968         rtx_insn **.
3969         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
3970         from rtx to rtx_insn *
3971         (resolve_dependencies): Strengthen param "insn" from rtx to
3972         rtx_insn *
3973         (restore_other_notes): Likewise for return type, for param "head"
3974         and local "note_head".
3975         (undo_all_replacements): Likewise for local "insn".
3976         (first_nonscheduled_insn): Likewise for return type and local "insn".
3977         (queue_to_ready): Likewise for local "insn", adding checked casts.
3978         (early_queue_to_ready): Likewise for local "insn".
3979         (debug_ready_list_1): Strengthen local "p" from rtx * to
3980         rtx_insn **.
3981         (move_insn): Strengthen param "insn" and local "note" from rtx to
3982         rtx_insn *
3983         (insn_finishes_cycle_p): Likewise for param "insn".
3984         (max_issue): Likewise for local "insn".
3985         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
3986         to rtx_insn **.
3987         (commit_schedule): Strengthen param "prev_head" and local "insn"
3988         from rtx to rtx_insn *
3989         (prune_ready_list): Likewise for local "insn".
3990         (schedule_block): Likewise for locals "prev_head", "head", "tail",
3991         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
3992         (set_priorities): Likewise for local "prev_head".
3993         (try_ready): Likewise for param "next".
3994         (fix_tick_ready): Likewise.
3995         (change_queue_index): Likewise.
3996         (sched_extend_ready_list): Update for change to field "vec" of
3997         struct ready_list.
3998         (generate_recovery_code): Strengthen param "insn" from rtx to
3999         rtx_insn *.
4000         (begin_speculative_block): Likewise.
4001         (create_check_block_twin): Likewise for param "insn" and locals
4002         "label", "check", "twin".  Introduce local "check_pat" to avoid
4003         "check" being used as a plain rtx before being used as an insn.
4004         (fix_recovery_deps): Add a checked cast to rtx_insn * when
4005         extracting elements from ready_list.
4006         (sched_remove_insn): Strengthen param "insn" from rtx to
4007         rtx_insn *.
4008         (sched_emit_insn): Likewise for return type.
4009         (ready_remove_first_dispatch): Likewise for return type and local
4010         "insn".
4012         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
4014         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
4015         const rtx_insn *.
4017         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
4018         from rtx to rtx_insn *.
4019         (add_dependence_list): Likewise for param "insn".  Add a checked
4020         cast.
4021         (add_dependence_list_and_free): Strengthen param "insn" from rtx
4022         to rtx_insn *.  Strengthen param "list_p" from rtx * to
4023         rtx_insn **.
4024         (chain_to_prev_insn): Strengthen param "insn" and locals
4025         "prec_nonnote", "i" from rtx to rtx_insn *.
4026         (flush_pending_lists): Likewise for param "insn".
4027         (cur_insn): Likewise for this variable.
4028         (haifa_start_insn): Add a checked cast.
4029         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
4030         (sched_analyze_reg): Likewise for param "insn".
4031         (sched_analyze_1): Likewise.
4032         (sched_analyze_2): Likewise.  Add checked casts.
4033         (sched_analyze_insn): Likewise.  Also for local "prev".
4034         (deps_analyze_insn): Likewise for param "insn".
4035         (sched_analyze): Likewise for params "head", "tail" and local "insn".
4036         (add_dependence_1): Likewise for params "insn", "elem".
4037         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
4038         (parse_add_or_inc): Likewise for param "insn".
4039         (find_inc): Likewise for local "inc_cand".
4040         (find_modifiable_mems): Likewise for params "head", "tail" and
4041         locals "insn", "next_tail".
4043         * sched-ebb.c (init_ready_list): Likewise for local "insn".
4044         (begin_schedule_ready): Likewise for param "insn".
4045         (begin_move_insn): Likewise for params "insn" and "last".
4046         (ebb_print_insn): Strengthen param "insn" from const_rtx to
4047         const rtx_insn *.
4048         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
4049         (ebb_contributes_to_priority): Likewise for params "next", "insn".
4050         (ebb_add_remove_insn): Likewise for param "insn".
4051         (advance_target_bb): Likewise.
4053         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
4054         "insn".
4055         (check_live): Likewise for param "insn".
4056         (init_ready_list): Likewise for local "insn".
4057         (can_schedule_ready_p): Likewise for param "insn".
4058         (begin_schedule_ready): Likewise.
4059         (new_ready): Likewise for param "next".
4060         (rgn_print_insn): Likewise for param "insn".
4061         (rgn_rank): Likewise for params "insn1", "insn2".
4062         (contributes_to_priority): Likewise for params "next", "insn".
4063         (rgn_insn_finishes_block_p): Likewise for param "insn".
4064         (add_branch_dependences): Likewise for params "head", "tail" and
4065         locals "insn", "last".
4066         (rgn_add_remove_insn): Likewise for param "insn".
4067         (advance_target_bb): Likewise.
4069         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
4070         const_rtx to const rtx_insn *.
4072         * sel-sched-dump.h (sel_print_insn): Likewise.
4074         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
4075         (deps_init_id): Likewise.
4077         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
4078         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
4079         rtx_insn **.
4081 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4083         * output.h (final_start_function): Strengthen param 1 from rtx to
4084         rtx_insn *.
4086         * final.c (final_start_function): Likewise, renaming back from
4087         "uncast_first" to "first", and dropping the checked cast from rtx
4088         to rtx_insn *.
4090 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4092         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
4093         * final.c (final): Likewise.  Rename param back from
4094         "uncast_first" to "first" and eliminate the checked cast from rtx
4095         to rtx_insn *.
4097 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4099         * output.h (shorten_branches): Strengthen param from rtx to
4100         rtx_insn *.
4102         * final.c (shorten_branches): Likewise, renaming param back from
4103         "uncast_first" to "first", and dropping the checked cast from rtx
4104         to rtx_insn *.
4106         * genattr.c (gen_attr): Likewise when writing out the prototype of
4107         shorten_branches.
4109 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4111         * sched-int.h (struct haifa_sched_info): Strengthen fields
4112         "prev_head" and "next_tail" from rtx to rtx_insn *.
4114 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4116         * rtl.h (rtx_jump_table_data::get_labels): New method.
4117         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
4118         with use of the new rtx_jump_table_data::get_labels method.
4119         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
4120         to rtx_jump_table_data *.  Simplify by using get_labels method.
4121         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
4122         a dyn_cast, introducing local "table", using it to replace
4123         label-lookup logic with a get_labels method call.
4124         (patch_jump_insn): Simplify using get_labels method.
4125         * dwarf2cfi.c (create_trace_edges): Likewise.
4126         * rtlanal.c (label_is_jump_target_p): Likewise.
4128 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4130         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
4131         to rtx_insn *.
4133         * emit-rtl.c (unshare_all_rtl_1): Likewise.
4134         (unshare_all_rtl_again): Likewise, also for local "p".
4136 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4138         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
4139         to rtx_insn *.
4140         * cfgrtl.c (delete_insn_and_edges): Likewise.
4142 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4144         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
4145         from rtx to rtx_insn *.
4147         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
4149 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4151         * function.c (thread_prologue_and_epilogue_insns): Likewise for
4152         locals "returnjump", "epilogue_end", "insn", "next".
4154         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
4155         "returnjump" from rtx * to rtx_insn **.
4156         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
4158 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4160         * basic-block.h (struct edge_def). Strengthen "r" within
4161         union edge_def_insns from rtx to rtx_insn *.
4163         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
4164         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
4165         rtx_insn *.
4166         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
4167         from rtx to rtx_insn *.
4168         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
4169         rtx_insn *.
4170         * postreload-gcse.c (reg_killed_on_edge): Likewise.
4171         (reg_used_on_edge): Likewise.
4172         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
4173         (gt_pch_nx): New overload for rtx_insn *&.
4174         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
4175         from rtx to rtx_insn *.
4177 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4179         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
4180         from rtx to rtx_insn *.
4181         (BB_FOOTER): Replace function with access macro.
4182         (SET_BB_FOOTER): Delete.
4184         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
4185         with BB_FOOTER.
4186         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
4187         (emit_barrier_after_bb): Likewise.
4188         (record_effective_endpoints): Likewise.
4189         (relink_block_chain): Likewise.
4190         (fixup_fallthru_exit_predecessor): Likewise.
4191         (cfg_layout_duplicate_bb): Likewise.
4192         (cfg_layout_split_block): Likewise.
4193         (cfg_layout_delete_block): Likewise.
4194         (cfg_layout_merge_blocks): Likewise.
4195         (BB_FOOTER): Delete function.
4196         (SET_BB_FOOTER): Delete function.
4197         * combine.c (update_cfg_for_uncondjump): Replace uses of
4198         SET_BB_FOOTER with BB_FOOTER.
4200 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4202         * except.h (struct eh_landing_pad_d): Strengthen field
4203         "landing_pad" from rtx to rtx_code_label *.
4205         * except.c (sjlj_emit_dispatch_table): Likewise for param
4206         "dispatch_label"
4207         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
4209 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4211         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
4212         first param from rtx to rtx_insn *.
4213         * config/xtensa/xtensa.c (struct machine_function): Likewise for
4214         field "set_frame_ptr_insn".
4215         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
4216         "csend" from rtx to rtx_code_label *.
4217         (xtensa_expand_atomic): Likewise for local "csloop".
4218         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
4219         rtx_insn *.
4220         (xtensa_call_tls_desc): Likewise for return type and locals
4221         "call_insn", "insns".
4222         (xtensa_legitimize_tls_address): Likewise for local "insns".
4223         (xtensa_expand_prologue): Likewise for locals "insn", "first".
4225 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4227         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
4228         first param from rtx to rtx_insn *.
4229         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
4230         "insn".
4232 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4234         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
4235         Strengthen param 1 from rtx to rtx_insn *.
4236         (tilepro_output_cbranch): Likewise.
4237         (tilepro_adjust_insn_length): Likewise.
4238         (tilepro_final_prescan_insn): Likewise for sole param.
4240         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
4241         Likewise for local "last".
4242         (cbranch_predicted_p): Likewise for param "insn".
4243         (tilepro_output_simple_cbranch_with_opcode): Likewise.
4244         (tilepro_output_cbranch_with_opcode): Likewise.
4245         (tilepro_output_cbranch): Likewise.
4246         (frame_emit_load): Likewise for return type and locals "seq",
4247         "insn".
4248         (emit_sp_adjust): Likewise for return type and local "insn".
4249         (tilepro_expand_epilogue): Likewise for locals "last_insn",
4250         "insn".
4251         (tilepro_adjust_insn_length): Likewise for param "insn".
4252         (next_insn_to_bundle): Likewise for return type and params
4253         "r", "end".
4254         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
4255         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
4256         local "new_insns".
4257         (match_addli_pcrel): Likewise for param "insn".
4258         (replace_addli_pcrel): Likewise.
4259         (match_auli_pcrel): Likewise.
4260         (replace_auli_pcrel): Likewise.
4261         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
4262         "next_insn".
4263         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4264         "queue", "next_queue", "prev".
4265         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
4266         (tilepro_final_prescan_insn): Likewise for param "insn".
4268 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4270         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
4271         Strengthen param 1 from rtx to rtx_insn *.
4272         (tilegx_output_cbranch): Likewise.
4273         (tilegx_adjust_insn_length): Likewise.
4274         (tilegx_final_prescan_insn): Likewise for sole param.
4276         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
4277         or local "last".
4278         (cbranch_predicted_p): Likewise for param "insn".
4279         (tilegx_output_simple_cbranch_with_opcode): Likewise.
4280         (tilegx_output_cbranch_with_opcode): Likewise.
4281         (tilegx_output_cbranch): Likewise.
4282         (frame_emit_load): Likewise for return type.
4283         (set_frame_related_p): Likewise for locals "seq", "insn".
4284         (emit_sp_adjust): Likewise for return type, and for local "insn".
4285         Introduce local "pat" for use in place of "insn" where the latter
4286         isn't an instruction.
4287         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
4288         from rtx to rtx_insn *.
4289         (tilegx_adjust_insn_length): Likewise for param "insn".
4290         (next_insn_to_bundle): Likewise for return type and params "r" and
4291         "end".
4292         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
4293         "end".
4294         (replace_insns): Likewise for params "old_insn", "new_insns".
4295         (replace_mov_pcrel_step1): Likewise for param "insn" and local
4296         "new_insns".
4297         (replace_mov_pcrel_step2): Likewise.
4298         (replace_mov_pcrel_step3): Likewise.
4299         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
4300         "next_insn".
4301         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4302         "queue", "next_queue", "prev".
4303         (tilegx_output_mi_thunk): Likewise for local "insn".
4304         (tilegx_final_prescan_insn): Likewise for param "insn".
4306 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4308         * config/spu/spu.c (frame_emit_store): Strengthen return type from
4309         rtx to rtx_insn *.
4310         (frame_emit_load): Likewise.
4311         (frame_emit_add_imm): Likewise, also for local "insn".
4312         (spu_expand_prologue): Likewise for local "insn".
4313         (struct spu_bb_info): Likewise for field "prop_jump".
4314         (emit_nop_for_insn): Likewise for param "insn" and local
4315         "new_insn".
4316         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
4317         "hbr_insn".
4318         (spu_emit_branch_hint): Likewise for params "before", "branch" and
4319         locals "hint", "insn".
4320         (get_branch_target): Likewise for param "branch".
4321         (insn_clobbers_hbr): Likewise for param "insn".
4322         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
4323         locals "insn", "before_4", "before_16".
4324         (insert_hbrp): Likewise for local "insn".
4325         (spu_machine_dependent_reorg): Likewise for locals "branch",
4326         "insn", "next", "bbend".
4327         (uses_ls_unit): Likewise for param "insn".
4328         (get_pipe): Likewise.
4329         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
4330         introducing a checked cast.
4331         (spu_sched_adjust_cost): Likewise for params "insn" and
4332         "dep_insn".
4333         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
4334         (spu_sms_res_mii): Likewise.
4336 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4338         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
4339         from rtx to rtx_insn *.
4340         (output_cbranch): Likewise for param 6.
4341         (output_return): Likewise for param 1.
4342         (output_sibcall): Likewise.
4343         (output_v8plus_shift): Likewise.
4344         (output_v8plus_mult): Likewise.
4345         (output_v9branch): Likewise for param 7.
4346         (output_cbcond):  Likewise for param 3.
4348         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
4349         for local "insn".
4350         (sparc_legitimize_pic_address): Likewise.
4351         (sparc_emit_call_insn): Likewise.
4352         (emit_save_or_restore_regs): Likewise.
4353         (emit_window_save): Likewise for return type and local "insn".
4354         (sparc_expand_prologue): Likewise for local "insn".
4355         (sparc_flat_expand_prologue): Likewise.
4356         (output_return): Likewise for param "insn".
4357         (output_sibcall): Likewise for param "insn" and local "delay".
4358         (output_ubranch): Likewise for param "insn".
4359         (output_cbranch): Likewise.
4360         (output_cbcond): Likewise.
4361         (output_v9branch): Likewise.
4362         (output_v8plus_shift): Likewise.
4363         (sparc_output_mi_thunk): Likewise for local "insn".
4364         (get_some_local_dynamic_name): Likewise.
4365         (output_v8plus_mult): Likewise for param "insn".
4367 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4369         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
4370         from rtx to rtx_insn *.
4371         (output_branchy_insn): Likewise for param 3.
4372         (output_far_jump): Likewise for param 1.
4373         (final_prescan_insn): Likewise.
4374         (sh_insn_length_adjustment): Likewise for sole param.
4376         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
4377         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
4378         rtx_code_label *.
4379         (sh_emit_compare_and_set): Likewise for local "lab".
4380         (output_far_jump): Strengthen param "insn" and local "prev" from
4381         rtx to rtx_insn *.
4382         (output_branchy_insn): Likewise for param "insn" and local
4383         "next_insn".
4384         (output_ieee_ccmpeq): Likewise for param "insn".
4385         (struct label_ref_list_d): Strengthen field "label" from rtx to
4386         rtx_code_label *.
4387         (pool_node): Likewise.
4388         (pool_window_label): Likewise for this global.
4389         (add_constant): Likewise for return type and locals "lab", "new_rtx".
4390         (dump_table): Strengthen params "start", "barrier" and local
4391         "scan" from rtx to rtx_insn *.
4392         (broken_move): Likewise for param "insn".
4393         (untangle_mova): Likewise for params "first_mova" and "new_mova".
4394         Strengthen param "first_mova" from rtx * to rtx_insn **.
4395         (mova_p): Likewise for param "insn".
4396         (fixup_mova): Likewise for param "mova".
4397         (find_barrier): Likewise for return type, params "mova" and
4398         "from", and locals "barrier_before_mova", "found_barrier",
4399         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
4400         "label" from rtx to rtx_code_label *.
4401         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
4402         rtx to rtx_insn *.
4403         (sh_reorg): Likewise for locals "link", "scan", "barrier".
4404         (split_branches): Likewise for param "first" and local "insn".
4405         (final_prescan_insn): Likewise for param "insn".
4406         (sequence_insn_p): Likewise for locals "prev", "next".
4407         (sh_insn_length_adjustment): Likewise for param "insn".
4408         (sh_can_redirect_branch): Likewise for local "insn".
4409         (find_r0_life_regions): Likewise for locals "end", "insn".
4410         (sh_output_mi_thunk): Likewise for local "insns".
4412 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4414         * config/score/score.c (score_output_mi_thunk): Strengthen local
4415         "insn" from rtx to rtx_insn *.
4416         (score_prologue): Likewise.
4418 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4420         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
4421         1 from rtx to rtx_insn *.
4422         (s390_emit_jump): Likewise for return type.
4423         (s390_emit_call): Likewise.
4424         (s390_load_got): Likewise.
4426         * config/s390/s390.c (last_scheduled_insn): Likewise for this
4427         variable.
4428         (s390_match_ccmode): Likewise for param "insn".
4429         (s390_emit_jump): Likewise for return type.
4430         (s390_split_branches): Likewise for local "label".
4431         (struct constant): Strengthen field "label" from rtx to
4432         rtx_code_label *.
4433         (struct constant_pool): Likewise for field "label".  Strengthen
4434         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
4435         rtx_insn *.
4436         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
4437         insns.
4438         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
4439         (s390_end_pool): Likewise.
4440         (s390_dump_pool): Likewise for local "insn".
4441         (s390_mainpool_start): Likewise.
4442         (s390_chunkify_start): Likewise.
4443         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
4444         with insns.  Strengthen locals "label", "jump", "barrier", "next",
4445         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
4446         (s390_chunkify_finish): Strengthen local "insn" from rtx to
4447         rtx_insn *.
4448         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
4449         "jump", "label", "next_insn".
4450         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
4451         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
4452         "tbegin_insn".
4453         (s390_load_got): Likewise for return type and local "insns".
4454         (s390_save_gprs_to_fprs): Likewise for local "insn".
4455         (s390_restore_gprs_from_fprs): Likewise.
4456         (pass_s390_early_mach::execute): Likewise.
4457         (s390_emit_prologue): Likewise for local "insns".
4458         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
4459         rtx_code_label *.
4460         (s390_emit_call): Strengthen return type and local "insn" from
4461         rtx to rtx_insn *.
4462         (s390_emit_tpf_eh_return): Likewise for local "insn".
4463         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
4464         "next_insn", introducing locals "s_pat", "rpat" to allow this.
4465         (s390_fix_long_loop_prediction): Likewise for param "insn" and
4466         local "cur_insn".
4467         (s390_non_addr_reg_read_p): Likewise for param "insn".
4468         (find_cond_jump): Likewise for return type and param "insn".
4469         (s390_swap_cmp): Likewise for param "insn".
4470         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
4471         "prev_insn", "next_insn".
4472         (s390_reorg): Likewise for locals "insn", "target".
4473         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
4474         (s390_sched_variable_issue): For now, rename param "insn" to
4475         "uncast_insn", introducing a checked cast.
4476         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
4477         insn.
4478         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
4479         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
4481 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4483         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
4484         param from rtx to rtx_insn *.
4485         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
4487 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4489         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
4490         4 from rtx to rtx_insn *.
4491         (rs6000_final_prescan_insn): Likewise for first param.
4492         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
4493         local "insn".
4494         (rs6000_get_some_local_dynamic_name): Likewise.
4495         (output_cbranch): Likewise for param "insn".
4496         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
4497         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
4498         (rs6000_emit_allocate_stack): Likewise for local "insn".
4499         (load_cr_save): Likewise.
4500         (restore_saved_cr): Likewise.
4501         (restore_saved_lr): Likewise.
4502         (emit_cfa_restores): Likewise.
4503         (rs6000_output_function_epilogue): Likewise for locals "insn" and
4504         "deleted_debug_label".
4505         (rs6000_output_mi_thunk): Likewise for local "insn".
4506         (rs6000_final_prescan_insn): Likewise for param "insn".
4508 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4510         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
4511         Strengthen param "insn" from rtx to rtx_insn *.
4512         * config/picochip/picochip.c (picochip_current_prescan_insn):
4513         Likewise for this variable.
4514         (picochip_final_prescan_insn): Likewise for param "insn".
4516 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4518         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
4519         from rtx to rtx_insn *.
4520         (pa_output_indirect_call): Likewise.
4521         (pa_adjust_insn_length): Likewise.
4522         (pa_attr_length_millicode_call): Likewise.
4523         (pa_attr_length_call): Likewise.
4524         (pa_attr_length_indirect_call): Likewise.
4526         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
4527         "insn".
4528         (pa_attr_length_millicode_call): Likewise.
4529         (pa_attr_length_call): Likewise.
4530         (pa_output_call): Likewise.
4531         (pa_attr_length_indirect_call): Likewise.
4532         (pa_output_indirect_call): Likewise.
4534 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4536         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
4537         Strengthen first param from rtx to rtx_insn *.
4538         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
4539         param "insn".
4541 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4543         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
4544         type from rtx to rtx_insn *.
4545         (mips_expand_call): Likewise.
4546         (mips_adjust_insn_length): Likewise for first param.
4547         (mips_output_conditional_branch): Likewise.
4548         (mips_output_order_conditional_branch): Likewise.
4549         (mips_final_prescan_insn): Likewise.
4551         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
4552         rtx_insn * for the SEQUENCE case.
4553         (SEQ_END): Likewise.
4554         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
4555         (mips_emit_call_insn): Likewise, also for local "insn".
4556         (mips16_gp_pseudo_reg): Likewise for local "scan".
4557         (mips16_build_call_stub): Likewise for return type and for local
4558         "insn".  Introduce a new local "pattern" so that "insn" can indeed
4559         be an insn.
4560         (mips_expand_call): Strengthen return type and local "insn" from
4561         rtx to rtx_insn *.
4562         (mips_block_move_loop): Strengthen local "label" from rtx to
4563         rtx_code_label *.
4564         (mips_expand_synci_loop): Likewise for locals "label",
4565         "end_label".
4566         (mips_set_frame_expr): Strengthen local "insn" from rtx to
4567         rtx_insn *.
4568         (mips16e_collect_argument_saves): Likewise for locals "insn",
4569         "next".
4570         (mips_find_gp_ref): Likewise for param of callback for "pred"
4571         param, and for local "insn".
4572         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
4573         (mips_insn_has_flexible_gp_ref_p): Likewise.
4574         (mips_epilogue_emit_cfa_restores): Likewise for return type and
4575         local "insn".
4576         (mips_epilogue_set_cfa): Likewise for local "insn".
4577         (mips_expand_epilogue): Likewise.
4578         (mips_adjust_insn_length): Likewise for param "insn".
4579         (mips_output_conditional_branch): Likewise.
4580         (mips_output_order_conditional_branch): Likewise.
4581         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
4582         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
4583         "falu2_turn_enabled_insn".
4584         (mips_builtin_branch_and_move): Strengthen locals "true_label",
4585         "done_label" from rtx to rtx_code_label *.
4586         (struct mips16_constant): Likewise for field "label".
4587         (mips16_add_constant): Likewise for return type.
4588         (mips16_emit_constants_1): Strengthen return type and param "insn"
4589         from rtx to rtx_insn *.
4590         (mips16_emit_constants): Likewise for param "insn".
4591         (mips16_insn_length): Likewise.
4592         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
4593         to rtx_code_label *.
4594         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
4595         from rtx to rtx_insn *.
4596         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
4597         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
4598         (r10k_simplify_address): Strengthen param "insn" and local
4599         "def_insn" from rtx to rtx_insn *.
4600         (r10k_safe_address_p): Strengthen param "insn" from rtx to
4601         rtx_insn *.
4602         (r10k_needs_protection_p_1): Update target type of cast of data
4603         from to rtx to rtx_insn *.
4604         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
4605         rtx * to rtx_insn **.
4606         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
4607         rtx_insn *.
4608         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
4609         (mips_call_expr_from_insn): Likewise for param "insn".
4610         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
4611         (mips_find_pic_call_symbol): Likewise for param "insn".
4612         (mips_annotate_pic_calls): Likewise for local "insn".
4613         (mips_sim_insn): Likewise for this variable.
4614         (struct mips_sim): Likewise for field "insn" within elements of
4615         last_set array.
4616         (mips_sim_wait_reg): Likewise for param "insn".
4617         (mips_sim_wait_regs): Likewise.
4618         (mips_sim_wait_units): Likewise.
4619         (mips_sim_wait_insn): Likewise.
4620         (mips_sim_issue_insn): Likewise.
4621         (mips_sim_finish_insn): Likewise.
4622         (mips_seq_time): Likewise for param "seq" and local "insn".
4623         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
4624         locals "first", "second".
4625         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
4626         "last", "last2", "next".
4627         (mips_avoid_hazard): Likewise for params "after", "insn".
4628         (mips_reorg_process_insns): Likewise for locals "insn",
4629         "last_insn", "subinsn", "next_insn".
4630         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
4631         (mips16_split_long_branches): Likewise for locals "insn" "jump",
4632         "jump_sequence".
4633         (mips_output_mi_thunk): Likewise for local "insn".
4634         (mips_final_prescan_insn): Likewise for param "insn".
4636 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4638         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
4639         Strengthen return type and local "insns" from rtx to rtx_insn *.
4640         (microblaze_legitimize_tls_address): Likewise for local "insns".
4641         (microblaze_block_move_loop): Strengthen local "label" from rtx
4642         to rtx_code_label *.
4643         (microblaze_expand_prologue): Strengthen two locals named "insn"
4644         from rtx to rtx_insn *.
4645         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
4646         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
4647         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
4648         to rtx_code_label *.
4650 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4652         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
4653         param from rtx to rtx_insn *.
4654         (mep_reuse_lo): Likewise for third param.
4655         (mep_use_post_modify_p): Likewise for first param.
4656         (mep_core_address_length): Likewise.
4657         (mep_cop_address_length): Likewise.
4658         (mep_final_prescan_insn): Likewise.
4659         (mep_store_data_bypass_p): Likewise for both params.
4660         (mep_mul_hilo_bypass_p): Likewise.
4661         (mep_ipipe_ldc_p): Likewise for param.
4663         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
4664         (mep_rewrite_mult): Likewise.
4665         (mep_rewrite_mulsi3): Likewise.
4666         (mep_rewrite_maddsi3): Likewise.
4667         (mep_reuse_lo_p_1): Likewise.
4668         (mep_reuse_lo_p): Likewise.
4669         (mep_frame_expr): Likewise.
4670         (mep_make_parallel): Likewise for both params.
4671         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
4672         local "insn".
4673         (mep_use_post_modify_p): Likewise for param "insn".
4674         (mep_core_address_length): Likewise.
4675         (mep_cop_address_length): Likewise.
4676         (mep_reg_set_in_function): Likewise for local "insn".
4677         (mep_asm_without_operands_p): Likewise.
4678         (F): Likewise for return type and param "x".
4679         (add_constant): Likewise for local "insn".
4680         (maybe_dead_move): Likewise for return type and local "insn".
4681         (mep_expand_prologue): Likewise for local "insn".
4682         (mep_final_prescan_insn): Likewise for param "insn".
4683         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
4684         "next", "follow", "x".
4685         (mep_insert_repeat_label_last): Likewise for return type, param
4686         "last_insn", and locals "next", "prev".  Strengthen param "label"
4687         from rtx to rtx_code_label *.
4688         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
4689         rtx_insn *.
4690         (struct mep_doloop_end): Likewise for fields "insn" and
4691         "fallthrough".
4692         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
4693         Strengthen local "repeat_label" from rtx to rtx_code_label *.
4694         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
4695         rtx_insn *.
4696         (mep_invert_branch): Likewise for params "insn" and "after".
4697         (mep_reorg_erepeat): Likewise for param "insns" and locals
4698         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
4699         "l" from rtx to rtx_code_label *.
4700         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
4701         from rtx to rtx_insn *.
4702         (mep_reorg_addcombine): Likewise for param "insns" and locals
4703         "i", "n".
4704         (add_sp_insn_p): Likewise for param "insn".
4705         (mep_reorg_noframe): Likewise for param "insns" and locals
4706         "start_frame_insn", "end_frame_insn", "next".
4707         (mep_reorg): Likewise for local "insns".
4708         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
4709         cast.
4710         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
4711         (mep_mul_hilo_bypass_p): Likewise.
4712         (mep_ipipe_ldc_p): Likewise for param "insn".
4713         (mep_make_bundle): Likewise for return type, param "cop" and local
4714         "insn", splitting out the latter into a new local "seq" for when it
4715         is a SEQUENCE rather than an insn.
4716         (core_insn_p): Likewise for param "insn".
4717         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
4718         "last", "first", "note", "prev", "core_insn".
4720 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4722         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
4723         rtx to rtx_insn *.
4724         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
4725         (m68k_final_prescan_insn): Likewise for first param.
4727         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
4728         (m68k_set_frame_related): Likewise for param "insn".
4729         (output_btst): Likewise for param "insn".
4730         (m68k_final_prescan_insn): Likewise.
4731         (m68k_move_to_reg): Likewise for local "insn".
4732         (m68k_call_tls_get_addr): Likewise for local "insns".
4733         (m68k_call_m68k_read_tp): Likewise.
4734         (strict_low_part_peephole_ok): Likewise for param "first_insn".
4735         (m68k_output_mi_thunk): Likewise for local "insn".
4737 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4739         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
4740         first param from rtx to rtx_insn *.
4741         (iq2000_adjust_insn_length): Likewise.
4742         (iq2000_output_conditional_branch): Likewise.
4743         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
4744         "insn" and local "nop_insn".
4745         (iq2000_annotate_frame_insn): Likewise for param "insn".
4746         (iq2000_expand_prologue): Likewise for both locals "insn".
4747         (iq2000_adjust_insn_length): Likewise for param "insn".
4748         (iq2000_output_conditional_branch): Likewise.
4750 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4752         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
4753         "insns" from rtx to rtx_insn *.
4754         (ia64_emit_cond_move): Likewise for locals "insn", "first".
4755         (struct spill_fill_data): Likewise for field "init_after" and for
4756         elements of array field "prev_insn".
4757         (spill_restore_mem): Likewise for locals "insn", "first".
4758         (do_spill): Likewise for local "insn".
4759         (do_restore): Likewise.
4760         (ia64_expand_prologue): Likewise.
4761         (ia64_expand_epilogue): Likewise.
4762         (emit_insn_group_barriers): Likewise for locals "insn",
4763         "last_label".
4764         (emit_all_insn_group_barriers): Likewise for locals "insn",
4765         "last".
4766         (dfa_stop_insn): Likewise for this global.
4767         (dfa_pre_cycle_insn): Likewise.
4768         (ia64_nop): Likewise.
4769         (final_emit_insn_group_barriers): Likewise for locals "insn",
4770         "last".
4771         (emit_predicate_relation_info): Likewise for locals "head", "n",
4772         "insn", "b", "a".
4773         (ia64_reorg): Likewise for local "insn".
4774         (ia64_output_mi_thunk): Likewise.
4775         (expand_vec_perm_interleave_2): Likewise for local "seq".
4777 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4779         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
4780         param 1 "insn" from rtx to rtx_insn *.
4781         (ix86_use_lea_for_mov): Likewise.
4782         (ix86_avoid_lea_for_addr): Likewise.
4783         (ix86_split_lea_for_addr): Likewise.
4784         (ix86_lea_for_add_ok): Likewise.
4785         (ix86_output_call_insn): Likewise.
4787         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
4788         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
4789         (ix86_output_function_epilogue): Likewise for locals "insn",
4790         "deleted_debug_label".
4791         (legitimize_tls_address): Likewise for local "insn".
4792         (get_some_local_dynamic_name): Likewise.
4793         (increase_distance): Likewise for params "prev", "next".
4794         (distance_non_agu_define_in_bb): Likewise for params "insn",
4795         "start" and locals "prev", "next".
4796         (distance_non_agu_define): Likewise for param "insn".
4797         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
4798         locals "next", "prev".
4799         (distance_agu_use): Likewise for param "insn".
4800         (ix86_lea_outperforms): Likewise.
4801         (ix86_ok_to_clobber_flags): Likewise.
4802         (ix86_avoid_lea_for_add): Likewise.
4803         (ix86_use_lea_for_mov): Likewise.
4804         (ix86_avoid_lea_for_addr): Likewise.
4805         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
4806         (ix86_split_lea_for_addr): Likewise for param "insn".
4807         (ix86_lea_for_add_ok): Likewise for param "insn".
4808         (ix86_expand_carry_flag_compare): Likewise for local
4809         "compare_seq".
4810         (ix86_expand_int_movcc): Likewise.
4811         (ix86_output_call_insn): Likewise for param "insn".
4812         (ix86_output_call_insn): Likewise for local "i".
4813         (x86_output_mi_thunk): Introduce local "insn", using it in place
4814         of "tmp" when dealing with insns.
4815         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
4816         "start".
4817         (ix86_pad_returns): Likewise for locals "ret", "prev".
4818         (ix86_count_insn_bb): Likewise for local "insn".
4819         (ix86_pad_short_function): Likewise for locals "ret", "insn".
4820         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
4821         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
4822         (expand_vec_perm_interleave2): Likewise for local "seq".
4823         (expand_vec_perm_vperm2f128_vblend): Likewise.
4824         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
4825         call to for_each_rtx with for_each_rtx_in_insn.
4827 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4829         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
4830         "label" from rtx to rtx_code_label *.
4831         (ix86_expand_prologue): Likewise.
4832         (ix86_expand_split_stack_prologue): Likewise for locals "label",
4833         "varargs_label".
4834         (ix86_split_idivmod): Likewise for locals "end_label" and
4835         "qimode_label".
4836         (ix86_expand_branch): Likewise for local "label2".
4837         (ix86_expand_aligntest): Likewise for return type and local "label".
4838         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
4839         "top_label".
4840         (expand_movmem_epilogue): Likewise for the various locals named
4841         "label".
4842         (expand_setmem_epilogue): Likewise.
4843         (expand_small_movmem_or_setmem): Likewise for local "label".
4844         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4845         Strengthen param "done_label" from rtx * to rtx_code_label **.
4846         Strengthen locals "loop_label" and "label" from rtx to
4847         rtx_code_label *.
4848         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
4849         Likewise for locals "loop_label", "label".
4850         (ix86_expand_set_or_movmem): Likewise for locals "label",
4851         "jump_around_label", "hot_label".
4852         (ix86_expand_strlensi_unroll_1): Likewise for locals
4853         "align_2_label", align_3_label", "align_4_label", "end_0_label",
4854         "end_2_label".
4855         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
4856         (void ix86_emit_i387_log1p): Likewise for locals "label1",
4857         "label2", "jump_label".
4858         (ix86_expand_sse_compare_and_jump): Likewise for return type and
4859         local "label".
4860         (ix86_expand_lfloorceil): Likewise for local "label".
4861         (ix86_expand_rint): Likewise.
4862         (ix86_expand_floorceildf_32): Likewise.
4863         (ix86_expand_floorceil): Likewise.
4864         (ix86_expand_rounddf_32): Likewise.
4865         (ix86_expand_trunc): Likewise.
4866         (ix86_expand_truncdf_32): Likewise.
4867         (ix86_expand_round): Likewise.
4869 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4871         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
4872         first param from rtx to rtx_insn *.
4873         (h8300_insn_length_from_table): Likewise.
4874         * config/h8300/h8300.c (F): Likewise for return type and param
4875         "x".
4876         (Fpa): Add a checked cast to rtx_insn *.
4877         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
4878         rtx_insn *.
4879         (final_prescan_insn): Likewise for param "insn".
4880         (h8300_binary_length): Likewise.
4881         (h8300_insn_length_from_table): Likewise.
4883 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4885         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
4886         Strengthen first param "insn" from rtx to rtx_insn *.
4888         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
4889         Likewise.
4890         (frame_insn): Likewise for return type.  Introduce local "insn"
4891         for use in place of local "x" for use as an rtx_insn *.
4892         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
4893         (epiphany_expand_prologue): Likewise for local "insn".
4894         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
4895         * config/epiphany/resolve-sw-modes.c
4896         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
4897         "seq".
4899 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4901         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
4902         param from rtx to rtx_insn *.
4903         (c6x_final_prescan_insn): Likewise for first param.
4905         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
4906         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
4907         (c6x_expand_compare): Strengthen local "insns" from rtx to
4908         rtx_insn *.
4909         (c6x_get_unit_specifier): Likewise for param "insn".
4910         (c6x_print_unit_specifier_field): Likewise.
4911         (c6x_final_prescan_insn): Likewise.
4912         (emit_add_sp_const): Likewise for local "insn".
4913         (c6x_expand_prologue): Likewise.
4915 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4917         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
4918         param 1 from rtx to rtx_insn *.
4919         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
4920         the various locals named "insn".
4921         (expand_epilogue_reg_restore): Likewise.
4922         (frame_related_constant_load): Likewise.
4923         (add_to_reg): Likewise.
4924         (emit_link_insn): Likewise.
4925         (do_link): Likewise.
4926         (expand_interrupt_handler_prologue): Likewise.
4927         (branch_dest): Likewise for param "branch".
4928         (asm_conditional_branch): Likewise for param "insn".
4929         (gen_one_bundle): Likewise for elements of param "slot" and local
4930         "t".
4931         (bfin_gen_bundles): Likewise for locals "insn", "next" and
4932         elements of local "slot".
4933         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
4934         "queue", "next_queue", "prev".
4935         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
4936         (add_sched_insns_for_speculation): Likewise for local "insn".
4938 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
4940         * config/avr/avr-protos.h (output_movqi): Strengthen first param
4941         from rtx to rtx_insn *.
4942         (output_movhi): Likewise.
4943         (output_movsisf): Likewise.
4944         (avr_out_tstsi): Likewise.
4945         (avr_out_tsthi): Likewise.
4946         (avr_out_tstpsi): Likewise.
4947         (avr_out_compare): Likewise.
4948         (avr_out_compare64): Likewise.
4949         (avr_out_movpsi): Likewise.
4950         (ashlqi3_out): Likewise.
4951         (ashlhi3_out): Likewise.
4952         (ashlsi3_out): Likewise.
4953         (ashrqi3_out): Likewise.
4954         (ashrhi3_out): Likewise.
4955         (ashrsi3_out): Likewise.
4956         (lshrqi3_out): Likewise.
4957         (lshrhi3_out): Likewise.
4958         (lshrsi3_out): Likewise.
4959         (avr_out_ashlpsi3): Likewise.
4960         (avr_out_ashrpsi3): Likewise.
4961         (avr_out_lshrpsi3): Likewise.
4962         (avr_out_fract): Likewise.
4963         (avr_out_sbxx_branch): Likewise.
4964         (avr_out_round): Likewise.
4965         (avr_out_xload): Likewise.
4966         (avr_out_movmem): Likewise.
4967         (adjust_insn_length): Likewise.
4968         (avr_out_lpm): Likewise.
4969         (reg_unused_after): Likewise.
4970         (_reg_unused_after): Likewise.
4971         (avr_jump_mode): Likewise for second param.
4972         (jump_over_one_insn): Likewise for first param.
4973         (avr_final_prescan_insn): Likewise.
4974         (out_shift_with_cnt): Likewise for second param.
4976         * config/avr/avr.c (get_sequence_length): Likewise for param
4977         "insns" and local "insn".
4978         (emit_push_byte): Likewise for local "insn".
4979         (emit_push_sfr): Likewise.
4980         (avr_prologue_setup_frame): Likewise for locals "insn",
4981         "fp_plus_insns", "sp_plus_insns".
4982         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
4983         "sp_plus_insns".
4984         (avr_jump_mode): Likewise for param "insn".
4985         (avr_final_prescan_insn): Likewise.
4986         (avr_find_unused_d_reg): Likewise.
4987         (avr_out_lpm_no_lpmx): Likewise.
4988         (avr_out_lpm): Likewise.
4989         (avr_out_xload): Likewise.
4990         (output_movqi): Likewise.
4991         (output_movhi): Likewise.
4992         (out_movqi_r_mr): Likewise.
4993         (out_movhi_r_mr): Likewise.
4994         (out_movsi_r_mr): Likewise.
4995         (out_movsi_mr_r): Likewise.
4996         (output_movsisf): Likewise.
4997         (avr_out_load_psi): Likewise.
4998         (avr_out_store_psi): Likewise.
4999         (avr_out_movpsi): Likewise.
5000         (out_movqi_mr_r): Likewise.
5001         (avr_out_movhi_mr_r_xmega): Likewise.
5002         (out_movhi_mr_r): Likewise.
5003         (compare_condition): Likewise for param "insn" and local "next".
5004         (compare_sign_p): Likewise for param "insn".
5005         (compare_diff_p): Likewise.
5006         (compare_eq_p): Likewise.
5007         (avr_out_compare): Likewise.
5008         (avr_out_compare64): Likewise.
5009         (avr_out_tsthi): Likewise.
5010         (avr_out_tstpsi): Likewise.
5011         (avr_out_tstsi): Likewise.
5012         (out_shift_with_cnt): Likewise.
5013         (ashlqi3_out): Likewise.
5014         (ashlhi3_out): Likewise.
5015         (avr_out_ashlpsi3): Likewise.
5016         (ashlsi3_out): Likewise.
5017         (ashrqi3_out): Likewise.
5018         (ashrhi3_out): Likewise.
5019         (avr_out_ashrpsi3): Likewise.
5020         (ashrsi3_out): Likewise.
5021         (lshrqi3_out): Likewise.
5022         (lshrhi3_out): Likewise.
5023         (avr_out_lshrpsi3): Likewise.
5024         (lshrsi3_out): Likewise.
5025         (avr_out_fract): Likewise.
5026         (avr_out_round): Likewise.
5027         (avr_adjust_insn_length): Likewise.
5028         (reg_unused_after): Likewise.
5029         (_reg_unused_after): Likewise.
5030         (avr_compare_pattern): Likewise.
5031         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
5032         and locals "branch1", "branch2", "insn2", "jump".
5033         (avr_reorg): Likewise for local "insn".
5034         (avr_2word_insn_p): Likewise for param "insn".
5035         (jump_over_one_insn_p): Likewise.
5036         (avr_out_sbxx_branch): Likewise.
5037         (avr_out_movmem): Likewise.
5039 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5041         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
5042         param from rtx to rtx_insn *.
5043         (thumb1_final_prescan_insn): Likewise.
5044         (thumb2_final_prescan_insn): Likewise.
5046         * config/arm/arm.c (emit_set_insn): Strengthen return type from
5047         rtx to rtx_insn *.
5048         (struct minipool_node): Likewise for field "insn".
5049         (dump_minipool): Likewise for param "scan".
5050         (create_fix_barrier): Likewise for local "from".  Strengthen local
5051         "label" from rtx to rtx_code_label *.
5052         (push_minipool_barrier): Strengthen param "insn" from rtx to
5053         rtx_insn *.
5054         (push_minipool_fix): Likewise.
5055         (note_invalid_constants): Likewise.
5056         (thumb2_reorg): Likewise for local "insn".
5057         (arm_reorg): Likewise.
5058         (thumb2_final_prescan_insn): Likewise for param
5059         "insn" and local "first_insn".
5060         (arm_final_prescan_insn): Likewise for param "insn" and locals
5061         "start_insn", "this_insn".
5062         (arm_debugger_arg_offset): Likewise for param "insn".
5063         (thumb1_emit_multi_reg_push): Likewise for return type and local
5064         "insn".
5065         (thumb1_final_prescan_insn): Likewise for param "insn".
5066         (thumb_far_jump_used_p): Likewise for local "insn".
5067         (thumb1_expand_prologue): Likewise.
5068         (arm_expand_epilogue_apcs_frame): Likewise.
5069         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
5070         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
5071         from rtx to rtx_code_label *.
5072         (arm_split_atomic_op): Likewise for local "label".
5073         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
5075 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5077         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
5078         first param from rtx to rtx_insn *.
5079         (arc_verify_short): Likewise.
5080         (arc_short_long): Likewise.
5081         (arc_need_delay): Likewise.
5083         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
5084         "target_insn".
5085         (arc_ccfsm_advance): Likewise for param "insn" and locals
5086         "start_insn", "this_insn".
5087         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
5088         (arc_ccfsm_post_advance): Likewise for param "insn".
5089         (arc_next_active_insn): Likewise for return type and param "insn".
5090         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
5091         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
5092         (output_short_suffix): Likewise for local "insn".
5093         (arc_final_prescan_insn): Likewise for param "insn".  Remove
5094         now-redundant checked cast.
5095         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
5096         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
5097         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
5098         for use where lc_set became an insn.
5099         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
5100         rtx to rtx_insn *.
5101         (arc_get_insn_variants): Likewise for local "prev".
5102         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
5103         "next".
5104         (arc_predicate_delay_insns): Likewise for local "insn".
5105         (arc_pad_return): Likewise for local "prev".  For now, add a
5106         checked cast when extracting the insn from "final_sequence".
5107         (arc_short_long): Likewise for param "insn".
5108         (arc_need_delay): Likewise for param "insn" and local "next".
5109         (arc_label_align): Likewise for locals "prev", "next".
5111 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5113         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
5114         "insn" from rtx to rtx_insn *.
5115         (alpha_gp_save_rtx): Likewise for local "seq".
5116         (alpha_instantiate_decls): Likewise for local "top".
5117         (get_some_local_dynamic_name): Likewise for local "insn".
5118         (alpha_does_function_need_gp): Likewise.
5119         (set_frame_related_p): Likewise for return type and for locals
5120         "seq" and "insn".
5121         (emit_frame_store_1): Likewise for local "insn".
5122         (alpha_expand_prologue): Likewise for locals "insn", "seq".
5123         (alpha_end_function): Likewise for local "insn".
5124         (alpha_output_mi_thunk_osf): Likewise.
5125         (alphaev4_insn_pipe): Likewise for param "insn".
5126         (alphaev5_insn_pipe): Likewise.
5127         (alphaev4_next_group): Likewise for return type and param 1
5128         "insn".
5129         (alphaev5_next_group): Likewise.
5130         (alpha_align_insns_1): Likewise for return type and param 1 of
5131         callback param "next_group", and for locals "i", "next", "prev",
5132         "where", "where2", "insn".
5134 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5136         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
5137         rather than modifying the stmt.
5139 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5141         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
5142         cgraph_state conversion.
5144 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
5146         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5147         Strengthen local "insns" from rtx to rtx_insn *.
5148         (aarch64_set_frame_expr): Likewise for local "insn".
5149         (aarch64_save_or_restore_fprs): Likewise.
5150         (aarch64_save_or_restore_callee_save_registers): Likewise.
5151         (aarch64_expand_prologue): Likewise.
5152         (aarch64_expand_epilogue): Likewise.
5153         (aarch64_output_mi_thunk): Likewise.
5154         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
5155         "label2" from rtx to rtx_code_label *.
5156         (aarch64_split_atomic_op): Likewise for local "label".
5158 2014-08-25  Martin Liska  <mliska@suse.cz>
5160         * cgraph.h (symtab_node):
5161         (bool needed_p (void)): created from decide_is_symbol_needed
5162         (bool referred_to_p (void)): created from referred_to_p
5163         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
5164         * cgraph.h (cgraph_node):
5165         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
5166         (void expand (void)): created from expand_function
5167         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
5168         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
5169         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
5170         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
5171         * cgraph.h (varpool_node):
5172         (static void add (tree decl): created from varpool_add_new_variable
5173         * cgraph.h (cgraph_edge):
5174         void remove (void);
5175         (void remove_caller (void)): created from cgraph_edge_remove_caller
5176         (void remove_callee (void)): created from cgraph_edge_remove_callee
5177         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
5178           created from cgraph_set_call_stmt
5179         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
5180         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
5181         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
5182           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
5183         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
5184           created from cgraph_speculative_call_info
5185         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
5186           int freq_scale, bool update_original)): created from cgraph_clone_edge
5187         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
5188         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
5189         (bool recursive_p (void)): created from cgraph_edge_recursive_p
5190         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
5191         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
5192         (static void rebuild_references (void)): created from cgraph_rebuild_references
5193         * cgraph.h (symbol_table):
5194         (create_reference): renamed from add_reference
5195         (maybe_create_reference): renamed from maybe_add_reference
5196         (void register_symbol (symtab_node *node)): new function
5197         (void clear_asm_symbols (void)): new function
5198         (void unregister (symtab_node *node)): new function
5199         (void release_symbol (cgraph_node *node, int uid)): new function
5200         (cgraph_node * allocate_cgraph_symbol (void)): new function
5201         (void initialize (void)): created from cgraph_init
5202         (symtab_node *first_symbol (void)):new function
5203         (asm_node *first_asm_symbol (void)):new function
5204         (symtab_node *first_defined_symbol (void)):new function
5205         (varpool_node *first_variable (void)):new function
5206         (varpool_node *next_variable (varpool_node *node)):new function
5207         (varpool_node *first_static_initializer (void)):new function
5208         (varpool_node *next_static_initializer (varpool_node *node)):new function
5209         (varpool_node *first_defined_variable (void)):new function
5210         (varpool_node *next_defined_variable (varpool_node *node)):new function
5211         (cgraph_node *first_defined_function (void)):new function
5212         (cgraph_node *next_defined_function (cgraph_node *node)):new function
5213         (cgraph_node *first_function (void)):new function
5214         (cgraph_node *next_function (cgraph_node *node)):new function
5215         (cgraph_node *first_function_with_gimple_body (void)):new function
5216         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
5217         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
5218           created from symtab_remove_unreachable_nodes
5219         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
5220         (void process_new_functions (void)): created from cgraph_process_new_functions
5221         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
5222         (bool output_variables (void)): created from varpool_node::output_variables
5223         (void output_asm_statements (void)): created from output_asm_statements
5224         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
5225         (void compile (void)): created from compile
5226         (void output_weakrefs (void)): created from output_weakrefs
5227         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
5228         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
5229           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
5230         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
5231         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
5232           created from cgraph_next_function_with_gimple_body
5233         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
5234           created from cgraph_remove_edge_removal_hook
5235         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
5236           created from cgraph_add_node_removal_hook
5237         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
5238           created from cgraph_remove_node_removal_hook
5239         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
5240           created from varpool_add_node_removal_hook
5241         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
5242           created from varpool_remove_node_removal_hook
5243         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
5244           created from cgraph_add_function_insertion_hook
5245         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
5246           created from cgraph_remove_function_insertion_hook
5247         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
5248           created from varpool_add_variable_insertion_hook
5249         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
5250           created from varpool_remove_variable_insertion_hook
5251         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
5252           created from cgraph_add_edge_duplication_hook
5253         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
5254           created from cgraph_remove_edge_duplication_hook
5255         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
5256           created from cgraph_add_node_duplication_hook
5257         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
5258           created from cgraph_remove_node_duplication_hook
5259         (void call_edge_removal_hooks (cgraph_edge *e)):
5260           created from cgraph_call_edge_removal_hooks
5261         (void call_cgraph_insertion_hooks (cgraph_node *node)):
5262           created from call_function_insertion_hooks 
5263         (void call_cgraph_removal_hooks (cgraph_node *node)):
5264           created from cgraph_call_node_removal_hooks 
5265         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
5266           created from cgraph_node::call_duplication_hooks 
5267         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
5268           created from cgraph_call_edge_duplication_hooks
5269         (void call_varpool_removal_hooks (varpool_node *node)):
5270           created from varpool_call_node_removal_hooks
5271         (void call_varpool_insertion_hooks (varpool_node *node)):
5272           created from varpool_call_variable_insertion_hooks
5273         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
5274           created from insert_to_assembler_name_hash
5275         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
5276           created from unlink_from_assembler_name_hash
5277         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
5278           created from symtab_prevail_in_asm_name_hash
5279         (void symtab_initialize_asm_name_hash (void)):
5280           created from symtab_initialize_asm_name_hash
5281         (void change_decl_assembler_name (tree decl, tree name)):
5282           created from change_decl_assembler_name
5283         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
5284         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
5285           created from decl_assembler_name_hash
5286         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
5287           created from decl_assembler_name_equal
5288         (static hashval_t hash_node_by_assembler_name (const void *p)):
5289           created from hash_node_by_assembler_name
5290         (static int eq_assembler_name (const void *p1, const void *p2)):
5291           created from eq_assembler_name
5293 2014-08-25  Marek Polacek  <polacek@redhat.com>
5295         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
5297 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
5299         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
5300         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
5301         SWI1248_AVX512BW mode iterator.
5303 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
5305         PR target/62111
5306         * config/sh/predicates.md (general_extend_operand): Disable
5307         TRUNCATE before reload completes.
5309 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
5311         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
5313 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
5315         PR target/61996
5316         * config/sh/sh.opt (musermode): Allow negative form.
5317         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
5318         targets that don't support it.
5319         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
5320         Document -mno-usermode option.
5322 2014-08-24  Kito Cheng  <kito@0xlab.org>
5324         * system.h (CALLER_SAVE_PROFITABLE): Poison.
5325         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
5326         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
5327         * doc/tm.texi: Regenerate.
5329 2014-08-24  Kito Cheng  <kito@0xlab.org>
5331         * ira.c: Fix typo in comment.
5333 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
5335         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
5336         Deprecate c++1y. Change language to reflect greater confidence in C++14.
5338 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
5340         PR target/62038
5341         * config/pa/pa.c (pa_output_function_epilogue): Don't set
5342         last_address when the current function is a thunk.
5343         (pa_asm_output_mi_thunk): When we don't have named sections or they
5344         are not being used, check that thunk can reach the stub table with a
5345         short branch.
5347 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5349         * web.c (union_match_dups): Strengthen param "insn" from rtx to
5350         rtx_insn *.
5351         (pass_web::execute): Likewise for local "insn".
5353 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5355         * var-tracking.c (struct micro_operation_def): Strengthen field
5356         "insn" from rtx to rtx_insn *.
5357         (struct emit_note_data_def): Likewise.
5358         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
5359         (vt_stack_adjustments): Likewise for local "insn".
5360         (adjust_insn): Likewise for param "insn".
5361         (val_store): Likewise.
5362         (val_resolve): Likewise.
5363         (struct count_use_info): Likewise for field "insn".
5364         (log_op_type): Likewise for param "insn".
5365         (reverse_op): Likewise.
5366         (prepare_call_arguments): Likewise.
5367         (add_with_sets):  The initial param takes an insn, but we can't
5368         yet strengthen it from rtx to rtx_insn * since it's used as a
5369         cselib_record_sets_hook callback.  For now rename initial param
5370         from "insn" to "uncast_insn", and introduce a local "insn" of
5371         the stronger rtx_insn * type, with a checked cast.
5372         (compute_bb_dataflow): Strengthen local "insn" from rtx to
5373         rtx_insn *.
5374         (emit_note_insn_var_location): Likewise.
5375         (emit_notes_for_changes): Likewise.
5376         (emit_notes_for_differences): Likewise.
5377         (next_non_note_insn_var_location): Likewise for return type and
5378         for param "insn".
5379         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
5380         (vt_initialize): Likewise for local "insn".
5381         (delete_debug_insns): Likewise for locals "insn" and "next".
5383 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5385         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
5386         rtx_insn *.
5387         (mark_constant_pool): Likewise for local "insn".
5389 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5391         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
5392         rtx to rtx_insn *.
5393         (dead_debug_promote_uses): Likewise.
5394         (dead_debug_insert_temp): Likewise.
5396 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
5398         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
5399         from const_rtx to const rtx_insn *.
5400         (store_killed_after): Likewise.  Strengthen locals "last", "act"
5401         from rtx to rtx_insn *.
5402         (store_killed_before): Strengthen param "insn" from const_rtx to
5403         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
5404         (find_moveable_store): Strengthen param "insn" from rtx to
5405         rtx_insn *.
5406         (compute_store_table): Likewise for local "insn".
5407         (insert_insn_start_basic_block): Likewise for param "insn" and
5408         locals "prev", "before", "insn".
5409         (insert_store): For now, add a checked cast to rtx_insn * on the
5410         result of gen_move_insn.
5411         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
5412         to rtx_insn *.
5413         (replace_store_insn): Likewise.  For now, add a checked cast to
5414         rtx_insn * on the result of gen_move_insn.
5416 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5418         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
5419         rtx_insn *.
5420         (expand_sjlj_dispatch_table): Likewise.
5422 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5424         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
5425         "insn" from rtx to rtx_insn *.
5427 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5429         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
5430         "insn" from rtx to rtx_insn *.
5431         (dup_block_and_redirect): Likewise for param 3 "before".
5433         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
5434         from rtx to rtx_insn *.
5435         (move_insn_for_shrink_wrap): Likewise.
5436         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
5437         (dup_block_and_redirect): Likewise for param "before" and local
5438         "insn".
5439         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
5440         "end".
5441         (convert_to_simple_return): Likewise for local "start".
5443         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
5444         Strengthen local "insn" from rtx to rtx_insn *, for use when
5445         invoking requires_stack_frame_p.
5447 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5449         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
5450         rtx_insn *.
5451         (speculate_expr): Likewise for locals "orig_insn_rtx",
5452         "spec_insn_rtx".
5453         (eq_transformed_insns): Likewise for locals "i1", "i2".
5454         (check_for_new_jump): Likewise for return type and local "end".
5455         (find_new_jump): Likewise for return type and local "jump".
5456         (sel_split_edge): Likewise for local "jump".
5457         (sel_create_recovery_block): Likewise.
5458         (sel_redirect_edge_and_branch_force): Likewise.
5459         (sel_redirect_edge_and_branch): Likewise.
5461 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5463         * sel-sched.c (substitute_reg_in_expr): Strengthen local
5464         "new_insn" from rtx to rtx_insn *.
5465         (create_insn_rtx_with_rhs): Likewise for return type and for local
5466         "insn_rtx".
5467         (create_insn_rtx_with_lhs): Likewise.
5468         (create_speculation_check): Likewise for local "insn_rtx".
5469         (implicit_clobber_conflict_p): Likewise for local "insn".
5470         (get_expr_cost): Likewise.
5471         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
5472         (move_cond_jump): Likewise for locals "next", "prev", "link",
5473         "head", "from", "to".
5475 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5477         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
5478         "next" from rtx to rtx_insn *.
5479         (find_conditional_protection): Likewise for local "next".
5480         (is_conditionally_protected): Likewise for local "insn1".
5481         (is_pfree): Likewise for locals "insn1", "insn2".
5483 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5485         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
5486         from rtx to rtx_insn *.
5488         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
5489         locals "insn1", "insn2" from rtx to rtx_insn *.
5490         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
5491         locals "insn", "prev", "last_jump", "next_tail".
5492         (schedule_ebb): Likewise for params "head", "tail".
5493         (schedule_ebbs): Likewise for locals "tail", "head".
5495         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
5496         to rtx_insn on "last_insn" in one of the invocations of
5497         schedule_ebb.
5499 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5501         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
5502         "elem", "insn" from rtx to rtx_insn *.
5503         (change_spec_dep_to_hard): Likewise.
5504         (get_back_and_forw_lists): Likewise for local "con".
5505         (sd_add_dep): Likewise for locals "elem", "insn".
5506         (sd_resolve_dep): Likewise for locals "pro", "con".
5507         (sd_unresolve_dep): Likewise.
5508         (sd_delete_dep): Likewise.
5509         (chain_to_prev_insn): Likewise for local "pro".
5510         (find_inc): Likewise for locals "pro", "con".
5512 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5514         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
5515         to rtx_insn *.
5516         (reg_set_between_p): Strengthen local "insn" from const_rtx to
5517         const rtx_insn *.
5518         (modified_between_p): Strengthen local "insn" from rtx to
5519         rtx_insn *.
5520         (remove_reg_equal_equiv_notes_for_regno): Likewise.
5521         (keep_with_call_p): Strengthen local "i2" from const_rtx to
5522         const rtx_insn *.
5524 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5526         * resource.c (next_insn_no_annul): Strengthen local "next" from
5527         rtx to rtx_insn *.
5528         (mark_referenced_resources): Likewise for local "insn".
5530 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5532         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
5533         to rtx_insn *.
5534         (find_reloads): Likewise for param 1.
5535         (subst_reloads): Likewise for sole param.
5536         (find_equiv_reg): Likwise for param 2.
5537         (regno_clobbered_p): Likwise for param 2.
5538         (reload): Likewise for param 1.
5540         * caller-save.c (save_call_clobbered_regs): Strengthen local
5541         "insn" from rtx to rtx_insn *.
5542         (insert_one_insn): Likewise for local "insn".
5544         * reload.c (this_insn): Likewise for this global.
5545         (find_reloads): Likewise for param "insn".
5546         (find_reloads_toplev): Likewise.
5547         (find_reloads_address): Likewise.
5548         (subst_reg_equivs): Likewise.
5549         (update_auto_inc_notes): Likewise.
5550         (find_reloads_address_1): Likewise.
5551         (find_reloads_subreg_address): Likewise.
5552         (subst_reloads): Likewise.
5553         (find_equiv_reg): Likewise, also for local "p".
5554         (regno_clobbered_p): Likewise for param "insn".
5556         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
5557         array.
5558         (spill_reg_store): Likewise for the elements of this array.
5559         (remove_init_insns): Likewise for local "equiv_insn".
5560         (will_delete_init_insn_p): Likewise for param "insn".
5561         (reload): Likewise for param ""first" and local "insn".
5562         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
5563         rtx_insn *.
5564         (calculate_elim_costs_all_insns): Likewise.
5565         (delete_caller_save_insns): Likewise.
5566         (spill_failure): Likewise for param "insn".
5567         (delete_dead_insn): Likewise.
5568         (set_label_offsets): Likewise.
5569         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
5570         "prev_insn".
5571         (elimination_costs_in_insn): Likewise for param "insn".
5572         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
5573         when referring to an insn.
5574         (set_initial_label_offsets): Likewise.
5575         (set_offsets_for_label): Strengthen param "insn" from rtx to
5576         rtx_insn *.
5577         (init_eliminable_invariants): Likewise for param "first" and local
5578         "insn".
5579         (fixup_eh_region_note): Likewise for param "insn".
5580         (reload_as_needed): Likewise for locals "prev", "insn",
5581         "old_next", "old_prev", "next".
5582         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
5583         "last".
5584         (reload_inheritance_insn): Strengthen elements of this array from
5585         rtx to rtx_insn *.
5586         (failed_reload): Likewise for param "insn".
5587         (choose_reload_regs): Likewise for local "insn".  Replace use of
5588         NULL_RTX with NULL when referring to an insn.
5589         (input_reload_insns): Strengthen elements of this array from rtx
5590         to rtx_insn *.
5591         (other_input_address_reload_insns): Likewise for this global.
5592         (other_input_reload_insns): Likewise for this global.
5593         (input_address_reload_insns): Likwise for the elements of this
5594         array.
5595         (inpaddr_address_reload_insns): Likwise for the elements of this
5596         array.
5597         (output_reload_insns): Likewise for the elements of this array.
5598         (output_address_reload_insns): Likewise for the elements of this
5599         array.
5600         (outaddr_address_reload_insns): Likewise for the elements of this
5601         array.
5602         (operand_reload_insns): Likewise for this global.
5603         (other_operand_reload_insns): Likewise for this global.
5604         (other_output_reload_insns): Likewise for the elements of this
5605         array.
5606         (new_spill_reg_store): Likewise for the elements of this
5607         array.
5608         (emit_input_reload_insns): Likewise for locals "insn", "temp".
5609         Strengthen local "where" from rtx * to rtx_insn **.
5610         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
5611         from rtx to rtx_insn *.
5612         (do_input_reload): Likewise for local "insn".
5613         (do_output_reload): Likewise for local "insn".
5614         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
5615         (emit_insn_if_valid_for_reload): Likewise for return type and local
5616         "last".  Add checked cast to rtx_insn when returning "insn" since
5617         this has been through emit_insn.
5618         (gen_reload): Strengthen return type and locals "last", "insn", "set"
5619         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
5620         returning "insn" since it's been through
5621         emit_insn_if_valid_for_reload at this point.
5622         (delete_output_reload): Strengthen param "insn" and locals
5623         "output_reload_insn", "i2" from rtx to rtx_insn *.
5624         (delete_address_reloads): Likewise for params "dead_insn",
5625         "current_insn" and locals "prev", "next".
5626         (delete_address_reloads_1): Likewise for params "dead_insn",
5627         "current_insn" and locals "prev", "i2".
5628         (inc_for_reload): Likewise for locals "last", "add_insn".
5629         (add_auto_inc_notes): Strengthen param "insn" from rtx to
5630         rtx_insn *.
5632         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
5633         param of this duplicate of the prototype from reload.h
5635 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5637         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
5638         rtx to rtx_insn *.
5639         (regstat_bb_compute_calls_crossed): Likewise.
5641 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5643         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
5644         to rtx_insn *.
5645         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
5646         with an insn.
5647         (regrename_analyze): Strengthen local "insn" from rtx to
5648         rtx_insn *.
5649         (scan_rtx_reg): Likewise for param "insn".
5650         (scan_rtx_address): Likewise.
5651         (scan_rtx): Likewise.
5652         (restore_operands): Likewise.
5653         (record_out_operands): Likewise.
5654         (build_def_use): Likewise for local "insn".  Replace use of
5655         NULL_RTX with NULL when dealing with an insn.
5657 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5659         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
5660         * reginfo.c (reg_scan): Likewise, also for local "insn".
5661         (reg_scan_mark_refs): Likewise for param "insn".
5662         (init_subregs_of_mode): Likewise for local "insn".
5664 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5666         * regcprop.c (struct queued_debug_insn_change): Strengthen field
5667         "insn" from rtx to rtx_insn *.
5668         (replace_oldest_value_reg): Likewise for param "insn".
5669         (replace_oldest_value_addr): Likewise.
5670         (replace_oldest_value_mem): Likewise.
5671         (apply_debug_insn_changes): Likewise for local "last_insn".
5672         (copyprop_hardreg_forward_1): Likewise for local "insn".
5674 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5676         * reg-stack.c (next_flags_user): Strengthen return type and param
5677         "insn" from rtx to rtx_insn *.
5678         (straighten_stack): Likewise for param "insn".
5679         (check_asm_stack_operands): Likewise.
5680         (remove_regno_note): Likewise.
5681         (emit_pop_insn): Likewise for return type, param "insn", local
5682         "pop_insn".
5683         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
5684         "limit" from rtx to rtx_insn *.
5685         (swap_to_top): Likewise for param "insn".
5686         (move_for_stack_reg): Likewise.
5687         (move_nan_for_stack_reg): Likewise.
5688         (swap_rtx_condition): Likewise.
5689         (compare_for_stack_reg): Likewise.
5690         (subst_all_stack_regs_in_debug_insn): Likewise.
5691         (subst_stack_regs_pat): Likewise, and local "insn2".
5692         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
5693         rtx_insn *.
5694         (subst_stack_regs): Likewise.
5695         (change_stack): Likewise.
5696         (convert_regs_1): Likewise for locals "insn", "next".
5698 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5700         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
5701         rtx_insn *.
5702         (combine_set_extension): Likewise for param "curr_insn".
5703         (transform_ifelse): Likewise for param "def_insn".
5704         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
5705         from vec<rtx> * to vec<rtx_insn *> *.
5706         (is_cond_copy_insn): Likewise for param "insn".
5707         (struct ext_state): Strengthen the four vec fields from vec<rtx>
5708         to vec<rtx_insn *>.
5709         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
5710         local "def_insn" from rtx to rtx_insn *.
5711         (get_sub_rtx): Likewise for param "def_insn".
5712         (merge_def_and_ext): Likewise.
5713         (combine_reaching_defs): Likewise.
5714         (add_removable_extension): Likewise for param "insn".
5715         (find_removable_extensions): Likewise for local "insn".
5716         (find_and_remove_re): Likewise for locals "curr_insn" and
5717         "def_insn".  Strengthen locals "reinsn_del_list" and
5718         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
5720 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5722         * recog.c (split_insn): Strengthen param "insn" and locals
5723         "first", "last" from rtx to rtx_insn *.
5724         (split_all_insns): Likewise for locals "insn", "next".
5725         (split_all_insns_noflow): Likewise.
5727 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5729         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
5730         const rtx_insn *.
5731         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
5732         (debug_rtx_find): Likewise for param 1 "x".
5734         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
5735         const_rtx to const rtx_insn *.  Likewise for local "insn".
5736         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
5737         (debug_rtx_find): Likewise for param 1 "x".
5738         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
5739         from const_rtx to const rtx_insn * within the appropriate cases of
5740         the switch statement.
5742         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
5743         Strengthen local "insns" from rtx to rtx_insn * since this is
5744         passed to a call to debug_rtx_list.
5746 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5748         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
5749         to rtx_insn *.
5751         * function.c (stack_protect_epilogue): Add checked cast to
5752         rtx_insn for now when invoking predict_insn_def.
5754         * predict.c (predict_insn): Strengthen param "insn" from rtx to
5755         rtx_insn *.
5756         (predict_insn_def): Likewise.
5757         (rtl_predict_edge): Likewise for local "last_insn".
5758         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
5759         const rtx_insn *.
5760         (combine_predictions_for_insn): Strengthen param "insn" from rtx
5761         to rtx_insn *.
5762         (bb_estimate_probability_locally): Likewise for local "last_insn".
5763         (expensive_function_p): Likewise for local "insn".
5765         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
5766         local "jmp", since this is used when invoking predict_insn_def.
5768 2014-08-22  Marek Polacek  <polacek@redhat.com>
5770         PR c++/62199
5771         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
5773 2014-08-22  Marek Polacek  <polacek@redhat.com>
5775         PR c/61271
5776         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
5777         a comparison in parens.
5778         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
5779         in parens.
5781 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5783         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
5784         rtx_insn *.
5786         * cprop.c (fis_get_condition): Likewise.
5788         * postreload.c (reload_cse_regs): Likewise for param "first".
5789         (reload_cse_simplify): Likewise for param "insn".
5790         (reload_cse_regs_1): Likewise for local "insn".
5791         (reload_cse_simplify_set): Likewise for param "insn".
5792         (reload_cse_simplify_operands): Likewise.
5793         (struct reg_use): Likewise for field "insn".
5794         (reload_combine_purge_insn_uses): Likewise for param "insn".
5795         (fixup_debug_insns): Likewise for params "from", "to" and local
5796         "insn".
5797         (try_replace_in_use): Likewise for local "use_insn".
5798         (reload_combine_recognize_const_pattern): Likewise for param
5799         "insn" and locals "add_moved_after_insn", "use_insn".
5800         (reload_combine_recognize_pattern): Likewise for param "insn" and
5801         local "prev".
5802         (reload_combine): Likewise for locals "insn", "prev".
5803         (reload_combine_note_use): Likewise for param "insn".
5804         (move2add_use_add2_insn): Likewise.
5805         (move2add_use_add3_insn): Likewise.
5806         (reload_cse_move2add): Likewise, also for local "next".
5807         (move2add_note_store): Likewise for local "insn".
5809 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5811         * postreload-gcse.c (struct occr): Strengthen field "insn" from
5812         rtx to rtx_insn *.
5813         (struct unoccr): Likewise.
5814         (struct modifies_mem): Likewise.
5815         (alloc_mem): Likewise for local "insn".
5816         (insert_expr_in_table): Likewise for param "insn".
5817         (dump_expr_hash_table_entry): Likewise for local "insn".
5818         (oprs_unchanged_p): Likewise for param "insn".
5819         (load_killed_in_block_p): Likewise for local "setter".
5820         (record_last_reg_set_info): Likewise for param "insn".
5821         (record_last_reg_set_info_regno): Likewise.
5822         (record_last_mem_set_info): Likewise.
5823         (record_last_set_info): Likewise for local "last_set_insn".
5824         (record_opr_changes): Likewise for param "insn".
5825         (hash_scan_set): Likewise.
5826         (compute_hash_table): Likewise for local "insn".
5827         (get_avail_load_store_reg): Likewise for param "insn".
5828         (eliminate_partially_redundant_load): Likewise, also for locals
5829         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
5830         RTX for insns.
5831         (eliminate_partially_redundant_loads): Likewise for local "insn".
5833 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5835         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
5836         rtx to rtx_insn *.
5837         (expand_binop): Likewise for locals "entry_last", "last", "insns"
5838         (expand_twoval_unop): Likewise for locals entry_last", "last".
5839         (expand_twoval_binop): Likewise.
5840         (expand_twoval_binop_libfunc): Likewise for local "insns".
5841         (widen_leading): Likewise for local "last".
5842         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
5843         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
5844         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
5845         (expand_parity): Likewise for locals "last" and "seq".
5846         (expand_ffs): Likewise for local "seq".  Strengthen local
5847         "nonzero_label" from rtx to rtx_code_label *.
5848         (expand_absneg_bit): Strengthen local "insns" from rtx to
5849         rtx_insn *.
5850         (expand_unop_direct): Likewise for local "last".
5851         (expand_unop): Likewise for locals "last", "insns".
5852         (expand_abs_nojump): Likewise for local "last".
5853         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
5854         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
5855         rtx_insn *.
5856         (expand_copysign_absneg): Strengthen local "label" from rtx to
5857         rtx_code_label *.
5858         (expand_copysign_bit): Strengthen local "insns" from rtx to
5859         rtx_insn *.
5860         (struct no_conflict_data): Likewise for fields "first", "insn".
5861         (emit_libcall_block_1): Likewise for param "insns" and locals
5862         "next", "last", "insn".
5863         (emit_libcall_block): For now, add a checked cast to rtx_insn *
5864         on "insns" when invoking emit_libcall_block_1.  Ultimately we
5865         want to strengthen insns itself.
5866         (prepare_cmp_insn): Strengthen local "last" from rtx to
5867         rtx_insn *.
5868         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
5869         (prepare_float_lib_cmp): Likewise for local "insns".
5870         (emit_conditional_move): Likewise for local "last".
5871         (emit_conditional_add): Likewise.
5872         (have_sub2_insn): Likewise for local "seq".
5873         (expand_float): Likewise for local "insns".  Strengthen locals
5874         "label", "neglabel" from rtx to rtx_code_label *.
5875         (expand_fix): Likewise for locals "last", "insn", "insns" (to
5876         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
5877         (expand_fixed_convert): Likewise for local "insns" (to
5878         rtx_insn *).
5879         (expand_sfix_optab): Likewise for local "last".
5880         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
5881         to rtx_code_label *.
5882         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
5883         from rtx to rtx_insn *.
5884         (expand_atomic_fetch_op): Likewise for local "insn".
5885         (maybe_legitimize_operand_same_code): Likewise for local "last".
5886         (maybe_legitimize_operands): Likewise.
5888 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5890         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
5891         "insn" from rtx to rtx_insn *.
5892         (ps_rtl_insn): Likewise for return type.
5893         (doloop_register_get): Likewise for params "head", "tail" and
5894         locals "insn", "first_insn_not_to_check".
5895         (schedule_reg_move): Likewise for local "this_insn".
5896         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
5897         of gen_move_insn for now.
5898         (reset_sched_times): Strengthen local "insn" from rtx to
5899         rtx_insn *.
5900         (permute_partial_schedule): Likewise.
5901         (duplicate_insns_of_cycles): Likewise for local "u_insn".
5902         (dump_insn_location): Likewise for param "insn".
5903         (loop_canon_p): Likewise for local "insn".
5904         (sms_schedule): Likewise.
5905         (print_partial_schedule): Likewise.
5906         (ps_has_conflicts): Likewise.
5908 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5910         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
5911         "tailp" from rtx * to rtx_insn **.
5913         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
5914         from rtx to rtx_insn *.
5915         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
5916         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
5917         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
5918         rtx to rtx_insn *.
5919         * modulo-sched.c (const_iteration_count): Strengthen return type
5920         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
5921         use of NULL_RTX with NULL when working with insns.
5922         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
5923         to rtx_insn *.
5924         (sms_schedule): Likewise.
5925         * sched-rgn.c (init_ready_list): Likewise, also for locals
5926         "src_head" and "src_next_tail".
5927         (compute_block_dependences): Likewise.
5928         (free_block_dependencies): Likewise.
5929         (debug_rgn_dependencies): Likewise.
5930         (free_rgn_deps): Likewise.
5931         (compute_priorities): Likewise.
5932         (schedule_region): Likewise.
5933         * sel-sched.c (find_ebb_boundaries): Likewise.
5935         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
5936         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
5938 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5940         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
5941         from rtx to rtx_insn *.
5942         (new_seginfo): Likewise for param "insn".
5943         (create_pre_exit): Likewise for locals "last_insn",
5944         "before_return_copy", "return_copy".
5945         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
5946         "mode_set".
5948 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
5950         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
5951         from rtx to rtx_insn *.
5952         (lra_push_insn): Likewise for 1st param.
5953         (lra_push_insn_and_update_insn_regno_info): Likewise.
5954         (lra_pop_insn): Likewise for return type.
5955         (lra_invalidate_insn_data): Likewise for 1st param.
5956         (lra_set_insn_deleted): Likewise.
5957         (lra_delete_dead_insn): Likewise.
5958         (lra_process_new_insns): Likewise for first 3 params.
5959         (lra_set_insn_recog_data): Likewise for 1st param.
5960         (lra_update_insn_recog_data): Likewise.
5961         (lra_set_used_insn_alternative): Likewise.
5962         (lra_invalidate_insn_regno_info): Likewise.
5963         (lra_update_insn_regno_info): Likewise.
5964         (lra_former_scratch_operand_p): Likewise.
5965         (lra_eliminate_regs_1): Likewise.
5966         (lra_get_insn_recog_data): Likewise.
5968         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
5969         rtx to rtx_insn *.
5971         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
5972         "mv1" and "mv2".
5973         (substitute_within_insn): New.
5974         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
5975         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
5976         Replace call to "substitute" with call to substitute_within_insn.
5978         * lra-constraints.c (curr_insn): Strengthen from rtx to
5979         rtx_insn *.
5980         (get_equiv_with_elimination): Likewise for param "insn".
5981         (match_reload): Strengthen params "before" and "after" from rtx *
5982         to rtx_insn **.
5983         (emit_spill_move): Likewise for return type.  Add a checked cast
5984         to rtx_insn * on result of gen_move_insn for now.
5985         (check_and_process_move): Likewise for local "before".  Replace
5986         NULL_RTX with NULL when referring to insns.
5987         (process_addr_reg): Strengthen params "before" and "after" from
5988         rtx * to rtx_insn **.
5989         (insert_move_for_subreg): Likewise.
5990         (simplify_operand_subreg): Strengthen locals "before" and "after"
5991         from rtx to rtx_insn *.
5992         (process_address_1): Strengthen params "before" and "after" from
5993         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
5994         rtx to rtx_insn *.
5995         (process_address): Strengthen params "before" and "after" from
5996         rtx * to rtx_insn **.
5997         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
5998         (curr_insn_transform): Strengthen locals "before" and "after"
5999         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
6000         to insns.
6001         (loc_equivalence_callback): Update cast of "data", changing
6002         resulting type from rtx to rtx_insn *.
6003         (substitute_pseudo_within_insn): New.
6004         (inherit_reload_reg): Strengthen param "insn" from rtx to
6005         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
6006         NULL when referring to insns.  Add a checked cast to rtx_insn *
6007         when using usage_insn to invoke lra_update_insn_regno_info.
6008         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
6009         likewise for locals "restore", "save".  Add checked casts to
6010         rtx_insn * when using usage_insn to invoke
6011         lra_update_insn_regno_info and lra_process_new_insns.  Replace
6012         NULL_RTX with NULL when referring to insns.
6013         (split_if_necessary): Strengthen param "insn" from rtx to
6014         rtx_insn *.
6015         (update_ebb_live_info): Likewise for params "head", "tail" and local
6016         "prev_insn".
6017         (get_last_insertion_point): Likewise for return type and local "insn".
6018         (get_live_on_other_edges): Likewise for local "last".
6019         (inherit_in_ebb): Likewise for params "head", "tail" and locals
6020         "prev_insn", "next_insn", "restore".
6021         (remove_inheritance_pseudos): Likewise for local "prev_insn".
6022         (undo_optional_reloads): Likewise for local "insn".
6024         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
6025         "insn".
6026         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
6027         insns.
6028         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
6029         rtx_insn *.
6030         (spill_pseudos): Likewise for local "insn".
6031         (init_elimination): Likewise.
6032         (process_insn_for_elimination): Likewise for param "insn".
6034         * lra-lives.c (curr_insn): Likewise.;
6036         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
6037         (remove_pseudos): Likewise for param "insn".
6038         (spill_pseudos): Likewise for local "insn".
6039         (lra_final_code_change): Likewise for locals "insn", "curr".
6041         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
6042         (lra_set_insn_deleted): Likewise.
6043         (lra_delete_dead_insn): Likewise, and for local "prev".
6044         (new_insn_reg): Likewise for param "insn".
6045         (lra_set_insn_recog_data): Likewise.
6046         (lra_update_insn_recog_data): Likewise.
6047         (lra_set_used_insn_alternative): Likewise.
6048         (get_insn_freq): Likewise.
6049         (invalidate_insn_data_regno_info): Likewise.
6050         (lra_invalidate_insn_regno_info): Likewise.
6051         (lra_update_insn_regno_info): Likewise.
6052         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
6053         vec<rtx_insn *>.
6054         (lra_push_insn_1): Strengthen param "insn" from rtx to
6055         rtx_insn *.
6056         (lra_push_insn): Likewise.
6057         (lra_push_insn_and_update_insn_regno_info): Likewise.
6058         (lra_pop_insn): Likewise for return type and local "insn".
6059         (push_insns): Likewise for params "from", "to", and local "insn".
6060         (setup_sp_offset): Likewise for params "from", "last" and locals
6061         "before", "insn".
6062         (lra_process_new_insns): Likewise for params "insn", "before",
6063         "after" and local "last".
6064         (struct sloc): Likewise for field "insn".
6065         (lra_former_scratch_operand_p): Likewise for param "insn".
6066         (remove_scratches): Likewise for locals "insn", "last".
6067         (check_rtl): Likewise for local "insn".
6068         (add_auto_inc_notes): Likewise for param "insn".
6069         (update_inc_notes): Likewise for local "insn".
6070         (lra): Replace NULL_RTX with NULL when referring to insn.
6072 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6074         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
6075         to rtx_insn *.
6076         (resolve_reg_notes): Likewise.
6077         (resolve_simple_move): Likewise for return type, param "insn", and
6078         locals "insns", "minsn".
6079         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
6080         (resolve_use): Likewise.
6081         (resolve_debug): Likewise.
6082         (find_decomposable_shift_zext): Likewise.
6083         (resolve_shift_zext): Likewise for return type, param "insn", and
6084         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
6085         (decompose_multiword_subregs): Likewise for local "insn",
6086         "orig_insn", "decomposed_shift", "end".
6088 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6090         * basic-block.h (basic_block split_edge_and_insert): Strengthen
6091         param "insns" from rtx to rtx_insn *.
6093         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
6094         rtx to rtx_insn *.
6095         (struct iv_to_split): Likewise.
6096         (loop_exit_at_end_p): Likewise for local "insn".
6097         (split_edge_and_insert): Likewise for param "insns".
6098         (compare_and_jump_seq): Likewise for return type, param "cinsn",
6099         and locals "seq", "jump".
6100         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
6101         "branch_code"; update invocations of compare_and_jump_seq to
6102         eliminate NULL_RTX in favor of NULL.
6103         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
6104         rtx to rtx_insn *.
6105         (reset_debug_uses_in_loop): Likewise.
6106         (analyze_insn_to_expand_var): Likewise for param "insn".
6107         (analyze_iv_to_split_insn): Likewise.
6108         (analyze_insns_in_loop): Likewise for local "insn".
6109         (insert_base_initialization): Likewise for param
6110         "insn" and local "seq".
6111         (split_iv): Likewise for param "insn" and local "seq".
6112         (expand_var_during_unrolling): Likewise for param "insn".
6113         (insert_var_expansion_initialization): Likewise for local "seq".
6114         (combine_var_copies_in_loop_exit): Likewise.
6115         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
6116         "insn".
6117         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
6118         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
6119         "next".
6121 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6123         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
6124         rtx_insn *.
6125         (iv_analyze_result): Likewise.
6126         (iv_analyze_expr): Likewise.
6127         (biv_p): Likewise.
6129         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
6130         local "def_insn" from rtx to rtx_insn *.
6131         (get_biv_step_1): Likewise for local "insn".
6132         (iv_analyze_expr): Likewise for param "insn".
6133         (iv_analyze_def): Likewise for local "insn".
6134         (iv_analyze_op): Likewise for param "insn".
6135         (iv_analyze): Likewise.
6136         (iv_analyze_result): Likewise.
6137         (biv_p): Likewise.
6138         (suitable_set_for_replacement): Likewise.
6139         (simplify_using_initial_values): Likewise for local "insn".
6140         (iv_number_of_iterations): Likewise for param "insn".
6141         (check_simple_exit): Add checked cast to rtx_insn when invoking
6142         iv_number_of_iterations for now (until get_condition is
6143         strengthened).
6145         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
6146         "insn" from rtx to rtx_insn *.
6147         (analyze_insns_in_loop): Likewise for local "insn".
6149 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6151         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
6152         to rtx_insn *.
6153         (struct invariant): Likewise.
6154         (hash_invariant_expr_1): Likewise for param "insn".
6155         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
6156         (find_exits): Likewise for local "insn".
6157         (create_new_invariant): Likewise for param "insn".
6158         (check_dependencies): Likewise.
6159         (find_invariant_insn): Likewise.
6160         (record_uses): Likewise.
6161         (find_invariants_insn): Likewise.
6162         (find_invariants_bb): Likewise for local "insn".
6163         (get_pressure_class_and_nregs): Likewise for param "insn".
6164         (calculate_loop_reg_pressure): Likewise for local "insn".
6166 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6168         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
6169         to rtx_insn *.
6170         (add_test): Likewise for locals "seq", "jump".
6171         (doloop_modify): Likewise for locals "sequence", "jump_insn".
6173 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6175         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
6176         rtx_insn *.
6177         (rebuild_jump_labels_chain): Likewise for param "chain".
6179         * cfgexpand.c (pass_expand::execute): Add checked cast to
6180         rtx_insn * when calling rebuild_jump_labels_chain in region where
6181         we know e->insns.r is non-NULL.
6183         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
6184         rtx_insn *.
6185         (rebuild_jump_labels): Likewise.
6186         (rebuild_jump_labels_chain): Likewise for param "chain".
6187         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
6188         (init_label_info): Likewise for param "f".
6189         (maybe_propagate_label_ref): Likewise for params "jump_insn",
6190         "prev_nonjump_insn".
6191         (mark_all_labels): Likewise for param "f" and locals "insn",
6192         "prev_nonjump_insn".
6194 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6196         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
6197         from rtx to rtx_insn *insn.
6198         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
6199         (ira_add_allocno_copy): Likewise.
6200         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
6201         rtx to rtx_insn *.
6202         (ira_create_copy): Likewise.
6203         (ira_add_allocno_copy): Likewise.
6204         (create_bb_allocnos): Likewise for local "insn".
6205         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
6206         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
6207         process_regs_for_copy for rtx_insn * param.
6208         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
6209         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
6210         process_regs_for_copy for rtx_insn * param.
6211         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
6212         * ira-costs.c (record_reg_classes): Likewise for param "insn".
6213         (record_operand_costs): Likewise.
6214         (scan_one_insn): Likewise for return type, and for param "insn".
6215         (process_bb_for_costs): Likewise for local "insn".
6216         (process_bb_node_for_hard_reg_moves): Likewise.
6217         * ira-emit.c (struct move): Likewise for field "insn".
6218         (create_move): Eliminate use of NULL_RTX when dealing with an
6219         rtx_insn *.
6220         (emit_move_list): Strengthen return type and locals "result",
6221         "insn" from rtx to rtx_insn *insn.
6222         (emit_moves): Likewise for locals "insns", "tmp".
6223         (ira_emit): Likewise for local "insn".
6224         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
6225         "insn".
6226         (find_call_crossed_cheap_reg): Likewise.
6227         (process_bb_node_lives): Likewise for local "insn".
6228         * ira.c (decrease_live_ranges_number): Likewise.
6229         (compute_regs_asm_clobbered): Likewise.
6230         (build_insn_chain): Likewise.
6231         (find_moveable_pseudos): Likewise, also locals "def_insn",
6232         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
6233         to rtx_insn **.  Add a checked cast when assigning from
6234         "closest_use" into closest_uses array in a region where we know
6235         it's a non-NULL insn.
6236         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
6237         to rtx_insn *.
6238         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
6239         "last_interesting_insn", "uin".
6240         (move_unallocated_pseudos): Likewise for locals "def_insn",
6241         "move_insn", "newinsn".
6243 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6245         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
6246         Strengthen locals "done_label", "do_error" from rtx to
6247         rtx_code_label *.
6248         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
6249         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
6250         rtx_code_label *.
6251         (ubsan_expand_si_overflow_neg_check): Likewise for locals
6252         "done_label", "do_error" to rtx_code_label * and local  "last" to
6253         rtx_insn *.
6254         (ubsan_expand_si_overflow_mul_check): Likewise for locals
6255         "done_label", "do_error", "large_op0", "small_op0_large_op1",
6256         "one_small_one_large", "both_ops_large", "after_hipart_neg",
6257         "after_lopart_neg", "do_overflow", "hipart_different"  to
6258         rtx_code_label * and local  "last" to rtx_insn *.
6260 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6262         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
6263         "insn" and "move_insn" from rtx to rtx_insn *.
6265 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6267         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
6268         rtx_insn *.
6269         (cheap_bb_rtx_cost_p): Likewise.
6270         (first_active_insn): Likewise for return type and local "insn".
6271         (last_active_insn):  Likewise for return type and locals "insn",
6272         "head".
6273         (struct noce_if_info): Likewise for fields "jump", "insn_a",
6274         "insn_b".
6275         (end_ifcvt_sequence): Likewise for return type and locals "insn",
6276         "seq".
6277         (noce_try_move): Likewise for local "seq".
6278         (noce_try_store_flag): Likewise.
6279         (noce_try_store_flag_constants): Likewise.
6280         (noce_try_addcc): Likewise.
6281         (noce_try_store_flag_mask): Likewise.
6282         (noce_try_cmove): Likewise.
6283         (noce_try_minmax): Likewise.
6284         (noce_try_abs): Likewise.
6285         (noce_try_sign_mask): Likewise.
6286         (noce_try_bitop): Likewise.
6287         (noce_can_store_speculate_p): Likewise for local "insn".
6288         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
6289         seq".
6290         (check_cond_move_block): Likewise for local "insn".
6291         (cond_move_convert_if_block): Likewise.
6292         (cond_move_process_if_block): Likewise for locals "seq",
6293         "loc_insn".
6294         (noce_find_if_block): Likewise for local "jump".
6295         (merge_if_block): Likewise for local "last".
6296         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
6297         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
6298         (block_has_only_trap): Likewise for return type and local "trap".
6299         (find_if_case_1): Likewise for local "jump".
6300         (dead_or_predicable): Likewise for locals "head", "end", "jump",
6301         "insn".
6303 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6305         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
6306         "last_insn", "loop_end" from rtx to rtx_insn *.
6308         * hw-doloop.c (scan_loop): Likewise for local "insn".
6309         (discover_loop): Likewise for param "tail_insn".
6310         (discover_loops): Likewise for local "tail".
6312         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
6313         cast to rtx_insn * when assigning from an rtx local to a
6314         hwloop_info's "last_insn" field.
6316 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6318         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
6319         (add_delay_dependencies): Strengthen local "pro" from rtx to
6320         rtx_insn *.
6321         (recompute_todo_spec): Likewise.
6322         (dep_cost_1): Likewise for locals "insn", "used".
6323         (schedule_insn): Likewise for local "dbg".
6324         (schedule_insn): Likewise for locals "pro", "next".
6325         (unschedule_insns_until): Likewise for local "con".
6326         (restore_pattern): Likewise for local "next".
6327         (estimate_insn_tick): Likewise for local "pro".
6328         (resolve_dependencies): Likewise for local "next".
6329         (fix_inter_tick): Likewise.
6330         (fix_tick_ready): Likewise for local "pro".
6331         (add_to_speculative_block): Likewise for locals "check", "twin",
6332         "pro".
6333         (sched_extend_bb): Likewise for locals "end", "insn".
6334         (init_before_recovery): Likewise for local "x".
6335         (sched_create_recovery_block): Likewise for local "barrier".
6336         (create_check_block_twin): Likewise for local "pro".
6337         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
6338         "consumer".
6339         (unlink_bb_notes): Update for change to type of bb_header.
6340         Strengthen locals "prev", "label", "note", "next" from rtx to
6341         rtx_insn *.
6342         (clear_priorities): Likewise for local "pro".
6344 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6346         * gcse.c (struct occr): Strengthen field "insn" from rtx to
6347         rtx_insn *.
6348         (test_insn): Likewise for this global.
6349         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
6350         const rtx_insn *.
6351         (oprs_anticipatable_p): Likewise.
6352         (oprs_available_p): Likewise.
6353         (insert_expr_in_table): Strengthen param "insn" from  rtx to
6354         rtx_insn *.
6355         (hash_scan_set): Likewise.
6356         (hash_scan_clobber): Likewise.
6357         (hash_scan_call): Likewise.
6358         (hash_scan_insn): Likewise.
6359         (compute_hash_table_work): Likewise for local "insn".
6360         (process_insert_insn): Likewise for return type and local "pat".
6361         (insert_insn_end_basic_block): Likewise for locals "new_insn",
6362         "pat", "pat_end", "maybe_cc0_setter".
6363         (pre_edge_insert): Likewise for local "insn".
6364         (pre_insert_copy_insn): Likewise for param "insn".
6365         (pre_insert_copies): Likewise for local "insn".
6366         (struct set_data): Likewise for field "insn".
6367         (single_set_gcse): Likewise for param "insn".
6368         (gcse_emit_move_after): Likewise.
6369         (pre_delete): Likewise for local "insn".
6370         (update_bb_reg_pressure): Likewise for param "from" and local
6371         "insn".
6372         (should_hoist_expr_to_dom): Likewise for param "from".
6373         (hoist_code): Likewise for local "insn".
6374         (get_pressure_class_and_nregs): Likewise for param "insn".
6375         (calculate_bb_reg_pressure): Likewise for local "insn".
6376         (compute_ld_motion_mems): Likewise.
6378 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6380         * genpeep.c (main): Rename param back from "uncast_ins1" to
6381         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
6382         checked cast.
6384         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
6386 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
6388         PR target/62195
6389         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
6390         documentation to state it is only for VSX operations.
6392         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
6393         constraint only active if VSX.
6395         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
6396         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
6397         (lfiwzx): Likewise.
6399 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6401         * fwprop.c (single_def_use_dom_walker::before_dom_children):
6402         Strengthen local "insn" from rtx to rtx_insn *.
6403         (use_killed_between): Likewise for param "target_insn".
6404         (all_uses_available_at): Likewise for param "target_insn" and
6405         local "next".
6406         (update_df_init): Likewise for params "def_insn", "insn".
6407         (update_df): Likewise for param "insn".
6408         (try_fwprop_subst): Likewise for param "def_insn" and local
6409         "insn".
6410         (free_load_extend): Likewise for param "insn".
6411         (forward_propagate_subreg): Likewise for param "def_insn" and
6412         local "use_insn".
6413         (forward_propagate_asm): Likewise for param "def_insn" and local
6414         "use_insn".
6415         (forward_propagate_and_simplify): Likewise for param "def_insn"
6416         and local "use_insn".
6417         (forward_propagate_into): Likewise for locals "def_insn" and
6418         "use_insn".
6420 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6422         * function.c (emit_initial_value_sets): Strengthen local "seq"
6423         from rtx to rtx_insn *.
6424         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
6425         local "seq".
6426         (instantiate_virtual_regs): Likewise for local "insn".
6427         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
6428         (reorder_blocks_1): Likewise for param "insns" and local "insn".
6429         (expand_function_end): Likewise for locals "insn" and "seq".
6430         (epilogue_done): Likewise for local "insn".
6431         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
6432         "last", "trial".
6433         (reposition_prologue_and_epilogue_notes): Likewise for locals
6434         "insn", "last", "note", "first".
6435         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
6436         (pass_match_asm_constraints::execute): Likewise for local "insn".
6438 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6440         * output.h (final_scan_insn): Strengthen return type from rtx to
6441         rtx_insn *.
6442         (final_forward_branch_p): Likewise for param.
6443         (current_output_insn): Likewise for this global.
6445         * final.c (rtx debug_insn): Likewise for this variable.
6446         (current_output_insn): Likewise.
6447         (get_attr_length_1): Rename param "insn" to "uncast_insn",
6448         adding "insn" back in as an rtx_insn * with a checked cast, so
6449         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
6450         first param.
6451         (compute_alignments): Strengthen local "label" from rtx to
6452         rtx_insn *.
6453         (shorten_branches): Rename param from "first" to "uncast_first",
6454         introducing a new local rtx_insn * "first" using a checked cast to
6455         effectively strengthen "first" from rtx to rtx_insn * without
6456         affecting the type signature.  Strengthen locals "insn", "seq",
6457         "next", "label" from rtx to rtx_insn *.
6458         (change_scope): Strengthen param "orig_insn" and local "insn" from
6459         rtx to rtx_insn *.
6460         (final_start_function): Rename param from "first" to "uncast_first",
6461         introducing a new local rtx_insn * "first" using a checked cast to
6462         effectively strengthen "first" from rtx to rtx_insn * without
6463         affecting the type signature.  Strengthen local "insn" from rtx to
6464         rtx_insn *.
6465         (dump_basic_block_info): Strengthen param "insn" from rtx to
6466         rtx_insn *.
6467         (final): Rename param from "first" to "uncast_first",
6468         introducing a new local rtx_insn * "first" using a checked cast to
6469         effectively strengthen "first" from rtx to rtx_insn * without
6470         affecting the type signature.  Strengthen locals "insn", "next"
6471         from rtx to rtx_insn *.
6472         (output_alternate_entry_point): Strengthen param "insn" from rtx to
6473         rtx_insn *.
6474         (call_from_call_insn): Strengthen param "insn" from rtx to
6475         rtx_call_insn *.
6476         (final_scan_insn): Rename param from "insn" to "uncast_insn",
6477         introducing a new local rtx_insn * "insn" using a checked cast to
6478         effectively strengthen "insn" from rtx to rtx_insn * without
6479         affecting the type signature.  Strengthen return type and locals
6480         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
6481         now-redundant checked cast to rtx_insn * from both invocations of
6482         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
6483         introducing a local "call_insn" for use when invoking
6484         call_from_call_insn.
6485         (notice_source_line): Strengthen param "insn" from rtx to
6486         rtx_insn *.
6487         (leaf_function_p): Likewise for local "insn".
6488         (final_forward_branch_p): Likewise.
6489         (leaf_renumber_regs): Likewise for param "first".
6490         (rest_of_clean_state): Likewise for locals "insn" and "next".
6491         (self_recursive_call_p): Likewise for param "insn".
6492         (collect_fn_hard_reg_usage): Likewise for local "insn".
6493         (get_call_fndecl): Likewise for param "insn".
6494         (get_call_cgraph_rtl_info): Likewise.
6495         (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
6496         introducing a new local rtx_insn * "insn" using a checked cast to
6497         effectively strengthen "insn" from rtx to rtx_insn * without
6498         affecting the type signature.
6500         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
6501         cast when assigning from param "insn" to current_output_insn.
6502         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
6503         so that we can assign it back to current_output_insn.
6505 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
6507         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
6508         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
6509         atmxt540s and atmxt540sreva devices.
6510         * config/avr/avr-tables.opt: Regenerate.
6511         * config/avr/t-multilib: Regenerate.
6512         * doc/avr-mmcu.texi: Regenerate.
6514 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6516         * expr.c (convert_move): Strengthen local "insns" from rtx to
6517         rtx_insn *.
6518         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
6519         "top_label" from rtx to rtx_code_label *.
6520         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
6521         rtx_insn *.
6522         (emit_single_push_insn): Likewise for locals "prev", "last".
6523         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
6524         to rtx_code_label *.
6525         (store_constructor): Likewise for locals "loop_start", "loop_end".
6526         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
6527         rtx_insn *.
6528         (expand_expr_real_2): Likewise.
6529         (expand_expr_real_1): Strengthen local "label" from rtx to
6530         rtx_code_label *.
6532 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6534         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
6535         from rtx to rtx_insn *.
6536         (store_bit_field_1): Likewise.
6537         (extract_bit_field_1): Likewise.
6538         (expand_mult_const): Likewise for local "insns".
6539         (expmed_mult_highpart): Strengthen local "label" from rtx to
6540         rtx_code_label *.
6541         (expand_smod_pow2): Likewise.
6542         (expand_sdiv_pow2): Likewise.
6543         (expand_divmod): Strengthen locals "last", "insn" from rtx to
6544         rtx_insn *.  Strengthen locals "label", "label1", "label2",
6545         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
6546         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
6547         (emit_store_flag): Likewise.
6548         (emit_store_flag_force): Strengthen local "label" from rtx to
6549         rtx_code_label *.
6550         (do_cmp_and_jump): Likewise for param "label".
6552 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6554         * explow.c (force_reg): Strengthen local "insn" from rtx to
6555         rtx_insn *.
6556         (adjust_stack_1): Likewise.
6557         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
6558         "final_label", "available_label", "space_available" from rtx to
6559         rtx_code_label *.
6560         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
6561         (anti_adjust_stack_and_probe): Likewise.
6563 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6565         * except.h (sjlj_emit_function_exit_after): Strengthen param
6566         "after" from rtx to rtx_insn *.  This is only called with
6567         result of get_last_insn (in function.c) so type-change should be
6568         self-contained.
6570         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
6571         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
6572         to rtx_insn *.  These fields are only used from except.c so this
6573         type-change should be self-contained to this patch.
6575         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
6576         local "last" from rtx to rtx_insn *.
6577         (dw2_build_landing_pads): Likewise for local "seq".
6578         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
6579         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
6580         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
6581         rtx to rtx_insn *.
6582         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
6583         to rtx_insn *.
6584         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
6585         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
6586         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
6587         referring to an insn.  Strengthen local "dispatch_label" from
6588         rtx to rtx_code_label *.
6589         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
6590         rtx_insn *.
6591         (expand_eh_return): Strengthen local "around_label" from
6592         rtx to rtx_code_label *.
6593         (convert_to_eh_region_ranges): Strengthen locals "iter",
6594         "last_action_insn", "first_no_action_insn",
6595         "first_no_action_insn_before_switch",
6596         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
6598 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6600         * dwarf2out.c (last_var_location_insn): Strengthen this variable
6601         from rtx to rtx_insn *.
6602         (cached_next_real_insn): Likewise.
6603         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
6604         working with insns.
6605         (dwarf2out_var_location): Strengthen locals "next_real",
6606         "next_note", "expected_next_loc_note", "last_start", "insn" from
6607         rtx to rtx_insn *.
6609 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6611         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
6612         from rtx to rtx_insn *.
6613         (create_pseudo_cfg): Likewise for local "insn".
6615 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6617         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
6618         from rtx to rtx_insn *.
6619         (df_bb_regno_last_def_find): Likewise.
6621         * df-problems.c (df_rd_bb_local_compute): Likewise.
6622         (df_lr_bb_local_compute): Likewise.
6623         (df_live_bb_local_compute): Likewise.
6624         (df_chain_remove_problem): Likewise.
6625         (df_chain_create_bb): Likewise.
6626         (df_word_lr_bb_local_compute): Likewise.
6627         (df_remove_dead_eq_notes): Likewise for param "insn".
6628         (df_note_bb_compute): Likewise for local "insn".
6629         (simulate_backwards_to_point): Likewise.
6630         (df_md_bb_local_compute): Likewise.
6632         * df-scan.c (df_scan_free_bb_info): Likewise.
6633         (df_scan_start_dump): Likewise.
6634         (df_scan_start_block): Likewise.
6635         (df_install_ref_incremental): Likewise for local "insn".
6636         (df_insn_rescan_all): Likewise.
6637         (df_reorganize_refs_by_reg_by_insn): Likewise.
6638         (df_reorganize_refs_by_insn_bb): Likewise.
6639         (df_recompute_luids): Likewise.
6640         (df_bb_refs_record): Likewise.
6641         (df_update_entry_exit_and_calls): Likewise.
6642         (df_bb_verify): Likewise.
6644 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6646         * ddg.h (struct ddg_node): Strengthen fields "insn" and
6647         "first_note" from rtx to rtx_insn *.
6648         (get_node_of_insn): Likewise for param 2 "insn".
6649         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
6651         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
6652         rtx_insn *.
6653         (mem_write_insn_p): Likewise.
6654         (mem_access_insn_p): Likewise.
6655         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
6656         (def_has_ccmode_p): Likewise for param "insn".
6657         (add_cross_iteration_register_deps): Likewise for locals
6658         "def_insn" and "use_insn".
6659         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
6660         (build_intra_loop_deps): Likewise for local "src_insn".
6661         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
6662         to rtx_insn *.
6663         (get_node_of_insn): Likewise for param "insn".
6665 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6667         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
6668         (deletable_insn_p): Strengthen param "insn" from rtx to
6669         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
6670         find_call_stack_args, since this is guarded by CALL_P (insn).
6671         (marked_insn_p): Strengthen param "insn" from rtx to
6672         rtx_insn *.
6673         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
6674         invoking find_call_stack_args, since this is guarded by
6675         CALL_P (insn).
6676         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
6677         rtx_insn *; we know this is an insn since this was called by
6678         mark_nonreg_stores.
6679         (mark_nonreg_stores_2): Likewise.
6680         (mark_nonreg_stores): Strengthen param "insn" from rtx to
6681         rtx_insn *.
6682         (find_call_stack_args): Strengthen param "call_insn" from rtx to
6683         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
6684         to rtx_insn *.
6685         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
6686         from rtx to rtx_insn *.
6687         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
6688         "next", "ref_insn".
6689         (delete_unmarked_insns): Likewise for locals "insn", "next".
6690         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
6691         (mark_reg_dependencies): Likewise for param "insn".
6692         (rest_of_handle_ud_dce): Likewise for local "insn".
6693         (word_dce_process_block): Likewise.
6694         (dce_process_block): Likewise.
6696 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6698         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
6699         from rtx to rtx_insn *.
6700         (struct change_cc_mode_args): Likewise for field "insn".
6701         (this_insn): Strengthen from rtx to rtx_insn *.
6702         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
6703         with insn.
6704         (validate_canon_reg): Strengthen param "insn" from rtx to
6705         rtx_insn *.
6706         (canon_reg): Likewise.
6707         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
6708         dealing with insn.
6709         (record_jump_equiv): Strengthen param "insn" from rtx to
6710         rtx_insn *.
6711         (try_back_substitute_reg): Likewise, also for locals "prev",
6712         "bb_head".
6713         (find_sets_in_insn): Likewise for param "insn".
6714         (canonicalize_insn): Likewise.
6715         (cse_insn): Likewise.  Add a checked cast.
6716         (invalidate_from_clobbers): Likewise for param "insn".
6717         (invalidate_from_sets_and_clobbers): Likewise.
6718         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
6719         dealing with insn.
6720         (cse_prescan_path): Strengthen local "insn" from rtx to
6721         rtx_insn *.
6722         (cse_extended_basic_block): Likewise for locals "insn" and
6723         "prev_insn".
6724         (cse_main): Likewise for param "f".
6725         (check_for_label_ref): Likewise for local "insn".
6726         (set_live_p): Likewise for second param ("insn").
6727         (insn_live_p): Likewise for first param ("insn") and for local
6728         "next".
6729         (cse_change_cc_mode_insn): Likewise for first param "insn".
6730         (cse_change_cc_mode_insns): Likewise for first and second params
6731         "start" and "end".
6732         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
6733         and "end".
6734         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
6735         "cc_src_insn".
6737 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6738             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6739             Anna Tikhonova  <anna.tikhonova@intel.com>
6740             Ilya Tocar  <ilya.tocar@intel.com>
6741             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6742             Ilya Verbin  <ilya.verbin@intel.com>
6743             Kirill Yukhin  <kirill.yukhin@intel.com>
6744             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6746         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
6747         New.
6748         * config/i386/sse.md
6749         (define_mode_iterator VI248_AVX2): Delete.
6750         (define_mode_iterator VI2_AVX2_AVX512BW): New.
6751         (define_mode_iterator VI48_AVX2): Ditto.
6752         (define_insn <shift_insn><mode>3): Delete.
6753         (define_insn "<shift_insn><mode>3<mask_name>" with
6754         VI2_AVX2_AVX512BW): New.
6755         (define_insn "<shift_insn><mode>3<mask_name>" with
6756         VI48_AVX2): Ditto.
6758 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6759             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6760             Anna Tikhonova  <anna.tikhonova@intel.com>
6761             Ilya Tocar  <ilya.tocar@intel.com>
6762             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6763             Ilya Verbin  <ilya.verbin@intel.com>
6764             Kirill Yukhin  <kirill.yukhin@intel.com>
6765             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6767         * config/i386/sse.md
6768         (define_mode_iterator VI4F_BRCST32x2): New.
6769         (define_mode_attr 64x2_mode): Ditto.
6770         (define_mode_attr 32x2mode): Ditto.
6771         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
6772         with VI4F_BRCST32x2): Ditto.
6773         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
6774         with V16FI mode iterator): Ditto.
6775         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
6776         with V16FI): Ditto.
6777         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
6778         with VI8F_BRCST64x2): Ditto.
6780 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6781             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6782             Anna Tikhonova  <anna.tikhonova@intel.com>
6783             Ilya Tocar  <ilya.tocar@intel.com>
6784             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6785             Ilya Verbin  <ilya.verbin@intel.com>
6786             Kirill Yukhin  <kirill.yukhin@intel.com>
6787             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6789         * config/i386/sse.md
6790         (define_mode_iterator VI8_AVX512VL): New.
6791         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
6793 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
6795         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
6796         (define_mode_iterator V48_AVX512VL): New.
6797         (define_mode_iterator V12_AVX512VL): Ditto.
6798         (define_insn <avx512>_load<mode>_mask): Split into two similar
6799         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
6800         Refactor output template.
6801         (define_insn "<avx512>_store<mode>_mask"): Ditto.
6803 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6805         * cprop.c (struct occr): Strengthen field "insn" from rtx to
6806         rtx_insn *.
6807         (reg_available_p): Likewise for param "insn".
6808         (insert_set_in_table): Likewise.
6809         (hash_scan_set): Likewise.
6810         (hash_scan_insn): Likewise.
6811         (make_set_regs_unavailable): Likewise.
6812         (compute_hash_table_work): Likewise for local "insn".
6813         (reg_not_set_p): Strengthen param "insn" from const_rtx to
6814         const rtx_insn *.
6815         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
6816         (try_replace_reg): Likewise.
6817         (find_avail_set): Likewise.
6818         (cprop_jump): Likewise for params "setcc", "jump".
6819         (constprop_register): Likewise for param "insn".
6820         (cprop_insn): Likewise.
6821         (do_local_cprop): Likewise.
6822         (local_cprop_pass): Likewise for local "insn".
6823         (bypass_block): Likewise for params "setcc" and "jump".
6824         (bypass_conditional_jumps): Likewise for locals "setcc" and
6825         "insn".
6826         (one_cprop_pass): Likewise for local "insn".
6828 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6830         * compare-elim.c (struct comparison_use): Strengthen field "insn"
6831         from rtx to rtx_insn *.
6832         (struct comparison): Likewise, also for field "prev_clobber".
6833         (conforming_compare): Likewise for param "insn".
6834         (arithmetic_flags_clobber_p): Likewise.
6835         (find_flags_uses_in_insn): Likewise.
6836         (find_comparison_dom_walker::before_dom_children): Likewise for
6837         locals "insn", "next", "last_clobber".
6838         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
6840 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
6842         * combine-stack-adj.c (struct csa_reflist): Strengthen field
6843         "insn" from rtx to rtx_insn *.
6844         (single_set_for_csa): Likewise for param "insn".
6845         (record_one_stack_ref): Likewise.
6846         (try_apply_stack_adjustment): Likewise.
6847         (struct record_stack_refs_data): Likewise for field "insn".
6848         (maybe_move_args_size_note): Likewise for params "last" and "insn".
6849         (prev_active_insn_bb): Likewise for return type and param "insn".
6850         (next_active_insn_bb): Likewise.
6851         (force_move_args_size_note): Likewise for params "prev" and "last"
6852         and locals "test", "next_candidate", "prev_candidate".
6853         (combine_stack_adjustments_for_block): Strengthen locals
6854         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
6855         rtx_insn *.
6857 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6859         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
6860         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
6861         (subst_insn): Likewise for this variable.
6862         (added_links_insn): Likewise.
6863         (struct insn_link): Likewise for field "insn".
6864         (alloc_insn_link): Likewise for param "insn".
6865         (struct undobuf): Likewise for field "other_insn".
6866         (find_single_use): Likewise for param "insn" and local "next".
6867         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
6868         (delete_noop_moves): Likewise for locals "insn", "next".
6869         (create_log_links): Likewise for locals "insn", "use_insn".
6870         Strengthen local "next_use" from rtx * to rtx_insn **.
6871         (insn_a_feeds_b): Likewise for params "a", "b".
6872         (combine_instructions): Likewise for param "f" and locals "insn",
6873         "next", "prev", "first", "last_combined_insn", "link", "link1",
6874         "temp".  Replace use of NULL_RTX with NULL when referring to
6875         insns.
6876         (setup_incoming_promotions): Likewise for param "first"
6877         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
6878         (can_combine_p): Likewise for params "insn", "i3", "pred",
6879         "pred2", "succ", "succ2" and for local "p".
6880         (combinable_i3pat): Likewise for param "i3".
6881         (cant_combine_insn_p): Likewise for param "insn".
6882         (likely_spilled_retval_p): Likewise.
6883         (adjust_for_new_dest): Likewise.
6884         (update_cfg_for_uncondjump): Likewise, also for local "insn".
6885         (try_combine): Likewise for return type and for params "i3", "i2",
6886         "i1", "i0", "last_combined_insn", and for locals "insn",
6887         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
6888         "i0_insn".  Eliminate local "tem" in favor of new locals
6889         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
6890         checked cast for now to rtx_insn * on the return type of
6891         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
6892         insns.
6893         (find_split_point): Strengthen param "insn" from rtx to
6894         rtx_insn *.
6895         (simplify_set): Likewise for local "other_insn".
6896         (recog_for_combine): Likewise for param "insn".
6897         (record_value_for_reg): Likewise.
6898         (record_dead_and_set_regs_1): Likewise for local
6899         "record_dead_insn".
6900         (record_dead_and_set_regs): Likewise for param "insn".
6901         (record_promoted_value): Likewise.
6902         (check_promoted_subreg): Likewise.
6903         (get_last_value_validate): Likewise.
6904         (reg_dead_at_p): Likewise.
6905         (move_deaths): Likewise for param "to_insn".
6906         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
6907         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
6908         in favor of new locals "tem_note" and "tem_insn", the latter being
6909         an rtx_insn *.
6910         (distribute_links): Strengthen locals "place", "insn" from rtx to
6911         rtx_insn *.
6913 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6915         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
6916         than a const_rtx.
6917         (can_delete_label_p): Require a const rtx_code_label * rather than
6918         a const_rtx.
6919         (delete_insn): Add checked cast to rtx_code_label * when we know
6920         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
6921         rtx to rtx_insn *.
6922         (delete_insn_chain): Strengthen locals "prev" and "current" from
6923         rtx to rtx_insn *.  Add a checked cast when assigning from
6924         "finish" (strengthening the params will come later).  Add a
6925         checked cast to rtx_note * in region where we know
6926         NOTE_P (current).
6927         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
6928         rtx_insn *.
6929         (compute_bb_for_insn): Likewise.
6930         (free_bb_for_insn): Likewise for local "insn".
6931         (compute_bb_for_insn): Likewise.
6932         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
6933         local "insn" from rtx to rtx_insn *
6934         (flow_active_insn_p): Require a const rtx_insn * rather than a
6935         const_rtx.
6936         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
6937         rtx_insn *.
6938         (can_fallthru): Likewise for locals "insn" and "insn2".
6939         (bb_note): Likewise for local "note".
6940         (first_insn_after_basic_block_note): Likewise for local "note" and
6941         for return type.
6942         (rtl_split_block): Likewise for locals "insn" and "next".
6943         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
6944         "end".
6945         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
6946         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
6947         "prev", "tmp".
6948         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
6949         them), "kill_from", "barrier", "new_insn".
6950         (patch_jump_insn): Likewise for params "insn", "old_label".
6951         (redirect_branch_edge): Likewise for locals "old_label", "insn".
6952         (force_nonfallthru_and_redirect): Likewise for locals "insn",
6953         "old_label", "new_label".
6954         (rtl_tidy_fallthru_edge): Likewise for local "q".
6955         (rtl_split_edge): Likewise for locals "before", "last".
6956         (commit_one_edge_insertion): Likewise for locals "before",
6957         "after", "insns", "tmp", "last", adding a checked cast where
6958         currently necessary.
6959         (commit_edge_insertions): Likewise.
6960         (rtl_dump_bb): Likewise for locals "insn", "last".
6961         (print_rtl_with_bb): Likewise for local "x".
6962         (rtl_verify_bb_insns): Likewise for local "x".
6963         (rtl_verify_bb_pointers): Likewise for local "insn".
6964         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
6965         "head", "end".
6966         (rtl_verify_fallthru): Likewise for local "insn".
6967         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
6968         (purge_dead_edges): Likewise for local "insn".
6969         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
6970         (skip_insns_after_block): Likewise for return type and for locals
6971         "insn", "last_insn", "next_head", "prev".
6972         (record_effective_endpoints): Likewise for locals "next_insn",
6973         "insn", "end".
6974         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
6975         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
6976         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
6977         (duplicate_insn_chain): For now, add checked cast from rtx to
6978         rtx_insn * when returning insn.
6979         (cfg_layout_duplicate_bb): Likewise for local "insn".
6980         (cfg_layout_delete_block): Likewise for locals "insn", "next",
6981         "prev", "remaints".
6982         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
6983         (rtl_block_empty_p): Likewise.
6984         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
6985         "split_point", "last".
6986         (rtl_block_ends_with_call_p): Likewise for local "insn".
6987         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
6988         const rtx_insn *.
6989         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
6990         "split_at_insn" from rtx to rtx_insn *.
6991         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
6992         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
6993         to const rtx_insn *.
6994         (rtl_account_profile_record): Likewise.
6996 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
6998         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
6999         rtx to rtx_insn *.
7000         (average_num_loop_insns): Likewise.
7001         (init_set_costs): Likewise for local "seq".
7002         (seq_cost): Likewise for param "seq", from const_rtx to const
7003         rtx_insn *.
7005 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7007         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
7008         rtx to rtx_insn *.
7010 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7012         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
7013         "f1" and "f2" from rtx * to rtx_insn **.
7014         (flow_find_head_matching_sequence): Likewise.
7016         * cfgcleanup.c (try_simplify_condjump): Strengthen local
7017         "cbranch_insn" from rtx to rtx_insn *.
7018         (thread_jump): Likewise for local "insn".
7019         (try_forward_edges): Likewise for local "last".
7020         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
7021         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
7022         "real_b_end".
7023         (can_replace_by): Likewise for params "i1", "i2".
7024         (old_insns_match_p): Likewise.
7025         (merge_notes): Likewise.
7026         (walk_to_nondebug_insn): Likewise for param "i1".
7027         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
7028         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
7029         "afterlast1", "afterlast2" from rtx to rtx_insn *.
7030         (flow_find_head_matching_sequence): Strengthen params "f1" and
7031         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
7032         "last1", "last2", "beforelast1", "beforelast2" from rtx to
7033         rtx_insn *.
7034         (outgoing_edges_match): Likewise for locals "last1", "last2".
7035         (try_crossjump_to_edge): Likewise for local "insn".
7036         Replace call to for_each_rtx with for_each_rtx_in_insn.
7038         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
7039         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
7040         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
7041         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
7042         (try_optimize_cfg): Strengthen local "last" from rtx to
7043         rtx_insn *.
7044         (delete_dead_jumptables): Likewise for locals "insn", "next",
7045         "label".
7047         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
7048         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
7049         "rtx else_first_tail", to reflect the basic-block.h changes above.
7051 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7053         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
7054         rtx_insn *.
7055         (purge_dead_tablejump_edges): Likewise.
7056         (find_bb_boundaries): Likewise for locals "insn", "end",
7057         "flow_transfer_insn".
7059 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7061         * caller-save.c (save_call_clobbered_regs): Strengthen locals
7062         "ins" and "prev" from rtx to rtx_insn *.
7064 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7066         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
7067         rtx_insn *.
7068         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
7069         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
7070         "scan_start".
7071         (load_register_parameters): Likewise for local "before_arg".
7072         (check_sibcall_argument_overlap): Likewise for param "insn".
7073         (expand_call): Likewise for locals "normal_call_insns",
7074         "tail_call_insns", "insns", "before_call", "after_args",
7075         "before_arg", "last", "prev".  Strengthen one of the "last" from
7076         rtx to rtx_call_insn *.
7077         (fixup_tail_calls): Strengthen local "insn" from rtx to
7078         rtx_insn *.
7079         (emit_library_call_value_1): Likewise for locals "before_call" and
7080         "last".
7082 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7084         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
7085         and "last" from rtx to rtx_insn *.
7086         (expand_builtin_nonlocal_goto): Likewise for local "insn".
7087         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
7088         rtx_call_insn *.
7089         (expand_errno_check): Strengthen local "lab" from rtx to
7090         rtx_code_label *.
7091         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
7092         rtx_insn *.
7093         (expand_builtin_mathfn_2): Likewise.
7094         (expand_builtin_mathfn_ternary): Likewise.
7095         (expand_builtin_mathfn_3): Likewise.
7096         (expand_builtin_interclass_mathfn): Likewise for local "last".
7097         (expand_builtin_int_roundingfn): Likewise for local "insns".
7098         (expand_builtin_int_roundingfn_2): Likewise.
7099         (expand_builtin_strlen): Likewise for local "before_strlen".
7100         (expand_builtin_strncmp): Likewise for local "seq".
7101         (expand_builtin_signbit): Likewise for local "last".
7102         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
7103         from rtx to rtx_code_label *.
7104         (expand_stack_restore):  Strengthen local "prev" from rtx to
7105         rtx_insn *.
7107 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7109         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
7110         to rtx_insn *.
7111         (struct btr_def_s): Likewise.
7112         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
7113         const rtx_insn *.
7114         (add_btr_def): Likewise.
7115         (new_btr_user): Likewise.
7116         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
7117         rtx to rtx_insn *.
7118         (link_btr_uses): Likewise.
7119         (move_btr_def): Likewise for locals "insp", "old_insn",
7120         "new_insn".  Add checked cast to rtx_insn * for now on result of
7121         gen_move_insn.
7122         (can_move_up): Strengthen param "insn" from const_rtx to
7123         const rtx_insn *.
7125 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7127         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
7128         rtx_insn *.
7129         (get_uncond_jump_length): Likewise for locals "label", "jump".
7130         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
7131         "jump", "insn".
7132         (add_labels_and_missing_jumps): Likewise for local "new_jump".
7133         (fix_up_fall_thru_edges): Likewise for local "old_jump".
7134         (find_jump_block): Likewise for local "insn".
7135         (fix_crossing_conditional_branches): Likewise for locals
7136         "old_jump", "new_jump".
7137         (fix_crossing_unconditional_branches): Likewise for locals
7138         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
7139         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
7141 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7143         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
7144         rtx to rtx_insn *.
7145         (struct mem_insn): Likewise for field "insn".
7146         (reg_next_use): Strengthen from rtx * to rtx_insn **.
7147         (reg_next_inc_use): Likewise.
7148         (reg_next_def): Likewise.
7149         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
7150         from rtx to rtx_insn *.
7151         (move_insn_before): Likewise for param "next_insn" and local "insns".
7152         (attempt_change): Likewise for local "mov_insn".
7153         (try_merge): Likewise for param "last_insn".
7154         (get_next_ref): Likewise for return type and local "insn".
7155         Strengthen param "next_array" from rtx * to rtx_insn **.
7156         (parse_add_or_inc): Strengthen param "insn" from rtx to
7157         rtx_insn *.
7158         (find_inc): Likewise for locals "insn" and "other_insn" (three of
7159         the latter).
7160         (merge_in_block): Likewise for locals "insn", "curr",
7161         "other_insn".
7162         (pass_inc_dec::execute): Update allocations of the arrays to
7163         reflect the stronger types.
7165 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7167         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
7168         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
7169         from rtx to rtx_code_label *.
7171 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7173         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
7174         to rtx_insn *.
7176 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7178         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
7179         generated a warning and prevented bootstrapping the compiler.
7181 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7183         * rtl.h (delete_related_insns): Strengthen return type from rtx to
7184         rtx_insn *.
7186         * jump.c (delete_related_insns): Likewise, also for locals "next"
7187         and "prev".
7189 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7191         * genautomata.c (output_internal_insn_latency_func): When writing
7192         the function "internal_insn_latency" to insn-automata.c,
7193         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
7194         allowing the optional guard function of (define_bypass) clauses to
7195         expect a pair of rtx_insn *, rather than a pair of rtx.
7196         (output_insn_latency_func): When writing the function
7197         "insn_latency", add an "uncast_" prefix to params "insn" and
7198         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
7199         using checked casts from the params, thus enabling the above
7200         change to the generated "internal_insn_latency" function.
7202 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
7204         PR tree-optimization/62091
7205         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
7206         handle correctly arrays.
7207         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
7208         inheritance binfos.
7209         (record_known_type): Walk into inner type.
7210         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
7211         condition on no type changes.
7213 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7215         * genattrtab.c (write_attr_get): Within the generated get_attr_
7216         functions, rename param "insn" to "uncast_insn" and reintroduce
7217         "insn" as an local rtx_insn * using a checked cast, so that "insn"
7218         is an rtx_insn * within insn-attrtab.c
7220 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7222         * output.h (peephole): Strengthen return type from rtx to
7223         rtx_insn *.
7224         * rtl.h (delete_for_peephole): Likewise for both params.
7225         * genpeep.c (main): In generated "peephole" function, strengthen
7226         return type and local "insn" from rtx to rtx_insn *.  For now,
7227         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
7228         rtx_insn *, with a checked cast.
7229         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
7230         locals "insn", "next", "prev" from rtx to rtx_insn *.
7232 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
7234         PR tree-optimization/62112
7235         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
7236         * gimple-iterator.h (gsi_replace): Return bool.
7237         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
7238         moved from ref_may_alias_global_p.
7239         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
7240         New overloads.
7241         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
7242         (stmt_kills_ref_p_1): Rename...
7243         (stmt_kills_ref_p): ... to this.
7244         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
7245         stmt_kills_ref_p): Declare.
7246         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
7247         Move the self-assignment case...
7248         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
7250 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7252         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
7254         * emit-rtl.c (try_split): Likewise, also for locals "before" and
7255         "after".  For now, don't strengthen param "trial", which requires
7256         adding checked casts when returning it.
7258 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7260         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
7261         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
7262         "var_location" hook from rtx to rtx_insn *.
7263         (debug_nothing_rtx): Delete in favor of...
7264         (debug_nothing_rtx_code_label): New prototype.
7265         (debug_nothing_rtx_rtx): Delete unused prototype.
7266         (debug_nothing_rtx_insn): New prototype.
7268         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
7269         invoking debug_hooks->var_location (in two places, one in a NOTE
7270         case of a switch statement, the other guarded by a CALL_P
7271         conditional.  Add checked cast to rtx_code_label * when invoking
7272         debug_hooks->label (within CODE_LABEL case of switch statement).
7274         * dbxout.c (dbx_debug_hooks): Update "label" hook from
7275         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
7276         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
7277         (xcoff_debug_hooks): Likewise.
7278         * debug.c (do_nothing_debug_hooks): Likewise.
7279         (debug_nothing_rtx): Delete in favor of...
7280         (debug_nothing_rtx_insn): New function.
7281         (debug_nothing_rtx_rtx): Delete unused function.
7282         (debug_nothing_rtx_code_label): New function.
7283         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
7284         debug_nothing_rtx to debug_nothing_rtx_code_label.
7285         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
7286         to rtx_insn *.
7287         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
7288         debug_nothing_rtx to debug_nothing_rtx_insn.
7289         (sdbout_label): Strengthen param "insn" from rtx to
7290         rtx_code_label *.
7291         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
7292         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
7293         "var_location" hook from debug_nothing_rtx to
7294         debug_nothing_rtx_insn.
7296 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7298         * recog.h (insn_output_fn): Update this function typedef to match
7299         the changes below to the generated output functions, strengthening
7300         the 2nd param from rtx to rtx_insn *.
7302         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
7303         insn when invoking an output function, to match the new signature
7304         of insn_output_fn with a stronger second param.
7306         * genconditions.c (write_header): In the generated code for
7307         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
7308         to match the other changes in this patch.
7310         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
7311         the generated "gen_" functions from rtx to rtx_insn * within their
7312         implementations.
7314         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
7315         the subfunctions within the generated "recog_", "split", "peephole2"
7316         function trees from rtx to rtx_insn *.  For now, the top-level
7317         generated functions ("recog", "split", "peephole2") continue to
7318         take a plain rtx for "insn", to avoid introducing dependencies on
7319         other patches.  Rename this 2nd param from "insn" to
7320         "uncast_insn", and reintroduce "insn" as a local variable of type
7321         rtx_insn *, initialized at the top of the generated function with
7322         a checked cast on "uncast_insn".
7323         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
7324         the generated "gen_" functions from rtx to rtx_insn * within their
7325         prototypes.
7327         * genoutput.c (process_template): Strengthen the 2nd param within
7328         the generated "output_" functions "insn" from rtx to rtx_insn *.
7330 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
7332         * tree-profile.c (tree_profiling): Skip external functions
7333         when doing coverage instrumentation.
7334         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
7336 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7338         * config/rs6000/altivec.h (vec_cpsgn): New #define.
7339         (vec_mergee): Likewise.
7340         (vec_mergeo): Likewise.
7341         (vec_cntlz): Likewise.
7342         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
7343         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
7344         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
7345         VMRGEW, and VMRGOW.
7346         * doc/extend.texi: Document various forms of vec_cpsgn,
7347         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
7348         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
7349         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
7350         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
7351         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
7353 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7355         * config/rs6000/rs6000.c (context.h): New include.
7356         (tree-pass.h): Likewise.
7357         (make_pass_analyze_swaps): New decl.
7358         (rs6000_option_override): Register pass_analyze_swaps.
7359         (swap_web_entry): New subsclass of web_entry_base (df.h).
7360         (special_handling_values): New enum.
7361         (union_defs): New function.
7362         (union_uses): Likewise.
7363         (insn_is_load_p): Likewise.
7364         (insn_is_store_p): Likewise.
7365         (insn_is_swap_p): Likewise.
7366         (rtx_is_swappable_p): Likewise.
7367         (insn_is_swappable_p): Likewise.
7368         (chain_purpose): New enum.
7369         (chain_contains_only_swaps): New function.
7370         (mark_swaps_for_removal): Likewise.
7371         (swap_const_vector_halves): Likewise.
7372         (adjust_subreg_index): Likewise.
7373         (permute_load): Likewise.
7374         (permute_store): Likewise.
7375         (handle_special_swappables): Likewise.
7376         (replace_swap_with_copy): Likewise.
7377         (dump_swap_insn_table): Likewise.
7378         (rs6000_analyze_swaps): Likewise.
7379         (pass_data_analyze_swaps): New pass_data.
7380         (pass_analyze_swaps): New rtl_opt_pass.
7381         (make_pass_analyze_swaps): New function.
7382         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
7384 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7386         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
7387         type from rtx to rtx_insn *.
7388         (create_copy_of_insn_rtx): Likewise.
7389         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
7390         (create_copy_of_insn_rtx): Likewise, also for local "res".
7392 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7394         * rtl.h (find_first_parameter_load): Strengthen return type from
7395         rtx to rtx_insn *.
7396         * rtlanal.c (find_first_parameter_load): Strengthen return type
7397         from rtx to rtx_insn *.  Add checked cast for now, to postpone
7398         strengthening the params.
7400 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7402         PR fortran/44054
7403         * diagnostic.c: Set default caret.
7404         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
7405         line is needed.
7406         * diagnostic.h (struct diagnostic_context):
7408 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7410         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
7411         (sel_bb_head): Strengthen return type insn_t (currently just an
7412         rtx) to rtx_insn *.
7413         (sel_bb_end): Likewise.
7415         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
7416         (sel_bb_head): Strengthen return type and local "head" from
7417         insn_t (currently just an rtx) to rtx_insn *.
7418         (sel_bb_end): Likewise for return type.
7419         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
7420         working with insn.
7422 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
7424         * basic-block.h (get_last_bb_insn): Strengthen return type from
7425         rtx to rtx_insn *.
7426         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
7427         end".
7429 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7431         PR fortran/44054
7432         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
7433          to here ...
7434         (diagnostic_report_diagnostic): ... from here.
7435         * toplev.c (general_init): Move code to c-family.
7437 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7439         * df.h (web_entry_base): Replace existing struct web_entry with a
7440         new class web_entry_base with only the predecessor member.
7441         (unionfind_root): Remove declaration and move to class member.
7442         (unionfind_union): Remove declaration and move to friend
7443         function.
7444         (union_defs): Remove declaration.
7445         * web.c (web_entry_base::unionfind_root): Modify to be member
7446         function and adjust accessors.
7447         (unionfind_union): Modify to be friend function and adjust
7448         accessors.
7449         (web_entry): New subclass of web_entry_base containing the reg
7450         member.
7451         (union_match_dups): Modify for struct -> class changes.
7452         (union_defs): Likewise.
7453         (entry_register): Likewise.
7454         (pass_web::execute): Likewise.
7456 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
7458         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
7459         builtin define __VEC_ELEMENT_REG_ORDER__.
7461 2014-08-20  Martin Jambor  <mjambor@suse.cz>
7462             Wei Mi  <wmi@google.com>
7464         PR ipa/60449
7465         PR middle-end/61776
7466         * tree-ssa-operands.c (update_stmt_operands): Remove
7467         MODIFIED_NORETURN_CALLS.
7468         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
7469         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
7470         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
7471         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
7472         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
7473         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
7474         (gimple_call_set_ctrl_altering): New func.
7475         (gimple_call_ctrl_altering_p): Ditto.
7476         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
7477         (make_blocks): Use gimple_call_initialize_ctrl_altering.
7478         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
7479         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
7480         remove MODIFIED_NORETURN_CALLS.
7482 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
7484         * coverage.c (coverage_compute_profile_id): Return non-0;
7485         also handle symbols with unique name.
7486         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
7488 2014-08-20  Steve Ellcey  <sellcey@mips.com>
7490         PR middle-end/49191
7491         * doc/sourcebuild.texi (non_strict_align): New.
7493 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
7495         * cgraphunit.c (ipa_passes, compile): Reshedule
7496         symtab_remove_unreachable_nodes passes; update comments.
7497         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
7498         TODO_remove_functions before the pass; the functions ought to be
7499         already removed.
7500         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
7501         TODO_remove_functions.
7502         * passes.c (pass_data_early_local_passes): Do not schedule function
7503         removal.
7504         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
7506 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7508         PR c/59304
7509         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
7510         before setting the option.
7511         * diagnostic.c (diagnostic_classify_diagnostic): Record
7512         command-line status.
7514 2014-08-20  Richard Biener  <rguenther@suse.de>
7516         PR lto/62190
7517         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
7518         to build uint{16,32,64}_type_node.
7520 2014-08-20  Terry Guo  <terry.guo@arm.com>
7522         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
7523         with immediate_operand.
7525 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
7527         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
7528         "insn" from an as_a to a safe_as_a, for the case when "insn" is
7529         NULL.
7531 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7533         PR preprocessor/51303
7534         * incpath.c (remove_duplicates): Use cpp_warning.
7536 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7538         PR c/60975
7539         PR c/53063
7540         * doc/options.texi (CPP): Document it.
7541         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
7542         * optc-gen.awk: Handle CPP.
7543         * opth-gen.awk: Likewise.
7545 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7547         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
7548         rtx_insn *.
7549         (duplicate_insn_chain): Likewise.
7550         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
7551         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
7552         checked cast for now (until we can strengthen the params in the
7553         same way).
7554         (duplicate_insn_chain): Likewise.
7556 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7558         * rtl.h (next_cc0_user): Strengthen return type from rtx to
7559         rtx_insn *.
7560         (prev_cc0_setter): Likewise.
7562         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
7563         rtx_insn *, adding checked casts for now as necessary.
7564         (prev_cc0_setter): Likewise.
7566 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7568         * expr.h (emit_move_insn): Strengthen return type from rtx to
7569         rtx_insn *.
7570         (emit_move_insn_1): Likewise.
7571         (emit_move_complex_push): Likewise.
7572         (emit_move_complex_parts): Likewise.
7574         * expr.c (emit_move_via_integer): Strengthen return type from rtx
7575         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
7576         with insns.
7577         (emit_move_complex_push): Strengthen return type from rtx to
7578         rtx_insn *.
7579         (emit_move_complex): Likewise, also for local "ret".
7580         (emit_move_ccmode): Likewise.
7581         (emit_move_multi_word): Likewise for return type and locals
7582         "last_insn", "seq".
7583         (emit_move_insn_1): Likewise for return type and locals "result",
7584         "ret".
7585         (emit_move_insn): Likewise for return type and local "last_insn".
7586         (compress_float_constant): Likewise.
7588 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7590         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
7591         from rtx to rtx_insn *.
7593         * rtl.h (emit_insn_before): Likewise.
7594         (emit_insn_before_noloc): Likewise.
7595         (emit_insn_before_setloc): Likewise.
7596         (emit_jump_insn_before): Likewise.
7597         (emit_jump_insn_before_noloc): Likewise.
7598         (emit_jump_insn_before_setloc): Likewise.
7599         (emit_call_insn_before): Likewise.
7600         (emit_call_insn_before_noloc): Likewise.
7601         (emit_call_insn_before_setloc): Likewise.
7602         (emit_debug_insn_before): Likewise.
7603         (emit_debug_insn_before_noloc): Likewise.
7604         (emit_debug_insn_before_setloc): Likewise.
7605         (emit_label_before): Likewise.
7606         (emit_insn_after): Likewise.
7607         (emit_insn_after_noloc): Likewise.
7608         (emit_insn_after_setloc): Likewise.
7609         (emit_jump_insn_after): Likewise.
7610         (emit_jump_insn_after_noloc): Likewise.
7611         (emit_jump_insn_after_setloc): Likewise.
7612         (emit_call_insn_after): Likewise.
7613         (emit_call_insn_after_noloc): Likewise.
7614         (emit_call_insn_after_setloc): Likewise.
7615         (emit_debug_insn_after): Likewise.
7616         (emit_debug_insn_after_noloc): Likewise.
7617         (emit_debug_insn_after_setloc): Likewise.
7618         (emit_label_after): Likewise.
7619         (emit_insn): Likewise.
7620         (emit_debug_insn): Likewise.
7621         (emit_jump_insn): Likewise.
7622         (emit_call_insn): Likewise.
7623         (emit_label): Likewise.
7624         (gen_clobber): Likewise.
7625         (emit_clobber): Likewise.
7626         (gen_use): Likewise.
7627         (emit_use): Likewise.
7628         (emit): Likewise.
7630         (emit_barrier_before): Strengthen return type from rtx to
7631         rtx_barrier *.
7632         (emit_barrier_after): Likewise.
7633         (emit_barrier): Likewise.
7635         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
7636         from rtx to rtx_insn *.  Add checked casts for now when converting
7637         "last" from rtx to rtx_insn *.
7638         (emit_insn_before_noloc): Likewise for return type.
7639         (emit_jump_insn_before_noloc): Likewise.
7640         (emit_call_insn_before_noloc): Likewise.
7641         (emit_debug_insn_before_noloc): Likewise.
7642         (emit_barrier_before): Strengthen return type and local "insn"
7643         from rtx to rtx_barrier *.
7644         (emit_label_before): Strengthen return type from rtx to
7645         rtx_insn *.  Add checked cast for now when returning param
7646         (emit_pattern_after_noloc): Strengthen return type from rtx to
7647         rtx_insn *.  Add checked casts for now when converting "last" from
7648         rtx to rtx_insn *.
7649         (emit_insn_after_noloc): Strengthen return type from rtx to
7650         rtx_insn *.
7651         (emit_jump_insn_after_noloc): Likewise.
7652         (emit_call_insn_after_noloc): Likewise.
7653         (emit_debug_insn_after_noloc): Likewise.
7654         (emit_barrier_after): Strengthen return type from rtx to
7655         rtx_barrier *.
7656         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
7657         Add checked cast for now when converting "label" from rtx to
7658         rtx_insn *.
7659         (emit_pattern_after_setloc): Strengthen return type from rtx to
7660         rtx_insn *.  Add checked casts for now when converting "last" from
7661         rtx to rtx_insn *.
7662         (emit_pattern_after): Strengthen return type from rtx to
7663         rtx_insn *.
7664         (emit_insn_after_setloc): Likewise.
7665         (emit_insn_after): Likewise.
7666         (emit_jump_insn_after_setloc): Likewise.
7667         (emit_jump_insn_after): Likewise.
7668         (emit_call_insn_after_setloc): Likewise.
7669         (emit_call_insn_after): Likewise.
7670         (emit_debug_insn_after_setloc): Likewise.
7671         (emit_debug_insn_after): Likewise.
7672         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
7673         when converting "last" from rtx to rtx_insn *.
7674         (emit_pattern_before): Strengthen return type from rtx to
7675         rtx_insn *.
7676         (emit_insn_before_setloc): Likewise.
7677         (emit_insn_before): Likewise.
7678         (emit_jump_insn_before_setloc): Likewise.
7679         (emit_jump_insn_before): Likewise.
7680         (emit_call_insn_before_setloc): Likewise.
7681         (emit_call_insn_before): Likewise.
7682         (emit_debug_insn_before_setloc): Likewise.
7683         (emit_debug_insn_before): Likewise.
7684         (emit_insn): Strengthen return type and locals "last", "insn",
7685         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
7686         within cases where we know we have an insn.
7687         (emit_debug_insn): Likewise.
7688         (emit_jump_insn): Likewise.
7689         (emit_call_insn): Strengthen return type and local "insn" from rtx
7690         to rtx_insn *.
7691         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
7692         a checked cast to rtx_insn * for now on "label".
7693         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
7694         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
7695         (emit_use): Likewise.
7696         (gen_use): Likewise, also for local "seq".
7697         (emit): Likewise for return type and local "insn".
7698         (rtx_insn): Likewise for return type and local "new_rtx".
7700         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
7701         from rtx to rtx_barrier *.
7703         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
7704         changed return type from rtx to rtx_insn *, we must update
7705         "emit_fn" type, and this in turn means updating...
7706         (frame_insn): ...this.  Strengthen return type from rtx to
7707         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
7709 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7711         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
7712         rtx to rtx_jump_table_data *.  Also for local.
7713         * rtl.h (emit_jump_table_data): Likewise.
7715 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7717         * basic-block.h (create_basic_block_structure): Strengthen third
7718         param "bb_note" from rtx to rtx_note *.
7719         * rtl.h (emit_note_before): Strengthen return type from rtx to
7720         rtx_note *.
7721         (emit_note_after): Likewise.
7722         (emit_note): Likewise.
7723         (emit_note_copy): Likewise.  Also, strengthen param similarly.
7724         * function.h (struct rtl_data): Strengthen field
7725         "x_stack_check_probe_note" from rtx to rtx_note *.
7727         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
7728         from rtx to rtx_note *.
7729         * cfgrtl.c (create_basic_block_structure): Strengthen third param
7730         "bb_note" from rtx to rtx_note *.
7731         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
7732         when calling emit_note_copy.
7733         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
7734         rtx_note *.
7735         (emit_note_after): Likewise.
7736         (emit_note_before): Likewise.
7737         (emit_note_copy): Likewise.  Also, strengthen param similarly.
7738         (emit_note): Likewise.
7739         * except.c (emit_note_eh_region_end): Likewise for return type.
7740         Strengthen local "next" from rtx to rtx_insn *.
7741         (convert_to_eh_region_ranges): Strengthen local "note"
7742         from rtx to rtx_note *.
7743         * final.c (change_scope): Likewise.
7744         (reemit_insn_block_notes): Likewise, for both locals named "note".
7745         Also, strengthen local "insn" from rtx to rtx_insn *.
7746         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
7747         rtx to rtx_note *.
7748         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
7749         strengthen local "seq" from rtx to rtx_insn *.
7750         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
7751         to rtx_note *.
7752         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
7753         vec<rtx_note *>.
7754         (get_bb_note_from_pool): Strengthen return type from rtx to
7755         rtx_note *.
7756         (sel_create_basic_block): Strengthen local "new_bb_note" from
7757         insn_t to rtx_note *.
7758         * var-tracking.c (emit_note_insn_var_location): Strengthen local
7759         "note" from rtx to rtx_note *.
7760         (emit_notes_in_bb): Likewise.
7762 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7764         * function.h (struct rtl_data): Strengthen field
7765         "x_parm_birth_insn" from rtx to rtx_insn *.
7766         * function.c (struct assign_parm_data_all): Strengthen fields
7767         "first_conversion_insn" and "last_conversion_insn" from rtx to
7768         rtx_insn *.
7770 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7772         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
7773         to rtx_insn *; also for local "var_end_seq".
7774         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
7775         (maybe_cleanup_end_of_block): Likewise for param "last" and local
7776         "insn".
7777         (expand_gimple_cond): Likewise for locals "last2" and "last".
7778         (mark_transaction_restart_calls): Likewise for local "insn".
7779         (expand_gimple_stmt): Likewise for return type and locals "last"
7780         and "insn".
7781         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
7782         (avoid_complex_debug_insns): Likewise for param "insn".
7783         (expand_debug_locations): Likewise for locals "insn", "last",
7784         "prev_insn" and "insn2".
7785         (expand_gimple_basic_block): Likewise for local "last".
7786         (construct_exit_block): Likewise for locals "head", "end",
7787         "orig_end".
7788         (pass_expand::execute): Likewise for locals "var_seq",
7789         "var_ret_seq", "next".
7791 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7793         * asan.h (asan_emit_stack_protection): Strengthen return type from
7794         rtx to rtx_insn *.
7795         * asan.c (asan_emit_stack_protection): Likewise.  Add local
7796         "insns" to hold the return value.
7798 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7800         * basic-block.h (bb_note): Strengthen return type from rtx to
7801         rtx_note *.
7802         * sched-int.h (bb_note): Likewise.
7803         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
7805 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7807         * rtl.h (make_insn_raw): Strengthen return type from rtx to
7808         rtx_insn *.
7810         * emit-rtl.c (make_insn_raw): Strengthen return type and local
7811         "insn" from rtx to rtx_insn *.
7812         (make_debug_insn_raw): Strengthen return type from rtx to
7813         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
7814         (make_jump_insn_raw):  Strengthen return type from rtx to
7815         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
7816         (make_call_insn_raw):  Strengthen return type from rtx to
7817         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
7818         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
7819         callback from rtx to rtx_insn *; likewise for local "insn" and
7820         "next", adding a checked cast to rtx_insn in the relevant cases of
7821         the switch statement.
7822         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
7823         callback from rtx to rtx_insn *.
7824         (emit_pattern_after_setloc): Likewise.
7825         (emit_pattern_after): Likewise.
7826         (emit_pattern_before_setloc): Likewise.
7827         (emit_pattern_before): Likewise.
7829 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7831         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
7832         rtx_call_insn *.
7833         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
7834         accepting an rtx_insn *.
7835         (last_call_insn): Strengthen return type from rtx to
7836         rtx_call_insn *.
7838 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7840         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
7841         "insns" from rtx to rtx_insn *.
7842         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
7843         locals "insn" and "prev".
7845 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7847         * rtl.h (tablejump_p): Strengthen third param from rtx * to
7848         rtx_jump_table_data **.
7850         * cfgbuild.c (make_edges): Introduce local "table", using it in
7851         place of "tmp" for jump table data.
7852         (find_bb_boundaries): Strengthen local "table" from rtx to
7853         rtx_jump_table_data *.
7854         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
7855         (outgoing_edges_match): Likewise for locals "table1" and "table2".
7856         (try_crossjump_to_edge): Likewise.
7857         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
7858         "table".
7859         (patch_jump_insn): Introduce local "table", using it in place of
7860         "tmp" for jump table data.
7861         (force_nonfallthru_and_redirect): Introduce local "table", so that
7862         call to tablejump_p can receive an rtx_jump_table_data **.  Update
7863         logic around the call to overwrite "note" appropriately if
7864         tablejump_p returns non-zero.
7865         (get_last_bb_insn): Introduce local "table", using it in place of
7866         "tmp" for jump table data.
7867         * dwarf2cfi.c (create_trace_edges): Likewise.
7869         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
7870         from rtx to rtx_jump_table_data *.
7871         (create_fix_barrier): Strengthen local "tmp" from rtx to
7872         rtx_jump_table_data *.
7873         (arm_reorg): Likewise for local "table".
7875         * config/s390/s390.c (s390_chunkify_start): Likewise.
7877         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
7879         * jump.c (delete_related_insns): Strengthen local "lab_next" from
7880         rtx to rtx_jump_table_data *.
7882         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
7883         rtx_jump_table_data **.  Add a checked cast when writing through
7884         the pointer: we know there that local "table" is non-NULL and that
7885         JUMP_TABLE_DATA_P (table) holds.
7886         (label_is_jump_target_p): Introduce local "table", using it in
7887         place of "tmp" for jump table data.
7889 2014-08-19  Marek Polacek  <polacek@redhat.com>
7891         PR c++/62153
7892         * doc/invoke.texi: Document -Wbool-compare.
7894 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7896         * rtl.h (entry_of_function): Strengthen return type from rtx to
7897         rtx_insn *.
7898         * cfgrtl.c (entry_of_function): Likewise.
7900 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7902         * emit-rtl.h (get_insns): Strengthen return type from rtx to
7903         rtx_insn *, adding a checked cast for now.
7904         (get_last_insn): Likewise.
7906 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7908         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
7909         rtx_code_label *.
7911         * emit-rtl.c (gen_label_rtx): Likewise.
7913 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7915         * rtl.h (previous_insn): Strengthen return type from rtx to
7916         rtx_insn *.
7917         (next_insn): Likewise.
7918         (prev_nonnote_insn): Likewise.
7919         (prev_nonnote_insn_bb): Likewise.
7920         (next_nonnote_insn): Likewise.
7921         (next_nonnote_insn_bb): Likewise.
7922         (prev_nondebug_insn): Likewise.
7923         (next_nondebug_insn): Likewise.
7924         (prev_nonnote_nondebug_insn): Likewise.
7925         (next_nonnote_nondebug_insn): Likewise.
7926         (prev_real_insn): Likewise.
7927         (next_real_insn): Likewise.
7928         (prev_active_insn): Likewise.
7929         (next_active_insn): Likewise.
7931         * emit-rtl.c (next_insn): Strengthen return type from rtx to
7932         rtx_insn *, adding a checked cast.
7933         (previous_insn): Likewise.
7934         (next_nonnote_insn): Likewise.
7935         (next_nonnote_insn_bb): Likewise.
7936         (prev_nonnote_insn): Likewise.
7937         (prev_nonnote_insn_bb): Likewise.
7938         (next_nondebug_insn): Likewise.
7939         (prev_nondebug_insn): Likewise.
7940         (next_nonnote_nondebug_insn): Likewise.
7941         (prev_nonnote_nondebug_insn): Likewise.
7942         (next_real_insn): Likewise.
7943         (prev_real_insn): Likewise.
7944         (next_active_insn): Likewise.
7945         (prev_active_insn): Likewise.
7947         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
7948         param "stepfunc" so that it returns an rtx_insn * rather than an
7949         rtx, to track the change to prev_nonnote_insn_bb, which is the
7950         only function this is called with.
7951         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
7953 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
7955         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
7956         assert.
7958 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
7960         * coretypes.h (class rtx_debug_insn): Add forward declaration.
7961         (class rtx_nonjump_insn): Likewise.
7962         (class rtx_jump_insn): Likewise.
7963         (class rtx_call_insn): Likewise.
7964         (class rtx_jump_table_data): Likewise.
7965         (class rtx_barrier): Likewise.
7966         (class rtx_code_label): Likewise.
7967         (class rtx_note): Likewise.
7969         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
7970         adding the invariant DEBUG_INSN_P (X).
7971         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
7972         the invariant NONJUMP_INSN_P (X).
7973         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
7974         the invariant JUMP_P (X).
7975         (class rtx_call_insn): New, a subclass of rtx_insn, adding
7976         the invariant CALL_P (X).
7977         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
7978         invariant JUMP_TABLE_DATA_P (X).
7979         (class rtx_barrier): New, a subclass of rtx_insn, adding the
7980         invariant BARRIER_P (X).
7981         (class rtx_code_label): New, a subclass of rtx_insn, adding
7982         the invariant LABEL_P (X).
7983         (class rtx_note): New, a subclass of rtx_insn, adding
7984         the invariant NOTE_P(X).
7985         (is_a_helper <rtx_debug_insn *>::test): New.
7986         (is_a_helper <rtx_nonjump_insn *>::test): New.
7987         (is_a_helper <rtx_jump_insn *>::test): New.
7988         (is_a_helper <rtx_call_insn *>::test): New.
7989         (is_a_helper <rtx_jump_table_data *>::test): New functions,
7990         overloaded for both rtx and rtx_insn *.
7991         (is_a_helper <rtx_barrier *>::test): New.
7992         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
7993         for both rtx and rtx_insn *.
7994         (is_a_helper <rtx_note *>::test): New.
7996 2014-08-19  Marek Polacek  <polacek@redhat.com>
7998         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
7999         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
8000         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
8001         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
8003 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8005         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
8006         rtx_insn *.  To help with transition, for now, convert from an
8007         access macro into a pair of functions: BND_TO, returning an
8008         rtx_insn *, and...
8009         (SET_BND_TO): New function, for use where BND_TO is used as an
8010         lvalue.
8012         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
8013         SET_BND_TO.
8014         (BND_TO): New function, adding a checked cast.
8015         (SET_BND_TO): New function.
8017         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
8018         SET_BND_TO.
8019         (compute_av_set_on_boundaries): Likewise.
8021 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
8023         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
8024         destination if it is used in source.
8025         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
8026         (*popcount<mode>2_falsedep_1): Likewise.
8028 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
8030         PR other/62168
8031         * configure.ac: Set install_gold_as_default to no first.
8032         * configure: Regenerated.
8034 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8036         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
8037         "note_list" field will eventually be an rtx_insn *.  To help with
8038         transition, for now, convert from an access macro into a pair of
8039         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
8040         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
8041         used as an lvalue.
8043         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
8044         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
8046         * sel-sched-ir.c (init_bb): Likewise.
8047         (sel_restore_notes): Likewise.
8048         (move_bb_info): Likewise.
8049         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
8050         (SET_BB_NOTE_LIST): New function.
8052 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8054         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
8055         field will eventually be an rtx_insn *.  To help with transition,
8056         for now, convert from an access macro into a pair of functions:
8057         VINSN_INSN_RTX, returning an rtx_insn *, and...
8058         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
8059         is used as an lvalue.
8061         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
8062         SET_VINSN_INSN_RTX where it's used as an lvalue.
8063         (VINSN_INSN_RTX): New function.
8064         (SET_VINSN_INSN_RTX): New function.
8066 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8068         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
8069         eventually be rtx_insn *, but to help with transition, for now,
8070         convert from an access macro into a pair of functions: DEP_PRO
8071         returning an rtx_insn * and...
8072         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
8073         lvalue, returning an rtx&.
8074         (DEP_CON): Analogous changes to DEP_PRO above.
8075         (SET_DEP_CON): Likewise.
8077         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
8078         an lvalue to SET_DEP_CON.
8079         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
8080         (sd_copy_back_deps): Likewise for DEP_CON.
8081         (DEP_PRO): New function, adding a checked cast for now.
8082         (DEP_CON): Likewise.
8083         (SET_DEP_PRO): New function.
8084         (SET_DEP_CON): Likewise.
8086 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
8088         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
8089         (extra_options): Add i386/cygwin.opt.
8090         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
8091         (CPP_SPEC): Accept -pthread.
8092         (LINK_SPEC): Ditto.
8093         (GOMP_SELF_SPECS): Update comment.
8094         * config/i386/cygwin.opt: New file for -pthread flag.
8096 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8098         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
8099         * df.h (DF_REF_INSN): Convert from a macro to a function, so
8100         that we can return an rtx_insn *.
8102 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
8104         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
8105         when building executables, not DLLs.  Add --large-address-aware
8106         under the same conditions.
8107         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
8108         when building executables, not DLLs.  Add --large-address-aware
8109         under the same conditions when using -m32.
8111         * config/i386/cygwin-stdint.h: Throughout, make type
8112         definitions dependent on target architecture, not host.
8114 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8116         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
8117         the return type from rtx to rtx_insn *,  which will enable various
8118         conversions in followup patches.  For now this is is done by a
8119         checked cast.
8120         (NEXT_INSN): Likewise.
8121         (SET_PREV_INSN): Convert to an inline function.  This is intended
8122         for use as an lvalue, and so returns an rtx& to allow in-place
8123         modification.
8124         (SET_NEXT_INSN): Likewise.
8126 2014-07-08  Mark Wielaard  <mjw@redhat.com>
8128         PR debug/59051
8129         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
8131 2014-08-19  Marek Polacek  <polacek@redhat.com>
8133         PR c/61271
8134         * cgraphunit.c (handle_alias_pairs): Fix condition.
8136 2014-08-19  Richard Biener  <rguenther@suse.de>
8138         * gimple-fold.c (fold_gimple_assign): Properly build a
8139         null-pointer constant when devirtualizing addresses.
8141 2014-07-07  Mark Wielaard  <mjw@redhat.com>
8143         * dwarf2out.c (decl_quals): New function.
8144         (modified_type_die): Take one cv_quals argument instead of two,
8145         one for const and one for volatile.
8146         (add_type_attribute): Likewise.
8147         (generic_parameter_die): Call add_type_attribute with one modifier
8148         argument.
8149         (base_type_for_mode): Likewise.
8150         (add_bounds_info): Likewise.
8151         (add_subscript_info): Likewise.
8152         (gen_array_type_die): Likewise.
8153         (gen_descr_array_type_die): Likewise.
8154         (gen_entry_point_die): Likewise.
8155         (gen_enumeration_type_die): Likewise.
8156         (gen_formal_parameter_die): Likewise.
8157         (gen_subprogram_die): Likewise.
8158         (gen_variable_die): Likewise.
8159         (gen_const_die): Likewise.
8160         (gen_field_die): Likewise.
8161         (gen_pointer_type_die): Likewise.
8162         (gen_reference_type_die): Likewise.
8163         (gen_ptr_to_mbr_type_die): Likewise.
8164         (gen_inheritance_die): Likewise.
8165         (gen_subroutine_type_die): Likewise.
8166         (gen_typedef_die): Likewise.
8167         (force_type_die): Likewise.
8169 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8171         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
8172         if unset.
8173         * configure: Regenerate.
8175 2014-08-19  Richard Biener  <rguenther@suse.de>
8177         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
8178         DECL_EXTERNALs in BLOCKs as non-references.
8179         * tree-streamer-out.c (streamer_write_chain): Likewise.
8181 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8182             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8183             Anna Tikhonova  <anna.tikhonova@intel.com>
8184             Ilya Tocar  <ilya.tocar@intel.com>
8185             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8186             Ilya Verbin  <ilya.verbin@intel.com>
8187             Kirill Yukhin  <kirill.yukhin@intel.com>
8188             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8190         * config/i386/sse.md
8191         (define_mode_iterator VI48_AVX512F): Delete.
8192         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
8193         (define_mode_iterator VI2_AVX512VL): Ditto.
8194         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
8195         Delete.
8196         (define_insn
8197         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
8198         New.
8199         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
8200         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
8201         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8202         with VI48_AVX512F_AVX512VL): New.
8203         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
8204         with VI2_AVX512VL): Ditto.
8206 2014-08-19  Marek Polacek  <polacek@redhat.com>
8208         * doc/invoke.texi: Document -Wc99-c11-compat.
8210 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8212         * rtl.h (PREV_INSN): Split macro in two: the existing one,
8213         for rvalues, and...
8214         (SET_PREV_INSN): New macro, for use as an lvalue.
8215         (NEXT_INSN, SET_NEXT_INSN): Likewise.
8217         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
8218         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
8219         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8220         (fixup_abnormal_edges): Likewise.
8221         (unlink_insn_chain): Likewise.
8222         (fixup_reorder_chain): Likewise.
8223         (cfg_layout_delete_block): Likewise.
8224         (cfg_layout_merge_blocks): Likewise.
8225         * combine.c (update_cfg_for_uncondjump): Likewise.
8226         * emit-rtl.c (link_insn_into_chain): Likewise.
8227         (remove_insn): Likewise.
8228         (delete_insns_since): Likewise.
8229         (reorder_insns_nobb): Likewise.
8230         (emit_insn_after_1): Likewise.
8231         * final.c (rest_of_clean_state): Likewise.
8232         (final_scan_insn): Likewise.
8233         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
8234         * haifa-sched.c (concat_note_lists): Likewise.
8235         (remove_notes): Likewise.
8236         (restore_other_notes): Likewise.
8237         (move_insn): Likewise.
8238         (unlink_bb_notes): Likewise.
8239         (restore_bb_notes): Likewise.
8240         * jump.c (delete_for_peephole): Likewise.
8241         * optabs.c (emit_libcall_block_1): Likewise.
8242         * reorg.c (emit_delay_sequence): Likewise.
8243         (fill_simple_delay_slots): Likewise.
8244         * sel-sched-ir.c (sel_move_insn): Likewise.
8245         (sel_remove_insn): Likewise.
8246         (get_bb_note_from_pool): Likewise.
8247         * sel-sched.c (move_nop_to_previous_block): Likewise.
8249         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
8250         * config/c6x/c6x.c (gen_one_bundle): Likewise.
8251         (c6x_gen_bundles): Likewise.
8252         (hwloop_optimize): Likewise.
8253         * config/frv/frv.c (frv_function_prologue): Likewise.
8254         (frv_register_nop): Likewise.
8255         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
8256         (ia64_reorg): Likewise.
8257         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
8258         (mep_make_bundle): Likewise.
8259         (mep_bundle_insns): Likewise.
8260         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
8261         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
8262         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
8264 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
8266         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
8267         return type from rtx to rtx_insn *.
8268         (BB_END): Likewise.
8269         (BB_HEADER): Likewise.
8270         (BB_FOOTER): Likewise.
8271         (SET_BB_HEAD): Convert to a function.
8272         (SET_BB_END): Likewise.
8273         (SET_BB_HEADER): Likewise.
8274         (SET_BB_FOOTER): Likewise.
8276         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
8277         Strengthen the return type from rtx to rtx_insn *.  For now, this
8278         is done by adding a checked cast, but this will eventually
8279         become a field lookup.
8280         (BB_END): Likewise.
8281         (BB_HEADER): Likewise.
8282         (BB_FOOTER): Likewise.
8283         (SET_BB_HEAD): New function, from macro of same name.  This is
8284         intended for use as an lvalue, and so returns an rtx& to allow
8285         in-place modification.
8286         (SET_BB_END): Likewise.
8287         (SET_BB_HEADER): Likewise.
8288         (SET_BB_FOOTER): Likewise.
8290 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
8292         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
8293         for rvalues, and...
8294         (SET_BB_HEAD): New macro, for use as a lvalue.
8295         (BB_END, SET_BB_END): Likewise.
8296         (BB_HEADER, SET_BB_HEADER): Likewise.
8297         (BB_FOOTER, SET_BB_FOOTER): Likewise.
8299         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
8300         of BB_* macros into SET_BB_* macros.
8301         (fix_crossing_unconditional_branches): Likewise.
8302         * caller-save.c (save_call_clobbered_regs): Likewise.
8303         (insert_one_insn): Likewise.
8304         * cfgbuild.c (find_bb_boundaries): Likewise.
8305         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
8306         (outgoing_edges_match): Likewise.
8307         (try_optimize_cfg): Likewise.
8308         * cfgexpand.c (expand_gimple_cond): Likewise.
8309         (expand_gimple_tailcall): Likewise.
8310         (expand_gimple_basic_block): Likewise.
8311         (construct_exit_block): Likewise.
8312         * cfgrtl.c (delete_insn): Likewise.
8313         (create_basic_block_structure): Likewise.
8314         (rtl_delete_block): Likewise.
8315         (rtl_split_block): Likewise.
8316         (emit_nop_for_unique_locus_between): Likewise.
8317         (rtl_merge_blocks): Likewise.
8318         (block_label): Likewise.
8319         (try_redirect_by_replacing_jump): Likewise.
8320         (emit_barrier_after_bb): Likewise.
8321         (fixup_abnormal_edges): Likewise.
8322         (record_effective_endpoints): Likewise.
8323         (relink_block_chain): Likewise.
8324         (fixup_reorder_chain): Likewise.
8325         (fixup_fallthru_exit_predecessor): Likewise.
8326         (cfg_layout_duplicate_bb): Likewise.
8327         (cfg_layout_split_block): Likewise.
8328         (cfg_layout_delete_block): Likewise.
8329         (cfg_layout_merge_blocks): Likewise.
8330         * combine.c (update_cfg_for_uncondjump): Likewise.
8331         * emit-rtl.c (add_insn_after): Likewise.
8332         (remove_insn): Likewise.
8333         (reorder_insns): Likewise.
8334         (emit_insn_after_1): Likewise.
8335         * haifa-sched.c (get_ebb_head_tail): Likewise.
8336         (restore_other_notes): Likewise.
8337         (move_insn): Likewise.
8338         (sched_extend_bb): Likewise.
8339         (fix_jump_move): Likewise.
8340         * ifcvt.c (noce_process_if_block): Likewise.
8341         (dead_or_predicable): Likewise.
8342         * ira.c (update_equiv_regs): Likewise.
8343         * reg-stack.c (change_stack): Likewise.
8344         * sel-sched-ir.c (sel_move_insn): Likewise.
8345         * sel-sched.c (move_nop_to_previous_block): Likewise.
8347         * config/c6x/c6x.c (hwloop_optimize): Likewise.
8348         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
8350 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
8352         * rtl.h (for_each_rtx_in_insn): New function.
8353         * rtlanal.c (for_each_rtx_in_insn): Likewise.
8355 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
8357         * coretypes.h (class rtx_insn): Add forward declaration.
8359         * rtl.h: Include is-a.h.
8360         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
8361         workaround to ensure gengtype knows inheritance is occurring,
8362         whilst continuing to use the pre-existing special-casing for
8363         rtx_def.
8364         (class rtx_insn): New subclass of rtx_def, adding the
8365         invariant that we're dealing with something we can sanely use
8366         INSN_UID, NEXT_INSN, PREV_INSN on.
8367         (is_a_helper <rtx_insn *>::test): New.
8368         (is_a_helper <const rtx_insn *>::test): New.
8370 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
8372         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
8374 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
8376         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
8377         comdats as extern.
8379 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
8381         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
8382         to BUILT_IN_UNREACHABLE.
8384 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
8386         PR target/62011
8387         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
8388         New tune flag.
8389         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
8390         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
8391         (ffs<mode>2): Do not expand with tzcnt for
8392         TARGET_AVOID_FALSE_DEP_FOR_BMI.
8393         (ffssi2_no_cmove): Ditto.
8394         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
8395         (ctz<mode>2): New expander.
8396         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
8397         (*ctz<mode>2_falsedep): New insn.
8398         (*ctz<mode>2): Rename from ctz<mode>2.
8399         (clz<mode>2_lzcnt): New expander.
8400         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
8401         (*clz<mode>2_lzcnt_falsedep): New insn.
8402         (*clz<mode>2): Rename from ctz<mode>2.
8403         (popcount<mode>2): New expander.
8404         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
8405         (*popcount<mode>2_falsedep): New insn.
8406         (*popcount<mode>2): Rename from ctz<mode>2.
8407         (*popcount<mode>2_cmp): Remove.
8408         (*popcountsi2_cmp_zext): Ditto.
8410 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
8412         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
8413         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
8414         * config/microblaze/microblaze.h
8415         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
8417 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
8419         PR other/62168
8420         * configure.ac: Set install_gold_as_default to no for
8421          --enable-gold=no.
8422          * configure: Regenerated.
8424 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
8426         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
8427         * config.in: Add undef of HAVE_isl.
8428         * configure: Regenerate.
8429         * configure.ac: Add definition of HAVE_isl.
8430         * graphite-blocking.c: Add checking of HAVE_isl.
8431         * graphite-dependences.c: Likewise.
8432         * graphite-interchange.c: Likewise.
8433         * graphite-isl-ast-to-gimple.c: Likewise.
8434         * graphite-optimize-isl.c: Likewise.
8435         * graphite-poly.c: Likewise.
8436         * graphite-scop-detection.c: Likewise.
8437         * graphite-sese-to-poly.c: Likewise.
8438         * graphite.c: Likewise.
8439         * toplev.c: Replace the checking of HAVE_cloog with the checking
8440         of HAVE_isl.
8442 2014-08-18  Richard Biener  <rguenther@suse.de>
8444         PR tree-optimization/62090
8445         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
8446         (fold_builtin_3): Do not fold snprintf.
8447         (fold_builtin_4): Likewise.
8448         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
8449         moved from builtins.c.
8450         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
8451         (gimple_fold_builtin): Do not fold sprintf here.
8453 2014-08-18  Richard Biener  <rguenther@suse.de>
8455         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
8456         code to ...
8457         (maybe_canonicalize_mem_ref_addr): ... this function.
8458         (fold_stmt_1): Apply it here before all simplification.
8460 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
8462         PR ipa/61800
8463         * cgraph.h (cgraph_node::create_indirect_edge): Add
8464         compute_indirect_info param.
8465         * cgraph.c (cgraph_node::create_indirect_edge): Compute
8466         indirect_info only when it is required.
8467         * cgraphclones.c (cgraph_clone_edge): Do not recompute
8468         indirect_info fore cloned indirect edge.
8470 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8471             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8472             Anna Tikhonova  <anna.tikhonova@intel.com>
8473             Ilya Tocar  <ilya.tocar@intel.com>
8474             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8475             Ilya Verbin  <ilya.verbin@intel.com>
8476             Kirill Yukhin  <kirill.yukhin@intel.com>
8477             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8479         * config/i386/sse.md
8480         (define_mode_iterator VI8_AVX2_AVX512BW): New.
8481         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
8483 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8484             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8485             Anna Tikhonova  <anna.tikhonova@intel.com>
8486             Ilya Tocar  <ilya.tocar@intel.com>
8487             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8488             Ilya Verbin  <ilya.verbin@intel.com>
8489             Kirill Yukhin  <kirill.yukhin@intel.com>
8490             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8492         * config/i386/sse.md
8493         (define_mode_iterator VF1_AVX512VL): New.
8494         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
8495         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
8496         New.
8498 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8499             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8500             Anna Tikhonova  <anna.tikhonova@intel.com>
8501             Ilya Tocar  <ilya.tocar@intel.com>
8502             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8503             Ilya Verbin  <ilya.verbin@intel.com>
8504             Kirill Yukhin  <kirill.yukhin@intel.com>
8505             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8507         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
8508         * config/i386/i386.md
8509         (define_code_iterator any_float): New.
8510         (define_code_attr floatsuffix): New.
8511         * config/i386/sse.md
8512         (define_mode_iterator VF1_128_256VL): New.
8513         (define_mode_iterator VF2_512_256VL): New.
8514         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
8515         TARGET check.
8516         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
8517         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
8518         New.
8519         (define_mode_attr qq2pssuff): New.
8520         (define_mode_attr sselongvecmode): New.
8521         (define_mode_attr sselongvecmodelower): New.
8522         (define_mode_attr sseintvecmode3): New.
8523         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
8524         New.
8525         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
8526         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
8527         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
8528         (define_insn "ufloatv2siv2df2<mask_name>"): New.
8530 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8531             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8532             Anna Tikhonova  <anna.tikhonova@intel.com>
8533             Ilya Tocar  <ilya.tocar@intel.com>
8534             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8535             Ilya Verbin  <ilya.verbin@intel.com>
8536             Kirill Yukhin  <kirill.yukhin@intel.com>
8537             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8539         * config/i386/sse.md
8540         (define_mode_iterator VF2_AVX512VL): New.
8541         (define_mode_attr sseintvecmode2): New.
8542         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
8543         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
8544         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
8545         (define_insn
8546         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
8547         Ditto.
8548         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
8549         Ditto.
8550         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
8551         Ditto.
8553 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8554             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8555             Anna Tikhonova  <anna.tikhonova@intel.com>
8556             Ilya Tocar  <ilya.tocar@intel.com>
8557             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8558             Ilya Verbin  <ilya.verbin@intel.com>
8559             Kirill Yukhin  <kirill.yukhin@intel.com>
8560             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8562         * config/i386/i386.md
8563         (define_insn "*movoi_internal_avx"): Add evex version.
8564         (define_insn "*movti_internal"): Ditto.
8566 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8567             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8568             Anna Tikhonova  <anna.tikhonova@intel.com>
8569             Ilya Tocar  <ilya.tocar@intel.com>
8570             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8571             Ilya Verbin  <ilya.verbin@intel.com>
8572             Kirill Yukhin  <kirill.yukhin@intel.com>
8573             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8575         * config/i386/i386.md
8576         (define_attr "isa"): Add avx512dq, noavx512dq.
8577         (define_attr "enabled"): Ditto.
8578         * config/i386/sse.md
8579         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
8581 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8582             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8583             Anna Tikhonova  <anna.tikhonova@intel.com>
8584             Ilya Tocar  <ilya.tocar@intel.com>
8585             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8586             Ilya Verbin  <ilya.verbin@intel.com>
8587             Kirill Yukhin  <kirill.yukhin@intel.com>
8588             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8590         * config/i386/i386.c
8591         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
8592         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
8593         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
8594         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
8595         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
8596         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
8597         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
8598         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
8599         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
8600         * config/i386/sse.md
8601         (define_mode_iterator VMOVE): Allow V4TI mode.
8602         (define_mode_iterator V_AVX512VL): New.
8603         (define_mode_iterator V): New handling for AVX512VL.
8604         (define_insn "avx512f_load<mode>_mask"): Delete.
8605         (define_insn "<avx512>_load<mode>_mask"): New.
8606         (define_insn "avx512f_store<mode>_mask"): Delete.
8607         (define_insn "<avx512>_store<mode>_mask"): New.
8610 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
8612         PR sanitizer/62089
8613         * asan.c (instrument_derefs): Fix bitfield check.
8615 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
8617         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
8618         * config/rs6000/htm.md (ttest): Remove clobber.
8619         * config/rs6000/predicates.md (any_mask_operand): New predicate.
8620         (and_operand): Reformat.
8621         (and_2rld_operand): New predicate.
8622         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
8623         parameter.
8624         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
8625         parameter.  Handle AND directly.
8626         (rs6000_split_logical_di): Remove last parameter.
8627         (rs6000_split_logical): Remove last parameter.  Remove obsolete
8628         comment.
8629         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
8630         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
8631         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
8632         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
8633         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
8634         and 5 anonymous splitters):  Delete.
8635         (and<mode>3): New expander.
8636         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
8637         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
8638         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
8639         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
8640         (floatdisf2_internal1): Remove clobbers.
8641         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
8642         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
8643         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
8644         (and<mode>3 for BOOL_128): Remove clobber.
8645         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
8646         rs6000_split_logical.
8647         (*bool<mode>3_internal for BOOL_128): Adjust call of
8648         rs6000_split_logical.
8649         (*boolc<mode>3_internal1 for BOOL_128,
8650         *boolc<mode>3_internal2 for BOOL_128,
8651         *boolcc<mode>3_internal1 for BOOL_128,
8652         *boolcc<mode>3_internal2 for BOOL_128,
8653         *eqv<mode>3_internal1 for BOOL_128,
8654         *eqv<mode>3_internal2 for BOOL_128,
8655         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
8656         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
8657         clobber.
8658         (*vec_reload_and_reg_<mptrsize>): Delete.
8660 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
8662         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
8663         and split, *boolccsi3_internal3 and split): Delete.
8664         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
8665         *boolccdi3_internal3 and split): Delete.
8666         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
8667         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
8669 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
8671         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
8672         and split, *boolcsi3_internal3 and split): Delete.
8673         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
8674         *boolcdi3_internal3 and split): Delete.
8675         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
8677 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
8679         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
8680         <'u'>: Also support printing the low-order 16 bits.
8681         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
8682         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
8683         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
8684         *booldi3_internal3 and split): Delete.
8685         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
8686         *bool<mode>3_dot2): New.
8687         (two anonymous define_splits for non_logical_cint_operand): Merge.
8689 2014-08-17  Marek Polacek  <polacek@redhat.com>
8690             Manuel López-Ibáñez  <manu@gcc.gnu.org>
8692         PR c/62059
8693         * diagnostic.c (adjust_line): Add gcc_checking_assert.
8694         (diagnostic_show_locus): Don't print caret diagnostic
8695         if a column is larger than the line_width.
8697 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
8699         * common.opt: Make the ISL AST generator to be the main code generator
8700         of Graphite.
8702 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
8704         * wide-int.h (generic_wide_int): Declare as class instead of struct.
8706 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
8708         PR target/61641
8709         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
8710         Declare.
8711         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
8712         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
8713         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
8714         Define.
8715         * config/pa/pa.md (begin_brtab): Delete insn.
8716         (end_brtab): Likewise.
8718 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8720         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
8722 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
8724         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
8725         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
8726         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
8727         (get_dynamic_type): Remove.
8728         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
8729         (clear_speculation): Bring to ipa-deivrt.h
8730         (get_class_context): Rename to ...
8731         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
8732         (contains_type_p): Update.
8733         (get_dynamic_type): Rename to ...
8734         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
8735         (possible_polymorphic_call_targets): UPdate.
8736         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
8737         * ipa-prop.c (ipa_analyze_call_uses): Update.
8739 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
8741         * doc/invoke.texi (SH options): Document missing processor variant
8742         options.  Remove references to Hitachi.  Undocument deprecated mspace
8743         option.
8745 2014-08-15  Jason Merrill  <jason@redhat.com>
8747         * tree.c (type_hash_canon): Uncomment assert.
8749 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8751         * input.h (in_system_header_at): Add comment.
8753 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8755         PR fortran/44054
8756         * diagnostic.c (build_message_string): Make it extern.
8757         * diagnostic.h (build_message_string): Make it extern.
8759 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
8761         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
8762         load/store from/to non-floating class pseudo.
8764 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8766         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
8768 2014-08-15  Richard Biener  <rguenther@suse.de>
8770         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
8771         (get_constraint_for_ssa_var): Remove dead code.
8772         (get_constraint_for_1): Adjust.
8773         (find_what_var_points_to): Likewise.
8774         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
8776 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
8778         PR target/61878
8779         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
8780         (_mm512_mask_cmpge_epu32_mask): Ditto.
8781         (_mm512_cmpge_epu32_mask): Ditto.
8782         (_mm512_mask_cmpge_epi64_mask): Ditto.
8783         (_mm512_cmpge_epi64_mask): Ditto.
8784         (_mm512_mask_cmpge_epu64_mask): Ditto.
8785         (_mm512_cmpge_epu64_mask): Ditto.
8786         (_mm512_mask_cmple_epi32_mask): Ditto.
8787         (_mm512_cmple_epi32_mask): Ditto.
8788         (_mm512_mask_cmple_epu32_mask): Ditto.
8789         (_mm512_cmple_epu32_mask): Ditto.
8790         (_mm512_mask_cmple_epi64_mask): Ditto.
8791         (_mm512_cmple_epi64_mask): Ditto.
8792         (_mm512_mask_cmple_epu64_mask): Ditto.
8793         (_mm512_cmple_epu64_mask): Ditto.
8794         (_mm512_mask_cmplt_epi32_mask): Ditto.
8795         (_mm512_cmplt_epi32_mask): Ditto.
8796         (_mm512_mask_cmplt_epu32_mask): Ditto.
8797         (_mm512_cmplt_epu32_mask): Ditto.
8798         (_mm512_mask_cmplt_epi64_mask): Ditto.
8799         (_mm512_cmplt_epi64_mask): Ditto.
8800         (_mm512_mask_cmplt_epu64_mask): Ditto.
8801         (_mm512_cmplt_epu64_mask): Ditto.
8802         (_mm512_mask_cmpneq_epi32_mask): Ditto.
8803         (_mm512_mask_cmpneq_epu32_mask): Ditto.
8804         (_mm512_cmpneq_epu32_mask): Ditto.
8805         (_mm512_mask_cmpneq_epi64_mask): Ditto.
8806         (_mm512_cmpneq_epi64_mask): Ditto.
8807         (_mm512_mask_cmpneq_epu64_mask): Ditto.
8808         (_mm512_cmpneq_epu64_mask): Ditto.
8809         (_mm512_castpd_ps): Ditto.
8810         (_mm512_castpd_si512): Ditto.
8811         (_mm512_castps_pd): Ditto.
8812         (_mm512_castps_si512): Ditto.
8813         (_mm512_castsi512_ps): Ditto.
8814         (_mm512_castsi512_pd): Ditto.
8815         (_mm512_castpd512_pd128): Ditto.
8816         (_mm512_castps512_ps128): Ditto.
8817         (_mm512_castsi512_si128): Ditto.
8818         (_mm512_castpd512_pd256): Ditto.
8819         (_mm512_castps512_ps256): Ditto.
8820         (_mm512_castsi512_si256): Ditto.
8821         (_mm512_castpd128_pd512): Ditto.
8822         (_mm512_castps128_ps512): Ditto.
8823         (_mm512_castsi128_si512): Ditto.
8824         (_mm512_castpd256_pd512): Ditto.
8825         (_mm512_castps256_ps512): Ditto.
8826         (_mm512_castsi256_si512): Ditto.
8827         (_mm512_cmpeq_epu32_mask): Ditto.
8828         (_mm512_mask_cmpeq_epu32_mask): Ditto.
8829         (_mm512_mask_cmpeq_epu64_mask): Ditto.
8830         (_mm512_cmpeq_epu64_mask): Ditto.
8831         (_mm512_cmpgt_epu32_mask): Ditto.
8832         (_mm512_mask_cmpgt_epu32_mask): Ditto.
8833         (_mm512_mask_cmpgt_epu64_mask): Ditto.
8834         (_mm512_cmpgt_epu64_mask): Ditto.
8835         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
8836         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
8837         * config/i386/i386.c (enum ix86_builtins): Add
8838         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
8839         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
8840         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
8841         (bdesc_args): Add __builtin_ia32_si512_256si,
8842         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
8843         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
8844         __builtin_ia32_pd512_pd.
8845         (ix86_expand_args_builtin): Handle new FTYPEs.
8846         * config/i386/sse.md (castmode): Add 512-bit modes.
8847         (AVX512MODE2P): New.
8848         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
8849         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
8851 2014-08-15  Richard Biener  <rguenther@suse.de>
8853         * fold-const.c (tree_swap_operands_p): Put all constants
8854         last, also strip sign-changing NOPs when considering further
8855         canonicalization.  Canonicalize also when optimizing for size.
8857 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8859         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
8860         one_match > zero_match case to just before simple_sequence.
8862 2014-08-15  Richard Biener  <rguenther@suse.de>
8864         * data-streamer.h (streamer_string_index, string_for_index):
8865         Remove.
8866         * data-streamer-out.c (streamer_string_index): Make static.
8867         * data-streamer-in.c (string_for_index): Likewise.
8868         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
8869         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
8871 2014-08-15  Richard Biener  <rguenther@suse.de>
8873         PR tree-optimization/62031
8874         * tree-data-ref.c (dr_analyze_indices): Do not set
8875         DR_UNCONSTRAINED_BASE.
8876         (dr_may_alias_p): All indirect accesses have to go the
8877         formerly DR_UNCONSTRAINED_BASE path.
8878         * tree-data-ref.h (struct indices): Remove
8879         unconstrained_base member.
8880         (DR_UNCONSTRAINED_BASE): Remove.
8882 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
8884         PR middle-end/62092
8885         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
8886         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
8887         in OMP_CLAUSE_MAP in some outer target region.
8889 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
8891         * tree-ssa-loop-ivopts.c (ivopts_data): New field
8892         name_expansion_cache.
8893         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
8894         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
8895         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
8896         (difference_cannot_overflow_p): New parameter.  Use affine
8897         expansion for equality check.
8898         (iv_elimination_compare_lt): Pass new argument.
8900 2014-08-14  DJ Delorie  <dj@redhat.com>
8902         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
8903         variables to the accumulator.
8905         * config/rl78/predicates.md (rl78_near_mem_operand): New.
8906         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
8907         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
8908         with far-far moves.
8910         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
8911         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
8912         (umulqihi3_virt): Likewise.
8913         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
8914         (umulqihi3_real): Likewise.
8916         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
8918 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
8920         PR tree-optimization/62091
8921         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
8922         function_entry_reached.
8923         (walk_aliased_vdefs): Clear it here.
8924         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
8926 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
8928         * ipa-utils.h (compare_virtual_tables): Declare.
8929         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
8931 2014-08-14  Marek Polacek  <polacek@redhat.com>
8933         DR 458
8934         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
8935         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
8937 2014-08-14  Tom de Vries  <tom@codesourcery.com>
8939         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
8941 2014-08-14  Tom de Vries  <tom@codesourcery.com>
8943         PR rtl-optimization/62004
8944         PR rtl-optimization/62030
8945         * ifcvt.c (rtx_interchangeable_p): New function.
8946         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
8947         * emit-rtl.h (mem_attrs_eq_p): Declare.
8949 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
8951         * graphite-scop-detection.c:
8952         Add inclusion of cp-tree.h.
8953         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
8954         in case they are pointers to object types
8956 2014-08-14  Richard Biener  <rguenther@suse.de>
8958         * BASE-VER: Change to 5.0.0
8960 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8961             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8962             Anna Tikhonova  <anna.tikhonova@intel.com>
8963             Ilya Tocar  <ilya.tocar@intel.com>
8964             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8965             Ilya Verbin  <ilya.verbin@intel.com>
8966             Kirill Yukhin  <kirill.yukhin@intel.com>
8967             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8969         * config/i386/sse.md (define_mode_attr avx512): New.
8970         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
8971         V4DI modes.
8972         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
8973         (define_mode_attr ssse3_avx2): Ditto.
8974         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
8975         (define_mode_attr avx2_avx512bw): New.
8976         (define_mode_attr ssedoublemodelower): New.
8977         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
8978         V32HI, V64QI modes.
8979         (define_mode_attr ssebytemode): Allow V8DI modes.
8980         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
8981         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
8982         (define_mode_attr ssePSmode2): New.
8983         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
8984         V16HI, V32HI modes.
8985         (define_mode_attr dbpsadbwmode): New.
8986         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
8987         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
8988         (vi8_sse4_1_avx2_avx512): New.
8989         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
8990         mode attribute.
8991         (define_mode_attr blendbits): Move before its immediate use.
8993 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8994             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8995             Anna Tikhonova  <anna.tikhonova@intel.com>
8996             Ilya Tocar  <ilya.tocar@intel.com>
8997             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8998             Ilya Verbin  <ilya.verbin@intel.com>
8999             Kirill Yukhin  <kirill.yukhin@intel.com>
9000             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9002         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
9003         * config/i386/subst.md
9004         (define_mode_iterator SUBST_V): Update.
9005         (define_mode_iterator SUBST_A): Ditto.
9006         (define_subst_attr "mask_operand7"): New.
9007         (define_subst_attr "mask_operand10"): New.
9008         (define_subst_attr "mask_operand_arg34") : New.
9009         (define_subst_attr "mask_expand_op3"): New.
9010         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
9011         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
9012         (define_subst_attr "mask_avx512vl_condition"): New.
9013         (define_subst_attr "round_mask_operand4"): Ditto.
9014         (define_subst_attr "round_mask_scalar_op3"): Delete.
9015         (define_subst_attr "round_mask_op4"): New.
9016         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
9017         V16SImode.
9018         (define_subst_attr "round_modev8sf_condition"): New.
9019         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
9020         <MODE>mode.
9021         (define_subst_attr "round_saeonly_mask_operand4"): New.
9022         (define_subst_attr "round_saeonly_mask_op4"): New.
9023         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
9024         V8DImode, V16SImode.
9025         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
9026         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
9027         (define_subst_attr "mask_expand4_args"): New.
9028         (define_subst "mask_expand4"): New.
9030 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9031             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9032             Anna Tikhonova  <anna.tikhonova@intel.com>
9033             Ilya Tocar  <ilya.tocar@intel.com>
9034             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9035             Ilya Verbin  <ilya.verbin@intel.com>
9036             Kirill Yukhin  <kirill.yukhin@intel.com>
9037             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9039         * config/i386/i386.md
9040         (define_attr "isa"): Add avx512bw,noavx512bw.
9041         (define_attr "enabled"): Ditto.
9042         (define_split): Add 32/64-bit mask logic.
9043         (define_insn "*k<logic>qi"): New.
9044         (define_insn "*k<logic>hi"): New.
9045         (define_insn "*anddi_1"): Add mask version.
9046         (define_insn "*andsi_1"): Ditto.
9047         (define_insn "*<code><mode>_1"): Ditto.
9048         (define_insn "*<code>hi_1"): Ditto.
9049         (define_insn "kxnor<mode>"): New.
9050         (define_insn "kunpcksi"): New.
9051         (define_insn "kunpckdi"): New.
9052         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
9053         (define_insn "*one_cmplhi2_1"): Ditto.
9055 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9056             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9057             Anna Tikhonova  <anna.tikhonova@intel.com>
9058             Ilya Tocar  <ilya.tocar@intel.com>
9059             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9060             Ilya Verbin  <ilya.verbin@intel.com>
9061             Kirill Yukhin  <kirill.yukhin@intel.com>
9062             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9064         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
9065         V32HImode.
9067 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9068             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9069             Anna Tikhonova  <anna.tikhonova@intel.com>
9070             Ilya Tocar  <ilya.tocar@intel.com>
9071             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9072             Ilya Verbin  <ilya.verbin@intel.com>
9073             Kirill Yukhin  <kirill.yukhin@intel.com>
9074             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9076         * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
9077         registers.
9078         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
9079         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
9080         xmm/ymm16+ when availble.
9081         * config/i386/i386.h
9082         (HARD_REGNO_NREGS): Add mask regs.
9083         (VALID_AVX512F_REG_MODE): Ditto.
9084         (VALID_AVX512F_REG_MODE) : Define.
9085         (VALID_MASK_AVX512BW_MODE): Ditto.
9086         (reg_class) (MASK_REG_P(X)): Define.
9087         * config/i386/i386.md: Do not split long moves with mask register,
9088         use kmovb if avx512bw is availible.
9089         (movdi_internal): Handle mask registers.
9091 2014-08-14  Richard Biener  <rguenther@suse.de>
9093         PR tree-optimization/62081
9094         * tree-ssa-loop.c (pass_fix_loops): New pass.
9095         (pass_tree_loop::gate):  Do not fixup loops here.
9096         * tree-pass.h (make_pass_fix_loops): Declare.
9097         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
9099 2014-08-14  Richard Biener  <rguenther@suse.de>
9101         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
9102         (type_hash_canon): ... this and avoid 2nd lookup for the add.
9104 2014-08-14  Richard Biener  <rguenther@suse.de>
9106         PR tree-optimization/62090
9107         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
9108         (fold_builtin_2): Do not fold sprintf.
9109         (fold_builtin_3): Likewise.
9110         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
9111         moved from builtins.c.
9112         (gimple_fold_builtin): Fold sprintf.
9114 2014-08-14  Richard Biener  <rguenther@suse.de>
9116         PR rtl-optimization/62079
9117         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
9118         run cleanup_cfg.
9120 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
9122         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
9123         current_function_decl.
9125 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
9127         * cgraph.c (cgraph_node::function_symbol): Fix wrong
9128         cgraph_function_node to cgraph_node::function_symbol
9129         refactoring.
9131 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9133         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
9134         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
9136 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
9138         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
9139         warning.
9141 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
9143         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
9144         generator.
9146 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
9148         PR target/62025
9149         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
9150         any registers that are used in mem_insn.
9152 2014-08-12  Steve Ellcey  <sellcey@mips.com>
9154         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler. 
9156 2014-08-12  Steve Ellcey  <sellcey@mips.com>
9158         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
9159         (MULTILIB_DIRNAMES): Ditto.
9160         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
9161         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
9162         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
9163         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
9164         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
9165         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
9167 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9169         PR target/61413
9170         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
9171         of __ARM_SIZEOF_WCHAR_T.
9173 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9175         PR target/62098
9176         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
9177         Remove unnecessary attributes.
9179 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
9181         * internal-fn.c (init_internal_fns): Fix off-by-one.
9183 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9184             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9185             Anna Tikhonova  <anna.tikhonova@intel.com>
9186             Ilya Tocar  <ilya.tocar@intel.com>
9187             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9188             Ilya Verbin  <ilya.verbin@intel.com>
9189             Kirill Yukhin  <kirill.yukhin@intel.com>
9190             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9192         * config/i386/i386.c (standard_sse_constant_opcode): Use
9193         vpxord/vpternlog if avx512 is availible.
9195 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9197         PR middle-end/62103
9198         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
9199         bitfields, that is when size doesn't match the size of type or the
9200         size of the constructor.
9202 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
9204         * config/rs6000/constraints.md (wh constraint): New constraint,
9205         for FP registers if direct move is available.
9206         (wi constraint): New constraint, for VSX/FP registers that can
9207         handle 64-bit integers.
9208         (wj constraint): New constraint for VSX/FP registers that can
9209         handle 64-bit integers for direct moves.
9210         (wk constraint): New constraint for VSX/FP registers that can
9211         handle 64-bit doubles for direct moves.
9212         (wy constraint): Make documentation match implementation.
9214         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
9215         scalar_in_vmx_p field to simplify tests of whether SFmode or
9216         DFmode can go in the Altivec registers.
9217         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
9218         (rs6000_setup_reg_addr_masks): Likewise.
9219         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
9220         field, and wh/wi/wj/wk constraints.
9221         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
9222         the wh/wi/wj/wk constraints.
9223         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
9224         upper registers, prefer VSX registers unless the operation is a
9225         memory operation with REG+OFFSET addressing.
9227         * config/rs6000/vsx.md (VSr mode attribute): Add support for
9228         DImode.  Change SFmode to use ww constraint instead of d to allow
9229         SF registers in the upper registers.
9230         (VSr2): Likewise.
9231         (VSr3): Likewise.
9232         (VSr5): Fix thinko in comment.
9233         (VSa): New mode attribute that is an alternative to wa, that
9234         returns the VSX register class that a mode can go in, but may not
9235         be the preferred register class.
9236         (VS_64dm): New mode attribute for appropriate register classes for
9237         referencing 64-bit elements of vectors for direct moves and normal
9238         moves.
9239         (VS_64reg): Likewise.
9240         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
9241         register allocator to only registers the data type can handle.
9242         (vsx_le_perm_load_<mode>): Likewise.
9243         (vsx_le_perm_store_<mode>): Likewise.
9244         (vsx_xxpermdi2_le_<mode>): Likewise.
9245         (vsx_xxpermdi4_le_<mode>): Likewise.
9246         (vsx_lxvd2x2_le_<mode>): Likewise.
9247         (vsx_lxvd2x4_le_<mode>): Likewise.
9248         (vsx_stxvd2x2_le_<mode>): Likewise.
9249         (vsx_add<mode>3): Likewise.
9250         (vsx_sub<mode>3): Likewise.
9251         (vsx_mul<mode>3): Likewise.
9252         (vsx_div<mode>3): Likewise.
9253         (vsx_tdiv<mode>3_internal): Likewise.
9254         (vsx_fre<mode>2): Likewise.
9255         (vsx_neg<mode>2): Likewise.
9256         (vsx_abs<mode>2): Likewise.
9257         (vsx_nabs<mode>2): Likewise.
9258         (vsx_smax<mode>3): Likewise.
9259         (vsx_smin<mode>3): Likewise.
9260         (vsx_sqrt<mode>2): Likewise.
9261         (vsx_rsqrte<mode>2): Likewise.
9262         (vsx_tsqrt<mode>2_internal): Likewise.
9263         (vsx_fms<mode>4): Likewise.
9264         (vsx_nfma<mode>4): Likewise.
9265         (vsx_eq<mode>): Likewise.
9266         (vsx_gt<mode>): Likewise.
9267         (vsx_ge<mode>): Likewise.
9268         (vsx_eq<mode>_p): Likewise.
9269         (vsx_gt<mode>_p): Likewise.
9270         (vsx_ge<mode>_p): Likewise.
9271         (vsx_xxsel<mode>): Likewise.
9272         (vsx_xxsel<mode>_uns): Likewise.
9273         (vsx_copysign<mode>3): Likewise.
9274         (vsx_float<VSi><mode>2): Likewise.
9275         (vsx_floatuns<VSi><mode>2): Likewise.
9276         (vsx_fix_trunc<mode><VSi>2): Likewise.
9277         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
9278         (vsx_x<VSv>r<VSs>i): Likewise.
9279         (vsx_x<VSv>r<VSs>ic): Likewise.
9280         (vsx_btrunc<mode>2): Likewise.
9281         (vsx_b2trunc<mode>2): Likewise.
9282         (vsx_floor<mode>2): Likewise.
9283         (vsx_ceil<mode>2): Likewise.
9284         (vsx_<VS_spdp_insn>): Likewise.
9285         (vsx_xscvspdp): Likewise.
9286         (vsx_xvcvspuxds): Likewise.
9287         (vsx_float_fix_<mode>2): Likewise.
9288         (vsx_set_<mode>): Likewise.
9289         (vsx_extract_<mode>_internal1): Likewise.
9290         (vsx_extract_<mode>_internal2): Likewise.
9291         (vsx_extract_<mode>_load): Likewise.
9292         (vsx_extract_<mode>_store): Likewise.
9293         (vsx_splat_<mode>): Likewise.
9294         (vsx_xxspltw_<mode>): Likewise.
9295         (vsx_xxspltw_<mode>_direct): Likewise.
9296         (vsx_xxmrghw_<mode>): Likewise.
9297         (vsx_xxmrglw_<mode>): Likewise.
9298         (vsx_xxsldwi_<mode>): Likewise.
9299         (vsx_xscvdpspn): Tighten constraints to only use register classes
9300         the types use.
9301         (vsx_xscvspdpn): Likewise.
9302         (vsx_xscvdpspn_scalar): Likewise.
9304         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
9305         wj, and wk constraints.
9306         (GPR_REG_CLASS_P): New helper macro for register classes targeting
9307         general purpose registers.
9309         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
9310         direct moves.
9311         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
9312         DImode instead of wm.  Use wk constraint for direct move of DFmode
9313         instead of wm.
9314         (extendsidi2_lfiwax): Likewise.
9315         (lfiwax): Likewise.
9316         (lfiwzx): Likewise.
9317         (movdi_internal64): Likewise.
9319         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
9320         wk constraints. Make the wy constraint documentation match them
9321         implementation.
9323 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
9325         Replacement of isl_int by isl_val
9326         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
9327         (compute_bounds_for_param): use isl_val instead of isl_int
9328         (compute_bounds_for_loop): likewise
9329         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
9330         (build_linearized_memory_access): use isl_val instead of isl_int
9331         (pdr_stride_in_loop): likewise
9332         * graphite-optimize-isl.c:
9333         (getPrevectorMap): use isl_val instead of isl_int
9334         * graphite-poly.c:
9335         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
9336         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
9337         (extern the_isl_ctx): declare
9338         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
9339         (extract_affine_gmp): likewise
9340         (wrap): likewise
9341         (build_loop_iteration_domains): likewise
9342         (add_param_constraints): likewise
9344 2014-08-11  Richard Biener  <rguenther@suse.de>
9346         PR tree-optimization/62075
9347         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
9348         handle uses in patterns.
9350 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9351             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9352             Anna Tikhonova  <anna.tikhonova@intel.com>
9353             Ilya Tocar  <ilya.tocar@intel.com>
9354             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9355             Ilya Verbin  <ilya.verbin@intel.com>
9356             Kirill Yukhin  <kirill.yukhin@intel.com>
9357             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9359         * common/config/i386/i386-common.c
9360         (OPTION_MASK_ISA_AVX512VL_SET): Define.
9361         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
9362         (ix86_handle_option): Handle OPT_mavx512vl.
9363         * config/i386/cpuid.h (bit_AVX512VL): Define.
9364         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
9365         set -mavx512vl accordingly.
9366         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9367         OPTION_MASK_ISA_AVX512VL.
9368         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
9369         (ix86_option_override_internal): Define PTA_AVX512VL, handle
9370         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
9371         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
9372         * config/i386/i386.h (TARGET_AVX512VL): Define.
9373         (TARGET_AVX512VL_P(x)): Ditto.
9374         * config/i386/i386.opt: Add mavx512vl.
9376 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
9378         PR tree-optimization/62073
9379         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
9380         a basic block.
9382 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9383             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9384             Anna Tikhonova  <anna.tikhonova@intel.com>
9385             Ilya Tocar  <ilya.tocar@intel.com>
9386             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9387             Ilya Verbin  <ilya.verbin@intel.com>
9388             Kirill Yukhin  <kirill.yukhin@intel.com>
9389             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9391         * common/config/i386/i386-common.c
9392         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
9393         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
9394         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
9395         (ix86_handle_option): Handle OPT_mavx512bw.
9396         * config/i386/cpuid.h (bit_AVX512BW): Define.
9397         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
9398         set -mavx512bw accordingly.
9399         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9400         OPTION_MASK_ISA_AVX512BW.
9401         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
9402         (ix86_option_override_internal): Define PTA_AVX512BW, handle
9403         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
9404         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
9405         * config/i386/i386.h (TARGET_AVX512BW): Define.
9406         (TARGET_AVX512BW_P(x)): Ditto.
9407         * config/i386/i386.opt: Add mavx512bw.
9409 2014-08-11  Richard Biener  <rguenther@suse.de>
9411         PR tree-optimization/62070
9412         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
9413         Remove SSA checking.
9415 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
9417         * asan.c (asan_check_flags): New enum.
9418         (build_check_stmt_with_calls): Removed function.
9419         (build_check_stmt): Split inlining logic to
9420         asan_expand_check_ifn.
9421         (instrument_derefs): Rename parameter.
9422         (instrument_mem_region_access): Rename parameter.
9423         (instrument_strlen_call): Likewise.
9424         (asan_expand_check_ifn): New function.
9425         (asan_instrument): Remove old code.
9426         (pass_sanopt::execute): Change handling of
9427         asan-instrumentation-with-call-threshold.
9428         (asan_clear_shadow): Fix formatting.
9429         (asan_function_start): Likewise.
9430         (asan_emit_stack_protection): Likewise.
9431         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
9432         Update description.
9433         * internal-fn.c (expand_ASAN_CHECK): New function.
9434         * internal-fn.def (ASAN_CHECK): New internal function.
9435         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
9436         Update description.
9437         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
9438         * tree.c: Small comment fix.
9440 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
9442         * gimple.c (gimple_call_fnspec): Support internal functions.
9443         (gimple_call_return_flags): Use const.
9444         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
9445         * internal-fn.def: Add fnspec information.
9446         * internal-fn.h (internal_fn_fnspec): New function.
9447         (init_internal_fns): Declare new function.
9448         * internal-fn.c (internal_fn_fnspec_array): New global variable.
9449         (init_internal_fns): New function.
9450         * tree-core.h: Update macro call.
9451         * tree.c (build_common_builtin_nodes): Initialize internal fns.
9453 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
9455         * lto-streamer.h (struct output_block::symbol): Change from
9456         struct symtab_node to plain symtab_node.
9457         (referenced_from_this_partition_p): Change first parameter
9458         from struct symtab_node to plain symtab_node.
9460 2014-08-10  Marek Polacek  <polacek@redhat.com>
9462         PR c/51849
9463         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
9465 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
9467         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
9468         DECL correctly; do not give up on types in static storage.
9470 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
9472         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
9474 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
9476         * graphite-isl-ast-to-gimple.c:
9477         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
9479         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
9481 2014-08-08  Guozhi Wei  <carrot@google.com>
9483         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
9485 2014-08-08  Cary Coutant  <ccoutant@google.com>
9487         * dwarf2out.c (get_skeleton_type_unit): Remove.
9488         (output_skeleton_debug_sections): Remove skeleton type units.
9489         (output_comdat_type_unit): Likewise.
9490         (dwarf2out_finish): Likewise.
9492 2014-08-07  Yi Yang  <ahyangyi@google.com>
9494         * predict.c (expr_expected_value_1): Remove the redundant assignment.
9496 2014-08-08  Richard Biener  <rguenther@suse.de>
9498         * lto-streamer.h (struct lto_input_block): Make it a class
9499         with a constructor.
9500         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
9501         (struct lto_function_header, struct lto_simple_header,
9502         struct lto_simple_header_with_strings,
9503         struct lto_decl_header, struct lto_function_header): Make
9504         a simple inheritance hieararchy.  Remove unused fields.
9505         (struct lto_asm_header): Remove.
9506         * lto-streamer-out.c (produce_asm): Adjust.
9507         (lto_output_toplevel_asms): Likewise.
9508         (produce_asm_for_decls): Likewise.
9509         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
9510         * data-streamer-in.c (string_for_index): Likewise.
9511         * ipa-inline-analysis.c (inline_read_section): Likewise.
9512         * ipa-prop.c (ipa_prop_read_section): Likewise.
9513         (read_replacements_section): Likewise.
9514         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
9515         * lto-section-in.c (lto_create_simple_input_block): Likewise.
9516         (lto_destroy_simple_input_block): Likewise.
9517         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
9518         (lto_input_toplevel_asms): Likewise.
9520 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9521             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9522             Anna Tikhonova  <anna.tikhonova@intel.com>
9523             Ilya Tocar  <ilya.tocar@intel.com>
9524             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9525             Ilya Verbin  <ilya.verbin@intel.com>
9526             Kirill Yukhin  <kirill.yukhin@intel.com>
9527             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9529         * common/config/i386/i386-common.c
9530         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
9531         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
9532         (ix86_handle_option): Handle OPT_mavx512dq.
9533         * config/i386/cpuid.h (bit_AVX512DQ): Define.
9534         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
9535         set -mavx512dq accordingly.
9536         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9537         OPTION_MASK_ISA_AVX512DQ.
9538         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
9539         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
9540         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
9541         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
9542         * config/i386/i386.h (TARGET_AVX512DQ): Define.
9543         (TARGET_AVX512DQ_P(x)): Ditto.
9544         * config/i386/i386.opt: Add mavx512dq.
9546 2014-08-08  Richard Biener  <rguenther@suse.de>
9548         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
9549         target_percent, target_percent_s): Export.
9550         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
9551         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
9552         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
9553         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
9554         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
9555         Move to gimple-fold.c.
9556         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
9557         strcat and strcpy.
9558         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
9559         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
9560         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
9561         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
9562         (rewrite_call_expr_array): Remove.
9563         (fold_builtin_sprintf_chk): Likewise.
9564         (fold_builtin_snprintf_chk): Likewise.
9565         (fold_builtin_varargs): Remove handling of sprintf_chk,
9566         vsprintf_chk, snprintf_chk and vsnprintf_chk.
9567         (gimple_fold_builtin_sprintf_chk): Remove.
9568         (gimple_fold_builtin_snprintf_chk): Likewise.
9569         (gimple_fold_builtin_varargs): Likewise.
9570         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
9571         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
9572         * gimple.c (gimple_seq_add_seq_without_update): New function.
9573         * gimple.h (gimple_seq_add_seq_without_update): Declare.
9574         * gimple-fold.c: Include output.h.
9575         (gsi_replace_with_seq_vops): New function, split out from ...
9576         (gimplify_and_update_call_from_tree): ... here.
9577         (replace_call_with_value): New function.
9578         (replace_call_with_call_and_fold): Likewise.
9579         (var_decl_component_p): Moved from builtins.c.
9580         (gimple_fold_builtin_memory_op): Moved from builtins.c
9581         fold_builtin_memory_op and rewritten to GIMPLE.
9582         (gimple_fold_builtin_memset): Likewise.
9583         (gimple_fold_builtin_strcpy): Likewise.
9584         (gimple_fold_builtin_strncpy): Likewise.
9585         (gimple_fold_builtin_strcat): Likewise.
9586         (gimple_fold_builtin_fputs): Likewise.
9587         (gimple_fold_builtin_memory_chk): Likewise.
9588         (gimple_fold_builtin_stxcpy_chk): Likewise.
9589         (gimple_fold_builtin_stxncpy_chk): Likewise.
9590         (gimple_fold_builtin_snprintf_chk): Likewise.
9591         (gimple_fold_builtin_sprintf_chk): Likewise.
9592         (gimple_fold_builtin_strlen): New function.
9593         (gimple_fold_builtin_with_strlen): New function split out from
9594         gimple_fold_builtin.
9595         (gimple_fold_builtin): Change signature and handle
9596         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
9597         here.  Call gimple_fold_builtin_with_strlen.
9598         (gimple_fold_call): Adjust.
9600 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
9602         * calls.c (precompute_arguments): Check
9603          promoted_for_signed_and_unsigned_p and set the promoted mode.
9604         (promoted_for_signed_and_unsigned_p): New function.
9605         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
9606         and set the promoted mode.
9607         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
9608         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
9609         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
9612 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
9614         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
9615         instead of SUBREG_PROMOTED_UNSIGNED_SET.
9616         (expand_call): Likewise.
9617         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
9618         to get promoted mode.
9619         * combine.c (record_promoted_value): Skip > 0 comparison with
9620         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
9621         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
9622         of SUBREG_PROMOTED_UNSIGNED_P.
9623         (convert_modes): Likewise.
9624         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
9625         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
9626         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
9627         SUBREG_PROMOTED_UNSIGNED_SET.
9628         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
9629         instead of SUBREG_PROMOTED_UNSIGNED_SET.
9630         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
9631         SUBREG_PROMOTED_SET.
9632         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
9633         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
9634         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
9635         of SUBREG_PROMOTED_UNSIGNED_P.
9636         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
9637         (SUBREG_PROMOTED_SET): New define.
9638         (SUBREG_PROMOTED_GET): Likewise.
9639         (SUBREG_PROMOTED_SIGN): Likewise.
9640         (SUBREG_PROMOTED_SIGNED_P): Likewise.
9641         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
9642         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
9643         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
9644         instead of SUBREG_PROMOTED_UNSIGNED_GET.
9645         (nonzero_bits1): Skip > 0 comparison with the results as
9646         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
9647         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
9648         of !SUBREG_PROMOTED_UNSIGNED_P.
9649         * simplify-rtx.c (simplify_unary_operation_1): Use new
9650         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
9651         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
9652         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
9653         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
9655 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
9657         * ipa-devirt.c: Include gimple-pretty-print.h
9658         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
9659         further tests.
9660         (decl_maybe_in_construction_p): Fix conditional on cdtor check
9661         (get_polymorphic_call_info): Fix return value
9662         (type_change_info): New sturcture based on ipa-prop
9663         variant.
9664         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
9665         based on ipa-prop variant.
9666         (extr_type_from_vtbl_ptr_store): New function
9667         based on ipa-prop variant.
9668         (record_known_type): New function.
9669         (check_stmt_for_type_change): New function.
9670         (get_dynamic_type): New function.
9671         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
9672         * tree-ssa-pre.c: ipa-utils.h
9673         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
9674         machinery; sanity check with ipa-prop devirtualization.
9675         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
9676         polymorphic flag.
9678 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
9680         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
9681         * alias.c, cfgexpand.c, cgraphbuild.c,
9682         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
9683         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
9684         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
9685         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
9686         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
9687         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9688         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
9689         dse.c, except.c, gengtype.c, gimple-expr.c,
9690         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
9691         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
9692         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
9693         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
9694         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
9695         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
9696         pointer-set.h.
9697         * pointer-set.c: Remove file.
9698         * pointer-set.h: Remove file.
9700 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9702         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
9703         * config/arm/types.md (f_sels, f_seld): Delete.
9705 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9707         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
9708         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
9709         (aarch64_movdi_<mode>high): Likewise.
9710         (aarch64_mov<mode>high_di): Likewise.
9711         (aarch64_movdi_<mode>low): Likewise.
9712         (aarch64_mov<mode>low_di): Likewise.
9713         (aarch64_movtilow_tilow): Likewise.
9714         Add comment explaining usage of fp,simd attributes and of
9715         TARGET_FLOAT and TARGET_SIMD.
9717 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
9718             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9720         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
9721         Use MOVN when one of the half-words is 0xffff.
9723 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
9725         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
9727 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9729         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
9730         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
9731         (rfs_str): String corresponding to RFS_* constants.
9732         (rank_for_schedule_stats_t): New typedef.
9733         (rank_for_schedule_stats): New static variable.
9734         (rfs_result): New static function.
9735         (rank_for_schedule): Track statistics for deciding heuristics.
9736         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
9737         static functions.
9738         (ready_sort): Use them for debug printouts.
9739         (schedule_block): Init statistics state.  Print statistics on
9740         rank_for_schedule decisions.
9742 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
9744         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
9746 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
9748         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
9749         constraint.
9751 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
9753         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
9754         function to not conflict.
9755         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
9756         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
9757         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
9758         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
9759         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
9760         of pointer_map.
9762 2014-08-07  Marek Polacek  <polacek@redhat.com>
9764         * fold-const.c (fold_binary_loc): Add folding of
9765         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
9767 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
9769         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
9770         instead of type size.
9771         (ASM_FINISH_DECLARE_OBJECT): Likewise.
9773 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
9775         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
9776         (*thumb1_movqi_insn): Likewise.
9777         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
9779 2014-08-07  Tom de Vries  <tom@codesourcery.com>
9781         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
9782         (glibc_2_11_or_earlier): Remove effective-target keywords.
9784 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
9786         * config/arm/arm.c (bdesc_2arg): Fix typo.
9787         (arm_atomic_assign_expand_fenv): Remove The default implementation.
9789 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9791         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
9793 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
9795         PR debug/61923
9796         * haifa-sched.c (advance_one_cycle): Fix dump.
9797         (schedule_block): Don't advance cycle if we are already at the
9798         beginning of the cycle.
9800 2014-08-06  Martin Jambor  <mjambor@suse.cz>
9802         PR ipa/61393
9803         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
9805 2014-08-06  Richard Biener  <rguenther@suse.de>
9807         PR lto/62034
9808         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
9809         SCCs here.
9810         (lto_input_tree): Pop SCCs here.
9812 2014-08-06  Richard Biener  <rguenther@suse.de>
9814         PR tree-optimization/61320
9815         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
9816         handle misaligned loads.
9818 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
9820         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
9821         (aarch64_expand_vec_perm_const): Check for dup before zip.
9823 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9825         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
9826         CONST_INT_P instead of GET_CODE and compare.
9827         (aarch64_select_cc_mode): Likewise.
9828         (aarch64_print_operand): Likewise.
9829         (aarch64_rtx_costs): Likewise.
9830         (aarch64_simd_valid_immediate): Likewise.
9831         (aarch64_simd_check_vect_par_cnst_half): Likewise.
9832         (aarch64_simd_emit_pair_result_insn): Likewise.
9834 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
9836         * gdbhooks.py (find_gcc_source_dir): New helper function.
9837         (class PassNames): New class, locating and parsing passes.def.
9838         (class BreakOnPass): New command "break-on-pass".
9840 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
9842         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
9843         getting olde.
9845 2014-08-05  Richard Biener  <rguenther@suse.de>
9847         PR rtl-optimization/61672
9848         * emit-rtl.h (mem_attrs_eq_p): Declare.
9849         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
9850         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
9851         * cfgcleanup.c (merge_memattrs): Likewise.
9852         Include emit-rtl.h.
9854 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9856         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
9857         rather than singleton vectors.
9858         (vqdmlsls_lane_s32): Likewise.
9860 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9862         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
9863         Use VSDQ_HSI mode iterator.
9864         (aarch64_sqrdmulh_laneq<mode>): Likewise.
9865         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
9866         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
9867         Use BUILTIN_VDQHS macro.
9868         (sqrdmulh_laneq): Likewise.
9869         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
9870         (vqdmlals_laneq_s32): Likewise.
9871         (vqdmlslh_laneq_s16): Likewise.
9872         (vqdmlsls_laneq_s32): Likewise.
9873         (vqdmulhh_laneq_s16): Likewise.
9874         (vqdmulhs_laneq_s32): Likewise.
9875         (vqrdmulhh_laneq_s16): Likewise.
9876         (vqrdmulhs_laneq_s32): Likewise.
9878 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9880         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
9881         (vmuld_laneq_f64): Likewise.
9882         (vmuls_laneq_f32): Likewise.
9883         (vmul_n_f64): Likewise.
9884         (vmuld_lane_f64): Reimplement in C.
9885         (vmuls_lane_f32): Likewise.
9887 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9889         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
9890         to reservation.
9891         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
9893 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9895         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
9896         (rbitsi2): Likewise.
9897         (*arm_rev): Set predicable and predicable_short_it attributes.
9899 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9901         * convert.c (convert_to_integer): Guard transformation to lrint by
9902         -fno-math-errno.
9904 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
9906         * config/aarch64/aarch64-builtins.c
9907         (aarch64_simd_builtin_type_mode): Delete.
9908         (v8qi_UP): Remap to V8QImode.
9909         (v4hi_UP): Remap to V4HImode.
9910         (v2si_UP): Remap to V2SImode.
9911         (v2sf_UP): Remap to V2SFmode.
9912         (v1df_UP): Remap to V1DFmode.
9913         (di_UP): Remap to DImode.
9914         (df_UP): Remap to DFmode.
9915         (v16qi_UP):V16QImode.
9916         (v8hi_UP): Remap to V8HImode.
9917         (v4si_UP): Remap to V4SImode.
9918         (v4sf_UP): Remap to V4SFmode.
9919         (v2di_UP): Remap to V2DImode.
9920         (v2df_UP): Remap to V2DFmode.
9921         (ti_UP): Remap to TImode.
9922         (ei_UP): Remap to EImode.
9923         (oi_UP): Remap to OImode.
9924         (ci_UP): Map to CImode.
9925         (xi_UP): Remap to XImode.
9926         (si_UP): Remap to SImode.
9927         (sf_UP): Remap to SFmode.
9928         (hi_UP): Remap to HImode.
9929         (qi_UP): Remap to QImode.
9930         (aarch64_simd_builtin_datum): Make mode a machine_mode.
9931         (VAR1): Build builtin name.
9932         (aarch64_init_simd_builtins): Remove dead code.
9934 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
9936         * graphite-isl-ast-to-gimple.c:
9937         (set_options): New function.
9938         (scop_to_isl_ast): Add calling of set_options.
9940 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
9942         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
9943         (analyze_iv_to_split_insn): Don't initialize them.
9944         (get_ivts_expr): Removed.
9945         (allocate_basic_variable, insert_base_initialization): Use
9946         SET_SRC instead of *get_ivts_expr.
9947         (split_iv): Use &SET_SRC instead of get_ivts_expr.
9949 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
9951         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
9952         (translate_isl_ast_for_loop): Add checking of the
9953         flag_loop_parallelize_all.
9954         (ast_build_before_for): New function.
9955         (scop_to_isl_ast): Add checking of the
9956         flag_loop_parallelize_all.
9957         * graphite-dependences.c: Move the defenition of the
9958         scop_get_dependences from graphite-optimize-isl.c to this file.
9959         (apply_schedule_on_deps): Add checking of the ux's emptiness.
9960         (carries_deps): Add checking of the x's value.
9961         * graphite-optimize-isl.c: Move the defenition of the
9962         scop_get_dependences to graphite-dependences.c.
9963         * graphite-poly.h: Add declarations of scop_get_dependences
9964         and carries_deps.
9966 2014-08-04  Rohit  <rohitarulraj@freescale.com>
9968         PR target/60102
9969         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
9970         names.
9971         (alt_reg_names): Likewise.
9972         (rs6000_dwarf_register_span): For SPE high registers, replace
9973         dwarf register numbers with GCC hard register numbers.
9974         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
9975         (rs6000_dbx_register_number): For SPE high registers, return dwarf
9976         register number for the corresponding GCC hard register number.
9977         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
9978         newly added GCC hard register numbers for SPE high registers.
9979         (DWARF_FRAME_REGISTERS):  Likewise.
9980         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
9981         (DWARF_FRAME_REGNUM): Likewise.
9982         (FIXED_REGISTERS): Likewise.
9983         (CALL_USED_REGISTERS): Likewise.
9984         (CALL_REALLY_USED_REGISTERS): Likewise.
9985         (REG_ALLOC_ORDER): Likewise.
9986         (enum reg_class): Likewise.
9987         (REG_CLASS_NAMES): Likewise.
9988         (REG_CLASS_CONTENTS): Likewise.
9989         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
9991 2014-08-04  Richard Biener  <rguenther@suse.de>
9993         * gimple-fold.h (gimple_fold_builtin): Remove.
9994         * gimple-fold.c (gimple_fold_builtin): Make static.
9995         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
9996         fold_stmt, not gimple_fold_builtin.
9998 2014-08-04  Martin Liska <mliska@suse.cz>
10000         * cgraph.h (csi_end_p): Removed.
10001         (csi_next): Likewise.
10002         (csi_node): Likewise.
10003         (csi_start): Likewise.
10004         (cgraph_node_in_set_p): Likewise.
10005         (cgraph_node_set_size): Likewise.
10006         (vsi_end_p): Likewise.
10007         (vsi_next): Likewise.
10008         (vsi_node): Likewise.
10009         (vsi_start): Likewise.
10010         (varpool_node_set_size): Likewise.
10011         (cgraph_node_set_nonempty_p): Likewise.
10012         (varpool_node_set_nonempty_p): Likewise.
10013         * cgraphunit.c (cgraph_process_new_functions): vec replaces
10014         cgraph_node_set.
10015         * ipa-inline-transform.c: Likewise.
10016         * ipa-utils.c (cgraph_node_set_new): Removed.
10017         (cgraph_node_set_add): Likewise.
10018         (cgraph_node_set_remove): Likewise.
10019         (cgraph_node_set_find): Likewise.
10020         (dump_cgraph_node_set): Likewise.
10021         (debug_cgraph_node_set): Likewise.
10022         (free_cgraph_node_set): Likewise.
10023         (varpool_node_set_new): Likewise.
10024         (varpool_node_set_add): Likewise.
10025         (varpool_node_set_remove): Likewise.
10026         (varpool_node_set_find): Likewise.
10027         (dump_varpool_node_set): Likewise.
10028         (free_varpool_node_set): Likewise.
10029         (debug_varpool_node_set): Likewise.
10030         * tree-emutls.c (struct tls_var_data):
10031         (emutls_index): Removed.
10032         (emutls_decl): Likewise.
10033         (gen_emutls_addr): Function implementation uses newly added
10034         hash_map<varpool_node *, tls_var_data>.
10035         (clear_access_vars): Likewise.
10036         (create_emultls_var): Likewise.
10037         (ipa_lower_emutls): Likewise.
10038         (reset_access): New function.
10040 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
10042         * config/i386/i386.c (ix86_option_override_internal): Add
10043         PTA_RDRND and PTA_MOVBE for bdver4.
10045 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10046             James Greenhalgh  <james.greenhalgh@arm.com>
10048         * doc/md.texi (clrsb): Document.
10049         (clz): Change reference to x into operand 1.
10050         (ctz): Likewise.
10051         (popcount): Likewise.
10053 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10055         PR target/61713
10056         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
10057         move to subtarget in serial version if result is ignored.
10059 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10060             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10062         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
10063         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
10064         (sched_analyze_insn): Update use of try_group_insn to
10065         sched_macro_fuse_insns.
10066         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
10067         arguments that are not conditional jumps.
10069 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
10071         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
10072         family information. Handle BTVER2 cpu with cpuid family value.
10074 2014-08-04  Tom de Vries  <tom@codesourcery.com>
10076         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
10077         (glibc_2_11_or_earlier): Document effective-target keywords.
10079 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
10081         * ipa-devirt.c (odr_type_warn_count): Add type.
10082         (possible_polymorphic_call_targets): Set it.
10083         (ipa_devirt): Use it.
10085 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
10087         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
10088         Document.
10089         * ipa-devirt.c: Include hash-map.h
10090         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
10091         (clear_speculation): Break out of ...
10092         (get_class_context): ... here; speed up handling obviously useless
10093         speculations.
10094         (odr_type_warn_count, decl_warn_count): New structures.
10095         (final_warning_record): New structure.
10096         (final_warning_records): New static variable.
10097         (possible_polymorphic_call_targets): Cleanup handling of
10098         speculative info; do not build speculation when user do not care;
10099         record info about warnings when asked for.
10100         (add_decl_warning): New function.
10101         (type_warning_cmp): New function.
10102         (decl_warning_cmp): New function.
10103         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
10104         (gate): Enable pass when warnings are requested.
10105         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
10106         options.
10108 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
10110         * hash-map.h (default_hashmap_traits::mark_key_deleted):
10111         Fix cast.
10112         (hash_map::remove): New method.
10113         (hash_map::traverse): New method.
10114         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
10115         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
10116         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
10117         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
10118         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
10119         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
10120         pointer_map.
10122 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
10124         * hash-set.h: new File.
10125         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
10126         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
10127         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
10128         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
10129         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
10130         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
10131         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
10132         varpool.c: Use hash_set instead of pointer_set.
10134 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
10136         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
10138 2014-08-01  Jiong Wang <jiong.wang@arm.com>
10140         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
10141         for frame access when strict_p is false.
10143 2014-08-01  Renlin Li <renlin.li@arm.com>
10144 2014-08-01  Jiong Wang <jiong.wang@arm.com>
10146         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
10147         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
10148         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
10149         Declaration.
10150         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
10151         predicate.
10152         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
10153         aarch64_mem_pair_offset.
10155 2014-08-01  Jiong Wang <jiong.wang@arm.com>
10157         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
10158         offset.
10159         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
10160         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
10162 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
10164         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
10166 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
10168         PR regression/61510
10169         * cgraphunit.c (analyze_functions): Use get_create rather than get
10170         for decls which are clones of abstract functions.
10172 2014-08-01  Martin Liska  <mliska@suse.cz>
10174         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
10175         * ipa-prop.h (count_formal_params): Global function created from static.
10176         * ipa-prop.c (count_formal_params): Likewise.
10177         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
10178         profiles for semantically equivalent functions.
10179         * passes.c (do_per_function): If we load body of a function
10180         during WPA, this condition should behave same.
10181         * varpool.c (ctor_for_folding): More tolerant assert for variable
10182         aliases created during WPA.
10184 2014-08-01  Martin Liska  <mliska@suse.cz>
10186         * doc/invoke.texi (Options That Control Optimization): Documentation
10187         for -foptimize-strlen introduced. Optimization levels default options
10188         fixed.
10190 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
10192         * opts.c (common_handle_option): Handle -fsanitize=alignment.
10193         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
10194         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
10195         type to bool.
10196         * stor-layout.h (min_align_of_type): New prototype.
10197         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
10198         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
10199         check.
10200         * ubsan.c: Include builtins.h.
10201         (ubsan_expand_bounds_ifn): Change return type to bool,
10202         always return true.
10203         (ubsan_expand_null_ifn): Change return type to bool, change
10204         argument to gimple_stmt_iterator *.  Handle both null and alignment
10205         sanitization, take type from ckind argument's type rather than
10206         first argument.
10207         (instrument_member_call): Removed.
10208         (instrument_mem_ref): Remove t argument, add mem and base arguments.
10209         Handle both null and alignment sanitization, don't say whole
10210         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
10211         call instead of 2 argument.
10212         (instrument_null): Adjust instrument_mem_ref caller.  Don't
10213         instrument calls here.
10214         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
10215         like SANITIZE_NULL.
10216         * stor-layout.c (min_align_of_type): New function.
10217         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
10218         Or it into SANITIZE_UNDEFINED.
10219         * doc/invoke.texi (-fsanitize=alignment): Document.
10221 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10223         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
10225 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10227         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
10228         inchash.
10229         (vn_reference_compute_hash): Dito.
10230         (vn_nary_op_compute_hash): Dito.
10231         (vn_phi_compute_hash): Dito.
10232         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
10234 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10236         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
10237         Rename to inchash:add_expr_commutative. Convert to inchash.
10238         (iterative_hash_hashable_expr): Rename to
10239         inchash:add_hashable_expr. Convert to inchash.
10240         (avail_expr_hash): Dito.
10242 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10244         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
10245         Convert to inchash.
10247 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10249         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
10251 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10253         * Makefile.in (OBJS): Add rtlhash.o
10254         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
10255         (loc_checksum): Dito.
10256         (loc_checksum_ordered): Dito.
10257         (hash_loc_operands): Dito.
10258         (hash_locs): Dito.
10259         (hash_loc_list): Dito.
10260         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
10261         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
10262         * rtlhash.c: New file.
10263         * rtlhash.h: New file.
10265 2014-07-31  Andi Kleen  <ak@linux.intel.com>
10267         * inchash.h (inchash): Change inchash class to namespace.
10268         (class hash): ... Rename from inchash.
10269         (add_object): Move from macro to class template.
10270         * lto-streamer-out.c (hash_tree): Change inchash
10271         to inchash::hash.
10272         * tree.c (build_type_attribute_qual_variant): Dito.
10273         (type_hash_list): Dito.
10274         (attribute_hash_list): Dito.
10275         (iterative_hstate_expr): Rename to inchash::add_expr
10276         (build_range_type_1): Change inchash to inchash::hash
10277         and use hash::add_expr.
10278         (build_array_type_1): Dito.
10279         (build_function_type): Dito
10280         (build_method_type_directly): Dito.
10281         (build_offset_type): Dito.
10282         (build_complex_type): Dito.
10283         (make_vector_type): Dito.
10284         * tree.h (iterative_hash_expr): Dito.
10286 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
10288         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
10290 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
10292         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
10293         correct alphabetical position.
10294         (vpaddd_f64): Rewrite using builtins.
10295         (vpaddd_s64): Move to correct alphabetical position.
10296         (vpaddd_u64): New.
10298 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
10300         PR target/61844
10301         * config/sh/sh.c (sh_legitimate_address_p,
10302         sh_legitimize_reload_address): Handle reg+reg address modes when
10303         ALLOW_INDEXED_ADDRESS is false.
10304         * config/sh/predicates.md (general_movsrc_operand,
10305         general_movdst_operand): Likewise.
10307 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
10309         * config/aarch64/aarch64-builtins.c
10310         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
10311         BYTES_BIG_ENDIAN.
10313 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
10315         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
10316         the generated mask based on BYTES_BIG_ENDIAN.
10317         (aarch64_simd_check_vect_par_cnst_half): New.
10318         * config/aarch64/aarch64-protos.h
10319         (aarch64_simd_check_vect_par_cnst_half): New.
10320         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
10321         the check out to aarch64_simd_check_vect_par_cnst_half.
10322         (vect_par_cnst_lo_half): Likewise.
10323         * config/aarch64/aarch64-simd.md
10324         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
10325         (move_hi_quad_<mode>): Always generate a low mask.
10327 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10329         * doc/invoke.texi (AVR Options): Add documentation about
10330         __AVR_DEVICE_NAME__ built-in macro.
10332 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
10334         PR target/61948
10335         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
10336         constraints are satisfied.
10337         (<shift>di3_neon): Likewise.
10339 2014-07-31  Richard Biener  <rguenther@suse.de>
10341         PR tree-optimization/61964
10342         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
10343         by structural equality.
10345 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
10347         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
10348         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
10349         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
10350         New enums.
10351         * gcc.c (sanitize_spec_function): Support new option.
10352         (SANITIZER_SPEC): Remove now redundant check.
10353         * opts.c (common_handle_option): Support new option.
10354         (finish_options): Check for incompatibilities.
10355         * toplev.c (process_options): Split userspace-specific checks.
10357 2014-07-31  Richard Biener  <rguenther@suse.de>
10359         * lto-streamer.h (struct output_block): Remove global.
10360         (struct data_in): Remove labels, num_named_labels and
10361         num_unnamed_labels.
10362         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
10363         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
10365 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
10367         PR c++/60517
10368         * common.opt (-Wreturn-local-addr): Moved from c.opt.
10369         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
10370         (isolate_path): New argument to avoid inserting a trap.
10371         (find_implicit_erroneous_behaviour): Handle returning the address
10372         of a local variable.
10373         (find_explicit_erroneous_behaviour): Likewise.
10375 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
10377         PR lto/61868
10378         * toplev.c (init_random_seed): Move piece of code never called to
10379         set_random_seed.
10380         (set_random_seed): see above.
10382 2014-07-31  Tom de Vries  <tom@codesourcery.com>
10384         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
10386 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
10388         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
10389         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
10391 2014-07-31  Richard Biener  <rguenther@suse.de>
10393         * data-streamer.h (streamer_write_data_stream): Declare here,
10394         renamed from ...
10395         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
10396         * lto-cgraph.c (lto_output_node): Adjust.
10397         (lto_output_varpool_node): Likewise.
10398         * data-streamer-out.c (streamer_string_index): Likewise.
10399         (streamer_write_data_stream, lto_append_block): Move from ...
10400         * lto-section-out.c (lto_output_data_stream,
10401         lto_append_block): ... here.
10403 2014-07-30  Mike Stump  <mikestump@comcast.net>
10405         * configure.ac: Also check for popen.
10406         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
10407         * configure: Regenerate.
10408         * config.in:  Regenerate.
10410 2014-07-30  Martin Jambor  <mjambor@suse.cz>
10412         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
10413         parameter to gimple.
10415 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10417         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
10418         address as second parameter to __tpf_eh_return routine.
10420 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
10422         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
10423         Thumb2.
10425 2014-07-30  Tom Tromey  <tromey@redhat.com>
10427         PR c/59855
10428         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
10429         * doc/extend.texi (Type Attributes): Document designated_init
10430         attribute.
10432 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
10434         * graphite-isl-ast-to-gimple.c:
10435         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
10436         (gcc_expression_from_isl_expression): Pass type to
10437         gcc_expression_from_isl_ast_expr_id.
10439 2014-07-30  Richard Biener  <rguenther@suse.de>
10441         * lto-streamer.h (lto_write_data): New function.
10442         * langhooks.c (lhd_append_data): Do not free block.
10443         * lto-section-out.c (lto_write_data): New function writing
10444         raw data to the current section.
10445         (lto_write_stream): Adjust for langhook semantic change.
10446         (lto_destroy_simple_output_block): Write header directly.
10447         * lto-opts.c (lto_write_options): Write options directly.
10448         * lto-streamer-out.c (produce_asm): Write heaeder directly.
10449         (lto_output_toplevel_asms): Likewise.
10450         (copy_function_or_variable): Copy data directly.
10451         (write_global_references): Output index table directly.
10452         (lto_output_decl_state_refs): Likewise.
10453         (write_symbol): Write data directly.
10454         (produce_symtab): Adjust.
10455         (produce_asm_for_decls): Output header and refs directly.
10457 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
10459         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
10460         to speculative_targets
10461         (get_class_context): Fix handling of contextes without outer type;
10462         avoid matching non-polymorphic types in LTO.
10463         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
10464         parameter to speculative_targetsp; handle speculation.
10465         (dump_possible_polymorphic_call_targets): Update dumping.
10467 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
10469         * common.opt (Wodr): Enable by default.
10471 2014-07-29  Olivier Hainque  <hainque@adacore.com>
10473         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
10475 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
10477         PR bootstrap/61914
10478         * gengtype.c (strtoken): New function.
10479         (create_user_defined_type): Replace strtok with strtoken.
10481 2014-07-29  Nathan Sidwell  <nathan@acm.org>
10483         * gcov-io.c (gcov_var): Make hidden.
10484         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
10485         (gcov_do_dump): Declare.
10486         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
10488 2014-07-29  Martin Jambor  <mjambor@suse.cz>
10490         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
10491         parameter to gimple.
10492         (sra_modify_assign): Likewise.
10494 2014-07-29  Richard Biener  <rguenther@suse.de>
10496         PR middle-end/52478
10497         * expr.c (expand_expr_real_2): Revert last change.
10499 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
10501         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
10502         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
10503         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
10504         call.
10505         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
10506         (contains_type_p): Forward declare.
10507         (polymorphic_call_target_hasher::hash): Hash speculative info.
10508         (polymorphic_call_target_hasher::equal): Compare speculative info.
10509         (get_class_context): Handle speuclation.
10510         (contains_type_p): Update.
10511         (get_polymorphic_call_info_for_decl): Update.
10512         (walk_ssa_copies): Break out from ...
10513         (get_polymorphic_call_info): ... here; set speculative context
10514         before giving up.
10515         * ipa-prop.c (ipa_write_indirect_edge_info,
10516         ipa_read_indirect_edge_info): Stream speculative context.
10517         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
10518         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
10519         SPECULATIVE_MAYBE_DERIVED_TYPE).
10520         (possible_polymorphic_call_targets overriders): Update.
10521         (dump_possible_polymorphic_call_targets overriders): Update.
10522         (dump_possible_polymorphic_call_target_p overriders): Update.
10524 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
10526         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
10527         ipa-devirt path; fix thinko there.
10529 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
10531         * config/i386/i386.c (ix86_return_in_memory): Replace one
10532         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
10534 2014-07-28  Marek Polacek  <polacek@redhat.com>
10536         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
10538 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
10540         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
10541         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
10542         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
10543         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
10544         (USE_LD_AS_NEEDED): Likewise.
10545         (ASM_APP_ON): Likewise.
10546         (ASM_APP_OFF): Likewise.
10547         (TARGET_POSIX_IO): Likewise.
10548         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
10549         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
10550         (USE_LD_AS_NEEDED): Likewise.
10551         (ASM_APP_ON): Likewise.
10552         (ASM_APP_OFF): Likewise.
10553         (TARGET_POSIX_IO): Likewise.
10555 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
10557         PR middle-end/61734
10558         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
10559         operators other than the equality operators.
10561 2014-07-28  Richard Biener  <rguenther@suse.de>
10563         PR middle-end/52478
10564         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
10565         sure to register SImode ones, not only >= word_mode ones.
10566         * expr.c (expand_expr_real_2): When expanding -ftrapv
10567         binops do not use OPTAB_LIB_WIDEN.
10569 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
10571         PR middle-end/61919
10572         * tree-outof-ssa.c (insert_partition_copy_on_edge)
10573         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
10574         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
10575         inserting them in the insn stream.
10577 2014-07-28  Marek Polacek  <polacek@redhat.com>
10579         PR middle-end/61913
10580         * common.opt (Wodr): Add Var.
10582 2014-07-28  Richard Biener  <rguenther@suse.de>
10584         PR tree-optimization/61921
10585         * tree-ssa-structalias.c (create_variable_info_for_1): Check
10586         if there is a varpool node before dereferencing it.
10588 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
10590         * graphite-sese-to-poly.c:
10591         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
10592         id of the pbb), which contains pointer to the pbb1.
10594         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
10596 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
10598         * graphite-isl-ast-to-gimple.c:
10599         (graphite_create_new_guard): New function.
10600         (translate_isl_ast_node_if): New function.
10601         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
10603         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
10605 2014-07-27  Anthony Green  <green@moxielogic.com>
10607         * config.gcc: Add moxie-*-moxiebox* configuration.
10608         * config/moxie/moxiebox.h: New file.
10610 2014-07-26  Andrew Pinski  <apinski@cavium.com>
10612         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
10613         from the read only register.
10615 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
10617         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
10618         as the allocation class if it isn't likely to be spilled.
10620 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
10622         * rtl.h (tls_referenced_p): Declare.
10623         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
10624         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
10625         (mips_cannot_force_const_mem): Use tls_referenced_p.
10626         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
10627         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
10628         instead of pa_tls_referenced_p.
10629         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
10630         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
10631         (pa_legitimate_constant_p): Likewise.
10632         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
10633         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
10634         (rs6000_cannot_force_const_mem, rs6000_emit_move)
10635         (rs6000_address_for_altivec): Use tls_referenced_p instead of
10636         rs6000_tls_referenced_p.
10637         (rs6000_tls_symbol_ref_1): Delete.
10639 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
10641         PR target/44551
10642         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
10643         Optimize inverse of a VEC_CONCAT.
10645 2014-07-25  Xinliang David Li  <davidxl@google.com>
10647         * params.def: New parameter.
10648         * coverage.c (get_coverage_counts): Check new flag.
10649         (coverage_compute_profile_id): Check new flag.
10650         (coverage_begin_function): Check new flag.
10651         (coverage_end_function): Check new flag.
10652         * value-prof.c (coverage_node_map_initialized_p): New function.
10653         (init_node_map): Populate map with all functions.
10654         * doc/invoke.texi: Document new parameter.
10656 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
10657             Richard Biener <rguenther@suse.de>
10659         * lto-streamer-out.c (struct sccs): Turn to ...
10660         (class DFS): ... this one; refactor the DFS walk so it can
10661         be re-done on per-SCC basis.
10662         (DFS::DFS): New constructor.
10663         (DFS::~DFS): New destructor.
10664         (hash_tree): Add new MAP argument holding in-SCC hash values;
10665         remove POINTER_TYPE hashing hack.
10666         (scc_entry_compare): Rename to ...
10667         (DFS::scc_entry_compare): ... this one.
10668         (hash_scc): Rename to ...
10669         (DFS::hash_scc): ... this one; pass output_block instead
10670         of streamer_cache; work harder to get unique and stable SCC
10671         hashes.
10672         (DFS_write_tree): Rename to ...
10673         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
10674         (lto_output_tree): Update.
10676 2014-07-25  Andi Kleen  <ak@linux.intel.com>
10678         * lto-streamer-out.c (hash_tree): Convert to inchash.
10680 2014-07-25  Andi Kleen  <ak@linux.intel.com>
10682         * tree.c (build_type_attribute_qual_variant): Use inchash.
10683         (type_hash_list): Dito.
10684         (attribute_hash_list): Dito
10685         (iterative_hstate_expr): Dito.
10686         (iterative_hash_expr): Dito.
10687         (build_range_type_1): Dito.
10688         (build_array_type_1): Dito.
10689         (build_function_type): Dito.
10690         (build_method_type_directly): Dito.
10691         (build_offset_type): Dito.
10692         (build_complex_type): Dito.
10693         (make_vector_type): Dito.
10694         * tree.h (iterative_hash_expr): Add compat wrapper.
10695         (iterative_hstate_expr): Add.
10697 2014-07-25  Andi Kleen  <ak@linux.intel.com>
10699         * Makefile.in (OBJS): Add inchash.o.
10700         (PLUGIN_HEADERS): Add inchash.h.
10701         * ipa-devirt.c: Include inchash.h.
10702         * lto-streamer-out.c: Dito.
10703         * tree-ssa-dom.c: Dito.
10704         * tree-ssa-pre.c: Dito.
10705         * tree-ssa-sccvn.c: Dito.
10706         * tree-ssa-tail-merge.c: Dito.
10707         * asan.c: Dito.
10708         * tree.c (iterative_hash_hashval_t): Move to ...
10709         (iterative_hash_host_wide_int): Move to ...
10710         * inchash.c: Here. New file.
10711         * tree.h (iterative_hash_hashval_t): Move to ...
10712         (iterative_hash_host_wide_int): Move to ...
10713         * inchash.h: Here. New file.
10715 2014-07-25  Richard Biener  <rguenther@suse.de>
10717         PR middle-end/61762
10718         PR middle-end/61894
10719         * fold-const.c (native_encode_int): Add and handle offset
10720         parameter to do partial encodings of expr.
10721         (native_encode_fixed): Likewise.
10722         (native_encode_real): Likewise.
10723         (native_encode_complex): Likewise.
10724         (native_encode_vector): Likewise.
10725         (native_encode_string): Likewise.
10726         (native_encode_expr): Likewise.
10727         * fold-const.c (native_encode_expr): Add offset parameter
10728         defaulting to -1.
10729         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
10730         (fold_ctor_reference): Handle all reads from tcc_constant
10731         ctors.
10733 2014-07-25  Richard Biener  <rguenther@suse.de>
10735         * tree-inline.c (estimate_move_cost): Mark speed_p argument
10736         as possibly unused.
10738 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10740         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
10742 2014-07-24  Kyle McMartin  <kyle@redhat.com>
10744         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
10746 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10748         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
10749         Add prototype.
10750         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
10751         function.
10752         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
10753         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
10754         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
10756 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10758         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
10759         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
10760         aggregate types.  Instead, *all* aggregate types, except for single-
10761         element or homogeneous float/vector aggregates, are quadword-aligned
10762         if required by their type alignment.  Issue -Wpsabi note when a type
10763         is now treated differently than before.
10765 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10767         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
10768         does not fit fully into floating-point registers, and there is still
10769         space in the register parameter area, use GPRs to pass those parts
10770         of the argument.  Issue -Wpsabi note if any parameter is now treated
10771         differently than before.
10772         (rs6000_arg_partial_bytes): Update.
10774 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
10776         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
10778 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
10780         * rtl.h (target_rtl): Remove lang_dependent_initialized.
10781         * toplev.c (initialize_rtl): Don't use it.  Move previously
10782         "language-dependent" calls to...
10783         (backend_init): ...here.
10784         (lang_dependent_init_target): Don't set lang_dependent_initialized.
10785         Assert that RTL initialization hasn't happend yet.
10787 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
10789         PR rtl-optimization/61629
10790         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
10791         they have already been initialized.
10793 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
10795         PR middle-end/61268
10796         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
10797         DECL_INCOMING_RTL and entry_parm.
10798         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
10799         * calls.c (load_register_parameters): Likewise argument values.
10800         (emit_library_call_value_1, store_one_arg): Likewise argument
10801         save areas.
10802         * config/i386/i386.c (assign_386_stack_local): Likewise the local
10803         stack slot.
10804         * explow.c (validize_mem): Modify the argument in-place.
10806 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10808         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
10809         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
10811 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10813         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
10814         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
10816 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10818         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
10819         (aarch64_save_callee_saves): New parameter "skip_wb".
10820         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
10822 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
10824         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
10825         "wb_candidate2".
10826         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
10828 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
10830         * graphite-isl-ast-to-gimple.c:
10831         (graphite_create_new_loop): Add calling of isl_id_free to properly
10832         decrement reference counts.
10834         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
10836 2014-07-24  Martin Liska  <mliska@suse.cz>
10837         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
10838         function used.
10839         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
10840         (rs6000_code_end): Likewise.
10842 2014-07-24  Martin Liska  <mliska@suse.cz>
10844         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
10845         symtab_node funtion used.
10846         (rs6000_xcoff_declare_object_name): Likewise.
10848 2014-07-24  Martin Liska  <mliska@suse.cz>
10850         * cgraphunit.c (compile): Correct function used.
10852 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
10854         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
10855         as non-indexable.
10857 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
10859         PR lto/61802
10860         * varasm.c (bss_initializer_p): Handle offlined ctors.
10861         (align_variable, get_variable_align): Likewise.
10862         (make_decl_one_only): Likewise.
10863         (default_binds_local_p_1): Likewise.
10864         (decl_binds_to_current_def_p): Likewise.
10865         (get_variable_section): Get constructor if it is offlined.
10866         (assemble_variable_contents): Sanity check that the caller
10867         streamed in the ctor in LTO.
10869 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
10871         * graphite-isl-ast-to-gimple.c:
10872         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
10873         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
10874         isl_ast_op_pdiv_r to the different case.
10876         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
10878 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10880         PR middle-end/61876
10881         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
10882         when flag_errno_math is on.
10884 2014-07-24  Martin Liska  <mliska@suse.cz>
10886         * cgraph.h (varpool_node):
10887         (availability get_availability (void)):
10888         created from cgraph_variable_initializer_availability
10889         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
10890         created from: cgraph_variable_initializer_availability
10891         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
10892         (void finalize_named_section_flags (void)):
10893         created from varpool_finalize_named_section_flags
10894         (bool assemble_decl (void)): created from varpool_assemble_decl
10895         (void analyze (void)): created from varpool_analyze_node
10896         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
10897         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
10898         (void remove_initializer (void)): created from varpool_remove_initializer
10899         (tree get_constructor (void)): created from varpool_get_constructor
10900         (bool externally_visible_p (void)): created from varpool_externally_visible_p
10901         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
10902         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
10903         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
10904         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
10905         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
10906         (static bool output_variables (void)): created from varpool_output_variables
10907         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
10908         created from varpool_extra_name_alias
10909         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
10910         (static void dump_varpool (FILE *f)): created from dump_varpool
10911         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
10912         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
10913         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
10914         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
10915         (void assemble_aliases (void)): created from assemble_aliases
10917 2014-07-24  Martin Liska  <mliska@suse.cz>
10919         * cgraph.h (symtab_node):
10920         (void register_symbol (void)): created from symtab_register_node
10921         (void remove (void)): created from symtab_remove_node
10922         (void dump (FILE *f)): created from dump_symtab_node
10923         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
10924         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
10925         (struct ipa_ref *add_reference (symtab_node *referred_node,
10926         enum ipa_ref_use use_type)): created from add_reference 
10927         (struct ipa_ref *add_reference (symtab_node *referred_node,
10928         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
10929         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
10930         gimple stmt)): created from maybe_add_reference
10931         (bool semantically_equivalent_p (symtab_node *target)): created from
10932         symtab_semantically_equivalent_p
10933         (void remove_from_same_comdat_group (void)): created from
10934         remove_from_same_comdat_group
10935         (void add_to_same_comdat_group (symtab_node *old_node)): created from
10936         symtab_add_to_same_comdat_group
10937         (void dissolve_same_comdat_group_list (void)): created from
10938         symtab_dissolve_same_comdat_group_list
10939         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
10940         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
10941         created from symtab_alias_ultimate_target
10942         (inline symtab_node *next_defined_symbol (void)): created from
10943         symtab_next_defined_symbol
10944         (bool resolve_alias (symtab_node *target)): created from
10945         symtab_resolve_alias
10946         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
10947         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
10948         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
10949         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
10950         (void set_section (const char *section)): created from set_section_1 
10951         (enum availability get_availability (void)): created from symtab_node_availability
10952         (void make_decl_local (void)): created from symtab_make_decl_local
10953         (bool real_symbol_p (void)): created from symtab_read_node
10954         (can_be_discarded_p (void)): created from symtab_can_be_discarded
10955         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
10956         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
10957         symtab_in_same_comdat_p;
10958         (bool address_taken_from_non_vtable_p (void)): created from
10959         address_taken_from_non_vtable_p
10960         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
10961         (static void dump_table (FILE *)): created from dump_symtab
10962         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
10963         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
10964         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
10965         symtab_used_from_object_file_p 
10966         (void dump_base (FILE *)): created from dump_symtab_base
10967         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
10968         (void unregister (void)): created from symtab_unregister_node
10969         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
10970         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
10971         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
10972         symtab_nonoverwritable_alias_1
10973         * cgraph.h (cgraph_node):
10974         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
10975         created from cgraph_remove_node_and_inline_clones
10976         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
10977         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
10978         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
10979         (cgraph_node *function_symbol (enum availability *avail = NULL)):
10980         created from cgraph_function_node
10981         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
10982         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
10983         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
10984         created from cgraph_create_clone 
10985         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
10986         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
10987         created from cgraph_create_virtual_clone
10988         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
10989         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
10990         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
10991         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
10992         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
10993         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
10994         created from cgraph_function_version_info
10995         (struct cgraph_function_version_info *insert_new_function_version (void)):
10996         created from insert_new_cgraph_node_version
10997         (struct cgraph_function_version_info *function_version (void)): created from
10998         get_cgraph_node_version
10999         (void analyze (void)): created from analyze_function
11000         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
11001         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
11002         tree real_alias) cgraph_add_thunk
11003         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
11004         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
11005         created from cgraph_function_or_thunk_node
11006         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
11007         created from expand_thunk
11008         (void reset (void)): created from cgraph_reset_node
11009         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
11010         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
11011         (void remove (void)): created from cgraph_remove_node
11012         (void dump (FILE *f)): created from dump_cgraph_node
11013         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
11014         (bool get_body (void)): created from cgraph_get_body
11015         (void release_body (void)): created from cgraph_release_function_body
11016         (void unnest (void)): created from cgraph_unnest_node
11017         (void make_local (void)): created from cgraph_make_node_local
11018         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
11019         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
11020         gcov_type count, int freq)): created from cgraph_create_edge
11021         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
11022         gcov_type count, int freq)): created from cgraph_create_indirect_edge
11023         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
11024         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
11025         created from cgraph_create_edge_including_clones
11026         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
11027         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
11028         (void remove_callers (void)): created from cgraph_node_remove_callers
11029         (void remove_callees (void)): created from cgraph_node_remove_callees
11030         (enum availability get_availability (void)): created from cgraph_function_body_availability
11031         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
11032         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
11033         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
11034         (void call_duplication_hooks (cgraph_node *node2)): created from
11035         cgraph_call_node_duplication_hooks
11036         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
11037         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
11038         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
11039         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
11040         (void call_function_insertion_hooks (void)):
11041         created from cgraph_call_function_insertion_hooks
11042         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
11043         (bool local_p (void)): created from cgraph_local_node
11044         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
11045         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
11046         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
11047         (inline bool only_called_directly_or_aliased_p (void)):
11048         created from cgraph_only_called_directly_or_aliased_p
11049         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
11050         created from cgraph_will_be_removed_from_program_if_no_direct_calls
11051         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
11052         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
11053         (bool can_remove_if_no_direct_calls_p (void)):
11054         created from cgraph_can_remove_if_no_direct_calls_p
11055         (inline bool has_gimple_body_p (void)):
11056         created from cgraph_function_with_gimple_body_p
11057         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
11058         (static void dump_cgraph (FILE *f)): created from dump_cgraph
11059         (static inline void debug_cgraph (void)): created from debug_cgraph
11060         (static void record_function_versions (tree decl1, tree decl2)):
11061         created from record_function_versions
11062         (static void delete_function_version (tree decl)):
11063         created from delete_function_version
11064         (static void add_new_function (tree fndecl, bool lowered)):
11065         created from cgraph_add_new_function
11066         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
11067         (static cgraph_node * create (tree decl)): created from cgraph_create_node
11068         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
11069         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
11070         (static cgraph_node *get_for_asmname (tree asmname)):
11071         created from cgraph_node_for_asm
11072         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
11073         created from cgraph_same_body_alias 
11074         (static bool used_from_object_file_p_worker (cgraph_node *node,
11075         void *): new function
11076         (static bool non_local_p (cgraph_node *node, void *)):
11077         created from cgraph_non_local_node_p_1
11078         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
11079         created from verify_cgraph
11080         (static bool make_local (cgraph_node *node, void *)):
11081         created from cgraph_make_node_local
11082         (static cgraph_node *create_alias (tree alias, tree target)):
11083         created from cgraph_create_function_alias
11084         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
11085         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
11086         created from cgraph_create_edge_1
11087         * cgraph.h (varpool_node):
11088         (void remove (void)): created from varpool_remove_node
11089         (void dump (FILE *f)): created from dump_varpool_node
11091 2014-07-24  Richard Biener  <rguenther@suse.de>
11093         PR ipa/61823
11094         * tree-ssa-structalias.c (create_variable_info_for_1):
11095         Use varpool_get_constructor.
11096         (create_variable_info_for): Likewise.
11098 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
11100         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
11101         subtract outgoing area size when restoring stack_pointer_rtx.
11103 2014-07-24  Nick Clifton  <nickc@redhat.com>
11105         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
11106         that operations are taking place in parallel.
11107         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
11109 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
11111         * omp-low.c (extract_omp_for_data): Add missing break statement.
11113 2014-07-24  Richard Biener  <rguenther@suse.de>
11115         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
11116         * tree-inline.c (estimate_move_cost): Add speed_p parameter
11117         and adjust MOVE_RATIO query accordingly.
11118         (estimate_num_insns): Adjust callers.
11119         * ipa-prop.c (ipa_populate_param_decls): Likewise.
11120         * ipa-cp.c (gather_context_independent_values,
11121         estimate_local_effects): Likewise.
11122         * ipa-split.c (consider_split): Likewise.
11124 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
11126         * config/i386/driver-i386.c: Remove names of unused arguments and
11127         unnecessary unused attributes.
11128         * config/i386/host-mingw32.c: Likewise.
11129         * config/i386/i386.c: Likewise.
11130         * config/i386/winnt-stubs.c: Likewise.
11131         * config/i386/winnt.c: Likewise.
11133 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11135         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
11136         (aarch64_gen_loadwb_pair): New helper function.
11137         (aarch64_expand_epilogue): Simplify code using new helper functions.
11138         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
11140 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11142         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
11143         (aarch64_gen_storewb_pair): New helper function.
11144         (aarch64_expand_prologue): Simplify code using new helper functions.
11145         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
11147 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11149         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
11150         Rename to aarch64_save_callee_saves, remove restore code.
11151         (aarch64_restore_callee_saves): New function.
11153 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11155         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
11156         (aarch64_save_callee_saves): New function to handle reg save
11157         for both core and vectore regs.
11159 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11161         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
11162         (aarch64_gen_store_pair): New helper function.
11163         (aarch64_save_or_restore_callee_save_registers)
11164         (aarch64_save_or_restore_fprs): Use new helper functions.
11166 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11168         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
11169         (aarch64_save_or_restore_callee_save_registers)
11170         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
11172 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11174         * config/aarch64/aarch64.c
11175         (aarch64_save_or_restore_callee_save_registers)
11176         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
11178 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11180         * config/aarch64/aarch64.c
11181         (aarch64_save_or_restore_callee_save_registers)
11182         (aarch64_save_or_restore_fprs): Remove 'increment'.
11184 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11186         * config/aarch64/aarch64.c
11187         (aarch64_save_or_restore_callee_save_registers)
11188         (aarch64_save_or_restore_fprs): Use register offset in
11189         cfun->machine->frame.reg_offset.
11191 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11193         * config/aarch64/aarch64.c
11194         (aarch64_save_or_restore_callee_save_registers)
11195         (aarch64_save_or_restore_fprs): Remove base_rtx.
11197 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11199         * config/aarch64/aarch64.c
11200         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
11201         to 'start_offset'.  Remove local variable 'start_offset'.
11203 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11205         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
11206         type to HOST_WIDE_INT.
11208 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11210         * config/aarch64/aarch64.c (aarch64_expand_prologue)
11211         (aarch64_save_or_restore_fprs)
11212         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
11214 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11216         * config/arm/t-rtems-eabi: Add
11217         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
11218         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
11219         mbig-endian/mthumb/march=armv7-r, and
11220         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
11221         multilibs.
11223 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11224             Chris Johns <chrisj@rtems.org>
11225             Joel Sherrill <joel.sherrill@oarcorp.com>
11227         * config.gcc: Add nios2-*-rtems*.
11228         * config/nios2/rtems.h: New file.
11229         * gcc/config/nios2/t-rtems: New file.
11231 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
11233         PR target/61396
11234         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
11235         constant numbers, not general constants.
11236         (rs6000_expand_vector_init): Ditto.
11238 2014-07-23  Nathan Sidwell  <nathan@acm.org>
11240         * gcov-tool.c (gcov_list): Declare here.
11241         (set_gcov_list): Remove.
11242         (gcov_output_files): Set gcov_list directly.
11244 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
11246         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
11248 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
11250         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
11251         callee-saved registers are available for padding purpose
11252         and r3 is not mandatory, then prefer use those callee-saved
11253         instead of r3.
11255 2014-07-23  Richard Biener  <rguenther@suse.de>
11257         * params.def (PARAM_MAX_COMBINE_INSNS): New.
11258         * combine.c: Include statistics.h and params.h.
11259         (combine_instructions): Guard three and four insn combines
11260         with max-combine-insns value.  Record statistics for combines
11261         performed.
11262         * doc/invoke.texi (max-combine-insns): Document new param.
11264 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
11266         * graphite-isl-ast-to-gimple.c:
11267         (translate_isl_ast_node_block): New function.
11268         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
11270         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
11271         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
11273 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
11275         * graphite-isl-ast-to-gimple.c:
11276         (get_max_schedule_dimensions): New function.
11277         (extend_schedule): Likewise.
11278         (generate_isl_schedule): Add calling of extend_schedule and
11279         get_max_schedule_dimensions.
11281 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11283         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
11284         (case UNSPEC): Handle UNSPEC_RBIT.
11286 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11288         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
11289         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
11291 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11293         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
11295 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
11297         * graphite-isl-ast-to-gimple.c:
11298         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
11299         (ivs_params_clear):
11300         (build_iv_mapping): New function.
11301         (translate_isl_ast_node_user): Likewise.
11302         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
11304         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
11305         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
11306         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
11308 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
11310         PR target/55701
11311         * config/arm/arm.md (setmem): New pattern.
11312         * config/arm/arm-protos.h (struct tune_params): New fields.
11313         (arm_gen_setmem): New prototype.
11314         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
11315         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
11316         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
11317         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
11318         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
11319         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
11320         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
11321         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
11322         (arm_const_inline_cost): New function.
11323         (arm_block_set_max_insns): New function.
11324         (arm_block_set_non_vect_profit_p): New function.
11325         (arm_block_set_vect_profit_p): New function.
11326         (arm_block_set_unaligned_vect): New function.
11327         (arm_block_set_aligned_vect): New function.
11328         (arm_block_set_unaligned_non_vect): New function.
11329         (arm_block_set_aligned_non_vect): New function.
11330         (arm_block_set_vect, arm_gen_setmem): New functions.
11332 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
11334         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
11336 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
11338         PR target/61855
11339         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
11340         out of #ifdef __OPTIMIZE__.
11342 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
11344         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
11345         different trapping status if -fnon-call-exceptions is enabled.
11347 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
11349         * expr.c (store_field): Handle VOIDmode for calls that return values
11350         in multiple locations.
11352 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11354         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
11355         (altivec_vsldoi_<mode>): Likewise.
11357 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
11359         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
11360         to the number of characters in the line.
11362 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
11364         * graphite-isl-ast-to-gimple.c: Add using of
11365         build_nonstandard_integer_type instead of int128_integer_type_node.
11367 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
11369         * toplev.c (output_stack_usage): Adjust the location of the warning.
11371 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
11373         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
11374         (*membar_storeload): Disable for LEON3.
11376 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11378         PR rtl-optimization/61461
11379         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
11381 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
11383         PR target/61794
11384         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
11385         Fix instruction constraint.
11386         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
11388 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
11390         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
11392 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
11394         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
11395         GNU coding standards.
11396         (nds32_register_move_cost): Likewise.
11397         (nds32_memory_move_cost): Likewise.
11398         (nds32_address_cost): Likewise.
11400 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11402         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
11404 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
11406         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
11407         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
11408         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
11409         (HAVE_sync_compare_and_swapqi): Define.
11410         (HAVE_sync_compare_and_swaphi): Likewise.
11411         (HAVE_sync_compare_and_swapsi): Likewise.
11413 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
11415         * config/mips/p5600.md: Add missing cpu tests.
11417 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11419         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
11420         (vmla_f64): Likewise.
11421         (vfms_f64): Likewise.
11422         (vmls_f64): Likewise.
11424 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11426         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
11427         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
11429 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11431         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
11432         (vmlal_high_lane_s32): Likewise.
11433         (vmlal_high_lane_u16): Likewise.
11434         (vmlal_high_lane_u32): Likewise.
11435         (vmlsl_high_lane_s16): Likewise.
11436         (vmlsl_high_lane_s32): Likewise.
11437         (vmlsl_high_lane_u16): Likewise.
11438         (vmlsl_high_lane_u32): Likewise.
11440 2014-07-17  Terry Guo  <terry.guo@arm.com>
11442         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
11443         (alus_reg): Renamed to alus_sreg.
11444         * config/arm/arm-fixed.md: Change type of non-dsp instructions
11445         from alu_reg to alu_sreg.  Change type of dsp instructions from
11446         alu_reg to alu_dsp_reg.
11447         * config/arm/thumb1.md: Likewise.
11448         * config/arm/thumb2.md: Likewise.
11449         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
11450         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
11451         with alu_sreg and alus_sreg.
11452         * config/arm/arm1026ejs.md (alu_op): Likewise.
11453         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
11454         * config/arm/arm926ejs.md (9_alu_op): Likewise.
11455         * config/arm/fa526.md (526_alu_op): Likewise.
11456         * config/arm/fa606te.md (606te_alu_op): Likewise.
11457         * config/arm/fa626te.md (626te_alu_op): Likewise.
11458         * config/arm/fa726te.md (726te_alu_op): Likewise.
11459         * config/arm/fmp626.md (mp626_alu_op): Likewise.
11460         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
11461         alu_sreg, alu_dsp_reg and alus_sreg.
11462         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
11463         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11464         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11465         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
11466         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
11467         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11468         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11469         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11470         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
11471         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
11472         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
11473         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
11474         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
11475         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
11476         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
11477         alus_reg to alus_sreg.
11479 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
11481         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
11482         infinity format.
11484 2014-07-17  Richard Biener  <rguenther@suse.de>
11486         PR rtl-optimization/61801
11487         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
11488         don't set reg_pending_barrier if it appears in a debug-insn.
11490 2014-07-16  DJ Delorie  <dj@redhat.com>
11492         * config/rx/rx.c (rx_option_override): Fix alignment values.
11493         (rx_align_for_label): Likewise.
11495 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
11497         PR target/61737.
11498         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
11499         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11500         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
11501         functions.
11502         (cris_print_index, cris_print_operand, cris_constant_index_p)
11503         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
11504         (cris_address_cost): Ditto last CONSTANT_P.
11505         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
11506         callers changed.  Yield cris_offsettable_symbol for non-PIC
11507         constant symbolic expressions including labels.  Yield cris_unspec
11508         for all unspecs.
11509         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
11510         target to pic_offset_table_rtx for calls that will likely go
11511         through PLT, const0_rtx when they can't.  All callers changed.
11512         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
11513         symbolic expressions to be PICified.  Remove second, redundant,
11514         assert on can_create_pseudo_p returning non-zero.  Use
11515         replace_equiv_address_nv, not replace_equiv_address, for final
11516         operand update.
11517         * config/cris/cris.md ("movsi"): Move variable t to pattern
11518         toplevel. Adjust assert for new cris_symbol_type member.  Use
11519         CONSTANT_P instead of CONSTANT_ADDRESS_P.
11520         ("*movsi_internal") <case 9>: Make check for valid unspec operands
11521         for lapc stricter.
11522         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
11523         ("call", "call_value"): Use second incoming operand as a marker
11524         for pic-offset-table-register being used.
11525         ("*expanded_call_non_v32", "*expanded_call_v32")
11526         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
11527         second incoming operand to CALL, match cris_call_type_marker.
11528         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
11529         ("*expanded_call_side"): Ditto.  Fix typo in comment.
11530         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
11531         CONSTANT_P.
11532         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
11533         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
11534         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
11535         users changed.  Add members cris_offsettable_symbol and cris_unspec.
11536         (cris_symbol_type): Rename from cris_pic_symbol_type.
11537         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
11538         just CONSTANT_P.
11539         * config/cris/cris-protos.h (cris_symbol_type_of,
11540         cris_expand_pic_call_address): Adjust prototypes.
11541         (cris_legitimate_constant_p): New prototype.
11543         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
11544         an existing tmake_file.  Don't add t-slibgcc and t-linux.
11546 2014-07-17  Jason Merrill  <jason@redhat.com>
11548         PR c++/61623
11549         * symtab.c (symtab_remove_from_same_comdat_group): Also
11550         set_comdat_group to NULL_TREE.
11551         (verify_symtab): Fix diagnostic.
11553 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
11555         PR target/61662
11556         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
11558 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
11560         Support location tracking for built-in macro tokens
11561         * input.h (is_location_from_builtin_token): New function declaration.
11562         * input.c (is_location_from_builtin_token): New function definition.
11563         * toplev.c (general_init): Tell libcpp what the pre-defined
11564         spelling location for built-in tokens is.
11566 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
11568         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
11569         on the FUNCTION_DECL.
11571 2014-07-16  Richard Biener  <rguenther@suse.de>
11573         PR other/61782
11574         * doc/extend.texi (always_inline): Clarify.
11576 2014-07-15  Eric Christopher  <echristo@gmail.com>
11578         * doc/invoke.texi (Link Options): Document -z option.
11580 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
11582         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
11583         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
11585 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
11587         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
11589 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
11591         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
11592         varpool_assemble_decl.
11593         * varpool.c (varpool_assemble_decl): Assert that node->definition is
11594         true.
11596 2014-07-15  Michael Matz  <matz@suse.de>
11598         PR rtl-optimization/61772
11599         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
11601 2014-07-15  Richard Biener  <rguenther@suse.de>
11603         * opts.c (default_options_table): Disable bit-ccp at -Og.
11605 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
11607         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
11609 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
11611         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
11612         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
11613         call langhook for unknown declaration.
11614         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
11615         * tree.h (DECL_ARGUMENTS): Update.
11616         * print-tree.c (print_node): Update.
11617         * tree-core.h (tree_decl_non_common): Remove arguments.
11618         (tree_function_decl): Add arguments.
11620 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
11622         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
11624 2014-07-14  Richard Biener  <rguenther@suse.de>
11626         PR tree-optimization/61779
11627         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
11628         simplifying a condition.
11630 2014-07-14  Richard Biener  <rguenther@suse.de>
11632         * builtins.c (c_strlen): Make only_value == 2 really only
11633         affect warning generation.
11635 2014-07-14  Richard Biener  <rguenther@suse.de>
11637         PR tree-optimization/61757
11638         PR tree-optimization/61783
11639         PR tree-optimization/61787
11640         * tree-ssa-dom.c (record_equality): Revert canonicalization
11641         change and add comment.
11642         (propagate_rhs_into_lhs): Revert previous fix, removing
11643         loop depth restriction again.
11645 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11647         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
11648         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
11649         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
11650         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
11651         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
11652         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
11653         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
11655 2014-07-14  Richard Biener  <rguenther@suse.de>
11657         * cgraph.h (decl_in_symtab_p): Make inline.
11659 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
11661         PR middle-end/61294
11662         * doc/invoke.texi (-Wmemset-transposed-args): Document.
11664         PR target/61656
11665         * config/i386/i386.c (classify_argument): Don't merge classes above
11666         number of words.
11668 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
11670         * cgraph.h (symtab_node): Add nonzero_address.
11671         (decl_in_symtab_p): Break out from ...
11672         (symtab_get_node): ... here.
11673         * fold-const.c: Include cgraph.h
11674         (tree_single_nonzero_warnv_p): Use symtab to determine
11675         if symbol is non-zero.
11676         * symtab.c (symtab_node::nonzero_address): New method.
11678 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
11680         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
11681         forgotten in previous commit.
11683 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
11685         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
11686         on builtin types.
11687         * ipa-devirt.c: Include stor-layout.h and intl.h
11688         (odr_subtypes_equivalent_p): New function.
11689         (warn_odr): New function.
11690         (warn_type_mismatch): New function.
11691         (odr_types_equivalent_p): New function.
11692         (add_type_duplicate): Use it.
11693         * common.opt (Wodr): New flag.
11694         * doc/invoke.texi (Wodr): Document new warning.
11696 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
11698         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
11699         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
11700         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
11701         (varpool_get_constructor): Push CTORS_IN timevar.
11702         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
11704 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
11706         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
11707         Remove VOID_FTYPE_PUSHORT.
11708         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
11709         Change code to USHORT_FTYPE_VOID.
11710         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
11711         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
11712         (ix86_atomic_assign_expand_fenv): Update for
11713         __builtin_ia32_fnstsw changes.
11714         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
11715         (fnstsw): Change operand 0 to nonimmediate operand.
11717 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
11719         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
11720         (varpool_get_constructor): New function.
11721         (varpool_ctor_useable_for_folding_p): Break out from ...
11722         (ctor_for_folding): ... here; use varpool_get_constructor.
11723         (varpool_assemble_decl): Likewise.
11724         * lto-streamer.h (struct output_block): Turn cgraph_node
11725         to symbol filed.
11726         (lto_input_variable_constructor): Declare.
11727         * ipa-visibility.c (function_and_variable_visibility): Use
11728         varpool_get_constructor.
11729         * cgraph.h (varpool_get_constructor): Declare.
11730         (varpool_ctor_useable_for_folding_p): New function.
11731         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
11732         parameter; return error_mark_node for non-trivial constructors.
11733         (lto_write_tree_1, DFS_write_tree): Update use of
11734         get_symbol_initial_value.
11735         (output_function): Update initialization of symbol.
11736         (output_constructor): New function.
11737         (copy_function): Rename to ..
11738         (copy_function_or_variable): ... this one; handle vars too.
11739         (lto_output): Output variable sections.
11740         * lto-streamer-in.c (input_constructor): New function.
11741         (lto_read_body): Rename from ...
11742         (lto_read_body_or_constructor): ... this one; handle vars too.
11743         (lto_input_variable_constructor): New function.
11744         * ipa-prop.c (ipa_prop_write_jump_functions,
11745         ipa_prop_write_all_agg_replacement): Update.
11746         * lto-cgraph.c (compute_ltrans_boundary): Use it.
11747         (output_cgraph_opt_summary): Set symbol to NULL.
11749 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
11751         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
11752         non-polymorphic types.
11753         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
11754         * ipa-devirt.c (types_same_for_odr): Do not explode when one
11755         of types is not polymorphic.
11757 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
11759         * lra-constraints.c (remove_inheritance_pseudos): Process
11760         destination pseudo too.
11762 2014-07-11  Rong Xu  <xur@google.com>
11764         * gcov-tool.c (gcov_output_files): Fix build error introduced in
11765         commit r212448.
11767 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11769         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
11770         * config/avr/avr-devices.c (AVR_MCU): Same.
11771         (avr_mcu_types): add text start value to end of device list.
11772         * config/avr/avr-mcus.def: Add text section start for all devices.
11773         (ata5782): Add new avr5 device.
11774         (ata5831): Same.
11775         * config/avr/avr-tables.opt: Regenerate.
11776         * config/avr/avr.h: Add declaration for text section start handler.
11777         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
11778         SPEC functions.
11779         (LINK_SPEC): Include text section start handler to linker spec.
11780         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
11781         pass -Ttext option to linker if the text section start for the device
11782         is not zero.
11783         * config/avr/t-multilib: Regenerate.
11784         * doc/avr-mmcu.texi: Regenerate.
11786 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
11788         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
11789         * config/rs6000/aix52.h (LINK_SPEC): Same.
11790         * config/rs6000/aix53.h (LINK_SPEC): Same.
11791         * config/rs6000/aix61.h (LINK_SPEC): Same.
11792         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
11794 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
11796         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
11797         (graphite_verify): New function.
11798         (ivs_params_clear): New function.
11799         (gcc_expression_from_isl_ast_expr_id): New function.
11800         (gcc_expression_from_isl_expr_int): New function.
11801         (binary_op_to_tree): New function.
11802         (ternary_op_to_tree): New function.
11803         (unary_op_to_tree): New function.
11804         (nary_op_to_tree): New function.
11805         (gcc_expression_from_isl_expr_op): New function.
11806         (gcc_expression_from_isl_expression): New function.
11807         (graphite_create_new_loop): New function.
11808         (translate_isl_ast_for_loop): New function.
11809         (get_upper_bound): New function.
11810         (graphite_create_new_loop_guard): New function.
11811         (translate_isl_ast_node_for): New function.
11812         (translate_isl_ast): New function.
11813         (add_parameters_to_ivs_params): New function.
11814         (scop_to_isl_ast): New parameter ip.
11815         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
11817 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
11819         * config/xtensa/predicates.md (call expander): Update for
11820         DECL_SECTION_NAME being string.
11822 2014-07-11  Richard Biener  <rguenther@suse.de>
11824         PR middle-end/61473
11825         * builtins.c (fold_builtin_memory_op): Inline memory moves that
11826         can be implemented with a single load followed by a single store.
11827         (c_strlen): Only warn when only_value is not 2.
11829 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
11831         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
11833 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
11835         PR target/61561
11836         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
11837         (*movhi_bytes): Likewise.
11838         (*arm_movqi_insn): Likewise.
11840 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
11842         PR target/56858
11843         * config/alpha/alpha.c: Include tree-pass.h, context.h
11844         and pass_manager.h.
11845         (pass_data_handle_trap_shadows): New pass.
11846         (pass_handle_trap_shadows::gate): New pass gate function.
11847         (make_pass_handle_trap_shadows): New function.
11848         (rest_of_handle_trap_shadows): Ditto.
11850         (alpha_align_insns_1): Rename from alpha_align_insns.
11851         (pass_data_align_insns): New pass.
11852         (pass_align_insns::gate): New pass gate function.
11853         (make_pass_aling_insns): New function.
11854         (rest_of_align_insns): Ditto.
11855         (alpha_align_insns): Ditto.
11857         (alpha_option_override): Declare handle_trap_shadows info
11858         and align_insns_info.  Register handle_trap_shadows and align_insns
11859         passes here.
11860         (alpha_reorg): Do not call alpha_trap_shadows and
11861         alpha_align_insn from here.
11863         (alpha_pad_function_end): Do not skip BARRIERs.
11865 2014-07-10  Rong Xu  <xur@google.com>
11867         Add gcov-tool: an offline gcda profile processing tool support.
11868         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
11869         (gcov_is_error): Ditto.
11870         (gcov_read_string): Ditto.
11871         (gcov_read_sync): Ditto.
11872         * gcov-io.h: Move counter defines to gcov-counter.def.
11873         * gcov-dump.c (tag_counters): Use gcov-counter.def.
11874         * coverage.c: Ditto.
11875         * gcov-tool.c: Offline gcda profile processing tool.
11876         (unlink_gcda_file): Remove one gcda file.
11877         (unlink_profile_dir): Remove gcda files from the profile path.
11878         (gcov_output_files): Output gcda files to an output dir.
11879         (profile_merge): Merge two profiles in directory.
11880         (print_merge_usage_message): Print merge usage.
11881         (merge_usage): Print merge usage and exit.
11882         (do_merge): Driver for profile merge sub-command.
11883         (profile_rewrite): Rewrite profile.
11884         (print_rewrite_usage_message): Print rewrite usage.
11885         (rewrite_usage): Print rewrite usage and exit.
11886         (do_rewrite): Driver for profile rewrite sub-command.
11887         (print_usage): Print gcov-info usage and exit.
11888         (print_version): Print gcov-info version.
11889         (process_args): Process arguments.
11890         (main): Main routine for gcov-tool.
11891         * Makefile.in: Build and install gcov-tool.
11892         * gcov-counter.def: New file split from gcov-io.h.
11893         * doc/gcc.texi: Include gcov-tool.texi.
11894         * doc/gcov-tool.texi: Document for gcov-tool.
11896 2014-07-10  Richard Biener  <rguenther@suse.de>
11898         PR tree-optimization/61757
11899         * tree-ssa-dom.c (loop_depth_of_name): Restore.
11900         (propagate_rhs_into_lhs): Revert part of last change.
11902 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
11904         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
11905         FUNCTION_DECLs.
11907 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
11909         PR middle-end/53590
11910         * function.c (allocate_struct_function): Revert r188667 change.
11912         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
11914 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
11916         * doc/install.texi: Remove links to defunct package providers for
11917         Solaris.
11919 2014-07-09  Tom de Vries  <tom@codesourcery.com>
11921         * final.c (get_call_fndecl): Declare.
11922         (self_recursive_call_p): New function.
11923         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
11925 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11927         * ipa-devirt.c (record_node): Walk through aliases.
11929 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11931         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
11933 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11935         Revert:
11936         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
11938 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11940         * ipa-visibility.c (function_and_variable_visibility): Remove
11941         temporary hack disabling local aliases on AIX.
11943 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11945         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
11946         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
11948 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
11950         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
11951         * rs6000/rs6000.c: Inline output of .set instruction.
11952         (declare_alias_data): New struct.
11953         (rs6000_declare_alias): New function.
11954         (rs6000_xcoff_declare_function_name): Use it.
11955         (rs6000_xcoff_declare_object_name): New function.
11956         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
11957         (ASM_OUTPUT_DEF): Turn to empty definition.
11959 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
11961         PR bootstrap/61679
11962         * hash-table.h: use hash_table::value_type instead of
11963         Descriptor::value_type in the return types of several methods.
11965 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
11967         * tree-pass.h (pass_data): Remove has_execute member.
11968         * passes.c (execute_one_pass): Don't check pass->has_execute.
11969         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
11970         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
11971         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
11972         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
11973         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
11974         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
11975         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
11976         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
11977         gimple-low.c, gimple-ssa-isolate-paths.c,
11978         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
11979         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
11980         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
11981         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
11982         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
11983         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
11984         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
11985         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
11986         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
11987         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
11988         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
11989         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11990         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
11991         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11992         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
11993         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
11994         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
11995         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
11996         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
11997         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
11998         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
11999         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
12000         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
12001         web.c: Remove initializer for pass_data::has_execute.
12003 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
12005         * graphite-htab.h: Use hash_map instead of hash_table.
12006         * graphite-clast-to-gimple.c: Adjust.
12007         * passes.c: Use hash_map instead of hash_table.
12008         * sese.c: Likewise.
12009         * sese.h: Remove now unused code.
12011 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
12013         PR target/61599
12014         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
12015         than zero.
12017 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
12019         PR rtl-optimization/61673
12020         * combine.c (simplify_comparison): Test just mode's sign bit
12021         in tmode rather than the sign bit and any bits above it.
12023 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
12025         * graphite-isl-ast-to-gimple.c (generate_isl_context):
12026         Add __isl_give to the declaration.
12027         (generate_isl_schedule): Likewise.
12028         (scop_to_isl_ast): Likewise.
12030 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12032         * config/arm/arm.c (cortexa5_extra_costs): New table.
12033         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
12035 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
12037         PR tree-optimization/61725
12038         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
12039         range, use range_includes_zerop_p instead of integer_zerop on
12040         vr0->min, only use log2 of max if min is not negative.
12042 2014-07-08  Richard Biener  <rguenther@suse.de>
12044         * tree-ssa-dom.h (loop_depth_of_name): Remove.
12045         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
12046         restriction on loop depth difference.
12047         (record_equality): Likewise.
12048         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
12049         (loop_depth_of_name): Remove.
12050         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
12051         restriction on loop depth difference.
12052         (init_copy_prop): Likewise.
12054 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
12056         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
12057         parameter.
12058         (walk_aliased_vdefs): Likewise.
12059         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
12060         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
12061         (detect_type_change_from_memory_writes): Check if entry was reached.
12063 2014-07-08  Richard Biener  <rguenther@suse.de>
12065         PR tree-optimization/61681
12066         * tree-ssa-structalias.c (find_what_var_points_to): Expand
12067         NONLOCAL inside ESCAPED.
12069 2014-07-08  Richard Biener  <rguenther@suse.de>
12071         PR tree-optimization/61680
12072         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12073         Handle properly all read-write dependences with group accesses.
12075 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
12077         PR tree-optimization/61576
12078         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
12079         block containing reduction statement is predecessor of phi basi block.
12081 2014-07-08  Marek Polacek  <polacek@redhat.com>
12083         PR c/60226
12084         * fold-const.c (round_up_loc): Change the parameter type.
12085         Remove assert.
12086         * fold-const.h (round_up_loc): Adjust declaration.
12087         * stor-layout.c (finalize_record_size): Check for too large types.
12089 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
12091         * symtab.c: Include calls.h.
12092         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
12094 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
12096         * config/rs6000/rs6000.c (output_vec_const_move): Handle
12097         little-endian code generation.
12098         * config/rs6000/spe.md (spe_evmergehi): Rename to...
12099         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
12100         (spe_evmergehilo): Rename to...
12101         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
12102         (spe_evmergelo): Rename to...
12103         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
12104         (spe_evmergelohi): Rename to...
12105         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
12106         (spe_evmergehi, spe_evmergehilo): New expanders.
12107         (spe_evmergelo, spe_evmergelohi): Likewise.
12108         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
12109         (*frob_tf_ti): Likewise.
12110         (*frob_<mode>_di_2): Likewise.
12111         (*frob_tf_di_8_2): Likewise.
12112         (*frob_di_<mode>): Likewise.
12113         (*frob_ti_tf): Likewise.
12114         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
12115         (*frob_ti_<mode>_8_2): Likewise.
12116         (*frob_ti_tf_2): Likewise.
12117         (mov_si<mode>_e500_subreg0): Rename to...
12118         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
12119         endianness only.
12120         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
12121         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
12122         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
12123         the big endianness only.
12124         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
12125         (*mov_si<mode>_e500_subreg0_2): Rename to...
12126         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
12127         big big endianness only.
12128         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
12129         (*mov_si<mode>_e500_subreg4): Rename to...
12130         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
12131         endianness only.
12132         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
12133         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
12134         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
12135         the big endianness only.
12136         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
12137         pattern.
12138         (*mov_si<mode>_e500_subreg4_2): Rename to...
12139         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
12140         endianness only.
12141         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
12142         (*mov_sitf_e500_subreg8): Rename to...
12143         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
12144         endianness only.
12145         (*mov_sitf_e500_subreg8_le): New instruction pattern.
12146         (*mov_sitf_e500_subreg8_2): Rename to...
12147         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
12148         endianness only.
12149         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
12150         (*mov_sitf_e500_subreg12): Rename to...
12151         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
12152         endianness only.
12153         (*mov_sitf_e500_subreg12_le): New instruction pattern.
12154         (*mov_sitf_e500_subreg12_2): Rename to...
12155         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
12156         endianness only.
12157         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
12159 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
12161         * asan.c (instrument_strlen_call): Do not instrument first byte
12162         in strlen if already instrumented.
12164 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12166         * config/arm/arm.opt (mwords-little-endian): Delete.
12167         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
12168         of TARGET_LITTLE_WORDS.
12169         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
12170         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
12171         warning.
12172         * doc/invoke.texi: Remove references to -mwords-little-endian.
12174 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
12176         * expmed.c (struct init_expmed_rtl): Change all fields but
12177         pow2 and cint from struct rtx_def to rtx.
12178         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
12179         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
12180         at the end again.
12182 2014-07-06  Marek Polacek  <polacek@redhat.com>
12184         PR c/6940
12185         * doc/invoke.texi: Document -Wsizeof-array-argument.
12187 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
12189         * wide-int.h (wide_int_storage): Change declaration from struct
12190         to class.
12192 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
12194         * cgraph.c (cgraph_create_indirect_edge): Update call of
12195         get_polymorphic_call_info.
12196         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
12197         (possible_polymorphic_call_targets): Add parameter call.
12198         (decl_maybe_in_construction_p): New predicate.
12199         (get_polymorphic_call_info): Add parameter call;
12200         use decl_maybe_in_construction_p.
12201         * gimple-fold.c (fold_gimple_assign): Update use of
12202         possible_polymorphic_call_targets.
12203         (gimple_fold_call): Likewise.
12204         * ipa-prop.c: Inlcude calls.h
12205         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
12206         (param_type_may_change_p): New predicate.
12207         (detect_type_change_from_memory_writes): Break out from ...
12208         (detect_type_change): ... this one; use param_type_may_change_p.
12209         (detect_type_change_ssa): Use param_type_may_change_p.
12210         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
12212 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
12214         PR target/49423
12215         * config/arm/arm-protos.h (arm_legitimate_address_p,
12216         arm_is_constant_pool_ref): Add prototypes.
12217         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
12218         (arm_is_constant_pool_ref) New function.
12219         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
12220         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
12221         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
12222         operand. Remove pool_range and neg_pool_range attributes.
12223         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
12224         pool_range and neg_pool_range attributes.
12225         * config/arm/constraints.md (Uh): New constraint.
12226         (Uq): Don't allow constant pool references.
12228 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
12230         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
12231         (move_lo_quad_internal_be_<mode>): Likewise.
12232         (move_lo_quad_<mode>): Convert to define_expand.
12233         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
12234         (aarch64_simd_move_hi_quad_be_<mode>): New.
12235         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
12236         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
12237         (aarch64_combinez_be<mode>): New.
12238         (aarch64_combine<mode>): Convert to define_expand.
12239         (aarch64_combine_internal<mode>): New.
12240         (aarch64_simd_combine<mode>): Remove bogus RTL description.
12242 2014-07-04  Tom de Vries  <tom@codesourcery.com>
12244         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
12245         combination of earlyclobber and read/write modifiers.
12247 2014-07-04  Tom de Vries  <tom@codesourcery.com>
12249         * config/aarch64/aarch64-simd.md
12250         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
12252 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
12254         PR target/61714
12255         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
12257 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
12259         PR middle-end/61654
12260         * cgraphunit.c (expand_thunk): Call free_dominance_info.
12262         PR tree-optimization/61684
12263         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
12264         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
12266 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12267             Kito Cheng  <kito@0xlab.org>
12268             Monk Chiang  <sh.chiang04@gmail.com>
12270         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
12271         (nds32_symbol_load_store_p): Move to ...
12272         (nds32_fp_as_gp_check_available): Move to ...
12273         * config/nds32/nds32-fp-as-gp.c: ... here.
12274         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
12275         extern declaration.
12277 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12278             Kito Cheng  <kito@0xlab.org>
12279             Monk Chiang  <sh.chiang04@gmail.com>
12281         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
12282         (nds32_expand_store_multiple): Move to ...
12283         (nds32_expand_movmemqi): Move to ...
12284         * config/nds32/nds32-memory-manipulation.c: ... here.
12286 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12287             Kito Cheng  <kito@0xlab.org>
12288             Monk Chiang  <sh.chiang04@gmail.com>
12290         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
12291         (nds32_output_casesi_pc_relative): Move to ...
12292         (nds32_output_casesi): Move to ...
12293         (nds32_mem_format): Move to ...
12294         (nds32_output_16bit_store): Move to ...
12295         (nds32_output_16bit_load): Move to ...
12296         (nds32_output_32bit_store): Move to ...
12297         (nds32_output_32bit_load): Move to ...
12298         (nds32_output_32bit_load_s): Move to ...
12299         (nds32_output_stack_push): Move to ...
12300         (nds32_output_stack_pop): Move to ...
12301         * config/nds32/nds32-md-auxiliary.c: ... here.
12303 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12304             Ling-Hua Tseng  <uranus@tinlans.org>
12306         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
12307         the purpose of this file.
12309 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12310             Kito Cheng  <kito@0xlab.org>
12311             Monk Chiang  <sh.chiang04@gmail.com>
12313         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
12314         (nds32_address_cost): Move implementation to ...
12315         * config/nds32/nds32-cost.c: ... here.
12316         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
12317         (nds32_address_cost_impl): Declare.
12319 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12320             Kito Cheng  <kito@0xlab.org>
12321             Monk Chiang  <sh.chiang04@gmail.com>
12323         * config/nds32/nds32.c
12324         (nds32_consecutive_registers_load_store_p): Move to ...
12325         (nds32_valid_multiple_load_store): Move to ...
12326         (nds32_valid_stack_push_pop): Move to ...
12327         (nds32_can_use_bclr_p): Move to ...
12328         (nds32_can_use_bset_p): Move to ...
12329         (nds32_can_use_btgl_p): Move to ...
12330         (nds32_can_use_bitci_p): Move to ...
12331         * config/nds32/nds32-predicates.c: ... here.
12333 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12334             Kito Cheng  <kito@0xlab.org>
12335             Monk Chiang  <sh.chiang04@gmail.com>
12337         * config/nds32/nds32.c
12338         (nds32_expand_builtin_null_ftype_reg): Move to ...
12339         (nds32_expand_builtin_reg_ftype_imm): Move to ...
12340         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
12341         (nds32_init_builtins): Move implementation to ...
12342         (nds32_expand_builtin): Move implementation to ...
12343         * config/nds32/nds32-intrinsic.c: ... here.
12344         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
12345         (nds32_expand_builtin_impl): Declare.
12347 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12348             Kito Cheng  <kito@0xlab.org>
12349             Monk Chiang  <sh.chiang04@gmail.com>
12351         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
12352         (nds32_emit_section_tail_template): Move to ...
12353         (nds32_emit_isr_jmptbl_section): Move to ...
12354         (nds32_emit_isr_vector_section): Move to ...
12355         (nds32_emit_isr_reset_conten): Move to ...
12356         (nds32_check_isr_attrs_conflict): Move to ...
12357         (nds32_construct_isr_vectors_information): Move to ...
12358         (nds32_asm_file_start): Move implementation to ...
12359         (nds32_asm_file_end): Move implementation to ...
12360         * config/nds32/nds32-isr.c: ... here.
12361         * config/nds32/nds32-protos.h
12362         (nds32_check_isr_attrs_conflict): Declare.
12363         (nds32_construct_isr_vectors_information): Declare.
12364         (nds32_asm_file_start_for_isr): Declare.
12365         (nds32_asm_file_end_for_isr): Declare.
12367 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
12368             Kito Cheng  <kito@0xlab.org>
12369             Monk Chiang  <sh.chiang04@gmail.com>
12371         * config.gcc (nds32*): Add new modules to extra_objs.
12372         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
12373         (nds32be-*-*): Likewise.
12374         * config/nds32/nds32-cost.c: New file.
12375         * config/nds32/nds32-fp-as-gp.c: New file.
12376         * config/nds32/nds32-intrinsic.c: New file.
12377         * config/nds32/nds32-isr.c: New file.
12378         * config/nds32/nds32-md-auxiliary.c: New file.
12379         * config/nds32/nds32-memory-manipulation.c: New file.
12380         * config/nds32/nds32-pipelines-auxiliary.c: New file.
12381         * config/nds32/nds32-predicates.c: New file.
12382         * config/nds32/t-nds32: New file.
12384 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
12386         PR tree-optimization/61682
12387         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
12388         using cases and when one of the operands is equal to 1.
12390 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
12392         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
12393         ashr<mode>3): Correct mode of operands[2].
12394         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
12395         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
12396         Correct mode of operands[2].  Fix split condition.
12398 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
12400         * arm.md (arch): Add armv6_or_vfpv3.
12401         (arch_enabled): Add test for the above.
12402         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
12403         on VFP9.
12404         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
12406 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
12408         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
12409         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
12410         HWI 1 and negate the unsigned value.
12411         * expmed.c (expand_sdiv_pow2): For modes wider than word always
12412         use AND instead of shift.
12413         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
12415 2014-07-03  Marek Polacek  <polacek@redhat.com>
12417         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
12418         (-fsanitize=float-divide-by-zero): Move to the table with
12419         -fsanitize=undefined suboptions.
12420         (-fsanitize=float-cast-overflow): Likewise.
12422 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
12424         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
12425         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
12426         endianness.
12428 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12430         * loop-invariant.c (struct invariant): Add a new member: eqno;
12431         (find_identical_invariants): Update eqno;
12432         (create_new_invariant): Init eqno;
12433         (get_inv_cost): Compute comp_cost with eqno;
12435 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
12437         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
12438         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
12439         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
12440         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
12441         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
12443 2014-07-02  Christian Bruel  <christian.bruel@st.com>
12445         PR target/29349
12446         PR target/53513
12447         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
12448         (make_preds_opaque): Delete.
12449         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
12450         (commit_mode_sets): New function.
12451         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
12452         Process all modes at once.
12453         * basic-block.h (pre_edge_lcm_avs): Declare.
12454         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
12455         Call clear_aux_for_edges. Fix comments.
12456         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
12457         (pre_edge_rev_lcm): Idem.
12458         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
12459         parameter.
12460         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
12461         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12462         Idem.
12463         * config/i386/i386.c (x96_emit_mode_set): Idem.
12464         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
12465         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
12466         (fpscr_toggle) Disallow from delay slot.
12467         * target.def (emit_mode_set): Add prev_mode parameter.
12468         * doc/tm.texi: Regenerate.
12470 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12472         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
12473         variable i.
12475 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
12477         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
12478         vtable_pointer_value_to_vtable): Constify.
12479         (contains_polymorphic_type_p): Declare.
12480         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
12481         vtable_pointer_value_to_vtable): Constify.
12482         (contains_polymorphic_type_p): New predicate.
12483         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
12484         polymorphic types.
12485         (ipa_set_ancestor_jf): Likewise.
12486         (detect_type_change): Return false in easy cases.
12487         (compute_complex_assign_jump_func): Require type to contain
12488         polymorphic type.
12489         (compute_known_type_jump_func): Likewise.
12491 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
12493         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
12494         Remove.
12495         (type_in_anonymous_namespace_p): Constify argument.
12496         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
12497         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
12498         (main_odr_variant): New function.
12499         (hash_type_name): Make static; update assert; do not ICE on
12500         non-records.
12501         (types_same_for_odr): Bring here from tree.c; simplify and remove
12502         old structural comparing code that doesn't work for templates.
12503         (odr_hasher::equal): Update assert.
12504         (add_type_duplicate): Return true when bases should be computed;
12505         replace incomplete loader by complete; do not output duplicated
12506         warnings; do not ICE on non-records; set odr_violated flag.
12507         (get_odr_type): Be ready to replace incomplete type by complete
12508         one; work on ODR variants instead of main variants; reorder item
12509         in array so bases have still smaller indexes.
12510         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
12511         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
12513 2014-07-01  Cary Coutant  <ccoutant@google.com>
12515         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
12516         lookup.
12517         (resolve_addr_in_expr): When replacing the rtx in a location list
12518         entry, get a new address table entry.
12519         (dwarf2out_finish): Call index_location_lists even if there are no
12520         addr_index_table entries yet.
12522 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
12524         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
12525         change for not being obvious.
12527 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
12529         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
12530         unused argument.
12532 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12534         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
12535         (vcagt_f64): Likewise.
12536         (vcale_f64): Likewise.
12537         (vcaled_f64): Likewise.
12538         (vcales_f32): Likewise.
12539         (vcalt_f64): Likewise.
12540         (vcaltd_f64): Likewise.
12541         (vcalts_f32): Likewise.
12543 2014-07-01  Marek Polacek  <polacek@redhat.com>
12545         * doc/invoke.texi: Document -Wint-conversion.
12547 2014-07-01  Marek Polacek  <polacek@redhat.com>
12549         PR c/58286
12550         * doc/invoke.texi: Document -Wincompatible-pointer-types.
12552 2014-07-01  Martin Liska  <mliska@suse.cz>
12554         IPA REF alias refactoring
12555         * cgraph.h (iterate_direct_aliases): New function.
12556         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
12557         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
12558         FOR_EACH_ALIAS added.
12559         (cgraph_for_node_and_aliases): Likewise.
12560         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
12561         * ipa-inline.c (reset_edge_caches): Likewise.
12562         (update_caller_keys): Likewise.
12563         * trans-mem.c (ipa_tm_execute): Likewise.
12564         *varpool.c (varpool_analyze_node): Likewise.
12565         (varpool_for_node_and_aliases): Likewise.
12566         * ipa-ref.h (first_alias): New function.
12567         (last_alias): Likewise.
12568         (has_aliases_p): Likewise.
12569         * ipa-ref.c (ipa_ref::remove_reference): Removal function
12570         is sensitive to IPA_REF_ALIASes.
12571         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
12572         are put at the beginning of the list.
12573         (symtab_node::iterate_direct_aliases): New function.
12575 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12577         Revert:
12578         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
12579         type is complete.
12580         (write_ts_type_common_tree_pointers): Do not stream fields not set
12581         for incomplete types; do not stream duplicated fields for variants;
12582         sanity check that variant and type match.
12583         (write_ts_type_non_common_tree_pointers): Likewise.
12584         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
12585         TYPE_SIZE whether type is complete.
12586         (lto_input_ts_type_common_tree_pointers): Do same changes as in
12587         write_ts_type_common_tree_pointers
12588         (lto_input_ts_type_non_common_tree_pointers): Likewise.
12590 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
12592         * var-tracking.c (add_stores): Return instead of asserting if old
12593         and new values for conditional store are the same.
12595 2014-06-30  Richard Henderson  <rth@redhat.com>
12597         PR rtl-opt/61608
12598         PR target/39284
12599         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
12600         the cfg if there were any changes.
12601         * passes.def: Revert move of peephole2 after reorder_blocks;
12602         move duplicate_computed_gotos before peephole2.
12604 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
12606         * except.c (emit_note_eh_region_end): New helper function.
12607         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
12608         emit EH_REGION_END note.
12609         * jump.c (cleanup_barriers): Do not split a call and its
12610         corresponding CALL_ARG_LOCATION note.
12612 2014-06-30  Jeff Law  <law@redhat.com>
12614         PR tree-optimization/61607
12615         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
12616         deeper into the SSA_NAME_VALUE chain.
12618 2014-06-30  Marek Polacek  <polacek@redhat.com>
12620         * convert.c (convert_to_integer): Don't instrument conversions if the
12621         function has no_sanitize_undefined attribute.
12622         * ubsan.c: Don't run the ubsan pass if the function has
12623         no_sanitize_undefined attribute.
12625 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
12627         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
12628         -fsanitize=undefined suboptions.
12630 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
12632         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
12633         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
12634         against bigendian and adjust indices.
12636 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
12638         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
12640 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12642         PR target/61633
12643         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
12644         Add alternative; make early clobber.  Adjust both split patterns
12645         to use operand 0 as the working register.
12647 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
12649         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
12650         as ira_object_id_map might be NULL, or 1.
12652 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12654         * loop-invariant.c (get_inv_cost): Handle register class.
12655         (gain_for_invariant): Check the register pressure of the inv
12656         and its overlapped register class, other than all.
12658 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
12660         * doc/invoke.texi (Optimize Options): Fix descriptions of
12661         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
12663 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
12665         * doc/extend.texi (Function Attributes): Update 'naked' attribute
12666         documentation.
12668 2014-06-29  Tobias Grosser <tobias@grosser.es>
12670         PR bootstrap/61650
12671         * graphite-isl-ast-to-gimple.c: Add missing guards.
12673 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
12675         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
12676         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
12677         * flag-types.h: Add new enum fgraphite_generator.
12678         * graphite-isl-ast-to-gimple.c: New.
12679         * graphite-isl-ast-to-gimple.h: New.
12680         * graphite.c (graphite_transform_loops): Add choice of Graphite
12681         code generator, which depends on flag_graphite_code_gen.
12683 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
12685         * graphite-dependences.c (subtract_commutative_associative_deps):
12686         Add NULL checking of the following variables: must_raw_no_source,
12687         may_raw_no_source, must_war_no_source, may_war_no_source,
12688         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
12689         must_war, may_war, must_waw, may_waw.
12691 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
12693         * graphite-clast-to-gimple.c: gloog is renamed to
12694         graphite_regenerate_ast_cloog.  gloog_error is renamed to
12695         graphite_regenerate_error.
12696         * graphite-clast-to-gimple.h: The definition of the struct
12697         bb_pbb_def is moved to graphite-htab.h.
12698         Add inclusion of the hash-table.h.
12699         * graphite-htab.h: The declaration of the function gloog is moved
12700         to graphite-clast-to-gimple.h and renamed to
12701         graphite_regenerate_ast_cloog.
12702         * graphite.c (graphite_transform_loops): gloog is renamed
12703         to graphite_regenerate_ast_cloog.
12705 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12707         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
12708         type is complete.
12709         (write_ts_type_common_tree_pointers): Do not stream fields not set
12710         for incomplete types; do not stream duplicated fields for variants;
12711         sanity check that variant and type match.
12712         (write_ts_type_non_common_tree_pointers): Likewise.
12713         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
12714         TYPE_SIZE whether type is complete.
12715         (lto_input_ts_type_common_tree_pointers): Do same changes as in
12716         write_ts_type_common_tree_pointers
12717         (lto_input_ts_type_non_common_tree_pointers): Likewise.
12719 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12721         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
12723 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12725         * tree-inline.c (remap_type_1): Do not duplicate fields
12726         that are shared in between type and its main variant.
12728 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12730         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
12731         of the type.
12732         (ipa_set_ancestor_jf) Likewise.
12733         (check_stmt_for_type_change): Check that we work on main variant.
12734         (detect_type_change): Look into main variant.
12735         (compute_known_type_jump_func): Check that main variant has BINFO.
12737 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12739         * ipa-devirt.c (set_type_binfo): New function.
12740         (add_type_duplicate): Use it.
12741         (get_odr_type): Sanity check that binfos points to main variants.
12742         (get_class_context): Be sure the context's outer_type is main variant.
12743         (contains_type_p): Walk main variant.
12744         (get_polymorphic_call_info_for_decl): Set outer_type to be
12745         main variant.
12746         (get_polymorphic_call_info): Likewise.
12747         (possible_polymorphic_call_targets): Sanity check that we operate
12748         on main variant.
12750 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
12752         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
12754 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12756         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
12757         accidental change due to wide-int branch merge.
12759 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12761         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
12762         compressed debug support.
12763         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
12764         * configure: Regenerate.
12765         * config.in: Regenerate.
12766         * common.opt (compressed_debug_sections): New enum.
12767         (gz, gz=): New options.
12768         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
12769         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
12770         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
12771         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
12772         LINK_COMPRESS_DEBUG_SPEC.
12773         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
12774         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
12775         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
12776         (Debugging Options): Document -gz[=type].
12778 2014-06-27  Martin Jambor  <mjambor@suse.cz>
12780         PR ipa/61160
12781         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
12782         args_to_skip, use those from node instead.  Copy args_to_skip and
12783         combined_args_to_skip from node to the new thunk.
12784         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
12785         (cgraph_create_virtual_clone): Moved computation of
12786         combined_args_to_skip...
12787         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
12789 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
12791         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
12792         redundant diagnostic machinary.
12794 2014-06-27  Richard Biener  <rguenther@suse.de>
12796         * tree-ssa-math-opts.c (bswap_replace): Fix
12797         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
12799 2014-06-27  Martin Liska  <mliska@suse.cz>
12801         * gimple.h (gimple_location_safe): New function introduced.
12802         * cgraphunit.c (walk_polymorphic_call_targets): Usage
12803         of gimple_location_safe replaces gimple_location.
12804         (gimple_fold_call): Likewise.
12805         * ipa-devirt.c (ipa_devirt): Likewise.
12806         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
12807         * ipa.c (walk_polymorphic_call_targets): Likewise.
12808         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
12810 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
12812         PR tree-optimization/57233
12813         PR tree-optimization/61299
12814         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
12815         functions.
12816         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
12817         would be lowered to scalar shifts, check if corresponding
12818         shifts and vector BIT_IOR_EXPR are supported and don't lower
12819         or lower just to narrower vector type in that case.
12820         * expmed.c (expand_shift_1): Fix up handling of vector
12821         shifts and rotates.
12823 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
12825         PR target/61586
12826         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
12828 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
12830         * doc/invoke.texi (-fsemantic-interposition): Document.
12831         * common.opt (fsemantic-interposition): New flag.
12832         * varasm.c (decl_replaceable_p): Use it.
12834 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12836         PR target/61542
12837         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
12838         extraction other than index 3.
12840 2014-06-26  Teresa Johnson  <tejohnson@google.com>
12842         * doc/invoke.texi: Fix typo.
12843         * dumpfile.c: Add support for documented -fdump-* options
12844         optimized/missed/note/optall.
12846 2014-06-26  Martin Jambor  <mjambor@suse.cz>
12848         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
12849         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
12850         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
12851         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
12852         * opts.c (default_options_optimization): Set
12853         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
12854         * doc/invoke.texi (allow-load-data-races)
12855         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
12856         (allow-store-data-races): Document the new default.
12858 2014-06-26  Martin Jambor  <mjambor@suse.cz>
12860         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
12861         renamed to ipa_impossible_devirt_target.  Fix typo.
12862         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
12863         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
12864         ipa_impossible_devirt_target.
12866 2014-06-26  Richard Biener  <rguenther@suse.de>
12868         PR tree-optimization/61607
12869         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
12870         explaining why we restrict copies on loop depth.
12871         * tree-ssa-dom.c (cprop_operand): Remove restriction on
12872         on loop depth.
12873         (record_equivalences_from_phis): Instead add it here.
12875 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
12877         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
12878         (LTO_WRAPPER_OBJS): New variable.
12879         (lto-wrapper$(exeext)): Use it.
12880         * collect2.c: Include "collect-utils.h".
12881         (verbose, debug): Remove variables.
12882         (at_file_supplied): No longer static.
12883         (tool_name): New variable.
12884         (do_wait, fork_execute, maybe_unlink): Don't declare.
12885         (tool_cleanup): No longer static.
12886         (notice): Remove function.
12887         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
12888         fork_execute calls.
12889         (collect_wait, do_wait, collect_execute): Remove functions.
12890         (maybe_unlink): No longer static.
12891         * collect2.h (verbose, debug): Don't declare.
12892         (at_file_supplied): Declare.
12893         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
12894         changed.
12895         (collect_execute): Replace with implementation from collect2, plus a
12896         new arg use_atfile.  All callers changed.
12897         (collect_wait): Replace with implementation from collect2.
12898         (maybe_unlink_file): Remove function.
12899         (fork_execute): Replace with implementation from collect2, plus a
12900         new arg use_atfile.  All callers changed.
12901         (do_wait): Add call to utils_cleanup to the error path.
12902         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
12903         (tool_cleanup): Adjust declarations.
12904         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
12905         * tlink.c: Include "collect-utils.h".
12906         (tlink_execute): New arg use_atfile.  All callers changed.
12907         (tlink_init, tlink_execute): Remove declarations.
12909         * collect-utils.c (save_temps): New variable.
12910         (do_wait): Use it instead of debug.  Use fatal_error.
12911         * collect-utils.h (save_temps): Declare.
12912         * collect2.c (verbose): Rename from vflag.  All uses changed.
12913         (tool_cleanup): New function, copied from collect_atexit.
12914         (collect_atexit, handler): Just call it.
12915         * collect2.h (verbose): Declaration renamed from vflag.
12916         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
12917         debug.
12919         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
12920         (lto-wrapper$(exeext)): Link with collect-utils.o.
12921         * collect-utils.c: New file.
12922         * collect-utils.h: New file.
12923         * lto-wrapper.c: Include "collect-utils.h".
12924         (args_name): Delete variable.
12925         (tool_name): New variable.
12926         (tool_cleanup): New function.
12927         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
12928         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
12929         (fork_execute): Remove functions.
12931 2014-06-26  Nick Clifton  <nickc@redhat.com>
12933         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
12935         * doc/extend.texi (Function Attributes): Fix typo in description
12936         of RX vector attribute.
12938 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
12940         * config.gcc (supported_defaults): Error when passing either
12941         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
12943 2014-06-26  Richard Biener  <rguenther@suse.de>
12945         * tree-ssa-dom.c (cprop_operand): Remove restriction on
12946         propagating volatile pointers.
12948 2014-06-26  Richard Biener  <rguenther@suse.de>
12950         PR tree-optimization/61607
12951         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
12952         loop if we redirected its latch edge.
12953         (thread_block_1): Do not cancel loops prematurely.
12955 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
12957         * toplev.c (backend_init_target): Move init_emit_regs and
12958         init_regs to...
12959         (backend_init) ... here; skip ira_init_once and backend_init_target.
12960         (target_reinit) ... and here; clear
12961         this_target_rtl->lang_dependent_initialized.
12962         (lang_dependent_init_target): Clear
12963         this_target_rtl->lang_dependent_initialized;
12964         break out rtl initialization to ...
12965         (initialize_rtl): ... here; call also backend_init_target
12966         and ira_init_once.
12967         * toplev.h (initialize_rtl): New function.
12968         * function.c: Include toplev.h
12969         (init_function_start): Call initialize_rtl.
12970         * rtl.h (target_rtl): Add target_specific_initialized,
12971         lang_dependent_initialized.
12973 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
12974             Jakub Jelinek  <jakub@redhat.com>
12976         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
12978 2014-06-25  Tom de Vries  <tom@codesourcery.com>
12980         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
12982 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12984         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
12985         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
12986         Issue a strict overflow warning if appropriate.
12988 2014-06-25  Martin Liska  <mliska@suse.cz>
12990         IPA REF refactoring
12991         * Makefile.in: Removed header file (ipa-ref-inline.h).
12992         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
12993         called.
12994         (cgraph_speculative_call_info): Likewise.
12995         (cgraph_for_node_thunks_and_aliases): Likewise.
12996         (cgraph_for_node_and_aliases): Likewise.
12997         (verify_cgraph_node): Likewise.
12998         * cgraph.h: Batch of IPA REF functions become member functions of
12999         symtab_node: add_reference, maybe_add_reference, clone_references,
13000         clone_referring, clone_reference, find_reference,
13001         remove_stmt_references, remove_all_references,
13002         remove_all_referring, dump_references, dump_referring,
13003         has_alias_p, iterate_reference, iterate_referring.
13004         * cgraphbuild.c (record_reference): New IPA REF function used.
13005         (record_type_list): Likewise.
13006         (record_eh_tables): Likewise.
13007         (mark_address): Likewise.
13008         (mark_load): Likewise.
13009         (mark_store): Likewise.
13010         (pass_build_cgraph_edges): Likewise.
13011         (rebuild_cgraph_edge): Likewise.
13012         (cgraph_rebuild_references): Likewise.
13013         (pass_remove_cgraph_callee_edges): Likewise.
13014         * cgraphclones.c (cgraph_clone_node): Likewise.
13015         (cgraph_create_virtual_clone): Likewise.
13016         (cgraph_materialize_clone): Likewise.
13017         (cgraph_materialize_all_clones): Likewise.
13018         * cgraphunit.c (cgraph_reset_node): Likewise.
13019         (cgraph_reset_node): Likewise.
13020         (analyze_function): Likewise.
13021         (assemble_thunks_and_aliases): Likewise.
13022         (expand_function): Likewise.
13023         * ipa-comdats.c (propagate_comdat_group): Likewise.
13024         (enqueue_references): Likewise.
13025         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
13026         (create_specialized_node): Likewise.
13027         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
13028         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
13029         * ipa-inline.c (reset_edge_caches): Likewise.
13030         (update_caller_keys): Likewise.
13031         (execute): Likewise.
13032         * ipa-prop.c (remove_described_reference): Likewise.
13033         (propagate_controlled_uses): Likewise.
13034         (ipa_edge_duplication_hook): Likewise.
13035         (ipa_modify_call_arguments): Likewise.
13036         * ipa-pure-const.c (propagate_pure_const): Likewise.
13037         * ipa-ref-inline.h: Header file removed, functions moved
13038         to symtab_node class.
13039         * ipa-ref.c (remove_reference): New class member function.
13040         (cannot_lead_to_return): New class member function.
13041         (referring_ref_list): Likewise.
13042         (referred_ref_list): Likewise.
13043         Rest of functions moved to symtab_node class.
13044         * ipa-ref.h: New member functions remove_reference,
13045         cannot_lead_to_return, referring_ref_list, referred_ref_list added
13046         to ipa_ref class.
13047         ipa_ref_list class has new member functions: first_reference,
13048         first_referring, clear, nreferences.
13049         * ipa-reference.c (analyze_function): New IPA REF function used.
13050         (write_node_summary_p): Likewise.
13051         (ipa_reference_write_optimization_summary): Likewise.
13052         * ipa-split.c (split_function): Likewise.
13053         * ipa-utils.c (ipa_reverse_postorder): Likewise.
13054         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
13055         (function_and_variable_visibility): Likewise.
13056         * ipa.c (has_addr_references_p): Likewise.
13057         (process_references): Argument type changed.
13058         (symtab_remove_unreachable_nodes): New IPA REF function used.
13059         (process_references): Likewise.
13060         (set_writeonly_bit): Likewise.
13061         * lto-cgraph.c: Implementation of new symtab_node member functions
13062         that uses new IPA REF functions.
13063         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
13064         function used.
13065         * lto-streamer-out.c (output_symbol_p): Likewise.
13066         * lto-streamer.h (referenced_from_this_partition_p): Argument type
13067         changed.
13068         * symtab.c: Implementation of new IPA REF API.
13069         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
13070         (ipa_tm_create_version): Likewise.
13071         (ipa_tm_execute): Likewise.
13072         * tree-emutls.c (gen_emutls_addr): Likewise.
13073         * tree-inline.c (copy_bb): Likewise.
13074         (delete_unreachable_blocks_update_callgraph): Likewise.
13075         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
13076         (varpool_for_node_and_aliases): Likewise.
13078 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
13080         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
13082 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
13084         PR bootstrap/61598
13085         * fold-const.c (fold_checksum_tree): Use a hash_table of const
13086         tree_node * instead of tree_node *.
13087         (fold): Adjust.
13088         (print_fold_checksum): Likewise.
13089         (fold_check_failed): Likewise.
13090         (debug_fold_checksum): Likewise.
13091         (fold_build1_stat_loc): Likewise.
13092         (fold_build2_stat_loc): Likewise.
13093         (fold_build3_stat_loc): Likewise.
13094         (fold_build_call_array_loc): Likewise.
13096 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
13098         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
13099         implementation with call to...
13100         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
13101         function.
13102         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
13103         Declare.
13105 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
13107         PR tree-optimization/57742
13108         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
13109         after replacing the statement.
13111 2014-06-25  Nick Clifton  <nickc@redhat.com>
13113         * config/v850/v850.c (GHS_default_section_names): Change to const
13114         char * type.
13115         (GHS_current_section_names): Likewise.
13116         (v850_insert_attributes): Do not build strings, just assign the
13117         names directly.  Change the type of 'chosen_section' to const
13118         char*.
13119         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
13120         directly to the array entry.
13121         * config/v850/v850.h (GHS_default_section_names): Change to const
13122         char * type.
13123         (GHS_current_section_names): Likewise.
13125 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
13127         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
13128         (LANG_HOOKS_DECLS): Add it.
13129         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
13130         has correct type.
13131         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
13132         * langhooks.h (struct lang_hooks_for_decls): Add
13133         omp_clause_linear_ctor hook.
13134         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
13135         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
13136         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
13137         combined simd loop use omp_clause_linear_ctor hook.
13139 2014-06-24  Cong Hou  <congh@google.com>
13141         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
13142         pattern recognition.
13143         (type_conversion_p): PROMOTION is true if it's a type promotion
13144         conversion, and false otherwise.  Return true if the given expression
13145         is a type conversion one.
13146         * tree-vectorizer.h: Adjust the number of patterns.
13147         * tree.def: Add SAD_EXPR.
13148         * optabs.def: Add sad_optab.
13149         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
13150         * expr.c (expand_expr_real_2): Likewise.
13151         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13152         * gimple.c (get_gimple_rhs_num_ops): Likewise.
13153         * optabs.c (optab_for_tree_code): Likewise.
13154         * tree-cfg.c (estimate_operator_cost): Likewise.
13155         * tree-ssa-operands.c (get_expr_operands): Likewise.
13156         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
13157         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
13158         * doc/generic.texi: Add document for SAD_EXPR.
13159         * doc/md.texi: Add document for ssad and usad.
13161 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
13163         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
13164         qualification in cast.
13166 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
13168         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
13169         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
13170         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
13171         (tree_function_decl): ... here.
13172         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
13173         streaming of vindex to ...
13174         (write_ts_function_decl_tree_pointers): ... here.
13175         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
13176         Do not stream DECL_VINDEX.
13177         (lto_input_ts_function_decl_tree_pointers): Stream it here.
13179 2014-06-24  Catherine Moore  <clm@codesourcery.com>
13180             Sandra Loosemore  <sandra@codesourcery.com>
13182         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
13183         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
13184         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
13186 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
13188         * doc/invoke.texi (Warning Options): Remove duplicated
13189         -Wmaybe-uninitialized.
13191 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
13193         PR tree-optimization/57742
13194         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
13195         (handle_builtin_malloc, handle_builtin_memset): New functions.
13196         (strlen_optimize_stmt): Call them.
13197         * passes.def: Move strlen after loop+dom but before vrp.
13199 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
13201         PR target/61570
13202         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
13203         model family 6 CPU with has_longmode never use a CPU without
13204         64-bit support.
13206 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13208         PR target/61570
13209         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
13210         the last change.
13212 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
13214         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
13215         * dominance.c (iterate_fix_dominators): Use hash_map instead of
13216         pointer_map.
13217         * hash-map.h: New file.
13218         * ipa-comdats.c: Use hash_map instead of pointer_map.
13219         * ipa.c: Likewise.
13220         * lto-section-out.c: Adjust.
13221         * lto-streamer.h: Replace pointer_map with hash_map.
13222         * symtab.c (verify_symtab): Likewise.
13223         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
13224         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
13225         * tree-streamer.h: Likewise.
13226         * tree-streamer.c: Adjust.
13227         * pointer-set.h: Remove pointer_map.
13229 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
13231         * hash-table.h: Add a template arg to choose between storing values
13232         and storing pointers to values, and then provide partial
13233         specializations for both.
13234         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
13235         should store, not the type values should point to.
13236         * tree-into-ssa.c (var_info_hasher): Likewise.
13237         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
13238         * tree-complex.c: Adjust.
13239         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
13240         table instead of int_tree_map *.
13241         * tree-parloops.c: Adjust.
13242         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
13243         type is being stored.
13244         * tree-vectorizer.c: Adjust.
13246 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
13248         * hash-table.h: Remove a layer of indirection from hash_table so that
13249         it contains the hash table's data instead of a pointer to the data.
13250         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
13251         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
13252         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
13253         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
13254         fold-const.c, gcse.c, ggc-common.c,
13255         gimple-ssa-strength-reduction.c, gimplify.c,
13256         graphite-clast-to-gimple.c, graphite-dependences.c,
13257         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
13258         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
13259         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
13260         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
13261         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
13262         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
13263         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
13264         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
13265         tree-ssa-live.c, tree-ssa-loop-im.c,
13266         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
13267         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
13268         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
13269         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
13270         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
13271         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
13272         vtable-verify.c, vtable-verify.h: Adjust.
13274 2014-06-24  Richard Biener  <rguenther@suse.de>
13276         PR tree-optimization/61572
13277         * tree-ssa-sink.c (statement_sink_location): Do not sink
13278         loads from hard registers.
13280 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
13282         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
13283         not mentioned in clauses use private clause if the iterator is
13284         declared in #pragma omp for simd, and when adding lastprivate
13285         instead, add it to the outer #pragma omp for too.  Diagnose
13286         if the variable is private in outer context.  For simd collapse > 1
13287         loops, replace all iterators with temporaries.
13288         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
13289         same even in collapse > 1 loops.
13291         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
13292         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
13293         non-NULL.
13294         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
13295         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
13296         non-NULL.
13297         (gimplify_adjust_omp_clauses): Likewise.
13298         * omp-low.c (lower_rec_simd_input_clauses,
13299         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
13300         safelen the same as safelen(1).
13301         * tree-nested.c (convert_nonlocal_omp_clauses,
13302         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
13303         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
13304         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
13305         Fixup handling of GIMPLE_OMP_TARGET.
13306         (convert_tramp_reference_stmt, convert_gimple_call): Handle
13307         GIMPLE_OMP_TARGET.
13309 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
13311         PR tree-optimization/61554
13312         * tree-ssa-propagate.c: Include "bitmap.h".
13313         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
13314         properly update constructor/destructor.
13315         (substitute_and_fold_dom_walker::before_dom_children):
13316         Remove call to gimple_purge_dead_eh_edges, add bb->index to
13317         need_eh_cleaup instead.
13318         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
13319         need_eh_cleanup.
13321 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
13323         * varpool.c (dump_varpool_node): Dump used_by_single_function.
13324         * tree-pass.h (make_pass_ipa_single_use): New pass.
13325         * cgraph.h (used_by_single_function): New flag.
13326         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
13327         Stream it.
13328         * passes.def (pass_ipa_single_use): Scedule.
13329         * ipa.c (BOTTOM): New macro.
13330         (meet): New function
13331         (propagate_single_user): New function.
13332         (ipa_single_use): New function.
13333         (pass_data_ipa_single_use): New pass.
13334         (pass_ipa_single_use): New pass.
13335         (pass_ipa_single_use::gate): New gate.
13336         (make_pass_ipa_single_use): New function.
13338 2014-06-23  Kai Tietz  <ktietz@redhat.com>
13340         PR target/39284
13341         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
13342         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
13344 2014-06-23  Richard Biener  <rguenther@suse.de>
13346         * tree-ssa-loop.c (gate_loop): New function.
13347         (pass_tree_loop::gate): Call it.
13348         (pass_data_tree_no_loop, pass_tree_no_loop,
13349         make_pass_tree_no_loop): New.
13350         * tree-vectorizer.c: Include tree-scalar-evolution.c
13351         (pass_slp_vectorize::execute): Initialize loops and SCEV if
13352         required.
13353         (pass_slp_vectorize::clone): New method.
13354         * timevar.def (TV_TREE_NOLOOP): New.
13355         * tree-pass.h (make_pass_tree_no_loop): Declare.
13356         * passes.def (pass_tree_no_loop): New pass group with
13357         SLP vectorizer.
13359 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13361         PR target/61570
13362         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
13363         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
13365 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
13367         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
13368         "yes" where needed.
13370 2014-06-23  Alan Modra  <amodra@gmail.com>
13372         PR bootstrap/61583
13373         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
13374         to zero on debug statements.
13376 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
13378         PR target/60825
13379         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
13380         Ignore third operand if present by marking qualifier_internal.
13382         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
13384         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
13385         vector extension.
13386         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
13387         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
13388         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
13389         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
13390         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
13391         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
13392         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
13393         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
13394         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
13395         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
13396         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
13397         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
13398         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
13399         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
13400         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
13401         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
13402         logic in GCC vector extensions
13404         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
13405         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
13406         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
13407         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
13408         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
13409         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
13410         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
13411         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
13412         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
13413         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
13415         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
13417         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
13418         extensions.
13420         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
13421         (vget_low_s64): Use __GET_LOW macro.
13422         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
13423         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
13424         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
13425         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
13426         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
13428         (vcombine_s64): Use GCC vector extensions; remove cast.
13429         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
13430         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
13431         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
13432         Fix type signature; remove cast.
13434 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
13436         PR target/60825
13437         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
13438         V1DFmode.
13439         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
13440         add V1DFmode
13441         (BUILTIN_VD1): New.
13442         (BUILTIN_VD_RE): Remove.
13443         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
13444         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
13445         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
13446         variant but not df.
13447         (vreinterpretv1df*, vreinterpret*v1df): New.
13448         (vreinterpretdf*, vreinterpret*df): Remove.
13449         * config/aarch64/aarch64-simd.md (aarch64_create,
13450         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
13451         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
13452         (VD1): New.
13453         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
13454         (vcreate_f64): Remove cast, use v1df builtin.
13455         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
13456         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
13457         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
13458         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
13459         vmov_n_f64, vst1_f64): Use gcc vector extensions.
13460         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
13461         add range check using __builtin_aarch64_im_lane_boundsi.
13462         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
13463         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
13464         type signature, use gcc vector extensions.
13465         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
13466         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
13467         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
13468         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
13469         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
13470         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
13471         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
13472         vreinterpret_u64_f64): Use v1df builtin not df.
13474 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
13476         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
13477         vector registers.
13479 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
13481         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
13482         priority directly.
13484 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13486         * loop-invariant.c (pre_check_invariant_p): New function.
13487         (find_invariant_insn): Call pre_check_invariant_p.
13489 2014-06-22  Richard Henderson  <rth@redhat.com>
13491         PR target/61565
13492         * compare-elim.c (struct comparison): Add eh_note.
13493         (find_comparison_dom_walker::before_dom_children): Don't eliminate
13494         a redundant comparison in a different EH region.  Purge EH edges if
13495         necessary.
13497 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13499         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
13500         (var_shift): Use it.
13501         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
13502         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
13503         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
13504         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
13505         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
13506         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
13507         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
13508         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
13509         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
13510         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
13511         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
13512         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
13513         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
13514         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
13515         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
13516         *rotldi3_internal15be): Use the new attribute.  Merge register and
13517         integer alternatives.
13519 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13521         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
13522         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
13523         split, *ashrdi3_internal3 and split): Delete, merge into...
13524         (ashr<mode>3): New expander.
13525         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
13526         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
13528 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13530         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
13531         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
13532         *rotldi3_internal3 and split): Delete, merge into...
13533         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
13534         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
13535         Use "rotlw" extended mnemonic.
13537 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13539         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
13540         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
13541         and split, *ashldi3_internal3 and split): Delete, merge into...
13542         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
13543         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
13545 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13547         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
13548         (lshrsi3, two anonymous define_insns and define_splits,
13549         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
13550         *lshrdi3_internal3 and split): Delete, merge into...
13551         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
13552         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
13554 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
13556         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
13557         Remove "O" alternative.
13559 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
13561         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
13562         (mips_move_from_gpr_cost): Likewise.
13563         (mips_register_move_cost): Update accordingly.
13564         (mips_secondary_reload_class): Remove name of in_p.
13566 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
13568         PR target/61503
13569         * config/i386/i386.md (x86_64_shrd, x86_shrd,
13570         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
13572 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13574         * config/nios2/nios2.c: Include "builtins.h".
13576 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
13578         * cgraph.h (tls_model_names): New variable.
13579         * print-tree.c (print_node): Simplify.
13580         * varpool.c (tls_model_names): New variable.
13581         (dump_varpool_node): Output tls model.
13583 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
13585         * ipa-visibility.c (function_and_variable_visibility): Disable
13586         temporarily local aliases for some targets.
13588 2014-06-20  Marek Polacek  <polacek@redhat.com>
13590         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
13591         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
13592         into SANITIZE_UNDEFINED.
13593         * doc/invoke.texi: Describe -fsanitize=bounds.
13594         * gimplify.c (gimplify_call_expr): Add gimplification of internal
13595         functions created in the FEs.
13596         * internal-fn.c: Move "internal-fn.h" after "tree.h".
13597         (expand_UBSAN_BOUNDS): New function.
13598         * internal-fn.def (UBSAN_BOUNDS): New internal function.
13599         * internal-fn.h: Don't define internal functions here.
13600         * opts.c (common_handle_option): Add -fsanitize=bounds.
13601         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
13602         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
13603         * tree-core.h: Define internal functions here.
13604         (struct tree_base): Add ifn field.
13605         * tree-pretty-print.c: Include "internal-fn.h".
13606         (dump_generic_node): Handle functions without CALL_EXPR_FN.
13607         * tree.c (get_callee_fndecl): Likewise.
13608         (build_call_expr_internal_loc): New function.
13609         * tree.def (CALL_EXPR): Update description.
13610         * tree.h (CALL_EXPR_IFN): Define.
13611         (build_call_expr_internal_loc): Declare.
13612         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
13613         types.
13614         (ubsan_type_descriptor): Change bool parameter to enum
13615         ubsan_print_style.  Adjust the code.  Add handling of
13616         UBSAN_PRINT_ARRAY.
13617         (ubsan_expand_bounds_ifn): New function.
13618         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
13619         (ubsan_build_overflow_builtin): Likewise.
13620         (instrument_bool_enum_load): Likewise.
13621         (ubsan_instrument_float_cast): Likewise.
13622         * ubsan.h (enum ubsan_print_style): New enum.
13623         (ubsan_expand_bounds_ifn): Declare.
13624         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
13626 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
13628         * config/rs6000/rs6000.md: Append `DONE' to preparation
13629         statements of `bswap' pattern splitters.
13631 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13633         * target.def (call_fusage_contains_non_callee_clobbers): Update
13634         definition.
13635         * doc/tm.texi: Regenerate.
13637 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
13638             Max Ostapenko  <m.ostapenko@partner.samsung.com>
13640         PR sanitizer/61547
13641         * asan.c (instrument_strlen_call): Fixed instrumentation of
13642         trailing byte.
13644 2014-06-20  Martin Jambor  <mjambor@suse.cz>
13646         PR ipa/61540
13647         * ipa-prop.c (impossible_devirt_target): New function.
13648         (try_make_edge_direct_virtual_call): Use it, also instead of
13649         asserting.
13651 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
13652             Max Ostapenko  <m.ostapenko@partner.samsung.com>
13654         PR sanitizer/61530
13655         * asan.c (build_check_stmt): Add condition.
13657 2014-06-20  Martin Jambor  <mjambor@suse.cz>
13659         PR ipa/61211
13660         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
13661         expanded clones.
13663 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13665         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
13666         Update comments.
13667         (VCONQ): Make comment more helpful.
13668         (VCON): Delete.
13669         * config/aarch64/aarch64-simd.md
13670         (aarch64_sqdmulh_lane<mode>):
13671         Use VCOND for operands 2.  Update lane checking and flipping logic.
13672         (aarch64_sqrdmulh_lane<mode>): Likewise.
13673         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
13674         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
13675         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
13676         attribute of operand 3 to VCOND.
13677         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
13678         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
13679         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
13680         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
13681         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
13682         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
13683         define_insn.
13684         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
13685         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
13686         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
13687         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
13688         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
13689         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
13690         operand to VCOND.  Update lane flipping and bounds checking logic.
13691         (aarch64_sqdmlal2_lane<mode>): Likewise.
13692         (aarch64_sqdmlsl_lane<mode>): Likewise.
13693         (aarch64_sqdmull_lane<mode>): Likewise.
13694         (aarch64_sqdmull2_lane<mode>): Likewise.
13695         (aarch64_sqdmlal_laneq<mode>):
13696         Replace VCON usage with VCONQ.
13697         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
13698         (aarch64_sqdmlal2_laneq<mode>): Emit
13699         aarch64_sqdmlal2_laneq<mode>_internal insn.
13700         Replace VCON with VCONQ.
13701         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
13702         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
13703         (aarch64_sqdmull_laneq<mode>): Emit
13704         aarch64_sqdmull_laneq<mode>_internal insn.
13705         Replace VCON with VCONQ.
13706         (aarch64_sqdmull2_laneq<mode>): Emit
13707         aarch64_sqdmull2_laneq<mode>_internal insn.
13708         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
13709         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
13710         of 3rd argument to int16x4_t.
13711         (vqdmlalh_lane_s16): Likewise.
13712         (vqdmlslh_lane_s16): Likewise.
13713         (vqdmull_high_lane_s16): Likewise.
13714         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
13715         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
13716         (vqdmlsl_lane_s16): Likewise.
13717         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
13718         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
13719         (vqdmlals_lane_s32): Likewise.
13720         (vqdmlsls_lane_s32): Likewise.
13721         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
13722         (vqdmulls_lane_s32): Likewise.
13723         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
13724         (vqdmlsl_lane_s32): Likewise.
13725         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
13726         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
13727         (vqrdmulhh_lane_s16): Likewise.
13728         (vqdmlsl_high_lane_s16): Likewise.
13729         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
13730         (vqdmlsl_high_lane_s32): Likewise.
13731         (vqrdmulhs_lane_s32): Likewise.
13733 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13735         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
13736         get_call_reg_set_usage.
13738 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13740         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
13741         it contains all call_used_regs.
13743 2014-06-20  Tom de Vries  <tom@codesourcery.com>
13745         * final.c (collect_fn_hard_reg_usage): Add and use variable
13746         function_used_regs.
13748 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
13750         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
13751         (set_init_priority, get_init_priority, set_fini_priority,
13752         get_fini_priority): New methods.
13753         * tree.c (init_priority_for_decl): Remove.
13754         (init_ttree): Do not initialize init priority.
13755         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
13756         (decl_priority_info): Remove.
13757         (decl_init_priority_insert): Rewrite.
13758         (decl_fini_priority_insert): Rewrite.
13759         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
13760         tree_priority_map_marked_p): Remove.
13761         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
13762         * lto-streamer-out.c (hash_tree): Do not hash priorities.
13763         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
13764         not output priorities.
13765         (pack_ts_function_decl_value_fields): Likewise.
13766         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
13767         not input priorities.
13768         (unpack_ts_function_decl_value_fields): Likewise.
13769         * symtab.c (symbol_priority_map): Declare.
13770         (init_priority_hash): Declare.
13771         (symtab_unregister_node): Unregister from priority hash, too.
13772         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
13773         New methods.
13774         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
13775         (symbol_priority_info): New function.
13776         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
13777         New methods.
13778         * tree-core.h (tree_priority_map): Remove.
13780 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
13782         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
13783         0xff to uint64_t before shifting it up.
13785 2014-06-20  Julian Brown  <julian@codesourcery.com>
13786             Chung-Lin Tang  <cltang@codesourcery.com>
13788         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
13789         TARGET_THUMB1_ONLY. Add comments.
13791 2014-06-19  Tom de Vries  <tom@codesourcery.com>
13793         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
13794         return type to void.
13795         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
13797 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13799         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
13800         as "move", from depends_on.
13802 2014-06-19  Terry Guo  <terry.guo@arm.com>
13804         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
13805         stage.
13807 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
13809         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
13810         Remove cr5.
13811         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
13813 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
13815         PR target/61550
13816         * config/sh/sh.c (prepare_move_operands): Don't process TLS
13817         addresses here if reload in progress or completed.
13819 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
13821         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
13822         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
13823         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
13824         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
13825         (mips_register_priority): New function that implements the target
13826         hook TARGET_REGISTER_PRIORITY.
13827         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
13828         (mips_lra_p): Likewise for TARGET_LRA_P.
13829         (TARGET_REGISTER_PRIORITY): Define macro.
13830         (TARGET_SPILL_CLASS): Likewise.
13831         (TARGET_LRA_P): Likewise.
13832         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
13833         classes.
13834         (REG_CLASS_NAMES): Likewise.
13835         (REG_CLASS_CONTENTS): Likewise.
13836         (BASE_REG_CLASS): Use M16_SP_REGS.
13837         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
13838         New set attribute to enable alternatives depending on the register
13839         allocator used.
13840         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
13841         (*lea64): Disable pattern for MIPS16.
13842         * config/mips/mips.opt (mlra): New option.
13844 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
13846         * lra-constraints.c (base_to_reg): New function.
13847         (process_address): Use new function.
13849 2014-06-18  Tom de Vries  <tom@codesourcery.com>
13851         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
13852         * config/aarch64/aarch64.c
13853         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
13854         (aarch64_emit_call_insn): New function.
13855         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
13856         of emit_call_insn.
13857         * config/aarch64/aarch64.md (define_expand "call_internal")
13858         (define_expand "call_value_internal", define_expand "sibcall_internal")
13859         (define_expand "sibcall_value_internal"): New.
13860         (define_expand "call", define_expand "call_value")
13861         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
13862         expand variant and aarch64_emit_call_insn.
13864 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
13865             Tom de Vries  <tom@codesourcery.com>
13867         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
13868         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13869         Redefine to true.
13870         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
13871         clobbers to CALL_INSN_FUNCTION_USAGE.
13872         (define_expand "sibcall_internal")
13873         (define_expand "sibcall_value_internal"): New.
13874         (define_expand "call", define_expand "call_value"): Add argument to
13875         arm_emit_call_insn.
13876         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
13877         (define_expand "sibcall_value"): Use sibcall_value_internal and
13878         arm_emit_call_insn.
13880 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13882         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
13884 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13886         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
13887         __udivmoddi4.
13889 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13891         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
13892         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
13893         annotations. Fix DWARF information.
13895 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13897         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
13898         __udivmoddi4, and fixups for negative operands.
13900 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13902         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
13904 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13906         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
13907         to __udivmoddi4.
13909 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13911         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
13912         manipulation.
13914 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13916         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
13917         describing register usage on function entry and exit.
13919 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13921         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
13922         (__aeabi_ldivmod): Fix whitespace.
13924 2014-06-18  Andreas Schwab  <schwab@suse.de>
13926         * doc/md.texi (Standard Names): Use @itemx for grouped items.
13927         Remove blank line after @item.
13929 2014-06-18  Richard Henderson  <rth@redhat.com>
13931         PR target/61545
13932         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
13934 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
13936         * config/arm/arm.c (neon_vector_mem_operand): Allow register
13937         POST_MODIFY for neon loads and stores.
13938         (arm_print_operand): Output post-index register for neon loads and
13939         stores.
13941 2014-06-18  Richard Biener  <rguenther@suse.de>
13943         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
13945 2014-06-18  Richard Biener  <rguenther@suse.de>
13947         * tree-pass.h (make_pass_dce_loop): Remove.
13948         * passes.def: Replace pass_dce_loop with pass_dce.
13949         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
13950         changed free niter estimates and reset the scev cache.
13951         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
13952         make_pass_dce_loop): Remove.
13953         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
13954         (fini_copy_prop): Return whether something changed.  Always
13955         let substitute_and_fold perform DCE and free niter estimates
13956         and reset the scev cache if so.
13957         (execute_copy_prop): If sth changed schedule cleanup-cfg.
13958         (pass_data_copy_prop): Do not unconditionally schedule
13959         cleanup-cfg or update-ssa.
13961 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
13963         PR tree-optimization/61518
13964         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13965         reduction var is used in reduction stmt or phi-function only.
13967 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13969         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
13971 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13973         PR tree-optimization/61517
13974         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
13975         whose rhs's first tree is the source expression instead of the
13976         expression itself.
13977         (find_bswap_or_nop): Likewise.
13978         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
13979         gimple stmt whose rhs's first tree is the source. In the memory source
13980         case, move the stmt to be replaced close to one of the original load to
13981         avoid the problem of a store between the load and the stmt's original
13982         location.
13983         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
13984         signature.
13986 2014-06-18  Andreas Schwab  <schwab@suse.de>
13988         PR rtl-optimization/54555
13989         * postreload.c (move2add_use_add2_insn): Substitute
13990         STRICT_LOW_PART only if it is cheaper.
13992 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
13994         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
13995         Do not use unspec as call operand.  Use memory_operand instead of
13996         memory_nox32_operand and add "m" operand constraint.  Disable
13997         pattern for TARGET_X32.
13998         (*sibcall_pop_memory): Ditto.
13999         (*sibcall_value_memory): Ditto.
14000         (*sibcall_value_pop_memory): Ditto.
14001         (sibcall peepholes): Merge SImode and DImode patterns using
14002         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
14003         Disable pattern for TARGET_X32.  Check if eliminated register is
14004         really dead after call insn.  Generate call RTX without unspec operand.
14005         (sibcall_value peepholes): Ditto.
14006         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
14007         instead of memory_nox32_operand.  Check if eliminated register is
14008         really dead after call insn. Generate call RTX without unspec operand.
14009         (sibcall_value_pop peepholes): Ditto.
14010         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
14012 2014-06-18  Terry Guo  <terry.guo@arm.com>
14014         PR target/61544
14015         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
14016         reach the head.
14018 2014-06-18  Olivier Hainque  <hainque@adacore.com>
14020         * tree-core.h (tree_block): Add an "end_locus" field, allowing
14021         memorization of the end of block source location.
14022         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
14023         * gimplify.c (gimplify_bind_expr): Propagate the block start and
14024         end source location info we have on the block entry/exit code we
14025         generate.
14027 2014-06-18  Richard Biener  <rguenther@suse.de>
14029         * common.opt (fssa-phiopt): New option.
14030         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
14031         but not with -Og.
14032         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
14033         * doc/invoke.texi (-fssa-phiopt): Document.
14035 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14037         * genattrtab.c (n_bypassed): New variable.
14038         (process_bypasses): Initialise n_bypassed.
14039         Count number of bypassed reservations.
14040         (make_automaton_attrs): Allocate space for bypassed reservations
14041         rather than number of bypasses.
14043 2014-06-18  Richard Biener  <rguenther@suse.de>
14045         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
14046         we propagated anything.
14047         (substitute_and_fold_dom_walker::before_dom_children): Something
14048         changed if we propagated into PHI arguments.
14049         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
14050         we removed a stmt.
14052 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
14054         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
14055         vector case.
14056         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
14057         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
14058         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
14059         Introduces alternative way of loads group permutaions.
14060         (vect_transform_grouped_load): Try alternative way of permutations.
14062 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
14064         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
14065         changed in ORT_TARGET region, don't jump to do_outer.
14066         (struct gimplify_adjust_omp_clauses_data): New type.
14067         (gimplify_adjust_omp_clauses_1): Adjust for data being
14068         a struct gimplify_adjust_omp_clauses_data pointer instead
14069         of tree *.  Pass pre_p as a new argument to
14070         lang_hooks.decls.omp_finish_clause hook.
14071         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
14072         splay_tree_foreach to pass both list_p and pre_p.
14073         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
14074         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
14075         gimplify_adjust_omp_clauses callers.
14076         * langhooks.c (lhd_omp_finish_clause): New function.
14077         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
14078         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
14079         * langhooks.h (struct lang_hooks_for_decls): Add a new
14080         gimple_seq * argument to omp_finish_clause hook.
14081         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
14082         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
14083         (scan_omp_parallel, lower_omp_for): When adding
14084         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
14085         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
14086         * tree-nested.c (convert_nonlocal_omp_clauses,
14087         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
14088         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
14090 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
14092         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
14093         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
14095 2014-06-17  Xinliang David Li  <davidxl@google.com>
14097         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
14098         * passes.c (pass_init_dump_file): Do not set initialize
14099         flag to false unconditionally.
14101 2014-06-17  Richard Biener  <rguenther@suse.de>
14103         * genopinit.c (main): Use vec<>::qsort method.
14104         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
14105         Likewise.
14106         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
14108 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
14110         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
14111         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
14112         (mips_move_to_gpr_cost): Remove ST_REGS case.
14113         (mips_move_from_gpr_cost): Likewise.
14114         (mips_register_move_cost): Likewise.
14115         (mips_secondary_reload_class): Likewise.
14117 2014-06-17  Richard Biener  <rguenther@suse.de>
14119         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
14120         (pass_all_optimizations): Move 3rd copy-prop pass from after
14121         fre to before ifcombine/phiopt.
14123 2014-06-17  Richard Biener  <rguenther@suse.de>
14125         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
14126         and allow all blocks to be forwarders.
14128 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
14130         PR target/61483
14131         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
14132         variable 'size'; calculate 'size' right in the front; use
14133         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
14134         pcum->aapcs_stack_words.
14136 2014-06-17  Nick Clifton  <nickc@redhat.com>
14138         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
14139         (umulhi3, mulsidi3, umulsidi3): Likewise.
14141 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
14143         PR middle-end/61508
14144         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
14145         check for section name.
14147 2014-06-17  Richard Biener  <rguenther@suse.de>
14149         * tree-ssa-propagate.c: Include domwalk.h.
14150         (substitute_and_fold): Outline main worker into a domwalker ...
14151         (substitute_and_fold_dom_walker::before_dom_children): ... here.
14152         Schedule stmts we can fully propagate for removal.  Remove
14153         poor-mans DCE.
14154         (substitute_and_fold): Apply a dominator walk to perform
14155         substitution.  Process stmts scheduled for removal here.
14157 2014-06-17  Richard Biener  <rguenther@suse.de>
14159         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
14160         of PHI node moving.
14162 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
14164         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
14165         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
14166         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14167         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
14168         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
14169         TARGET_HARD_FLOAT.
14170         (get_fpscr) : Likewise.
14172 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
14174         PR rtl-optimization/61325
14175         * lra-constraints.c (valid_address_p): Add forward declaration.
14176         (simplify_operand_subreg): Check address validity before and after
14177         alter_reg of memory subreg.
14179 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
14181         * config/i386/i386.c (decide_alg): Correctly handle
14182         maximum size of stringop algorithm.
14184 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
14186         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
14188 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
14190         PR rtl-optimization/61522
14191         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
14193 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
14195         Revert:
14196         * symtab.c (symtab_node::reset_section): New method.
14197         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14198         for localization.
14199         * cgraph.h (reset_section): Declare.
14200         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14201         do not consider comdat locals.
14202         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14203         for new symbol.
14204         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14205         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14206         reset sections of symbols dragged out of the comdats.
14207         (function_and_variable_visibility): Reset sections of
14208         localized symbols.
14210 2014-06-16  Richard Biener  <rguenther@suse.de>
14212         PR tree-optimization/61482
14213         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
14214         [-INF(OVF), +INF(OVF)] range.
14216 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14218         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
14219         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
14220         handling 32-bit multiplication.
14222 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
14224         PR middle-end/61430
14225         * lra-lives.c (process_bb_lives): Skip creating copy during
14226         insn scan when src/dest has constrained to same regno.
14228 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
14230         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
14231         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
14233 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
14235         * asan.c (check_func): New function.
14236         (maybe_create_ssa_name): Likewise.
14237         (build_check_stmt_with_calls): Likewise.
14238         (use_calls_p): Likewise.
14239         (report_error_func): Change interface.
14240         (build_check_stmt): Allow non-integer lengths; add support
14241         for new parameter.
14242         (asan_instrument): Likewise.
14243         (instrument_mem_region_access): Moved code to build_check_stmt.
14244         (instrument_derefs): Likewise.
14245         (instrument_strlen_call): Likewise.
14246         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
14247         * doc/invoke.texi: Describe new parameter.
14248         * params.def: Define new parameter.
14249         * params.h: Likewise.
14250         * sanitizer.def: Describe new builtins.
14252 2014-06-16  Richard Biener  <rguenther@suse.de>
14254         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14255         Make all defs available at the end.
14256         (eliminate): If we remove a PHI node schedule cfg-cleanup.
14258 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
14260         PR plugins/45078
14261         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
14263 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
14265         PR bootstrap/61516
14266         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
14267         initialization.  Replace remaining use of uid.
14269 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
14271         * c-family/c-common.c (handle_tls_model_attribute): Use
14272         set_decl_tls_model.
14273         * c-family/c-common.c (handle_tls_model_attribute): Use
14274         set_decl_tls_model.
14275         * cgraph.h (struct varpool_node): Add tls_model.
14276         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
14277         * tree.h (DECL_TLS_MODEL): Update.
14278         (DECL_THREAD_LOCAL_P): Check that variable is static.
14279         (decl_tls_model): Declare.
14280         (set_decl_tls_model): Declare.
14281         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
14282         set symbol prorperties.
14283         (get_emutls_init_templ_addr): Cleanup.
14284         (new_emutls_decl): Update.
14285         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
14286         (lto_input_varpool_node): Likewise.
14287         * lto-streamer-out.c (hash_tree): Likewise.
14288         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
14289         not stream DECL_TLS_MODEL.
14290         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
14291         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
14293 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14295         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
14297 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14299         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
14300         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
14301         lists.
14302         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
14303         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
14304         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
14305         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
14306         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
14307         (df_get_artificial_defs, df_get_artificial_uses)
14308         (df_single_def, df_single_use): Update accordingly.
14309         (df_refs_chain_dump): Take the first element in a linked list as
14310         parameter, rather than a pointer to an array of pointers.
14311         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
14312         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
14313         (df_chain_create_bb_process_use): Likewise.
14314         (df_md_bb_local_compute_process_def): Likewise.
14315         * fwprop.c (process_defs, process_uses): Likewise.
14316         (register_active_defs, update_uses): Likewise.
14317         (forward_propagate_asm): Update for new df_ref linking.
14318         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
14319         (df_null_ref_rec, df_null_mw_rec): Likewise.
14320         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
14321         explicitly.
14322         (df_scan_free_bb_info): Remove check for null artificial_defs.
14323         (df_install_ref_incremental): Adjust for new df_ref linking.
14324         Use a single-element insertion rather than a full sort.
14325         (df_ref_chain_delete_du_chain): Take the first element
14326         in a linked list as parameter, rather than a pointer to an array of
14327         pointers.
14328         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
14329         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
14330         (df_insn_info_delete): Remove check for null defs and call to
14331         df_scan_free_mws_vec.
14332         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
14333         null rather than df_null_*_rec.
14334         (df_insn_rescan_debug_internal): Likewise, and update null
14335         checks in the same way.  Remove check for null defs.
14336         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
14337         Move a single element rather doing a full sort.
14338         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
14339         linking.
14340         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
14341         Initialize df_ref and df_mw_hardreg lists to null rather than
14342         df_null_*_rec.
14343         (df_ref_compare): Take df_refs as parameter, transferring the
14344         old interface to...
14345         (df_ref_ptr_compare): ...this new function.
14346         (df_sort_and_compress_refs): Update accordingly.
14347         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
14348         old interface to...
14349         (df_mw_ptr_compare): ...this new function.
14350         (df_sort_and_compress_mws): Update accordingly.
14351         (df_install_refs, df_install_mws): Return a linked list rather than
14352         an array of pointers.
14353         (df_refs_add_to_chains): Assert that old lists are empty rather
14354         than freeing them.
14355         (df_insn_refs_verify): Don't handle null defs speciailly.
14356         * web.c (union_match_dups): Update for new df_ref linking.
14358 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14360         * df.h (df_ref_create, df_ref_remove): Delete.
14361         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
14362         (df_ref_remove): Likewise.
14364 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14366         * df.h (df_single_def, df_single_use): New functions.
14367         * ira.c (find_moveable_pseudos): Use them.
14369 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14371         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
14372         * df-problems.c (df_note_bb_compute): Use it.
14373         * regstat.c (regstat_bb_compute_ri): Likewise.
14375 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14377         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
14378         * cse.c (cse_extended_basic_block): Use them.
14379         * dce.c (mark_artificial_use): Likewise.
14380         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
14381         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14382         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
14383         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
14384         (df_simulate_initialize_backwards): Likewise.
14385         (df_simulate_finalize_backwards): Likewise.
14386         (df_simulate_initialize_forwards): Likewise.
14387         (df_md_simulate_artificial_defs_at_top): Likewise.
14388         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14389         * regrename.c (init_rename_info): Likewise.
14390         * regstat.c (regstat_bb_compute_ri): Likewise.
14391         (regstat_bb_compute_calls_crossed): Likewise.
14393 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
14395         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
14396         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
14397         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
14398         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
14399         * combine.c (create_log_links): Likewise.
14400         * compare-elim.c (find_flags_uses_in_insn): Likewise.
14401         (try_eliminate_compare): Likewise.
14402         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
14403         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
14404         (remove_reg_equal_equiv_notes_for_defs): Likewise.
14405         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
14406         (word_dce_process_block, dce_process_block): Likewise.
14407         * ddg.c (def_has_ccmode_p): Likewise.
14408         * df-core.c (df_bb_regno_first_def_find): Likewise.
14409         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
14410         * df-problems.c (df_rd_simulate_one_insn): Likewise.
14411         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
14412         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
14413         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
14414         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
14415         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
14416         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
14417         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
14418         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
14419         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
14420         * fwprop.c (local_ref_killed_between_p): Likewise.
14421         (all_uses_available_at, free_load_extend): Likewise.
14422         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
14423         * hw-doloop.c (scan_loop): Likewise.
14424         * ifcvt.c (dead_or_predicable): Likewise.
14425         * init-regs.c (initialize_uninitialized_regs): Likewise.
14426         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
14427         (process_bb_node_lives): Likewise.
14428         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
14429         (find_moveable_pseudos): Likewise.
14430         * loop-invariant.c (check_dependencies, record_uses): Likewise.
14431         * recog.c (peep2_find_free_register): Likewise.
14432         * ree.c (get_defs): Likewise.
14433         * regstat.c (regstat_bb_compute_ri): Likewise.
14434         (regstat_bb_compute_calls_crossed): Likewise.
14435         * sched-deps.c (find_inc, find_mem): Likewise.
14436         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
14437         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
14438         * shrink-wrap.c (requires_stack_frame_p): Likewise.
14439         (prepare_shrink_wrap): Likewise.
14440         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
14441         * web.c (union_defs, pass_web::execute): Likewise.
14442         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
14443         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
14445 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
14447         * lra-assign.c (assign_by_spills): Add code to assign vector regs
14448         to inheritance pseudos.
14449         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
14451 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
14453         PR target/61415
14454         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
14455         (BU_MISC_2): Rename to ...
14456         (BU_LDBL128_2): ... this.
14457         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
14458         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
14459         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
14460         RS6000_BTM_LDBL128.
14461         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
14462         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
14463         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
14464         (unpacktf_1): Likewise.
14465         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
14466         (__builtin_longdouble_dw1): Likewise.
14467         * doc/sourcebuild.texi (longdouble128): Document.
14469 2014-06-13  Jeff Law  <law@redhat.com>
14471         PR rtl-optimization/61094
14472         PR rtl-optimization/61446
14473         * ree.c (combine_reaching_defs): Get the mode for the copy from
14474         the extension insn rather than the defining insn.
14476 2014-06-13  Dehao Chen  <dehao@google.com>
14478         * dwarf2out.c (add_linkage_name): Emit more linkage name.
14480 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
14482         * doc/install.texi (--enable-linker-plugin-configure-flags)
14483         (--enable-linker-plugin-flags): Document new flags.
14485 2014-06-13  Martin Jambor  <mjambor@suse.cz>
14487         PR ipa/61186
14488         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
14489         cache_token if returning early.
14491 2014-06-13  Nick Clifton  <nickc@redhat.com>
14493         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
14494         requested alignment is active.
14495         (LABEL_ALIGN): Likewise.
14496         (LOOP_ALIGN): Likewise.
14498 2014-06-13  Richard Biener  <rguenther@suse.de>
14500         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14501         Rewrite to propagate the VN result into all uses where
14502         possible and to remove stmts becoming dead because of that.
14503         (eliminate): Generalize stmt removal handling, remove in
14504         reverse dominator order to support proper debug stmt
14505         generation.  Update stmts before removing stmts.
14506         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
14508 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14510         PR tree-optimization/61375
14511         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
14512         symbolic number cannot be represented in an uint64_t.
14513         (find_bswap_or_nop_1): Likewise.
14515 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
14517         * symtab.c (symtab_node::reset_section): New method.
14518         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
14519         for localization.
14520         * cgraph.h (reset_section): Declare.
14521         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
14522         do not consider comdat locals.
14523         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
14524         for new symbol.
14525         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
14526         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
14527         reset sections of symbols dragged out of the comdats.
14528         (function_and_variable_visibility): Reset sections of
14529         localized symbols.
14531 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
14533         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
14534         to use symtab and decl_binds_to_current_def_p
14535         * tree-vectorizer.c (increase_alignment): Increase alignment
14536         of alias target, too.
14538 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
14540         PR middle-end/61486
14541         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
14542         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
14543         if outer combined construct is distribute.
14544         (gimplify_omp_for): For OMP_DISTRIBUTE set
14545         gimplify_omp_ctxp->distribute.
14546         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
14547         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
14548         mapping into decl map.
14550 2014-06-12  Jason Merrill  <jason@redhat.com>
14552         * common.opt (fabi-version): Change default to 0.
14554 2014-06-12  Jason Merrill  <jason@redhat.com>
14556         * toplev.c (process_options): Reject -fabi-version=1.
14558 2014-06-12  Jeff Law  <law@redhat.com>
14560         PR tree-optimization/61009
14561         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
14562         value when we stop processing a block due to problematic PHIs.
14564 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
14566         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
14567         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
14568         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
14569         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
14570         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
14571         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
14572         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
14573         are not in the spec.
14575 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
14577         PR target/59843
14578         * config/aarch64/aarch64-modes.def: Add V1DFmode.
14579         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
14580         Support V1DFmode.
14582 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
14584         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
14586 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
14588         PR target/61443
14589         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
14590         loading from address spaces.
14592 2014-06-12  Martin Liska  <mliska@suse.cz>
14594         PR ipa/61462
14595         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
14596         statement is reachable.
14598 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
14600         * symtab.c (section_hash): New hash.
14601         (symtab_unregister_node): Clear section before freeing.
14602         (hash_section_hash_entry): New haser.
14603         (eq_sections): New function.
14604         (symtab_node::set_section_for_node): New method.
14605         (set_section_1): Update.
14606         (symtab_node::set_section): Take string instead of tree as parameter.
14607         (symtab_resolve_alias): Update.
14608         * cgraph.h (section_hash_entry_d): New structure.
14609         (section_hash_entry): New typedef.
14610         (cgraph_node): Change comdat_group_ to x_comdat_group,
14611         change section_ to x_section and turn into section_hash_entry;
14612         update accestors; put set_section_for_node offline.
14613         * tree.c (decl_section_name): Turn into string.
14614         (set_decl_section_name): Change parameter to be string.
14615         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
14616         * sdbout.c (sdbout_one_type): Update.
14617         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
14618         * varasm.c (IN_NAMED_SECTION, get_named_section,
14619         resolve_unique_section, hot_function_section, get_named_text_section,
14620         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
14621         make_decl_rtl, default_unique_section): Update.
14622         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
14623         (c6x_elf_unique_section): Update.
14624         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
14625         * config/pa/pa.c (pa_function_section): Update.
14626         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
14627         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
14628         * config/arc/arc.c (arc_in_small_data_p): Update.
14629         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
14630         * config/mcore/mcore.c (mcore_unique_section): Update.
14631         * config/mips/mips.c (mips16_build_function_stub): Update.
14632         (mips16_build_call_stub): Update.
14633         (mips_function_rodata_section): Update.
14634         (mips_in_small_data_p): Update.
14635         * config/score/score.c (score_in_small_data_p): Update.
14636         * config/rx/rx.c (rx_in_small_data): Update.
14637         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
14638         (rs6000_xcoff_asm_named_section): Update.
14639         (rs6000_xcoff_unique_section): Update.
14640         * config/frv/frv.c (frv_string_begins_with): Update.
14641         (frv_in_small_data_p): Update.
14642         * config/v850/v850.c (v850_encode_data_area): Update.
14643         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
14644         (bfin_handle_l1_data_attribute): Update.
14645         (bfin_handle_l2_attribute): Update.
14646         * config/mep/mep.c (mep_unique_section): Update.
14647         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
14648         Update.
14649         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
14650         (h8300_handle_tiny_data_attribute): Update.
14651         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
14652         (m32r_in_small_data_p): Update.
14653         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
14654         * config/i386/i386.c (ix86_in_large_data_p): Update.
14655         * config/i386/winnt.c (i386_pe_unique_section): Update.
14656         * config/darwin.c (darwin_function_section): Update.
14657         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
14658         * tree-emutls.c (get_emutls_init_templ_addr): Update.
14659         (new_emutls_decl): Update.
14660         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
14661         input_varpool_node): Update.
14662         (ead_string_cst): Turn to ...
14663         (read_string): ... this one.
14664         * dwarf2out.c (secname_for_decl): Update.
14665         * asan.c (asan_protect_global): Update.
14667 2014-06-11  DJ Delorie  <dj@redhat.com>
14669         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
14670         cache lines.
14671         * config/rx/rx.c (rx_option_override): Likewise.
14672         (rx_align_for_label): Likewise.
14674         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
14676 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
14678         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
14679         prototype.
14681 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14683         * common.md: New file.
14684         * doc/md.texi: Update description of generic, machine-independent
14685         constraints.
14686         * config/s390/constraints.md (e): Delete.
14687         * Makefile.in (md_file): Include common.md.
14688         * config/m32c/t-m32c (md_file): Likewise.
14689         * genpreds.c (general_mem): New array.
14690         (generic_constraint_letters): Remove constraints now defined by
14691         common.md.
14692         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
14693         Allow the first character to be '<' or '>' as well.
14694         * genoutput.c (general_mem): New array.
14695         (indep_constraints): Remove constraints now defined by common.md.
14696         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
14697         Remove special handling of 'm'.
14698         * ira-costs.c (record_reg_classes): Remove special handling of
14699         constraints now defined by common.md.
14700         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14701         * ira-lives.c (single_reg_class): Likewise.
14702         (ira_implicitly_set_insn_hard_regs): Likewise.
14703         * lra-constraints.c (reg_class_from_constraints): Likewise.
14704         (process_alt_operands, process_address, curr_insn_transform): Likewise.
14705         * postreload.c (reload_cse_simplify_operands): Likewise.
14706         * reload.c (push_secondary_reload, scratch_reload_class)
14707         (find_reloads, alternative_allows_const_pool_ref): Likewise.
14708         * reload1.c (maybe_fix_stack_asms): Likewise.
14709         * targhooks.c (default_secondary_reload): Likewise.
14710         * stmt.c (parse_output_constraint): Likewise.
14711         * recog.c (preprocess_constraints): Likewise.
14712         (constrain_operands, peep2_find_free_register): Likewise.
14713         (asm_operand_ok): Likewise, but add a comment saying why 'o'
14714         must be handled specially.
14716 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14718         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
14719         * genpreds.c (have_const_dbl_constraints): Delete.
14720         (add_constraint): Don't set it.
14721         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
14722         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
14723         constraints using the lookup_constraint logic.
14724         * ira-lives.c (single_reg_class): Likewise.
14725         * ira.c (ira_setup_alts): Likewise.
14726         * lra-constraints.c (process_alt_operands): Likewise.
14727         * recog.c (asm_operand_ok, constrain_operands): Likewise.
14728         * reload.c (find_reloads): Likewise.
14730 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14732         * genpreds.c (const_int_start, const_int_end): New variables.
14733         (choose_enum_order): Output CONST_INT constraints before memory
14734         constraints.
14735         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
14736         Add CT_CONST_INT.
14737         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
14738         * ira.c (ira_setup_alts): Likewise.
14739         * lra-constraints.c (process_alt_operands): Likewise.
14740         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14741         * reload.c (find_reloads): Likewise.
14743 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14745         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
14746         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
14747         * recog.c (preprocess_constraints): Update accordingly.
14749 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14751         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
14752         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
14753         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
14754         * genpreds.c (print_type_tree): New function.
14755         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
14756         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
14757         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
14758         Write out enum constraint_type and get_constraint_type.
14759         * lra-constraints.c (satisfies_memory_constraint_p): Take a
14760         constraint_num rather than a constraint string.
14761         (satisfies_address_constraint_p): Likewise.
14762         (reg_class_from_constraints): Avoid old constraint macros.
14763         (process_alt_operands, process_address_1): Likewise.
14764         (curr_insn_transform): Likewise.
14765         * ira-costs.c (record_reg_classes): Likewise.
14766         (record_operand_costs): Likewise.
14767         * ira-lives.c (single_reg_class): Likewise.
14768         (ira_implicitly_set_insn_hard_regs): Likewise.
14769         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
14770         * postreload.c (reload_cse_simplify_operands): Likewise.
14771         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
14772         (constrain_operands, peep2_find_free_register): Likewise.
14773         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
14774         (find_reloads, alternative_allows_const_pool_ref): Likewise.
14775         * reload1.c (maybe_fix_stack_asms): Likewise.
14776         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14777         * targhooks.c (default_secondary_reload): Likewise.
14778         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
14779         to EXTRA_CONSTRAINT_STR.
14780         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
14782 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14784         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
14785         (write_constraint_satisfied_p_array): ...this new function.
14786         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
14787         an array.
14788         (write_insn_preds_c): Update accordingly.
14790 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14792         * genpreds.c (write_lookup_constraint): Rename to...
14793         (write_lookup_constraint_1): ...this.
14794         (write_lookup_constraint_array): New function.
14795         (write_tm_preds_h): Define lookup_constraint as an inline function
14796         that uses write_lookup_constraint_array where possible.
14797         (write_insn_preds_c): Update for the changes above.
14799 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
14801         * doc/md.texi (regclass_for_constraint): Rename to...
14802         (reg_class_for_constraint): ...this.
14803         * genpreds.c (num_constraints, enum_order, register_start)
14804         (register_end, satisfied_start, memory_start, memory_end)
14805         (address_start, address_end): New variables.
14806         (add_constraint): Count the number of constraints.
14807         (choose_enum_order): New function.
14808         (write_enum_constraint_num): Iterate over enum_order.
14809         (write_regclass_for_constraint): Rename to...
14810         (write_reg_class_for_constraint_1): ...this and update output
14811         accordingly.
14812         (write_constraint_satisfied_p): Rename to...
14813         (write_constraint_satisfied_p_1): ...this and update output
14814         accordingly.  Do nothing if all extra constraints are register
14815         constraints.
14816         (write_insn_extra_memory_constraint): Delete.
14817         (write_insn_extra_address_constraint): Delete.
14818         (write_range_function): New function.
14819         (write_tm_preds_h): Define constraint_satisfied_p and
14820         reg_class_for_constraint as inline functions that do a range check
14821         before calling the out-of-line function.  Use write_range_function
14822         to implement insn_extra_{register,memory,address}_constraint,
14823         the first of which is new.
14824         (write_insn_preds_c): Update after above changes to write_* functions.
14825         (main): Call choose_enum_order.
14827 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14829         PR tree-optimization/61306
14830         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
14831         expression instead of its size.
14832         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
14833         false to prevent optimization when the result is unpredictable due to
14834         arithmetic right shift of signed type with highest byte is set.
14835         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
14836         (init_symbolic_number): Likewise.
14837         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
14838         when the result is unpredictable due to sign extension.
14840 2014-06-11  Terry Guo  <terry.guo@arm.com>
14842         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
14843         (*thumb1_addsi3): Ditto.
14844         (*thumb_subdi3): Ditto.
14845         (thumb1_subsi3_insn): Ditto.
14846         (*thumb_mulsi3): Ditto.
14847         (*thumb_mulsi3_v6): Ditto.
14848         (*thumb1_andsi3_insn): Ditto.
14849         (thumb1_bicsi3): Ditto.
14850         (*thumb1_iorsi3_insn): Ditto.
14851         (*thumb1_xorsi3_insn): Ditto.
14852         (*thumb1_ashlsi3): Ditto.
14853         (*thumb1_ashrsi3): Ditto.
14854         (*thumb1_lshrsi3): Ditto.
14855         (*thumb1_rotrsi3): Ditto.
14856         (*thumb1_negdi2): Ditto.
14857         (*thumb1_negsi2): Ditto.
14858         (*thumb1_abssi2): Ditto.
14859         (*thumb1_neg_abssi2): Ditto.
14860         (*thumb1_one_cmplsi2): Ditto.
14861         (*thumb1_zero_extendhisi2): Ditto.
14862         (*thumb1_zero_extendqisi2): Ditto.
14863         (*thumb1_zero_extendqisi2_v6): Ditto.
14864         (thumb1_extendhisi2): Ditto.
14865         (thumb1_extendqisi2): Ditto.
14866         (*thumb1_movdi_insn): Ditto.
14867         (*thumb1_movsi_insn): Ditto.
14868         (*thumb1_movhi_insn): Ditto.
14869         (thumb_movhi_clobber): Ditto.
14870         (*thumb1_movqi_insn): Ditto.
14871         (*thumb1_movhf): Ditto.
14872         (*thumb1_movsf_insn): Ditto.
14873         (*thumb_movdf_insn): Ditto.
14874         (movmem12b): Ditto.
14875         (movmem8b): Ditto.
14876         (cbranchqi4): Ditto.
14877         (cbranchsi4_insn): Ditto.
14878         (cbranchsi4_scratch): Ditto.
14879         (*negated_cbranchsi4): Ditto.
14880         (*tbit_cbranch): Ditto.
14881         (*tlobits_cbranch): Ditto.
14882         (*tstsi3_cbranch): Ditto.
14883         (*cbranchne_decr1): Ditto.
14884         (*addsi3_cbranch): Ditto.
14885         (*addsi3_cbranch_scratch): Ditto.
14886         (*thumb_cmpdi_zero): Ditto.
14887         (cstoresi_eq0_thumb1): Ditto.
14888         (cstoresi_ne0_thumb1): Ditto.
14889         (*cstoresi_eq0_thumb1_insn): Ditto.
14890         (*cstoresi_ne0_thumb1_insn): Ditto.
14891         (cstoresi_nltu_thumb1): Ditto.
14892         (cstoresi_ltu_thumb1): Ditto.
14893         (thumb1_addsi3_addgeu): Ditto.
14894         (*thumb_jump): Ditto.
14895         (*call_reg_thumb1_v5): Ditto.
14896         (*call_reg_thumb1): Ditto.
14897         (*call_value_reg_thumb1_v5): Ditto.
14898         (*call_value_reg_thumb1): Ditto.
14899         (*call_insn): Ditto.
14900         (*call_value_insn): Ditto.
14901         (thumb1_casesi_internal_pic): Ditto.
14902         (thumb1_casesi_dispatch): Ditto.
14903         (*thumb1_indirect_jump): Ditto.
14904         (prologue_thumb1_interwork): Ditto.
14905         (*epilogue_insns): Ditto.
14906         (consttable_1): Ditto.
14907         (consttable_2): Ditto.
14908         (tablejump): Ditto.
14909         (*thumb1_tablejump): Ditto.
14910         (thumb_eh_return): Ditto.
14911         (define_peephole2): Two of them are thumb1 only and got moved into
14912         new file thumb1.md.
14913         (define_split): Six of them are thumb1 only and got moved into new
14914         file thumb1.md.
14915         * config/arm/thumb1.md: New file comprised of above thumb1 only
14916         patterns.
14918 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14920         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
14921         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
14922         dependencies.
14923         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
14924         (aarch64_crc_builtin_datum): New struct.
14925         (aarch64_crc_builtin_data): New.
14926         (aarch64_init_crc32_builtins): New function.
14927         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
14928         (aarch64_crc32_expand_builtin): New.
14929         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
14930         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14931         __ARM_FEATURE_CRC32 when appropriate.
14932         (TARGET_CRC32): Define.
14933         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
14934         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
14935         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
14936         (aarch64_<crc_variant>): New pattern.
14937         * config/aarch64/arm_acle.h: New file.
14938         * config/aarch64/iterators.md (CRC): New int iterator.
14939         (crc_variant, crc_mode): New int attributes.
14940         * doc/aarch64-acle-intrinsics.texi: New file.
14941         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
14942         Include aarch64-acle-intrinsics.texi.
14944 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
14946         * tree-vect-data-refs.c (vect_grouped_store_supported): New
14947         check for stores group of length 3.
14948         (vect_permute_store_chain): New permutations for stores group of
14949         length 3.
14950         * tree-vect-stmts.c (vect_model_store_cost): Change cost
14951         of vec_perm_shuffle for the new permutations.
14953 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
14955         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
14956         table rewriting temporarily on targets not supporting ONE_ONLY.
14958 2014-06-11  Richard Biener  <rguenther@suse.de>
14960         PR middle-end/61437
14961         Revert
14962         2014-06-04  Richard Biener  <rguenther@suse.de>
14964         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
14965         TREE_PUBLIC and DECL_EXTERNAL decls.
14967 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
14969         * varasm.c (set_implicit_section): New function.
14970         (resolve_unique_section): Use it to set implicit section
14971         for aliases, too.
14972         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
14973         (default_function_section): Likewise.
14974         (decl_binds_to_current_def_p): Constify argument.
14975         * varasm.h (decl_binds_to_current_def_p): Update prototype.
14976         * asan.c (asan_protect_global): Use
14977         symtab_get_node (decl)->implicit_section.
14978         * symtab.c (dump_symtab_base): Dump implicit sections.
14979         (verify_symtab_base): Verify sanity of sectoins and comdats.
14980         (symtab_resolve_alias): Alias share the section of its target.
14981         (set_section_1): New function.
14982         (symtab_node::set_section): Move here, recurse to aliases.
14983         (verify_symtab): Check for duplicated symtab lists.
14984         * tree-core.h (implicit_section_name_p): Remove.
14985         * tree-vect-data-refs.c: Include varasm.h.
14986         (vect_can_force_dr_alignment_p): Fix conditional on when
14987         decl bints to current definition; use
14988         symtab_get_node (decl)->implicit_section.
14989         * cgraph.c (cgraph_make_node_local_1): Fix section set.
14990         * cgraph.h (struct symtab_node): Add implicit_section.
14991         (set_section): Rename to ...
14992         (set_section_for_node): ... this one.
14993         (set_section): Declare.
14994         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
14995         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
14996         input_overwrite_node, input_varpool_node): Stream implicit_section.
14997         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
14998         removal; it will fail in LTO.
15000 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15002         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
15003         Change second alternative type to f_mcr.
15004         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
15005         and 12th alternatives' types to f_mcr and f_mrc.
15006         (*movdi_aarch64): Same for 12th and 13th alternatives.
15007         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
15008         (aarch64_movtilow_tilow): Change type to fmov.
15010 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
15012         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
15013         (aarch64_save_or_restore_callee_save_registers): Fix layout.
15015 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15017         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
15018         New expander.
15019         (aarch64_sqrdmulh_lane<mode>): Likewise.
15020         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
15021         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
15022         (aarch64_sqdmulh_laneq<mode>): New expander.
15023         (aarch64_sqrdmulh_laneq<mode>): Likewise.
15024         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
15025         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
15026         (aarch64_sqdmulh_lane<mode>): New expander.
15027         (aarch64_sqrdmulh_lane<mode>): Likewise.
15028         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
15029         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
15030         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
15031         (aarch64_sqdmlal_laneq<mode>): Likewise.
15032         (aarch64_sqdmlsl_lane<mode>): Likewise.
15033         (aarch64_sqdmlsl_laneq<mode>): Likewise.
15034         (aarch64_sqdmlal2_lane<mode>): Likewise.
15035         (aarch64_sqdmlal2_laneq<mode>): Likewise.
15036         (aarch64_sqdmlsl2_lane<mode>): Likewise.
15037         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15038         (aarch64_sqdmull_lane<mode>): Likewise.
15039         (aarch64_sqdmull_laneq<mode>): Likewise.
15040         (aarch64_sqdmull2_lane<mode>): Likewise.
15041         (aarch64_sqdmull2_laneq<mode>): Likewise.
15043 2014-06-10  Richard Biener  <rguenther@suse.de>
15045         PR tree-optimization/61438
15046         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
15047         (eliminate_dom_walker::before_dom_children): Only try to inhibit
15048         insertion of IVs if running PRE.
15049         (eliminate): Adjust.
15050         (pass_pre::execute): Likewise.
15051         (pass_fre::execute): Likewise.
15053 2014-06-10  Richard Biener  <rguenther@suse.de>
15055         PR middle-end/61456
15056         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15057         Do not use the main variant for the type comparison.
15058         (ncr_compar): Likewise.
15059         (nonoverlapping_component_refs_p): Likewise.
15061 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15063         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
15064         REG_CFA_RESTORE mode.
15066 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
15068         * config/i386/i386.c (expand_vec_perm_pblendv): New.
15069         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
15070         expand_vec_perm_pblendv.
15072 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15074         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
15075         available.
15076         Simplify description of __crc32d and __crc32cd intrinsics.
15077         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
15078         availability.
15080 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
15082         PR lto/61334
15083         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
15084         * config.in: Regenerate.
15085         * configure: Likewise.
15087 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
15089         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
15090         and public vars.
15091         (intersect_static_var_sets): Remove.
15092         (propagate): Do not prune local statics.
15094 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
15096         PR fortran/60928
15097         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
15098         Set lastprivate_firstprivate even if omp_private_outer_ref
15099         langhook returns true.
15100         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
15101         langhook, call unshare_expr on new_var and call
15102         build_outer_var_ref to get the last argument.
15104 2014-06-10  Marek Polacek  <polacek@redhat.com>
15106         PR c/60988
15107         * doc/extend.texi: Add cindex for transparent_union.
15109 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15111         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
15112         init_symbolic_number ().
15114 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
15116         PR middle-end/61141
15117         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
15118         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
15119         (verify_rtl_sharing): Likewise.
15121 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
15123         PR c++/54442
15124         * tree.c (build_qualified_type): Use a canonical type for
15125         TYPE_CANONICAL.
15127 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15129         * config/arm/arm-modes.def: Remove XFmode.
15131 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
15133         PR target/61062
15134         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
15135         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
15136         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
15137         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
15138         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
15139         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
15140         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
15141         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
15142         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
15144 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
15146         * tree-core.h (tree_decl_with_vis): Remove section_name.
15148 2014-06-09  Kito Cheng  <kito@0xlab.org>
15150         * ira.c (ira): Don't call init_caller_save if LRA enabled
15151         since LRA use its own infrastructure to handle that.
15153 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15155         * symtab.c (dump_symtab_base): Update dumping.
15156         (symtab_make_decl_local): Clear only DECL_COMDAT.
15157         * tree-vect-data-refs.c (Check that variable is static before
15158         tampering with sections.
15159         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
15160         (cgraph_create_virtual_clone): Likewise.
15161         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
15162         (decl_section_name, set_decl_section_name): New accessors.
15163         (find_decls_types_r): Do not walk section name
15164         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
15165         (decl_comdat_group, decl_comdat_group_id): Constify.
15166         (decl_section_name, set_decl_section_name): Update.
15167         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
15168         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
15169         (cgraph_make_node_local_1): Clear section and comdat group.
15170         * cgraph.h (set_comdat_group): Sanity check.
15171         (get_section, set_section): New.
15172         * ipa-comdats.c (ipa_comdats): Use get_section.
15173         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
15174         * lto-streamer-out.c: Do not follow section names.
15175         * c-family/c-common.c (handle_section_attribute): Update.
15176         * lto-cgraph.c (lto_output_node): Output section.
15177         (lto_output_varpool_node): Likewise.
15178         (read_comdat_group): Rename to ...
15179         (read_identifier): ... this one.
15180         (read_string_cst): New function.
15181         (input_node, input_varpool_node): Input section names.
15182         * tree-emutls.c (get_emutls_init_templ_addr): Update.
15183         (new_emutls_decl): Update.
15184         (secname_for_decl): Check section names only of static vars.
15185         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
15186         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
15187         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15188         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15189         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
15190         * config/mcore/mcore.c (mcore_unique_section): Likewise.
15191         * config/mips/mips.c (mips16_build_function_stub): Likewise.
15192         * config/v850/v850.c (v850_insert_attributes): Likewise.
15193         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
15194         Likewise.
15195         (h8300_handle_tiny_data_attribute): Likewise.
15196         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
15197         (bfin_handle_l2_attribute): Likewise.
15199 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15201         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
15202         remove static initializer.
15204 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15206         * varasm.c (use_blocks_for_decl_p): Check symbol table
15207         instead of alias attribute.
15208         (place_block_symbol): Recurse on aliases.
15210 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15212         * ipa-visibility.c: Include varasm.h
15213         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
15215 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
15217         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
15218         outputting aliases.
15220 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
15222         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
15223         from test_insn into GGC space escape via SET_SRC.
15225 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
15227         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
15228         call statement, if any.
15229         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
15230         statements, if any.  Tidy up.
15232 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
15234         PR target/61431
15235         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
15236         iterators, VSX_D that handles 64-bit types, and VSX_LE that
15237         handles swapping the two 64-bit double words on little endian
15238         systems.  Include V1TImode and optionally TImode in VSX_LE so that
15239         these types are properly swapped.  Change all of the insns and
15240         splits that do the 64-bit swaps to use VSX_LE.
15241         (vsx_le_perm_load_<mode>): Likewise.
15242         (vsx_le_perm_store_<mode>): Likewise.
15243         (splitters for little endian memory operations): Likewise.
15244         (vsx_xxpermdi2_le_<mode>): Likewise.
15245         (vsx_lxvd2x2_le_<mode>): Likewise.
15246         (vsx_stxvd2x2_le_<mode>): Likewise.
15248 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
15250         PR target/61423
15251         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
15252         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
15253         and corresponding splitters.  Zero extend general register
15254         or memory input operand to XMM temporary.  Enable for
15255         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
15256         (floatunssi<mode>2): Update expander predicate.
15258 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
15260         PR rtl-optimization/61325
15261         * lra-constraints.c (process_address_1): Check scale equal to one
15262         to prevent transformation: base + scale * index => base + new_reg.
15264 2014-06-06  Richard Biener  <rguenther@suse.de>
15266         PR tree-optimization/59299
15267         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
15268         a def operand.
15269         (nearest_common_dominator_of_uses): Likewise.
15270         (statement_sink_location): Adjust.  Support sinking loads.
15272 2014-06-06  Martin Jambor  <mjambor@suse.cz>
15274         * ipa-prop.c (get_place_in_agg_contents_list): New function.
15275         (build_agg_jump_func_from_list): Likewise.
15276         (determine_known_aggregate_parts): Renamed to
15277         determine_locally_known_aggregate_parts.  Moved some functionality
15278         to the two functions above, removed bound checks.
15280 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
15282         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
15283         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
15284         (aarch64_progress_pointer): Likewise.
15285         (aarch64_copy_one_part_and_move_pointers): Likewise.
15286         (aarch64_expand_movmen): Likewise.
15287         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
15288         * config/aarch64/aarch64.md (movmem<mode>): New.
15290 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
15292         * targhooks.c (default_add_stmt_cost): Call target specific
15293         hook instead of default one.
15295 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15297         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
15298         endianness instead of host endianness.
15299         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
15300         comments.
15302 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15304         PR debug/53927
15305         * function.c (instantiate_decls): Process the saved static chain.
15306         (expand_function_start): If not optimizing, save the static chain
15307         onto the stack.
15308         * tree-nested.c (convert_all_function_calls): Always create the static
15309         chain for nested functions if not optimizing.
15311 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15313         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
15315 2014-06-06  Richard Biener  <rguenther@suse.de>
15317         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
15318         (construct_init_block): Likewise.
15319         (construct_exit_block): Likewise.
15320         (pass_expand::execute): Likewise.
15321         * graphite.c (graphite_transforms): Replace check for current_loops
15322         with a check for > 1 loops.
15323         (pass_graphite_transforms::execute): Adjust.
15324         * ipa-split.c (split_function): Remove check for current_loops.
15325         * omp-low.c (expand_parallel_call): Likewise.
15326         (expand_omp_for_init_counts): Likewise.
15327         (extract_omp_for_update_vars): Likewise.
15328         (expand_omp_for_generic): Likewise.
15329         (expand_omp_sections): Likewise.
15330         (expand_omp_target): Likewise.
15331         * tracer.c (tail_duplicate): Likewise.
15332         (pass_tracer::execute): Likewise.
15333         * trans-mem.c (expand_transaction): Likewise.
15334         * tree-complex.c (expand_complex_div_wide): Likewise.
15335         * tree-eh.c (lower_resx): Likewise.
15336         (cleanup_empty_eh_merge_phis): Likewise.
15337         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
15338         current_loops with a check for > 1 loops.
15339         (pass_predcom::execute): Adjust.
15340         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
15341         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
15342         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
15343         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
15344         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
15345         * tree-switch-conversion.c (process_switch): Likewise.
15346         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
15347         * tree-vrp.c (vrp_visit_phi_node): Likewise.
15348         (execute_vrp): Likewise.
15349         * ubsan.c (ubsan_expand_null_ifn): Likewise.
15351 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
15353         * rtl.h (insn_location): Declare.
15354         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
15355         with UNKNOWN_LOCATION.
15356         * emit-rtl.c (insn_location): New function.
15357         * final.c (notice_source_line): Check that the instruction has a
15358         location before retrieving it and use insn_location.
15359         * modulo-sched.c (loop_single_full_bb_p): Likewise.
15360         * print-rtl.c (print_rtx): Likewise.
15362 2014-06-06  Richard Biener  <rguenther@suse.de>
15364         * passes.def: Move 2nd VRP pass before phi-only-cprop.
15366 2014-06-06  Christian Bruel  <christian.bruel@st.com>
15368         PR tree-optimization/43934
15369         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
15370         cost.
15372 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
15374         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
15375         return NO_REGS for extra address and memory constraints.  Handle
15376         operands that match (or are equivalent to something that matches)
15377         extra constant constraints.  Ignore other non-register operands.
15379 2014-06-06  Alan Modra  <amodra@gmail.com>
15381         PR target/61300
15382         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
15383         * doc/tm.texi: Regenerate.
15384         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
15385         Use throughout in place of REG_PARM_STACK_SPACE.
15386         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
15387         "incoming" param.  Pass to rs6000_function_parms_need_stack.
15388         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
15389         prototype_p when incoming.  Use function decl when incoming
15390         to handle K&R style functions.
15391         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
15392         (INCOMING_REG_PARM_STACK_SPACE): Define.
15394 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15396         PR target/52472
15397         * cfgexpand.c (expand_debug_expr): Use address space of nested
15398         TREE_TYPE for ADDR_EXPR and MEM_REF.
15400 2014-06-05  Jeff Law  <law@redhat.com>
15402         PR tree-optimization/61289
15403         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
15404         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
15405         looking for those which match LHS.  All callers changed.
15406         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
15407         parameters and code which manipulated them.  All callers changed.
15408         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
15409         and DST_MAP parameters.  Simplify invalidation code by just calling
15410         invalidate_equivalences.  All callers changed.
15411         (thread_across_edge): Simplify now that we don't need to maintain
15412         the map of equivalences to invalidate.
15414 2014-06-05  Kai Tietz  <ktietz@redhat.com>
15415             Richard Henderson  <rth@redhat.com>
15417         PR target/46219
15418         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
15419         checking for !TARGET_X32.
15420         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
15421         (sibcall_intern): New define_insn, plus required peepholes.
15422         (sibcall_pop_intern): Likewise.
15423         (sibcall_value_intern): Likewise.
15424         (sibcall_value_pop_intern): Likewise.
15426 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
15428         * tree-inline.c (tree_function_versioning): Check DF info existence
15429         before accessing it.
15431 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15433         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
15434         frame_size.
15435         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
15436         aarch64_frame hard_fp_offset and frame_size.
15437         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
15438         frame_size; remove original_frame_size.
15439         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
15440         (aarch64_initial_elimination_offset): Remove frame_size and
15441         offset.  Use aarch64_frame frame_size.
15443 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15444             Jiong Wang  <jiong.wang@arm.com>
15445             Renlin  <renlin.li@arm.com>
15447         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
15448         initialization of R30 offset.  Update offset.  Iterate core
15449         regisers upto X30.  Remove X29, X30 specific code.
15451 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15452             Jiong Wang  <jiong.wang@arm.com>
15454         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
15455         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
15456         (aarch64_register_saved_on_entry): Adjust test.
15458 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15460         * config/aarch64/aarch64.h (machine_function): Move
15461         saved_varargs_size from here...
15462         (aarch64_frame): ... to here.
15464         * config/aarch64/aarch64.c (aarch64_expand_prologue)
15465         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
15466         (aarch64_initial_elimination_offset)
15467         (aarch64_setup_incoming_varargs): Adjust location of
15468         saved_varargs_size.
15470 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15472         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
15473         layout comment.
15475 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
15476             Prachi Godbole  <Prachi.Godbole@imgtec.com>
15478         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
15479         mips32r5 entry to use PROCESSOR_P5600.
15480         * config/mips/mips-tables.opt: Regenerate.
15481         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
15482         * config/mips/mips.c (mips_fmadd_bypass): New function.
15483         (mips_rtx_cost_data): Add costs for p5600.
15484         (mips_issue_rate): Add support for p5600.
15485         (mips_multipass_dfa_lookahead): Likewise.
15486         * config/mips/mips.h (TUNE_P5600): New define.
15487         (TUNE_MACC_CHAINS): Add TUNE_P5600.
15488         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
15489         * config/mips/mips.md: Include p5600.md.
15490         (processor): Add p5600.
15491         * config/mips/p5600.md: New file.
15493 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
15495         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
15496         * config/i386/predicates.md (palignr_operand): New.
15497         Indicates if permutation is suitable for palignr instruction.
15499 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
15501         PR tree-optimization/61319
15502         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15503         stmt belongs to loop.
15505 2014-06-05  Richard Biener  <rguenther@suse.de>
15507         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
15508         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
15509         (lookup_tmp_var): Adjust.
15510         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
15512 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15514         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
15516 2014-06-05  Marek Polacek  <polacek@redhat.com>
15518         PR c/49706
15519         * doc/invoke.texi: Document -Wlogical-not-parentheses.
15521 2014-06-04  Tom de Vries  <tom@codesourcery.com>
15523         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
15524         CONST_INT.
15526 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
15528         PR tree-optimization/61385
15529         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
15531 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
15533         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
15534         changed to use fatal_error.
15535         (main): Ensure lto_wrapper_cleanup is run atexit.
15537 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15539         * lra-constraints.c (valid_address_p): Move earlier in file.
15540         (address_eliminator): New structure.
15541         (satisfies_memory_constraint_p): New function.
15542         (satisfies_address_constraint_p): Likewise.
15543         (process_alt_operands, process_address, curr_insn_transform): Use them.
15545 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15547         * lra-int.h (lra_static_insn_data): Make operand_alternative a
15548         const pointer.
15549         (target_lra_int, default_target_lra_int, this_target_lra_int)
15550         (op_alt_data): Delete.
15551         * lra.h (lra_init): Delete.
15552         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
15553         (init_insn_code_data_once): Remove op_alt_data handling.
15554         (finish_insn_code_data_once): Likewise.
15555         (init_op_alt_data): Delete.
15556         (get_static_insn_data): Initialize operand_alternative to null.
15557         (free_insn_recog_data): Cast operand_alternative before freeing it.
15558         (setup_operand_alternative): Take the operand_alternative as
15559         parameter and assume it isn't already cached in the static
15560         insn data.
15561         (lra_set_insn_recog_data): Update accordingly.
15562         (lra_init): Delete.
15563         * ira.c (ira_init): Don't call lra_init.
15564         * target-globals.h (this_target_lra_int): Declare.
15565         (target_globals): Remove lra_int.
15566         (restore_target_globals): Update accordingly.
15567         * target-globals.c: Don't include lra-int.h.
15568         (default_target_globals, save_target_globals): Remove lra_int.
15570 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15572         * recog.h (operand_alternative): Convert reg_class, reject,
15573         matched and matches into bitfields.
15574         (preprocess_constraints): New overload.
15575         (preprocess_insn_constraints): New function.
15576         (preprocess_constraints): Take the insn as parameter.
15577         (recog_op_alt): Change into a pointer.
15578         (target_recog): Add x_op_alt.
15579         * recog.c (asm_op_alt): New variable.
15580         (recog_op_alt): Change into a pointer.
15581         (preprocess_constraints): New overload, replacing the old function
15582         definition with one that doesn't use global state.
15583         (preprocess_insn_constraints): New function.
15584         (preprocess_constraints): Use them.  Take the insn as parameter.
15585         Use asm_op_alt for asms.
15586         (recog_init): Free existing x_op_alt entries.
15587         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
15588         pointer const.
15589         (make_early_clobber_and_input_conflicts): Likewise.
15590         (process_bb_node_lives): Pass the insn to process_constraints.
15591         * reg-stack.c (check_asm_stack_operands): Likewise.
15592         (subst_asm_stack_regs): Likewise.
15593         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
15594         * regrename.c (build_def_use): Likewise.
15595         * sched-deps.c (sched_analyze_insn): Likewise.
15596         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
15597         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
15598         (note_invalid_constants): Likewise.
15599         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15600         (ix86_legitimate_combined_insn): Make operand_alternative pointer
15601         const.
15603 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15605         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
15606         * ira-lives.c (check_and_make_def_conflict): Check for disabled
15607         alternatives.
15608         (make_early_clobber_and_input_conflicts): Likewise.
15609         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15611 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15613         * recog.h (alternative_class): New function.
15614         (which_op_alt): Return a const recog_op_alt.
15615         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
15616         (subst_asm_stack_regs): Likewise.
15617         * config/arm/arm.c (note_invalid_constants): Likewise.
15618         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
15619         the operand_alternative; use alternative class instead.
15620         * sel-sched.c (get_reg_class): Likewise.
15621         * regrename.c (build_def_use): Likewise.
15622         (hide_operands, restore_operands, record_out_operands): Update type
15623         accordingly.
15625 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
15627         * recog.h (recog_op_alt): Convert to a flat array.
15628         (which_op_alt): New function.
15629         * recog.c (recog_op_alt): Convert to a flat array.
15630         (preprocess_constraints): Update accordingly, grouping all
15631         operands of the same alternative together, rather than the
15632         other way around.
15633         * ira-lives.c (check_and_make_def_conflict): Likewise.
15634         (make_early_clobber_and_input_conflicts): Likewise.
15635         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
15636         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
15637         (subst_asm_stack_regs): Likewise.
15638         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
15639         * regrename.c (hide_operands, record_out_operands): Likewise.
15640         (build_def_use): Likewise.
15641         * sel-sched.c (get_reg_class): Likewise.
15642         * config/arm/arm.c (note_invalid_constants): Likewise.
15644 2014-06-04  Jason Merrill  <jason@redhat.com>
15646         PR c++/51253
15647         PR c++/61382
15648         * gimplify.c (gimplify_arg): Non-static.
15649         * gimplify.h: Declare it.
15651 2014-06-04  Richard Biener  <rguenther@suse.de>
15653         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
15654         TREE_PUBLIC and DECL_EXTERNAL decls.
15656 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
15658         * regcprop.c (copyprop_hardreg_forward_1): Account for
15659         HARD_REGNO_CALL_PART_CLOBBERED.
15661 2014-06-04  Richard Biener  <rguenther@suse.de>
15663         * configure.ac: Check whether the underlying type of int64_t
15664         is long or long long.
15665         * configure: Regenerate.
15666         * config.in: Likewise.
15667         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
15668         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
15670 2014-06-04  Richard Biener  <rguenther@suse.de>
15672         PR tree-optimization/60098
15673         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
15674         we hit a kill.
15675         (dse_optimize_stmt): Simplify, now that we found a kill
15676         earlier.
15678 2014-06-04  Richard Biener  <rguenther@suse.de>
15680         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
15681         of accesses with non-invariant address.
15683 2014-06-04  Martin Liska  <mliska@suse.cz>
15685         * cgraph.h (cgraph_make_wrapper): New function introduced.
15686         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
15687         * ipa-inline.h (inline_analyze_function): The function is global.
15688         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
15690 2014-06-04  Martin Liska  <mliska@suse.cz>
15692         * tree.h (private_lookup_attribute_starting): New function.
15693         (lookup_attribute_starting): Likewise.
15694         * tree.c (private_lookup_attribute_starting): Likewise.
15696 2014-06-04  Martin Liska  <mliska@suse.cz>
15698         * cgraph.h (expand_thunk): New argument added.
15699         (address_taken_from_non_vtable_p): New global function.
15700         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
15701         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
15702         * cgraphunit.c (analyze_function): Likewise.
15703         (assemble_thunks_and_aliases): Argument added to call.
15704         (expand_thunk): New argument forces to produce GIMPLE thunk.
15706 2014-06-04  Martin Liska  <mliska@suse.cz>
15708         * coverage.h (coverage_compute_cfg_checksum): Argument added.
15709         * coverage.c (coverage_compute_cfg_checksum): Likewise.
15710         * profile.c (branch_prob): Likewise.
15712 2014-06-04  Martin Jambor  <mjambor@suse.cz>
15714         PR ipa/61340
15715         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
15716         handler for switch on an ipa_ref_use enum.
15717         * ipa-reference.c (analyze_function): Likewise.
15719 2014-06-04  Kai Tietz  <ktietz@redhat.com>
15721         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
15722         from old call-instruction.
15724 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
15726         * config/aarch64/aarch64.c (aarch64_classify_address)
15727         (aarch64_legitimize_reload_address): Support full addressing modes
15728         for vector modes.
15729         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
15730         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
15732 2014-06-03  Andrew Pinski  <apinski@cavium.com>
15734         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
15735         for OP0.
15737 2014-06-03  Andrew Pinski  <apinski@cavium.com>
15739         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
15740         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
15742 2014-06-03  Kai Tietz  <ktietz@redhat.com>
15744         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
15745         for 64-bit ms-abi.
15747 2014-06-03  Dehao Chen  <dehao@google.com>
15749         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
15750         the same loop.
15752 2014-06-03  Marek Polacek  <polacek@redhat.com>
15754         PR c/60439
15755         * doc/invoke.texi: Document -Wswitch-bool.
15756         * function.c (stack_protect_epilogue): Cast controlling expression of
15757         the switch to int.
15758         * gengtype.c (walk_type): Generate switch expression with its
15759         controlling expression cast to int.
15761 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
15763         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
15764         and attiny841.
15765         * config/avr/avr-tables.opt: Regenerate.
15766         * config/avr/t-multilib: Regenerate.
15767         * doc/avr-mmcu.texi: Regenerate.
15769 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
15770             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15772         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
15773         (ata6617c, ata664251): Add new avr35 devices.
15774         (ata6612c): Add new avr4 device.
15775         (ata6613c, ata6614q): Add new avr5 devices.
15776         * config/avr/avr-tables.opt: Regenerate.
15777         * config/avr/t-multilib: Regenerate.
15778         * doc/avr-mmcu.texi: Regenerate.
15780 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15782         * gcc/config/aarch64/aarch64-builtins.c
15783         (aarch64_types_binop_ssu_qualifiers): New static data.
15784         (TYPES_BINOP_SSU): Define.
15785         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
15786         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
15787         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
15788         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
15789         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
15790         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
15791         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
15792         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
15793         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
15794         suffix to builtin function name, remove cast.
15795         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
15796         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
15797         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
15799 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15801         * gcc/config/aarch64/aarch64-builtins.c
15802         (aarch64_types_binop_uus_qualifiers,
15803         aarch64_types_shift_to_unsigned_qualifiers,
15804         aarch64_types_unsigned_shiftacc_qualifiers): Define.
15805         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
15806         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
15807         sqshlu_n, uqshl_n): Update qualifiers.
15808         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
15809         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
15810         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
15811         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
15812         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
15813         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
15814         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
15815         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
15816         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
15817         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
15818         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
15819         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
15820         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
15821         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
15822         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
15823         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
15824         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
15825         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
15826         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
15827         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
15828         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
15829         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
15830         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
15831         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
15832         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
15833         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
15834         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
15836 2014-06-03  Teresa Johnson  <tejohnson@google.com>
15838         * tree-sra.c (modify_function): Record caller nodes after rebuild.
15840 2014-06-02  Jason Merrill  <jason@redhat.com>
15842         PR c++/61020
15843         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
15845 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15847         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
15848         location == 0.
15850 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
15852         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
15853         New pattern.
15854         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
15855         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
15856         * config/aarch64/iterators.md (REVERSE): New iterator.
15857         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
15858         (rev_op): New int_attribute.
15859         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
15860         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
15861         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
15862         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
15863         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
15864         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
15865         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
15866         Replace temporary __asm__ with __builtin_shuffle.
15868 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
15870         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
15871         mips64r5.
15872         * config/mips/mips-tables.opt: Regenerate.
15873         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
15874         to use mips_isa_rev rather than ISA_MIPS32R2.
15875         * config/mips/mips.h (ISA_MIPS32R3): New define.
15876         (ISA_MIPS32R5): New define.
15877         (ISA_MIPS64R3): New define.
15878         (ISA_MIPS64R5): New define.
15879         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
15880         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
15881         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
15882         and mips64r5.
15883         (MIPS_ISA_SYNCI_SPEC): Likewise.
15884         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
15885         (LINK_SPEC): Added mips32r3 and mips32r5.
15886         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
15887         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
15888         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
15889         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
15890         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
15891         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
15892         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
15894 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
15896         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
15897         options.
15898         * config/mips/mips.opt (mxpa): New option.
15899         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
15900         assembler.
15902 2014-06-03  Martin Jambor  <mjambor@suse.cz>
15904         PR ipa/61160
15905         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
15906         thunks.
15908 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15910         PR tree-optimization/61328
15911         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
15912         initialization from find_bswap_or_nop_1.
15913         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
15914         in source_expr2 before using the size value the function sets. Also
15915         make use of init_symbolic_number () in both the old place and
15916         find_bswap_or_nop_load () to avoid reading uninitialized memory when
15917         doing recursion in the GIMPLE_BINARY_RHS case.
15919 2014-06-03  Richard Biener  <rguenther@suse.de>
15921         PR tree-optimization/61383
15922         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
15923         stmts can't trap.
15925 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
15927         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
15928         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
15929         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
15930         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
15931         in this file.
15932         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
15933         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
15934         * system.h: ...here and make it unconditional.
15935         * target.def (conditional_register_usage): Mention
15936         define_register_constraint instead of old-style constraint macros.
15937         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
15938         * doc/tm.texi: Regenerate.
15939         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
15940         protected by !USE_MD_CONSTRAINTS.
15941         * config/frv/frv.md: Remove quote from old version of documentation.
15942         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
15943         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
15944         CONST_DOUBLE_OK_FOR_LETTER.
15945         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
15947 2014-06-02  Andrew Pinski  <apinski@cavium.com>
15949         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
15950         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
15951         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
15952         file whose name depends on -mabi= and -mbig-endian.
15953         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
15954         Handle LP64 better and handle ilp32 too.
15955         (MULTILIB_OPTIONS): Delete.
15956         (MULTILIB_DIRNAMES): Delete.
15958 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
15960         * expr.h: Remove prototypes of functions defined in builtins.c.
15961         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
15962         Remove prototypes of functions defined in builtins.c.
15963         * builtins.h: Update prototype list to include all exported functions.
15964         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
15965         no_c99_libc_has_function): Move to targhooks.c
15966         (build_string_literal, build_call_expr_loc_array,
15967         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
15968         to tree.c.
15969         (expand_builtin_object_size, fold_builtin_object_size): Make static.
15970         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
15971         no_c99_libc_has_function): Relocate from builtins.c.
15972         * tree.c: Include builtins.h.
15973         (build_call_expr_loc_array, build_call_expr_loc_vec,
15974         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
15975         from builtins.c.
15976         * fold-const.h (fold_fma): Move prototype to builtins.h.
15977         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
15978         * asan.c: Include builtins.h.
15979         * cfgexpand.c: Likewise.
15980         * convert.c: Likewise.
15981         * emit-rtl.c: Likewise.
15982         * except.c: Likewise.
15983         * expr.c: Likewise.
15984         * fold-const.c: Likewise.
15985         * gimple-fold.c: Likewise.
15986         * gimple-ssa-strength-reduction.c: Likewise.
15987         * gimplify.c: Likewise.
15988         * ipa-inline.c: Likewise.
15989         * ipa-prop.c: Likewise.
15990         * lto-streamer-out.c: Likewise.
15991         * stmt.c: Likewise.
15992         * tree-inline.c: Likewise.
15993         * tree-object-size.c: Likewise.
15994         * tree-sra.c: Likewise.
15995         * tree-ssa-ccp.c: Likewise.
15996         * tree-ssa-forwprop.c: Likewise.
15997         * tree-ssa-loop-ivcanon.c: Likewise.
15998         * tree-ssa-loop-ivopts.c: Likewise.
15999         * tree-ssa-math-opts.c: Likewise.
16000         * tree-ssa-reassoc.c: Likewise.
16001         * tree-ssa-threadedge.c: Likewise.
16002         * tree-streamer-in.c: Likewise.
16003         * tree-vect-data-refs.c: Likewise.
16004         * tree-vect-patterns.c: Likewise.
16005         * tree-vect-stmts.c: Likewise.
16006         * config/aarch64/aarch64.c: Likewise.
16007         * config/alpha/alpha.c: Likewise.
16008         * config/arc/arc.c: Likewise.
16009         * config/arm/arm.c: Likewise.
16010         * config/avr/avr.c: Likewise.
16011         * config/bfin/bfin.c: Likewise.
16012         * config/c6x/c6x.c: Likewise.
16013         * config/cr16/cr16.c: Likewise.
16014         * config/cris/cris.c: Likewise.
16015         * config/epiphany/epiphany.c: Likewise.
16016         * config/fr30/fr30.c: Likewise.
16017         * config/frv/frv.c: Likewise.
16018         * config/h8300/h8300.c: Likewise.
16019         * config/i386/i386.c: Likewise.
16020         * config/i386/winnt.c: Likewise.
16021         * config/ia64/ia64.c: Likewise.
16022         * config/iq2000/iq2000.c: Likewise.
16023         * config/lm32/lm32.c: Likewise.
16024         * config/m32c/m32c.c: Likewise.
16025         * config/m32r/m32r.c: Likewise.
16026         * config/m68k/m68k.c: Likewise.
16027         * config/mcore/mcore.c: Likewise.
16028         * config/mep/mep.c: Likewise.
16029         * config/microblaze/microblaze.c: Likewise.
16030         * config/mips/mips.c: Likewise.
16031         * config/mmix/mmix.c: Likewise.
16032         * config/mn10300/mn10300.c: Likewise.
16033         * config/moxie/moxie.c: Likewise.
16034         * config/msp430/msp430.c: Likewise.
16035         * config/nds32/nds32.c: Likewise.
16036         * config/pa/pa.c: Likewise.
16037         * config/pdp11/pdp11.c: Likewise.
16038         * config/picochip/picochip.c: Likewise.
16039         * config/rl78/rl78.c: Likewise.
16040         * config/rs6000/rs6000.c: Likewise.
16041         * config/rx/rx.c: Likewise.
16042         * config/s390/s390.c: Likewise.
16043         * config/score/score.c: Likewise.
16044         * config/sh/sh.c: Likewise.
16045         * config/sparc/sparc.c: Likewise.
16046         * config/spu/spu.c: Likewise.
16047         * config/stormy16/stormy16.c: Likewise.
16048         * config/tilegx/tilegx.c: Likewise.
16049         * config/tilepro/tilepro.c: Likewise.
16050         * config/v850/v850.c: Likewise.
16051         * config/vax/vax.c: Likewise.
16052         * config/xtensa/xtensa.c: Likewise.
16054 2014-06-02  Jeff Law  <law@redhat.com>
16056         PR rtl-optimization/61094
16057         * ree.c (combine_reaching_defs): Do not reextend an insn if it
16058         was marked as do_no_reextend.  If a copy is needed to eliminate
16059         an extension, then mark it as do_not_reextend.
16061 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16063         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
16065 2014-06-02  Richard Henderson  <rth@redhat.com>
16067         PR target/61336
16068         * config/alpha/alpha.c (print_operand_address): Allow symbolic
16069         addresses inside asms.  Use output_operand_lossage instead of
16070         gcc_unreachable.
16072 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
16074         PR target/61239
16075         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
16076         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
16078 2014-06-02  Tom de Vries  <tom@codesourcery.com>
16080         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
16081         case that x has VOIDmode.
16083 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
16085         * varasm.c (copy_constant): Delete function.
16086         (build_constant_desc): Don't call it.
16088 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16090         PR target/61154
16091         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
16092         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
16093         with immediate_operand.
16095 2014-06-02  Andreas Schwab  <schwab@suse.de>
16097         * config/ia64/ia64.c
16098         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
16099         pending_data_specs first.
16101 2014-06-02  Richard Biener  <rguenther@suse.de>
16103         PR tree-optimization/61378
16104         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
16105         valueized_anything.
16107 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
16109         * config/i386/constraints.md (Bw): Rename from 'w'.
16110         (Bz): Rename from 'z'.
16111         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
16113 2014-06-01  Kai Tietz  <ktietz@redhat.com>
16115         PR target/61377
16116         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
16117         * config/i386/i386.md (sibcall_insn_operand): Use Bs
16118         instead of m constraint.
16120 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
16122         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
16123         a separate alternative where the scratch operand 2 is marked as
16124         early clobber.
16126 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
16128         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
16129         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
16130         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
16131         and __builtins_arm_get_fpscr.
16132         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16133         __builtins_arm_get_fpscr.
16134         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
16135         __builtins_arm_ldfpscr.
16136         (arm_atomic_assign_expand_fenv): New function.
16137         * config/arm/vfp.md (set_fpscr): New pattern.
16138         (get_fpscr) : Likewise.
16139         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
16140         VUNSPEC_SET_FPSCR.
16141         * doc/extend.texi (AARCH64 Built-in Functions) : Document
16142         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
16144 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
16146         * asan.c (report_error_func): Add SLOW_P argument, use
16147         BUILT_IN_ASAN_*_N if set.
16148         (build_check_stmt): Likewise.
16149         (instrument_derefs): If T has insufficient alignment,
16150         force same handling as for odd sizes.
16152         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
16153         BUILT_IN_ASAN_REPORT_STORE_N): New.
16154         * asan.c (struct asan_mem_ref): Change access_size type to
16155         HOST_WIDE_INT.
16156         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
16157         update_mem_ref_hash_table): Likewise.
16158         (asan_mem_ref_hasher::hash): Hash in a HWI.
16159         (report_error_func): Change size_in_bytes argument to HWI.
16160         Use *_N builtins if size_in_bytes is larger than 16 or not power of
16161         two.
16162         (build_shadow_mem_access): New function.
16163         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
16164         Handle size_in_bytes not power of two or larger than 16.
16165         (instrument_derefs): Don't give up if size_in_bytes is not
16166         power of two or is larger than 16.
16168 2014-05-30  Kai Tietz  <ktietz@redhat.com>
16170         PR target/60104
16171         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
16172         for sibling-tail-calls.
16173         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
16174         to its use.
16175         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
16176         (sibcall_insn_operand): Add check for sibcall_memory_operand.
16178 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
16180         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
16181         * config/avr/avr-tables.opt: Regenerate.
16182         * config/avr/t-multilib: Regenerate.
16183         * doc/avr-mmcu.texi: Regenerate.
16185 2014-05-30  Ian Lance Taylor  <iant@google.com>
16187         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
16188         target("sse").
16190 2014-05-30  Tom de Vries  <tom@codesourcery.com>
16192         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
16193         Redefine as true.
16195 2014-05-30  Tom de Vries  <tom@codesourcery.com>
16197         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16198         * lra.c (initialize_lra_reg_info_element): Add init of
16199         actual_call_used_reg_set field.
16200         (lra): Call lra_create_live_ranges before lra_inheritance for
16201         -fuse-caller-save.
16202         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16203         -fuse-caller-save.
16204         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
16205         instead of call_used_reg_set for -fuse-caller-save.
16206         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16208 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16210         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
16211         to mov_imm.
16212         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
16214 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
16216         * ira.c (ira_get_dup_out_num): Check for output operands at
16217         the start of the loop.  Handle cases where an included alternative
16218         follows an excluded one.
16220 2014-05-29  Mike Stump  <mikestump@comcast.net>
16222         PR debug/61352
16223         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
16224         post ld passes when lto is used.
16226 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
16228         PR rtl-optimization/61325
16229         * lra-constraints.c (process_address): Rename to process_address_1.
16230         (process_address): New function.
16232 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
16234         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
16235         TYPES_BINOPV): New static data.
16236         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
16237         New builtin.
16238         * config/aarch64/aarch64-simd.md (aarch64_ext,
16239         aarch64_im_lane_boundsi): New patterns.
16240         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
16241         patterns for EXT.
16242         (aarch64_evpc_ext): New function.
16244         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
16246         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
16247         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
16248         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
16249         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
16250         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
16252 2014-05-29  Tom de Vries  <tom@codesourcery.com>
16254         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
16256 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
16257             Richard Sandiford  <rdsandiford@googlemail.com>
16259         * arm/iterators.md (shiftable_ops): New code iterator.
16260         (t2_binop0, arith_shift_insn): New code attributes.
16261         * arm/predicates.md (shift_nomul_operator): New predicate.
16262         * arm/arm.md (insn_enabled): Delete.
16263         (enabled): Remove insn_enabled test.
16264         (*arith_shiftsi): Delete.  Replace with ...
16265         (*<arith_shift_insn>_multsi): ... new pattern.
16266         (*<arith_shift_insn>_shiftsi): ... new pattern.
16267         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
16269 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
16270             Tom de Vries  <tom@codesourcery.com>
16272         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
16273         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
16274         clobber.
16275         (mips_split_call): Use POST_CALL_TMP_REG.
16276         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
16278 2014-05-29  Tom de Vries  <tom@codesourcery.com>
16280         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
16281         with #ifdef STACK_REGS.
16283 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
16285         * varasm.c (get_variable_section): Walk aliases.
16286         (place_block_symbol): Walk aliases.
16288 2014-05-28  Tom de Vries  <tom@codesourcery.com>
16290         Revert:
16291         2014-05-28  Tom de Vries  <tom@codesourcery.com>
16293         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16294         * lra.c (initialize_lra_reg_info_element): Add init of
16295         actual_call_used_reg_set field.
16296         (lra): Call lra_create_live_ranges before lra_inheritance for
16297         -fuse-caller-save.
16298         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16299         -fuse-caller-save.
16300         * lra-constraints.c (need_for_call_save_p): Use
16301         actual_call_used_reg_set instead of call_used_reg_set for
16302         -fuse-caller-save.
16303         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16305 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16307         * doc/md.texi: Document that the % constraint character must
16308         be at the beginning of the string.
16309         * genoutput.c (validate_insn_alternatives): Check that '=',
16310         '+' and '%' only appear at the beginning of a constraint.
16311         * ira.c (commutative_constraint_p): Delete.
16312         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
16313         at the start of the string.
16314         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
16315         duplicate '='s.
16316         * config/arm/neon.md (bicdi3_neon): Likewise.
16317         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
16318         (slt_si, sltu_si): Likewise.
16319         * config/vax/vax.md (sbcdi3): Likewise.
16320         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
16321         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
16322         (mul64): Move '%' to beginning of constraint.
16323         * config/arm/arm.md (*xordi3_insn): Likewise.
16324         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
16325         (xorsi3): Likewise.
16327 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16329         * doc/md.texi: Document the restrictions on the "enabled" attribute.
16331 2014-05-28  Jason Merrill  <jason@redhat.com>
16333         PR c++/47202
16334         * cgraph.h (symtab_node::get_comdat_group_id): New.
16335         * cgraphunit.c (analyze_functions): Call it.
16336         * symtab.c (dump_symtab_node): Likewise.
16337         * tree.c (decl_comdat_group_id): New.
16338         * tree.h: Declare it.
16339         * lto-streamer-out.c (write_symbol): Use it.
16340         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
16342 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16344         PR bootstrap/PR61146
16345         * wide-int.cc: Do not include longlong.h when compiling with clang.
16347 2014-05-28  Richard Biener  <rguenther@suse.de>
16349         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
16350         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
16351         (vrp_visit_assignment_or_call): Print less vertical space.
16352         (vrp_visit_stmt): Likewise.
16353         (vrp_visit_phi_node): Likewise.  For a PHI argument with
16354         VR_VARYING range consider recording it as copy.
16356 2014-05-28  Richard Biener  <rguenther@suse.de>
16358         Revert
16359         2014-05-28  Richard Biener  <rguenther@suse.de>
16361         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16363 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16365         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
16366         sufficiently aligned and an offset is used at the same time.
16367         (expand_expr_real_1): Likewise.
16369 2014-05-28  Richard Biener  <rguenther@suse.de>
16371         PR middle-end/61045
16372         * fold-const.c (fold_comparison): When folding
16373         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
16374         the sign of the remaining constant operand stays the same.
16376 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
16378         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
16379         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
16380         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
16381         to the assembler.
16382         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
16383         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
16384         (m32bit-doubles) Likewise.
16385         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
16386         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
16387         option for RL78.
16389 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16391         * configure.ac ($gcc_cv_ld_clearcap): New test.
16392         * configure: Regenerate.
16393         * config.in: Regenerate.
16394         * config/sol2.opt (mclear-hwcap): New option.
16395         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
16396         * config/sol2-clearcap.map: Moved here from
16397         testsuite/gcc.target/i386/clearcap.map.
16398         * config/sol2-clearcapv2.map: Move here from
16399         gcc.target/i386/clearcapv2.map.
16400         * config/t-sol2 (install): Depend on install-clearcap-map.
16401         (install-clearcap-map): New target.
16402         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
16403         -mclear-hwcap.
16405 2014-05-28  Richard Biener  <rguenther@suse.de>
16407         * hwint.h (*_HALF_WIDE_INT*): Move to ...
16408         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
16409         ... here and remove the rest.
16410         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
16412 2014-05-28  Richard Biener  <rguenther@suse.de>
16414         PR tree-optimization/61335
16415         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
16416         new range fails, drop to varying.
16418 2014-05-28  Olivier Hainque  <hainque@adacore.com>
16420         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
16421         (CPP_SPEC): Add entry for -mcpu=8548.
16422         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
16423         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
16425 2014-05-28  Tom de Vries  <tom@codesourcery.com>
16427         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
16428         * lra.c (initialize_lra_reg_info_element): Add init of
16429         actual_call_used_reg_set field.
16430         (lra): Call lra_create_live_ranges before lra_inheritance for
16431         -fuse-caller-save.
16432         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
16433         -fuse-caller-save.
16434         * lra-constraints.c (need_for_call_save_p): Use
16435         actual_call_used_reg_set instead of call_used_reg_set for
16436         -fuse-caller-save.
16437         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
16439 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
16440             Tom de Vries  <tom@codesourcery.com>
16442         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
16443         to gccoptlist.
16444         (@item -fuse-caller-save): New item.
16446 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
16447             Tom de Vries  <tom@codesourcery.com>
16449         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
16450         OPT_fuse_caller_save.
16452 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
16453             Tom de Vries  <tom@codesourcery.com>
16455         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
16456         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
16457         get_call_reg_set_usage.
16458         * resource.c (mark_set_resources, mark_target_live_regs): Use
16459         get_call_reg_set_usage.
16460         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
16461         field.
16462         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
16463         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
16464         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16465         * ira-build.c (ira_create_allocno): Init
16466         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16467         (create_cap_allocno, propagate_allocno_info)
16468         (propagate_some_info_from_allocno)
16469         (copy_info_to_removed_store_destinations): Handle
16470         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
16471         * ira-costs.c (ira_tune_allocno_costs): Use
16472         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
16474 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
16475             Tom de Vries  <tom@codesourcery.com>
16477         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
16478         and function_used_regs_valid fields.
16479         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
16480         find_all_hard_reg_sets.
16481         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
16482         (get_call_reg_set_usage): New function.
16483         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
16484         * regs.h (get_call_reg_set_usage): Declare.
16486 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
16488         PR libgcc/61152
16489         * config/dbx.h (License): Add Runtime Library Exception.
16490         * config/newlib-stdint.h (License): Same.
16491         * config/rtems.h (License): Same
16492         * config/initfini-array.h (License): Same
16493         * config/v850/v850.h (License): Same.
16494         * config/v850/v850-opts.h (License): Same
16495         * config/v850/rtems.h (License): Same.
16497 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
16499         PR target/61044
16500         * doc/extend.texi (Local Labels): Note that label differences are
16501         not supported for AVR.
16503 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
16504             Olivier Hainque  <hainque@adacore.com>
16506         * rtl.h (set_for_reg_notes): Declare.
16507         * emit-rtl.c (set_for_reg_notes): New function.
16508         (set_unique_reg_note): Use it.
16509         * optabs.c (add_equal_note): Likewise
16511 2014-05-27  Andrew Pinski  <apinski@cavium.com>
16513         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
16514         Use <w> for the register in assembly template.
16515         (stack_protect_test): Use the mode of operands[0] for the result.
16516         (stack_protect_test_<mode>): Use <w> for the register
16517         in assembly template.
16519 2014-05-27  DJ Delorie  <dj@redhat.com>
16521         * config/rx/rx.c (add_vector_labels): New.
16522         (rx_output_function_prologue): Call it.
16523         (rx_handle_func_attribute): Don't require empty arguments.
16524         (rx_handle_vector_attribute): New.
16525         (rx_attribute_table): Add "vector" attribute.
16526         * doc/extend.texi (interrupt, vector): Document new/changed
16527         RX-specific attributes.
16529         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
16531 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
16533         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
16534         predicate to detect a negative quotient.
16536 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
16538         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
16539         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
16540         Add X - Y CMP 0 to X CMP Y transformation.
16541         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
16543 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
16545         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
16546         before printing.
16548 2014-05-27  Steve Ellcey  <sellcey@mips.com>
16550         * config/mips/mips.c: Add include of cgraph.h.
16552 2014-05-27  Richard Biener  <rguenther@suse.de>
16554         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
16556 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
16558         PR libgcc/61152
16559         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
16560         * config/arm/arm-cores.def (License): Same.
16561         * config/arm/arm-opts.h (License): Same.
16562         * config/arm/aout.h (License): Same.
16563         * config/arm/bpabi.h (License): Same.
16564         * config/arm/elf.h (License): Same.
16565         * config/arm/linux-elf.h (License): Same.
16566         * config/arm/linux-gas.h (License): Same.
16567         * config/arm/netbsd-elf.h (License): Same.
16568         * config/arm/uclinux-eabi.h (License): Same.
16569         * config/arm/uclinux-elf.h (License): Same.
16570         * config/arm/vxworks.h (License): Same.
16572 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16574         * config/arm/neon.md (neon_bswap<mode>): New pattern.
16575         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
16576         (arm_init_neon_builtins): Handle NEON_BSWAP.
16577         Define required type nodes.
16578         (arm_expand_neon_builtin): Handle NEON_BSWAP.
16579         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
16580         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
16581         * config/arm/iterators.md (VDQHSD): New mode iterator.
16583 2014-05-27  Richard Biener  <rguenther@suse.de>
16585         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
16586         Try using literal operands when comparing value-ranges failed.
16588 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
16590         * ira.c (commutative_operand): Adjust for change to recog_data.
16591         [Missing from previous commit.]
16593 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
16595         * system.h (TEST_BIT): New macro.
16596         * recog.h (alternative_mask): New type.
16597         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
16598         (recog_data_d): Replace alternative_enabled_p array with
16599         enabled_alternatives.
16600         (target_recog): New structure.
16601         (default_target_recog, this_target_recog): Declare.
16602         (get_enabled_alternatives, recog_init): Likewise.
16603         * recog.c (default_target_recog, this_target_recog): New variables.
16604         (get_enabled_alternatives): New function.
16605         (extract_insn): Use it.
16606         (recog_init): New function.
16607         (preprocess_constraints, constrain_operands): Adjust for change to
16608         recog_data.
16609         * postreload.c (reload_cse_simplify_operands): Likewise.
16610         * reload.c (find_reloads): Likewise.
16611         * ira-costs.c (record_reg_classes): Likewise.
16612         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
16613         all alternatives after a disabled one would be skipped.
16614         (ira_implicitly_set_insn_hard_regs): Likewise.
16615         * ira.c (ira_setup_alts): Adjust for change to recog_data.
16616         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
16617         with enabled_alternatives.
16618         * lra.c (free_insn_recog_data): Update accordingly.
16619         (lra_update_insn_recog_data): Likewise.
16620         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
16621         * lra-constraints.c (process_alt_operands): Likewise.  Handle
16622         only_alternative as part of the enabled mask.
16623         * target-globals.h (this_target_recog): Declare.
16624         (target_globals): Add a recog field.
16625         (restore_target_globals): Restore this_target_recog.
16626         * target-globals.c: Include recog.h.
16627         (default_target_globals): Initialize recog field.
16628         (save_target_globals): Likewise.
16629         * reginfo.c (reinit_regs): Call recog_init.
16630         * toplev.c (backend_init_target): Likewise.
16632 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
16634         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
16635         rather than any named insn's code.
16637 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
16639         PR libgcc/61152
16640         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
16641         * config/arm/arm-cores.def (License): Same.
16643 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
16645         * tree.h (decl_comdat_group): Declare.
16646         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
16647         * tree.c (decl_comdat_group): Here.
16649 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
16651         PR rtl-optimization/61222
16652         * combine.c (simplify_shift_const_1): When moving a PLUS outside
16653         the shift, truncate the PLUS operand to the result mode.
16655 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
16657         PR target/61271
16658         * config/i386/i386.c (ix86_rtx_costs)
16659         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
16660         Fix condition.
16662 2014-05-26  Martin Jambor  <mjambor@suse.cz>
16664         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
16665         subreg uses.
16667 2014-05-26  Richard Biener  <rguenther@suse.de>
16669         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
16670         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
16671         Provide specializations.
16672         (wi::int_traits <HOST_WIDE_INT>,
16673         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
16675 2014-05-26  Alan Modra  <amodra@gmail.com>
16677         PR target/61098
16678         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
16679         params and return a bool.  Remove dead code.  Update comment.
16680         Assert we have a const_int source.  Remove bogus code from
16681         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
16682         handling of constants > 2G and reg_equal note, from..
16683         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
16684         return value.  Update comment.  If we can, use a new pseudo
16685         for intermediate calculations.
16686         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
16687         prototype.
16688         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
16689         call to rs6000_emit_set_const in splitter.
16690         (movdi_internal64+2, +3): Likewise.
16692 2014-05-26  Richard Biener  <rguenther@suse.de>
16694         * system.h: Define __STDC_FORMAT_MACROS before
16695         including inttypes.h.
16696         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
16697         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
16698         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
16699         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
16700         HOST_WIDEST_INT_C): Remove.
16701         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
16702         if C99 inttypes.h is not available.
16703         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
16704         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
16705         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
16706         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
16707         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
16708         (struct output_info): Likewise.
16709         (print_statistics): Adjust.
16710         (dump_bitmap_statistics): Likewise.
16711         * bt-load.c (migrate_btr_defs): Print with PRId64.
16712         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
16713         (MAX_SAFE_MULTIPLIER): Adjust.
16714         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
16715         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
16716         dump_cgraph_node): Likewise.
16717         * final.c (dump_basic_block_info): Likewise.
16718         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
16719         * gcov.c (format_gcov): Likewise.
16720         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
16721         for calculation.
16722         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
16723         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
16724         (inline_small_functions, dump_overall_stats, dump_inline_stats):
16725         Use PRId64 for dumping.
16726         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
16727         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
16728         (add_allocno_hard_regs): Adjust.
16729         * loop-doloop.c (doloop_modify): Print using PRId64.
16730         * loop-iv.c (inverse): Compute in uint64_t.
16731         (determine_max_iter, iv_number_of_iterations): Likewise.
16732         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
16733         Print using PRId64.
16734         * lto-streamer-out.c (write_symbol): Use uint64_t.
16735         * mcf.c (CAP_INFINITY): Use int64_t maximum.
16736         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
16737         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
16738         * modulo-sched.c (const_iteration_count): Use int64_t.
16739         (sms_schedule): Dump using PRId64.
16740         * predict.c (dump_prediction): Likewise.
16741         * pretty-print.h (pp_widest_integer): Remove.
16742         * profile.c (get_working_sets, is_edge_inconsistent,
16743         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
16744         * tree-pretty-print.c (pp_double_int): Remove case handling
16745         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
16746         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
16747         and adjust users.
16748         (pass_optimize_bswap::execute): Remove restriction on hosts.
16749         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
16750         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
16751         * tree.c (widest_int_cst_value): Remove.
16752         * tree.h (widest_int_cst_value): Likewise.
16753         * value-prof.c (dump_histogram_value): Print using PRId64.
16754         * gengtype.c (main): Also inject int64_t.
16755         * ggc-page.c (struct max_alignment): Use int64_t.
16756         * alloc-pool.c (struct allocation_object_def): Likewise.
16757         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
16758         for computation.
16759         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
16760         * doc/tm.texi: Regenerated.
16761         * gengtype-lex.l (IWORD): Handle [u]int64_t.
16762         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
16763         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
16764         mmix_output_register_setting): Use [u]int64_t in prototypes.
16765         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
16766         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
16767         mmix_output_octa, mmix_output_shifted_value): Adjust.
16768         (mmix_intval): Adjust.  Remove unreachable case.
16769         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
16771 2014-05-26  Richard Biener  <rguenther@suse.de>
16773         * configure.ac: Drop __int64 type check.  Insist that we
16774         found uint64_t and int64_t.
16775         * hwint.h (HOST_BITS_PER___INT64): Remove.
16776         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
16777         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
16778         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
16779         (HOST_WIDEST_FAST_INT): Remove __int64 case.
16780         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
16781         for dst_q_src_df_rms_cdt.
16782         * configure: Regenerate.
16783         * config.in: Likewise.
16785 2014-05-26  Michael Tautschnig  <mt@debian.org>
16787         PR target/61249
16788         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
16789         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
16791 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16793         PR rtl-optimization/61278
16794         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
16796 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16798         PR rtl-optimization/61220
16799         Part of PR rtl-optimization/61225
16800         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
16801         insn; skip split_edge for a block with only one successor.
16803 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16805         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
16806         for variables.
16808 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16810         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
16811         (update_vtable_references): New function.
16812         (function_and_variable_visibility): Rewrite also vtable initializers.
16813         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
16815 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16817         * ggc.h (ggc_grow): New function.
16818         * ggc-none.c (ggc_grow): New function.
16819         * ggc-page.c (ggc_grow): Likewise.
16821 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16823         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
16824         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
16825         comdat_can_be_unshared_p, cgraph_externally_visible_p,
16826         varpool_externally_visible_p, can_replace_by_local_alias,
16827         update_visibility_by_resolution_info, function_and_variable_visibility,
16828         pass_data_ipa_function_and_variable_visibility,
16829         make_pass_ipa_function_and_variable_visibility,
16830         whole_program_function_and_variable_visibility,
16831         pass_data_ipa_whole_program_visibility,
16832         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
16833         * cgraph.h (cgraph_local_node_p): Declare.
16834         * ipa-visibility.c: New file.
16835         * Makefile.in (OBJS): Add ipa-visiblity.o
16837 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16839         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
16840         that var decl is available.
16842 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16844         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
16845         symtab_node pointer.
16846         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
16847         (find_decls_types_r): Do not walk COMDAT_GROUP.
16848         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
16849         * varasm.c (make_decl_one_only): Use set_comdat_group;
16850         create node if needed.
16851         * ipa-inline-transform.c (save_inline_function_body): Update
16852         way we decl->symtab mapping.
16853         * symtab.c (symtab_hash, hash_node, eq_node
16854         symtab_insert_node_to_hashtable): Remove.
16855         (symtab_register_node): Update.
16856         (symtab_unregister_node): Update.
16857         (symtab_get_node): Reimplement as inline function.
16858         (symtab_add_to_same_comdat_group): Update.
16859         (symtab_dissolve_same_comdat_group_list): Update.
16860         (dump_symtab_base): Update.
16861         (verify_symtab_base): Update.
16862         (symtab_make_decl_local): Update.
16863         (fixup_same_cpp_alias_visibility): Update.
16864         (symtab_nonoverwritable_alias): Update.
16865         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
16866         * ipa.c (update_visibility_by_resolution_info): UPdate.
16867         * bb-reorder.c: Include cgraph.h
16868         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
16869         with comdat groups.
16870         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
16871         * cgraph.c (cgraph_get_create_node): Update.
16872         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
16873         and comdat_group_.
16874         (symtab_get_node): Make inline.
16875         (symtab_insert_node_to_hashtable): Remove.
16876         (symtab_can_be_discarded): Update.
16877         (decl_comdat_group): New function.
16878         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
16879         Update.
16880         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
16881         comdat group name.
16882         (read_comdat_group): New function.
16883         (input_node, input_varpool_node): Use it.
16884         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
16885         comdat groups.
16886         * mips.c (mips_start_unique_function): Likewise.
16887         (ix86_code_end): Likewise.
16888         (rs6000_code_end): Likweise.
16889         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
16891 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16893         * gengtype-state.c (fatal_reading_state): Bring offline.
16894         * optabs.c (widening_optab_handler): Bring offline.
16895         * optabs.h (widening_optab_handler): Likewise.
16896         * final.c (get_attr_length_1): Likewise.
16898 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
16900         * sched-int.h (sd_iterator_cond): Manually tail recurse.
16902 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16904         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
16905         (ppc440-compare): Include shift with dot.
16906         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
16907         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
16908         without dot.
16909         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
16910         without dot.
16911         (e6500_sfx2): Include it.
16912         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
16913         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
16914         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
16915         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
16916         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
16917         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
16918         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
16919         *lshiftrt_internal1le, *lshiftrt_internal1be,
16920         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
16921         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
16922         *rotldi3_internal10le, *rotldi3_internal10be,
16923         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
16924         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
16925         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
16926         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
16927         define_insns): Use type "shift" in the appropriate alternatives.
16929 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16931         * config/rs6000/rs6000.md (type): Add "logical".  Delete
16932         "fast_compare".
16933         (dot): Adjust comment.
16934         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
16935         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
16936         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
16937         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
16938         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
16939         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
16940         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
16941         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16943         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16944         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16945         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16946         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16947         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16948         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16949         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16950         * config/rs6000/8540.md (ppc8540_su): Adjust.
16951         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16952         cell-cmp-microcoded): Adjust.
16953         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16954         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16955         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16956         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16957         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16958         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16959         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16960         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16961         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16962         Adjust.
16963         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16964         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
16965         Adjust.  Adjust comment.
16966         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
16967         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
16969 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
16971         * config/rs6000/rs6000.md (type): Add "add".
16972         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
16973         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
16974         define_insns): Use it.
16975         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
16977         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
16978         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
16979         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
16980         * config/rs6000/601.md (ppc601-integer): Adjust.
16981         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
16982         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
16983         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
16984         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
16985         * config/rs6000/8540.md (ppc8540_su): Adjust.
16986         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
16987         cell-cmp-microcoded): Adjust.
16988         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
16989         * config/rs6000/e500mc.md (e500mc_su): Adjust.
16990         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
16991         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
16992         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
16993         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
16994         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
16995         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
16996         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
16997         Adjust.
16998         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
16999         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
17000         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17001         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
17003 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
17005         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
17006         "delayed_compare", "var_delayed_compare".
17007         (var_shift): New attribute.
17008         (cell_micro): Adjust.
17009         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
17010         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
17011         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
17012         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
17013         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
17014         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
17015         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
17016         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
17017         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
17018         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
17019         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
17020         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
17021         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
17022         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
17023         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
17024         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
17025         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
17026         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
17027         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
17028         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
17029         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
17030         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
17031         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
17032         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17033         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17035         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
17036         * config/rs6000/440.md (ppc440-integer): Adjust.
17037         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
17038         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
17039         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
17040         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
17041         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
17042         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
17043         * config/rs6000/8540.md (ppc8540_su): Adjust.
17044         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
17045         cell-cmp-microcoded): Adjust.
17046         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
17047         * config/rs6000/e500mc.md (e500mc_su): Adjust.
17048         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
17049         e500mc64_delayed): Adjust.
17050         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
17051         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
17052         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
17053         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
17054         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
17055         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
17056         power6-delayed-compare, power6-var-delayed-compare): Adjust.
17057         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
17058         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
17059         Adjust comment.
17060         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
17061         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
17063 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
17065         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
17066         (bits): New mode_attr.
17067         (idiv_ldiv): Delete mode_attr.
17068         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
17069         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17070         rs6000_adjust_priority, is_nonpipeline_insn,
17071         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17073         * config/rs6000/40x.md (ppc403-idiv): Adjust.
17074         * config/rs6000/440.md (ppc440-idiv): Adjust.
17075         * config/rs6000/476.md (ppc476-idiv): Adjust.
17076         * config/rs6000/601.md (ppc601-idiv): Adjust.
17077         * config/rs6000/603.md (ppc603-idiv): Adjust.
17078         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
17079         ppc620-ldiv): Adjust.
17080         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
17081         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
17082         * config/rs6000/8540.md (ppc8540_divide): Adjust.
17083         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
17084         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
17085         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
17086         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
17087         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
17088         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
17089         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
17090         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
17091         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
17092         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
17093         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
17094         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
17095         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
17096         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
17097         * config/rs6000/titan.md (titan_fxu_div): Adjust.
17099 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
17101         * config/rs6000/rs6000.md (type): Delete "insert_word",
17102         "insert_dword".  Add "insert".
17103         (size): Update comment.
17104         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17105         insn_must_be_first_in_group): Adjust.
17106         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
17107         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
17108         *insvsi_internal6, insvdi_internal): Adjust.
17110         * config/rs6000/40x.md (ppc403-integer): Adjust.
17111         * config/rs6000/440.md (ppc440-integer): Adjust.
17112         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
17113         * config/rs6000/601.md (ppc601-integer): Adjust.
17114         * config/rs6000/603.md (ppc603-integer): Adjust.
17115         * config/rs6000/6xx.md (ppc604-integer): Adjust.
17116         * config/rs6000/7450.md (ppc7450-integer): Adjust.
17117         * config/rs6000/7xx.md (ppc750-integer): Adjust.
17118         * config/rs6000/8540.md (ppc8540_su): Adjust.
17119         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
17120         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
17121         * config/rs6000/e500mc.md (e500mc_su): Adjust.
17122         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
17123         * config/rs6000/e5500.md (e5500_sfx): Adjust.
17124         * config/rs6000/e6500.md (e6500_sfx): Adjust.
17125         * config/rs6000/mpc.md (mpccore-integer): Adjust.
17126         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
17127         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
17128         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
17129         * config/rs6000/power7.md (power7-integer): Adjust.
17130         * config/rs6000/power8.md (power8-1cyc): Adjust.
17131         * config/rs6000/rs64.md (rs64a-integer): Adjust.
17132         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
17134 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
17136         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
17137         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
17138         (size): New attribute.
17139         (dot): New attribute.
17140         (cell_micro): Adjust.
17141         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
17142         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
17143         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
17144         umuldi3_highpart): Adjust.
17145         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
17146         rs6000_adjust_priority, is_nonpipeline_insn,
17147         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
17149         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
17150         ppc405-imul3): Adjust.
17151         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
17152         * config/rs6000/476.md (ppc476-imul): Adjust.
17153         * config/rs6000/601.md (ppc601-imul): Adjust.
17154         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
17155         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
17156         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
17157         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
17158         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
17159         Adjust.
17160         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
17161         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
17162         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
17163         cell-imul): Adjust.
17164         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
17165         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
17166         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
17167         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
17168         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
17169         * config/rs6000/mpc.md (mpccore-imul): Adjust.
17170         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
17171         power4-lmul, power4-imul, power4-imul3): Adjust.
17172         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
17173         power5-lmul, power5-imul, power5-imul3): Adjust.
17174         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
17175         power6-lmul, power6-imul, power6-imul3): Adjust.
17176         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
17177         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
17179         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
17180         rs64a-lmul): Adjust.
17181         * config/rs6000/titan.md (titan_imul): Adjust.
17183 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
17185         * config/rs6000/rs6000.md (type): Add new value "halfmul".
17186         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
17187         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
17188         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
17189         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
17190         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
17191         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
17192         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
17193         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
17194         * config/rs6000/titan.md: Delete nonsensical comment.
17195         (titan_imul): Add type imul3.
17196         (titan_mulhw): Remove type imul3; add type halfmul.
17198 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
17200         * config/rs6000/rs6000.md (type): Reorder, reformat.
17202 2014-05-23  Martin Jambor  <mjambor@suse.cz>
17204         PR tree-optimization/53787
17205         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
17206         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
17207         analysis_done, update all uses.
17208         * ipa-prop.c: Include domwalk.h
17209         (param_analysis_info): Removed.
17210         (param_aa_status): New type.
17211         (ipa_bb_info): Likewise.
17212         (func_body_info): Likewise.
17213         (ipa_get_bb_info): New function.
17214         (aa_overwalked): Likewise.
17215         (find_dominating_aa_status): Likewise.
17216         (parm_bb_aa_status_for_bb): Likewise.
17217         (parm_preserved_before_stmt_p): Changed to use new param AA info.
17218         (load_from_unmodified_param): Accept func_body_info as a parameter
17219         instead of parms_ainfo.
17220         (parm_ref_data_preserved_p): Changed to use new param AA info.
17221         (parm_ref_data_pass_through_p): Likewise.
17222         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
17223         (compute_complex_assign_jump_func): Changed to use new param AA info.
17224         (compute_complex_ancestor_jump_func): Likewise.
17225         (ipa_compute_jump_functions_for_edge): Likewise.
17226         (ipa_compute_jump_functions): Removed.
17227         (ipa_compute_jump_functions_for_bb): New function.
17228         (ipa_analyze_indirect_call_uses): Likewise, moved variable
17229         declarations down.
17230         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
17231         and info, moved variable declarations down.
17232         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
17233         node and info.
17234         (ipa_analyze_stmt_uses): Likewise.
17235         (ipa_analyze_params_uses): Removed.
17236         (ipa_analyze_params_uses_in_bb): New function.
17237         (ipa_analyze_controlled_uses): Likewise.
17238         (free_ipa_bb_info): Likewise.
17239         (analysis_dom_walker): New class.
17240         (ipa_analyze_node): Handle node-specific forbidden analysis,
17241         initialize and free func_body_info, use dominator walker.
17242         (ipcp_modif_dom_walker): New class.
17243         (ipcp_transform_function): Create and free func_body_info, use
17244         ipcp_modif_dom_walker, moved a lot of functionality there.
17246 2014-05-23  Marek Polacek  <polacek@redhat.com>
17247             Jakub Jelinek  <jakub@redhat.com>
17249         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
17250         * gcc.c (sanitize_spec_function): Likewise.
17251         * convert.c (convert_to_integer): Include "ubsan.h".  Add
17252         floating-point to integer instrumentation.
17253         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
17254         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
17255         SANITIZE_NONDEFAULT.
17256         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
17257         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
17258         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
17259         * ubsan.c: Include "realmpfr.h" and "dfp.h".
17260         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
17261         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
17262         float/double/long double.
17263         (ubsan_instrument_float_cast): New function.
17264         * ubsan.h (ubsan_instrument_float_cast): Declare.
17266 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
17268         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
17269         predicate.
17270         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
17271         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
17272         Adjust for tailcalling through registers.
17273         * config/aarch64/aarch64.h (enum reg_class): New caller save
17274         register class.
17275         (REG_CLASS_NAMES): Likewise.
17276         (REG_CLASS_CONTENTS): Likewise.
17277         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
17278         Allow tailcalling without decls.
17280 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
17282         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17283         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
17285         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
17286         gsi, and variables v_* to v*.
17288 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
17290         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
17292 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
17294         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
17295         * omp-low.c: Update accordingly.
17297         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
17298         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
17299         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
17300         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
17301         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
17302         GF_OMP_TARGET_KIND_UPDATE.
17304         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
17305         Explicitly enumerate the expected region types.
17307 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17309         PR other/56955
17310         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
17311         documentation; the old documentation didn't clearly state the
17312         constraints on the contents of the pointed-to storage.
17314 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17316         Fix bootstrap error on ia64
17317         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
17318         Return default value.
17320 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17322         PR tree-optimization/54733
17323         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
17324         (CMPNOP): Define.
17325         (find_bswap_or_nop_load): New.
17326         (find_bswap_1): Renamed to ...
17327         (find_bswap_or_nop_1): This. Also add support for memory source.
17328         (find_bswap): Renamed to ...
17329         (find_bswap_or_nop): This. Also add support for memory source and
17330         detection of bitwise operations equivalent to load in target
17331         endianness.
17332         (execute_optimize_bswap): Likewise. Also move its leading comment back
17333         in place and split statement transformation into ...
17334         (bswap_replace): This.
17336 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
17338         PR rtl-optimization/61215
17339         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
17340         simplify_gen_subreg until final substitution.
17342 2014-05-23  Alan Modra  <amodra@gmail.com>
17344         PR target/61231
17345         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
17346         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
17347         Use "Y" constraint rather than "m".
17349 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
17351         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
17352         define.
17353         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
17354         New function declaration.
17355         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
17356         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
17357         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
17358         (aarch64_init_builtins) : Initialize builtins
17359         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17360         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17361         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
17362         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
17363         and __builtins_aarch64_set_fpsr.
17364         (aarch64_atomic_assign_expand_fenv): New function.
17365         * config/aarch64/aarch64.md (set_fpcr): New pattern.
17366         (get_fpcr) : Likewise.
17367         (set_fpsr) : Likewise.
17368         (get_fpsr) : Likewise.
17369         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
17370          and UNSPECV_SET_FPSR.
17371         * doc/extend.texi (AARCH64 Built-in Functions) : Document
17372         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
17373         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
17375 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
17377         PR rtl-optimization/60969
17378         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
17379         constraints.  Set up mem cost for NO_REGS case.
17381 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
17383         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
17385 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
17387         * config/darwin.c: Include "lto-section-names.h".
17388         (LTO_SEGMENT_NAME): Don't define.
17389         * config/i386/winnt.c: Include "lto-section-names.h".
17390         * lto-streamer.c: Include "lto-section-names.h".
17391         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
17392         * lto-wrapper.c: Include "lto-section-names.h".
17393         (LTO_SECTION_NAME_PREFIX): Don't define.
17394         * lto-section-names.h: New file.
17395         * cgraphunit.c: Include "lto-section-names.h".
17397 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
17399         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
17401 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
17403         PR target/61208
17404         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
17406 2014-05-22  Nick Clifton  <nickc@redhat.com>
17408         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
17410 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
17412         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
17413         -> (T)A transformation to integer types.
17415 2014-05-22  Teresa Johnson  <tejohnson@google.com>
17417         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
17418         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
17419         (gcov_rewrite): Use gcov_nonruntime_assert.
17420         (gcov_open): Ditto.
17421         (gcov_write_words): Ditto.
17422         (gcov_write_length): Ditto.
17423         (gcov_read_words): Use gcov_nonruntime_assert, and remove
17424         gcc_assert from IN_LIBGCOV code.
17425         (gcov_read_summary): Use gcov_error to flag profile corruption.
17426         (gcov_sync): Use gcov_nonruntime_assert.
17427         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
17428         (gcov_histo_index): Use gcov_nonruntime_assert.
17429         (static void gcov_histogram_merge): Ditto.
17430         (compute_working_sets): Ditto.
17431         * gcov-io.h (gcov_nonruntime_assert): Define.
17432         (gcov_error): Define for !IN_LIBGCOV
17434 2014-05-22  Richard Biener  <rguenther@suse.de>
17436         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
17437         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
17438         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
17439         and deallocation site.
17440         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17441         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
17442         passing through the incoming points-to set.
17443         (handle_lhs_call): Use flags argument instead of recomputing it.
17444         (find_func_aliases_for_call): Call handle_lhs_call with proper
17445         call return flags.
17447 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
17449         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
17450         all padding bits in REAL_VALUE_TYPE are cleared.
17452 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17454         Cleanup and improve multipass_dfa_lookahead_guard
17455         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
17456         (core2i7_first_cycle_multipass_begin,)
17457         (core2i7_first_cycle_multipass_issue,)
17458         (core2i7_first_cycle_multipass_backtrack): Update signature.
17459         * config/ia64/ia64.c
17460         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
17461         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
17462         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
17463         hook definition.
17464         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
17465         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
17466         values.
17467         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
17468         return values.
17469         * doc/tm.texi: Regenerate.
17470         * doc/tm.texi.in
17471         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
17472         * haifa-sched.c (ready_try): Make signed to allow negative values.
17473         (rebug_ready_list_1): Update.
17474         (choose_ready): Simplify.
17475         (sched_extend_ready_list): Update.
17477 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17479         Remove IA64 speculation tweaking flags
17480         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
17481         speculation tuning flags.
17482         (msched-prefer-non-data-spec-insns,)
17483         (msched-prefer-non-control-spec-insns): Obsolete options.
17484         * haifa-sched.c (choose_ready): Remove handling of
17485         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17486         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
17487         and PREFER_NON_DATA_SPEC.
17488         * sel-sched.c (process_spec_exprs): Remove handling of
17489         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
17491 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17493         Improve scheduling debug output
17494         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
17495         (advance_one_cycle): Update.
17496         (schedule_insn, queue_to_ready): Add debug printouts.
17497         (debug_ready_list_1): New static function.
17498         (debug_ready_list): Update.
17499         (max_issue): Add debug printouts.
17500         (dump_insn_stream): New static function.
17501         (schedule_block): Use it.  Also better indent printouts.
17503 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17505         Fix sched_insn debug counter
17506         * haifa-sched.c (schedule_insn): Update.
17507         (struct haifa_saved_data): Add nonscheduled_insns_begin.
17508         (save_backtrack_point, restore_backtrack_point): Update.
17509         (first_nonscheduled_insn): New static function.
17510         (queue_to_ready, choose_ready): Use it.
17511         (schedule_block): Init nonscheduled_insns_begin.
17512         (sched_emit_insn): Update.
17515 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
17517         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
17518         to GENERAL_REGS.
17519         (aarch64_secondary_reload) : LikeWise.
17520         (aarch64_class_max_nregs) : Remove CORE_REGS.
17521         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
17522         (REG_CLASS_NAMES) : Likewise.
17523         (REG_CLASS_CONTENTS) : LikeWise.
17524         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
17526 2014-05-21  Guozhi Wei  <carrot@google.com>
17528         PR target/61202
17529         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
17530         constraint.
17531         (vqdmulhq_n_s16): Likewise.
17533 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17535         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
17537 2014-05-21  Marek Polacek  <polacek@redhat.com>
17539         PR sanitizer/61272
17540         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
17542 2014-05-21  Martin Jambor  <mjambor@suse.cz>
17544         * doc/invoke.texi (Optimize Options): Document parameters
17545         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
17546         ipa-cp-array-index-hint-bonus.
17548 2014-05-21  Mark Wielaard  <mjw@redhat.com>
17550         PR debug/16063
17551         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
17552         version >= 3 or not strict DWARF.
17553         * langhooks.h (struct lang_hooks_for_types): Add
17554         enum_underlying_base_type.
17555         * langhooks.c (lhd_enum_underlying_base_type): New function.
17556         * gcc/langhooks.h (struct lang_hooks_for_types): Add
17557         enum_underlying_base_type.
17558         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
17559         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
17560         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
17562 2014-05-21  Richard Biener  <rguenther@suse.de>
17564         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
17566 2014-05-21  John Marino  <gnugcc@marino.st>
17568         * config.gcc (*-*-dragonfly*): New target.
17569         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
17570         * configure: Regenerate.
17571         * config/dragonfly-stdint.h: New.
17572         * config/dragonfly.h: New.
17573         * config/dragonfly.opt: New.
17574         * config/i386/dragonfly.h: New.
17575         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
17577 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
17579         * tree.def (VOID_CST): New.
17580         * tree-core.h (TI_VOID): New.
17581         * tree.h (void_node): New.
17582         * tree.c (tree_node_structure_for_code, tree_code_size)
17583         (iterative_hash_expr): Handle VOID_CST.
17584         (build_common_tree_nodes): Initialize void_node.
17586 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
17588         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
17589         functions.
17590         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
17592         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
17593         more places.
17595         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
17596         flag_reorder_blocks_and_partition.
17597         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
17599 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
17601         PR target/54236
17602         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
17603         constraints.
17604         (*addc_r_t): Add new insn_and_split.
17606 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
17608         PR middle-end/61252
17609         * omp-low.c (handle_simd_reference): New function.
17610         (lower_rec_input_clauses): Use it.  Defer adding reference
17611         initialization even for reduction without placeholder if in simd,
17612         handle it properly later on.
17614 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
17616         PR tree-optimization/60899
17617         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
17618         assume all static symbols will have definition wile parsing and
17619         check the do have definition later in compilation; check that
17620         variable referring symbol will be output before concluding that
17621         reference is safe; be conservative for referring local statics;
17622         be more precise about when comdat is output in other partition.
17624 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
17626         PR bootstrap/60984
17627         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
17628         parameter.
17629         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
17630         (ipa_inline): Loop inline_to_all_callers until no more aliases
17631         are removed.
17633 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
17635         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
17636         set writeonly flag only for vars actually written to.
17638 2014-05-20  Dehao Chen  <dehao@google.com>
17640         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
17641         and callee count to get clone count.
17642         * tree-inline.c (expand_call_inline): Use callee count instead of bb
17643         count in copy_body.
17645 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
17647         PR rtl-optimization/61243
17648         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
17650 2014-05-20  Xinliang David Li  <davidxl@google.com>
17652         * cgraphunit.c (walk_polymorphic_call_targets): Add
17653         dbgcnt and fopt-info support.
17654         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
17655         * ipa-devirt.c (ipa_devirt): Ditto.
17656         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
17657         * ipa.c (walk_polymorphic_call_targets): Ditto.
17658         * gimple-fold.c (fold_gimple_assign): Ditto.
17659         (gimple_fold_call): Ditto.
17660         * dbgcnt.def: New counter.
17662 2014-05-20  DJ Delorie  <dj@redhat.com>
17664         * config/msp430/msp430.md (split): Don't allow subregs when
17665         splitting SImode adds.
17666         (andneghi): Fix subtraction logic.
17667         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
17669 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
17671         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
17672         symbols.
17673         * except.c (switch_to_exception_section, resolve_unique_section,
17674         get_named_text_section, default_function_rodata_section,
17675         align_variable, get_block_for_decl, default_section_type_flags):
17676         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
17677         * symtab.c (symtab_add_to_same_comdat_group,
17678         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
17679         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
17680         Likewise.
17681         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
17682         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
17683         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
17684         (c6x_function_in_section_p): Likewise.
17685         * config/darwin.c (machopic_select_section): Likewise.
17686         * config/arm/arm.c (arm_function_in_section_p): Likewise.
17687         * config/mips/mips.c (mips_function_rodata_section): Likewise.
17688         * config/mep/mep.c (mep_select_section): LIkewise.
17689         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
17691 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
17693         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
17694         EH region of calls to pure functions that can throw an exception.
17695         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
17696         (copy_reference_ops_from_call): Also copy the EH region of the call if
17697         it can throw an exception.
17699 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17701         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
17702         nested VEC_SELECTs that are inverses of each other.
17704 2014-05-20  Richard Biener  <rguenther@suse.de>
17706         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
17707         (extract_and_process_scc_for_name): not here.
17708         (cond_dom_walker::before_dom_children): Only process
17709         stmts that end the BB in interesting ways.
17710         (run_scc_vn): Mark param uses as visited.
17712 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17714         * config/arm/arm.md (arith_shiftsi): Do not predicate for
17715         arm_restrict_it.
17717 2014-05-20  Nick Clifton  <nickc@redhat.com>
17719         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
17720         (msp430_gimplify_va_arg_expr): New function.
17721         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
17723         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
17724         operand 0 in order to prevent confusion about the number of
17725         registers involved.
17727 2014-05-20  Richard Biener  <rguenther@suse.de>
17729         PR tree-optimization/61221
17730         * tree-ssa-pre.c (el_to_update): Remove.
17731         (eliminate_dom_walker::before_dom_children): Handle released
17732         VDEFs by value-numbering them to the associated VUSE.  Update
17733         stmt immediately for substituted call address.
17734         (eliminate): Remove delayed stmt updating code.
17735         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
17736         possibly late re-numbered vuses.
17737         (vn_reference_lookup_2): Adjust.
17738         (vn_reference_lookup_pieces): Likewise.
17739         (vn_reference_lookup): Likewise.
17741 2014-05-20  Richard Biener  <rguenther@suse.de>
17743         * config.gcc: Remove need_64bit_hwint.
17744         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
17745         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
17746         it to be true.
17747         * config.in: Regenerate.
17748         * configure: Likewise.
17750 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
17752         * doc/extend.texi: Create Label Attributes section,
17753         move all label attributes into it and reference it.
17755 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
17757         * arm.c (thumb1_reorg): When scanning backwards skip anything
17758         that's not a proper insn.
17760 2014-05-19  Richard Biener  <rguenther@suse.de>
17762         PR tree-optimization/61221
17763         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17764         Do nothing for unreachable blocks.
17765         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
17766         Improve unreachability detection.
17768 2014-05-19  Richard Biener  <rguenther@suse.de>
17770         PR tree-optimization/61209
17771         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
17773 2014-05-19  Nick Clifton  <nickc@redhat.com>
17775         * except.c (init_eh): Fix computation of builtin setjmp buffer
17776         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
17778 2014-05-19  Richard Biener  <rguenther@suse.de>
17780         PR tree-optimization/61184
17781         * tree-vrp.c (is_negative_overflow_infinity): Use
17782         TREE_OVERFLOW_P and do that check first.
17783         (is_positive_overflow_infinity): Likewise.
17784         (is_overflow_infinity): Likewise.
17785         (vrp_operand_equal_p): Properly treat operands with
17786         differing overflow as not equal.
17788 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
17790         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
17791         shift simplification where it was intended.
17793 2014-05-19  Christian Bruel  <christian.bruel@st.com>
17795         PR target/61195
17796         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
17798 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
17800         PR target/61084
17801         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
17802         than wide_int.
17804 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
17806         * reg-notes.def (CROSSING_JUMP): Likewise.
17807         * rtl.h (rtx_def): Update comment for jump flag.
17808         (CROSSING_JUMP_P): Define.
17809         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
17810         of a REG_CROSSING_JUMP note.
17811         * cfghooks.c (tidy_fallthru_edges): Likewise.
17812         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
17813         * emit-rtl.c (try_split): Likewise.
17814         * haifa-sched.c (sched_create_recovery_edges): Likewise.
17815         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
17816         * jump.c (redirect_jump_2): Likewise.
17817         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
17818         (relax_delay_slots): Likewise.
17819         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
17820         (bbit_di): Likewise.
17821         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
17822         * config/sh/sh.md (jump_compact): Likewise.
17823         * bb-reorder.c (rotate_loop): Likewise.
17824         (pass_duplicate_computed_gotos::execute): Likewise.
17825         (add_reg_crossing_jump_notes): Rename to...
17826         (update_crossing_jump_flags): ...this.
17827         (pass_partition_blocks::execute): Update accordingly.
17829 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
17831         * tree.h: Remove extraneous template <>.
17833 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17835         * ipa.c (symtab_remove_unreachable_nodes): Remove
17836         symbol from comdat group if its body was eliminated.
17837         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
17838         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
17839         (symtab_unregister_node): ... this one.
17840         (verify_symtab_base): More strict checking of comdats.
17841         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
17843 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17845         * tree-pass.h (make_pass_ipa_comdats): New pass.
17846         * timevar.def (TV_IPA_COMDATS): New timevar.
17847         * passes.def (pass_ipa_comdats): Add.
17848         * Makefile.in (OBJS): Add ipa-comdats.o
17849         * ipa-comdats.c: New file.
17851 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17853         * ipa.c (update_visibility_by_resolution_info): New function.
17854         (function_and_variable_visibility): Use it.
17856 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
17858         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
17859         New functions.
17860         (FOR_EACH_DEFINED_SYMBOL): New macro.
17861         (varpool_first_static_initializer, varpool_next_static_initializer,
17862         varpool_first_defined_variable, varpool_next_defined_variable):
17863         Fix comments.
17864         (symtab_in_same_comdat_p): Correctly deal with inline functions.
17866 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17868         * ggc-page.c (ggc_handle_finalizers): Add comment.
17870 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17872         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
17873         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
17874         (ggc_internal_cleared_alloc): Likewise.
17875         * ggc-page.c (finalizer): New class.
17876         (vec_finalizer): Likewise.
17877         (globals::finalizers): New member.
17878         (globals::vec_finalizers): Likewise.
17879         (ggc_internal_alloc): Record the finalizer if any for the block being
17880         allocated.
17881         (ggc_handle_finalizers): New function.
17882         (ggc_collect): Call ggc_handle_finalizers.
17883         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
17884         finalizer.
17885         (ggc_internal_cleared_alloc): Likewise.
17886         (finalize): New function.
17887         (need_finalization_p): Likewise.
17888         (ggc_alloc): Install the type's destructor as the finalizer if it
17889         might do something.
17890         (ggc_cleared_alloc): Likewise.
17891         (ggc_vec_alloc): Likewise.
17892         (ggc_cleared_vec_alloc): Likewise.
17894 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17896         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
17898 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
17900         * alias.c (record_alias_subset): Adjust.
17901         * bitmap.c (bitmap_element_allocate): Likewise.
17902         (bitmap_gc_alloc_stat): Likewise.
17903         * cfg.c (init_flow): Likewise.
17904         (alloc_block): Likewise.
17905         (unchecked_make_edge): Likewise.
17906         * cfgloop.c (alloc_loop): Likewise.
17907         (flow_loops_find): Likewise.
17908         (rescan_loop_exit): Likewise.
17909         * cfgrtl.c (init_rtl_bb_info): Likewise.
17910         * cgraph.c (insert_new_cgraph_node_version): Likewise.
17911         (cgraph_allocate_node): Likewise.
17912         (cgraph_create_edge_1): Likewise.
17913         (cgraph_allocate_init_indirect_info): Likewise.
17914         * cgraphclones.c (cgraph_clone_edge): Likewise.
17915         * cgraphunit.c (add_asm_node): Likewise.
17916         (init_lowered_empty_function): Likewise.
17917         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
17918         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
17919         (alpha_use_linkage): Likewise.
17920         * config/arc/arc.c (arc_init_machine_status): Likewise.
17921         * config/arm/arm.c (arm_init_machine_status): Likewise.
17922         * config/avr/avr.c (avr_init_machine_status): Likewise.
17923         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
17924         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
17925         * config/cris/cris.c (cris_init_machine_status): Likewise.
17926         * config/darwin.c (machopic_indirection_name): Likewise.
17927         (darwin_build_constant_cfstring): Likewise.
17928         (darwin_enter_string_into_cfstring_table): Likewise.
17929         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
17930         * config/frv/frv.c (frv_init_machine_status): Likewise.
17931         * config/i386/i386.c (get_dllimport_decl): Likewise.
17932         (ix86_init_machine_status): Likewise.
17933         (assign_386_stack_local): Likewise.
17934         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
17935         (i386_pe_maybe_record_exported_symbol): Likewise.
17936         (i386_pe_record_stub): Likewise.
17937         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
17938         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
17939         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
17940         (m32c_note_pragma_address): Likewise.
17941         * config/mep/mep.c (mep_init_machine_status): Likewise.
17942         (mep_note_pragma_flag): Likewise.
17943         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
17944         (mips16_local_alias): Likewise.
17945         (mips_init_machine_status): Likewise.
17946         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
17947         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
17948         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
17949         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
17950         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
17951         * config/pa/pa.c (pa_init_machine_status): Likewise.
17952         (pa_get_deferred_plabel): Likewise.
17953         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
17954         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
17955         (rs6000_init_machine_status): Likewise.
17956         (output_toc): Likewise.
17957         * config/s390/s390.c (s390_init_machine_status): Likewise.
17958         * config/score/score.c (score_output_external): Likewise.
17959         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
17960         * config/spu/spu.c (spu_init_machine_status): Likewise.
17961         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
17962         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
17963         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
17964         * coverage.c (coverage_end_function): Likewise.
17965         * dbxout.c (dbxout_init): Likewise.
17966         * doc/gty.texi: Don't mention variable_size attribute.
17967         * dwarf2cfi.c (new_cfi): Adjust.
17968         (new_cfi_row): Likewise.
17969         (copy_cfi_row): Likewise.
17970         (create_cie_data): Likewise.
17971         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
17972         (new_loc_descr): Likewise.
17973         (find_AT_string_in_table): Likewise.
17974         (add_addr_table_entry): Likewise.
17975         (new_die): Likewise.
17976         (add_var_loc_to_decl): Likewise.
17977         (clone_die): Likewise.
17978         (clone_as_declaration): Likewise.
17979         (break_out_comdat_types): Likewise.
17980         (new_loc_list): Likewise.
17981         (add_loc_descr_to_each): Likewise.
17982         (add_location_or_const_value_attribute): Likewise.
17983         (add_linkage_name): Likewise.
17984         (lookup_filename): Likewise.
17985         (dwarf2out_var_location): Likewise.
17986         (new_line_info_table): Likewise.
17987         (dwarf2out_init): Likewise.
17988         (mem_loc_descriptor): Likewise.
17989         (loc_descriptor): Likewise.
17990         (add_const_value_attribute): Likewise.
17991         (tree_add_const_value_attribute): Likewise.
17992         (comp_dir_string): Likewise.
17993         (dwarf2out_vms_debug_main_pointer): Likewise.
17994         (string_cst_pool_decl): Likewise.
17995         * emit-rtl.c (set_mem_attrs): Likewise.
17996         (get_reg_attrs): Likewise.
17997         (start_sequence): Likewise.
17998         (init_emit): Likewise.
17999         (init_emit_regs): Likewise.
18000         * except.c (init_eh_for_function): Likewise.
18001         (gen_eh_region): Likewise.
18002         (gen_eh_region_catch): Likewise.
18003         (gen_eh_landing_pad): Likewise.
18004         (add_call_site): Likewise.
18005         * function.c (add_frame_space): Likewise.
18006         (insert_temp_slot_address): Likewise.
18007         (assign_stack_temp_for_type): Likewise.
18008         (get_hard_reg_initial_val): Likewise.
18009         (allocate_struct_function): Likewise.
18010         (prepare_function_start): Likewise.
18011         (types_used_by_var_decl_insert): Likewise.
18012         * gengtype.c (variable_size_p): Remove function.
18013         (enum alloc_quantity): Remove enum.
18014         (write_typed_alloc_def): Remove function.
18015         (write_typed_struct_alloc_def): Likewise.
18016         (write_typed_typedef_alloc_def): Likewise.
18017         (write_typed_alloc_defns): Likewise.
18018         (main): Adjust.
18019         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
18020         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
18021         * ggc.h (ggc_alloc): new function.
18022         (ggc_cleared_alloc): Likewise.
18023         (ggc_vec_alloc): Template on type of vector element, and remove
18024         element size argument.
18025         (ggc_cleared_vec_alloc): Likewise.
18026         * gimple.c (gimple_build_omp_for): Adjust.
18027         (gimple_copy): Likewise.
18028         * ipa-cp.c (get_replacement_map): Likewise.
18029         (find_aggregate_values_for_callers_subset): Likewise.
18030         (known_aggs_to_agg_replacement_list): Likewise.
18031         * ipa-devirt.c (get_odr_type): Likewise.
18032         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
18033         (read_agg_replacement_chain): Likewise.
18034         * loop-iv.c (get_simple_loop_desc): Likewise.
18035         * lto-cgraph.c (input_node_opt_summary): Likewise.
18036         * lto-section-in.c (lto_new_in_decl_state): Likewise.
18037         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
18038         (input_eh_region): Likewise.
18039         (input_eh_lp): Likewise.
18040         (input_cfg): Likewise.
18041         * optabs.c (set_optab_libfunc): Likewise.
18042         (init_tree_optimization_optabs): Likewise.
18043         (set_conv_libfunc): Likewise.
18044         * passes.c (do_per_function_toporder): Likewise.
18045         * rtl.h: Don't use variable_size gty attribute.
18046         * sese.c (if_region_set_false_region): Adjust.
18047         * stringpool.c (gt_pch_save_stringpool): Likewise.
18048         * target-globals.c (save_target_globals): Likewise.
18049         * toplev.c (general_init): Likewise.
18050         * trans-mem.c (record_tm_replacement): Likewise.
18051         (split_bb_make_tm_edge): Likewise.
18052         * tree-cfg.c (move_sese_region_to_fn): Likewise.
18053         * tree-data-ref.h (lambda_vector_new): Likewise.
18054         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
18055         * tree-iterator.c (tsi_link_before): Likewise.
18056         (tsi_link_after): Likewise.
18057         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
18058         * tree-ssa-loop-niter.c (record_estimate): Likewise.
18059         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
18060         * tree-ssa-operands.h: Don't use variable_size gty attribute.
18061         * tree-ssa.c (init_tree_ssa): Adjust.
18062         * tree-ssanames.c (set_range_info): Likewise.
18063         (get_ptr_info): Likewise.
18064         (duplicate_ssa_name_ptr_info): Likewise.
18065         (duplicate_ssa_name_range_info): Likewise.
18066         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
18067         (unpack_ts_fixed_cst_value_fields): Likewise.
18068         * tree.c (build_fixed): Likewise.
18069         (build_real): Likewise.
18070         (build_string): Likewise.
18071         (decl_priority_info): Likewise.
18072         (decl_debug_expr_insert): Likewise.
18073         (decl_value_expr_insert): Likewise.
18074         (decl_debug_args_insert): Likewise.
18075         (type_hash_add): Likewise.
18076         (build_omp_clause): Likewise.
18077         * ubsan.c (decl_for_type_insert): Likewise.
18078         * varasm.c (get_unnamed_section): Likewise.
18079         (get_noswitch_section): Likewise.
18080         (get_section): Likewise.
18081         (get_block_for_section): Likewise.
18082         (create_block_symbol): Likewise.
18083         (build_constant_desc): Likewise.
18084         (create_constant_pool): Likewise.
18085         (force_const_mem): Likewise.
18086         (record_tm_clone_pair): Likewise.
18087         * varpool.c (varpool_create_empty_node): Likewise.
18089 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
18091         * dwarf2out.c (tree_add_const_value_attribute): Call
18092         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
18093         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
18094         instead of ggc_internal_<x>alloc_stat.
18095         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
18096         (ggc_realloc): Likewise.
18097         * ggc-none.c (ggc_internal_alloc): Likewise.
18098         (ggc_internal_cleared_alloc): Likewise.
18099         * ggc-page.c: Likewise.
18100         * ggc.h (ggc_internal_alloc_stat): Likewise.
18101         (ggc_internal_alloc): Remove macro.
18102         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
18103         (ggc_internal_cleared_alloc): Remove macro.
18104         (GGC_RESIZEVEC): Adjust.
18105         (ggc_resizevar): Remove macro.
18106         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
18107         (ggc_internal_cleared_vec_alloc_stat): Likewise.
18108         (ggc_internal_vec_cleared_alloc): Remove macro.
18109         (ggc_alloc_atomic_stat): Drop _stat suffix.
18110         (ggc_alloc_atomic): Remove macro.
18111         (ggc_alloc_cleared_atomic): Remove macro.
18112         (ggc_alloc_string_stat): Drop _stat suffix.
18113         (ggc_alloc_string): Remove macro.
18114         (ggc_alloc_rtx_def_stat): Adjust.
18115         (ggc_alloc_tree_node_stat): Likewise.
18116         (ggc_alloc_cleared_tree_node_stat): Likewise.
18117         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
18118         (ggc_alloc_cleared_simd_clone_stat): Likewise.
18119         * gimple.c (gimple_build_omp_for): Likewise.
18120         (gimple_copy): Likewise.
18121         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
18122         * toplev.c (realloc_for_line_map): Adjust.
18123         * tree-data-ref.h (lambda_vector_new): Likewise.
18124         * tree-phinodes.c (allocate_phi_node): Likewise.
18125         * tree.c (grow_tree_vec_stat): Likewise.
18126         * vec.h (va_gc::reserve): Adjust.
18128 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
18130         * config/microblaze/microblaze.c (break_handler): New Declaration.
18131         (microblaze_break_function_p,microblaze_is_break_handler): New.
18132         (compute_frame_size): Use microblaze_break_function_p.
18133         Add the test of break_handler.
18134         (microblaze_function_prologue) : Add the test of variable
18135         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
18136         (microblaze_function_epilogue) : Add the test of break_handler.
18137         (microblaze_globalize_label) : Add the test of break_handler.
18138         Check the name by BREAK_HANDLER_NAME.
18140         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
18142         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
18143         microblaze_is_break_handler test.
18144         (call_internal1,call_value_intern): Use microblaze_break_function_p.
18145         Use SYMBOL_REF_DECL.
18147         * config/microblaze/microblaze-protos.h
18148         (microblaze_break_function_p,microblaze_is_break_handler):
18149         New Declaration.
18151         * doc/extend.texi (MicroBlaze break_handler Functions): Document
18152         new MicroBlaze break_handler functions.
18154 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
18156         * doc/extend.texi (Size of an asm): Move node text according
18157         to its @menu entry position.
18159 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
18161         PR tree-optimization/61140
18162         PR tree-optimization/61150
18163         PR tree-optimization/61197
18164         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
18166 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
18168         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
18170 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
18172         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
18173         __SIZEOF_INT128__ is defined.
18175 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
18177         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
18178         (rs6000_delegitimize_address): Use it.
18180 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
18182         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
18183         inplace argument.  Store the new address in the original MEM when true.
18184         * emit-rtl.c (change_address_1): Likewise.
18185         (adjust_address_1, adjust_automodify_address_1, offset_address):
18186         Update accordingly.
18187         * rtl.h (plus_constant): Add an inplace argument.
18188         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
18189         when true.  Avoid generating (plus X (const_int 0)).
18190         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
18191         in-place.  Pass true to plus_constant.
18192         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
18194 2014-05-16  Dehao Chen  <dehao@google.com>
18196         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
18198 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
18200         PR target/54089
18201         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
18202         patterns.
18203         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
18205 2014-05-16  Dehao Chen  <dehao@google.com>
18207         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
18208         optimize_function_for_size_p.
18209         * regs.h (REG_FREQ_FROM_BB): Likewise.
18211 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
18213         PR target/51244
18214         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
18215         negt_reg_operand cases.
18216         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
18217         predicate.
18218         * config/sh/predicates.md (cbranch_treg_value): Simplify.
18220 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
18222         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
18223         target variants.
18225 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
18227         Revert:
18228         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
18230         * tree-cfg.c (dump_function_to_file): Dump the return type of
18231         functions, in a line to itself before the function body, mimicking
18232         the layout of a C function.
18234 2014-05-16  Dehao Chen  <dehao@google.com>
18236         * cfghooks.c (make_forwarder_block): Use direct computation to
18237         get fall-through edge's count and frequency.
18239 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
18241         * config/arc/arc.c (arc_init): Fix typo in error message.
18242         * config/i386/i386.c (ix86_expand_builtin): Likewise.
18243         (split_stack_prologue_scratch_regno): Likewise.
18244         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
18245         word from error message.
18247 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18249         * ira-costs.c: Fix typo in comment.
18251 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
18253         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
18255 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
18257         * varpool.c (dump_varpool_node): Dump write-only flag.
18258         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
18259         write-only flag.
18260         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
18261         write-only variables.
18262         * ipa.c (process_references): New function.
18263         (set_readonly_bit): New function.
18264         (set_writeonly_bit): New function.
18265         (clear_addressable_bit): New function.
18266         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
18267         fix handling of aliases.
18268         * cgraph.h (struct varpool_node): Add writeonly flag.
18270 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
18272         PR rtl-optimization/60969
18273         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
18274         Calculate costs for this case.
18276 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
18278         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
18279         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
18281 2014-05-16  Richard Biener  <rguenther@suse.de>
18283         PR tree-optimization/61194
18284         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
18285         bool patterns ending in a COND_EXPR.
18287 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18289         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
18291 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18293         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
18294         where we were unable to cost an RTX.
18296 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18298         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
18299         HIGH, LO_SUM.
18301 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18302             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18304         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
18306 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18307             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18309         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
18310         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
18312 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18313             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18315         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
18316         operators.
18318 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18319             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18321         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18322         DIV/MOD.
18324 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18325             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18327         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
18328         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
18330 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18331             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18333         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
18334         rotates and shifts.
18336 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18337             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18339         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
18340         ZERO_EXTEND and SIGN_EXTEND better.
18342 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18343             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18345         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
18346         logical operations.
18348 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18349             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18351         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
18352         costs when costing loads and stores to memory.
18354 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18355             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
18357         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
18358         for SET RTX.
18360 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18362         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
18364 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18365             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18367         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
18368         to...
18369         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
18370         well formed.
18371         (aarch64_rtx_mult_cost): New.
18372         (aarch64_rtx_costs): Use it, refactor as appropriate.
18374 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18375             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18377         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
18378         emit instructions, return number of instructions which would
18379         be emitted.
18380         (aarch64_add_constant): Update call to aarch64_build_constant.
18381         (aarch64_output_mi_thunk): Likewise.
18382         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
18383         a CONST_DOUBLE.
18385 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18387         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
18388         (TARGET_RTX_COSTS): Call it.
18390 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18392         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
18393         (cortexa57_vector_cost): Likewise.
18394         (cortexa57_tunings): Use them.
18396 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
18398         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
18399         (cpu_addrcost_table): Use it.
18400         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
18401         (aarch64_address_cost): Rewrite using aarch64_classify_address,
18402         move it.
18404 2014-05-16  Richard Biener  <rguenther@suse.de>
18406         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
18407         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
18408         (visit_phi): Ignore edges marked as not executable.
18409         (class cond_dom_walker): New.
18410         (cond_dom_walker::before_dom_children): Value-number
18411         control statements and mark successor edges as not
18412         executable if possible.
18413         (run_scc_vn): First walk all control statements in
18414         dominator order, marking edges as not executable.
18415         * tree-inline.c (copy_edges_for_bb): Be not confused
18416         about random edge flags.
18418 2014-05-16  Richard Biener  <rguenther@suse.de>
18420         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
18422 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
18424         PR target/61193
18425         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
18426         (__TM_simple_begin): Use it.
18427         (__TM_begin): Likewise.
18429 2014-05-15  Martin Jambor  <mjambor@suse.cz>
18431         PR ipa/61085
18432         * ipa-prop.c (update_indirect_edges_after_inlining): Check
18433         type_preserved flag when the indirect edge is polymorphic.
18435 2014-05-15  Martin Jambor  <mjambor@suse.cz>
18437         PR tree-optimization/61090
18438         * tree-sra.c (sra_modify_expr): Pass the current gsi to
18439         build_ref_for_model.
18441 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18443         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
18444         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
18446 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
18448         PR tree-optimization/61158
18449         * fold-const.c (fold_binary_loc): If X is zero-extended and
18450         shiftc >= prec, make sure zerobits is all ones instead of
18451         invoking undefined behavior.
18453 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18455         * regcprop.h: New file.
18456         * regcprop.c (skip_debug_insn_p): New decl.
18457         (replace_oldest_value_reg): Check skip_debug_insn_p.
18458         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
18459         * shrink-wrap.c: Include regcprop.h.
18460         (prepare_shrink_wrap): Call
18461         copyprop_hardreg_forward_bb_without_debug_insn.
18463 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18465         * shrink-wrap.h: Update comment.
18466         * shrink-wrap.c: Update comment.
18467         (next_block_for_reg): Rename to live_edge_for_reg.
18468         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
18469         (move_insn_for_shrink_wrap): Split live_edge.
18470         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
18472 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
18474         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
18475         Delete.
18476         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
18477         * config/sparc/sparc.md (fptype_ut699): New attribute.
18478         (in_branch_delay): Return false if -mfix-ut699 is specified and
18479         fptype_ut699 is set to single.
18480         (truncdfsf2): Add fptype_ut699 attribute.
18481         (fix_truncdfsi2): Likewise.
18482         (floatsisf2): Change fptype attribute.
18483         (fix_truncsfsi2): Likewise.
18484         (negtf2_notv9): Delete.
18485         (negtf2_v9): Likewise.
18486         (negtf2_hq): New instruction.
18487         (negtf2): New instruction and splitter.
18488         (negdf2_notv9): Rewrite.
18489         (abstf2_notv9): Delete.
18490         (abstf2_hq_v9): Likewise.
18491         (abstf2_v9): Likewise.
18492         (abstf2_hq): New instruction.
18493         (abstf2): New instruction and splitter.
18494         (absdf2_notv9): Rewrite.
18496 2014-05-14  Cary Coutant  <ccoutant@google.com>
18498         PR debug/61013
18499         * opts.c (common_handle_option): Don't special-case "-g".
18500         (set_debug_level): Default to at least level 2 with "-g".
18502 2014-05-14  DJ Delorie  <dj@redhat.com>
18504         * config/msp430/msp430.c (msp430_builtin): Add
18505         MSP430_BUILTIN_DELAY_CYCLES.
18506         (msp430_init_builtins): Register void __delay_cycles(long long).
18507         (msp430_builtin_decl): Add it.
18508         (cg_magic_constant): New.
18509         (msp430_expand_delay_cycles): New.
18510         (msp430_expand_builtin): Call it.
18511         (msp430_print_operand_raw): Change integer printing from "int" to
18512         HOST_WIDE_INT.
18513         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
18514         (delay_cycles_start): New.
18515         (delay_cycles_end): New.
18516         (delay_cycles_32): New.
18517         (delay_cycles_32x): New.
18518         (delay_cycles_16): New.
18519         (delay_cycles_16x): New.
18520         (delay_cycles_2): New.
18521         (delay_cycles_1): New.
18522         * doc/extend.texi: Document __delay_cycles().
18524 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
18526         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
18527         length attribute computation.
18529 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
18531         PR debug/61188
18532         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
18534 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
18536         PR target/61084
18537         * config/sparc/sparc.md: Fix types of low and high in DI constant
18538         splitter.  Use gen_int_mode in some other splitters.
18540 2014-05-14  Martin Jambor  <mjambor@suse.cz>
18542         PR ipa/60897
18543         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
18545 2014-05-14  James Norris  <jnorris@codesourcery.com>
18547         * omp-low.c (expand_parallel_call): Remove shadow variable.
18548         (expand_omp_taskreg): Likewise.
18550 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
18552         * common/config/i386/i386-common.c
18553         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
18554         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
18555         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
18556         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
18557         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
18558         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
18559         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
18560         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
18561         xsavecintrin.h, xsavesintrin.h.
18562         (x86_64-*-*): Ditto.
18563         * config/i386/clflushoptintrin.h: New.
18564         * config/i386/xsavecintrin.h: Ditto.
18565         * config/i386/xsavesintrin.h: Ditto.
18566         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
18567         (bit_XSAVES): Ditto.
18568         (bit_XSAVES): Ditto.
18569         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18570         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
18571         -mno-clflushopt.
18572         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
18573         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
18574         OPTION_MASK_ISA_XSAVES.
18575         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
18576         -mxsavec, -mxsaves.
18577         (PTA_CLFLUSHOPT) Define.
18578         (PTA_XSAVEC): Ditto.
18579         (PTA_XSAVES): Ditto.
18580         (ix86_option_override_internal): Handle new options.
18581         (ix86_valid_target_attribute_inner_p): Ditto.
18582         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
18583         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
18584         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
18585         (bdesc_special_args): Add __builtin_ia32_xsaves,
18586         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
18587         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
18588         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
18589         (ix86_expand_builtin): Handle new builtins.
18590         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
18591         (TARGET_CLFLUSHOPT_P): Ditto.
18592         (TARGET_XSAVEC): Ditto.
18593         (TARGET_XSAVEC_P): Ditto.
18594         (TARGET_XSAVES): Ditto.
18595         (TARGET_XSAVES_P): Ditto.
18596         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
18597         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
18598         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
18599         (ANY_XRSTOR): New.
18600         (ANY_XRSTOR64): Ditto.
18601         (xrstor): Ditto.
18602         (xrstor): Change into <xrstor>.
18603         (xrstor_rex64): Change into <xrstor>_rex64.
18604         (xrstor64): Change into <xrstor>64
18605         (clflushopt): New.
18606         * config/i386/i386.opt (mclflushopt): New.
18607         (mxsavec): Ditto.
18608         (mxsaves): Ditto.
18609         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
18610         xsavecintrin.h.
18611         * doc/invoke.texi: Document new options.
18613 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
18615         PR rtl-optimization/60866
18616         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
18617         Default it to -1.  Pass it down to init_simplejump_data.
18618         (init_simplejump_data): New parameter old_seqno.  Pass it down
18619         to get_seqno_for_a_jump.
18620         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
18621         initializing new jump seqno as a last resort.  Add comment.
18622         (sel_redirect_edge_and_branch): Save old seqno of the conditional
18623         jump and pass it down to sel_init_new_insn.
18624         (sel_redirect_edge_and_branch_force): Likewise.
18626 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
18628         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
18629         shifted values to avoid build warning.
18631 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
18633         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
18634         * cfgrtl.c (rtl_merge_blocks): Fix comment.
18635         (cfg_layout_merge_blocks): Likewise.
18636         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
18638 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
18640         PR rtl-optimization/60901
18641         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
18642         bb predecessor belongs to the same scheduling region.  Adjust comment.
18644 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
18646         * doc/sourcebuild.texi: (dfp_hw): Document.
18647         (p8vector_hw): Likewise.
18648         (powerpc_eabi_ok): Likewise.
18649         (powerpc_elfv2): Likewise.
18650         (powerpc_htm_ok): Likewise.
18651         (ppc_recip_hw): Likewise.
18652         (vsx_hw): Likewise.
18654 2014-05-13  Cary Coutant  <ccoutant@google.com>
18656         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
18658 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
18660         * gengtype-parse.c (require3): Eliminate in favor of...
18661         (require4): New.
18662         (require_template_declaration): Update to support optional single *
18663         on a type.
18665         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
18666         (create_user_defined_type): Handle a single level of explicit
18667         pointerness within template arguments.
18668         (struct write_types_data): Add field "kind".
18669         (filter_type_name): Handle "*" character.
18670         (write_user_func_for_structure_ptr): Require a write_types_data
18671         rather than just a prefix string, so that we can look up the kind
18672         of the wtd and use it as an index into wrote_user_func_for_ptr,
18673         ensuring that such functions are written at most once.  Support
18674         subclasses by invoking the marking function of the ultimate base class.
18675         (write_user_func_for_structure_body): Require a write_types_data
18676         rather than just a prefix string, so that we can pass this to
18677         write_user_func_for_structure_ptr.
18678         (write_func_for_structure): Likewise.
18679         (ggc_wtd): Add initializer of new "kind" field.
18680         (pch_wtd): Likewise.
18682         * gengtype.h (enum write_types_kinds): New.
18683         (struct type): Add field wrote_user_func_for_ptr to the "s"
18684         union member.
18686 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
18688         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
18689         instead of const_binop.
18690         (fold_binary_loc): Likewise.
18692 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
18694         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
18695         calculation to match get_ref_base_and_extent.
18697 2014-05-13  Catherine Moore  <clm@codesourcery.com>
18698             Sandra Loosemore  <sandra@codesourcery.com>
18700         * configure.ac: Fix assembly for explicit JALR relocation check.
18701         * configure: Regenerate.
18703 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18705         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
18706         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
18707         Remove associated type declarations and initialisations.
18708         (arm_expand_neon_builtin): Likewise.
18709         (neon_emit_pair_result_insn): Delete.
18710         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
18711         * config/arm/neon.md (neon_vtrn<mode>): Delete.
18712         (neon_vzip<mode>): Likewise.
18713         (neon_vuzp<mode>): Likewise.
18715 2014-05-13  Richard Biener  <rguenther@suse.de>
18717         PR ipa/60973
18718         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
18719         it needs revisiting whether the call still may be tail-called.
18721 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18723         * rtl.def (SYMBOL_REF): Remove middle "0" field.
18724         * rtl.h (block_symbol): Reduce number of fields to 2.
18725         (rtx_def): Add u2.symbol_ref_flags.
18726         (SYMBOL_REF_FLAGS): Use it.
18727         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
18728         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
18729         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
18730         Lower index of SYMBOL_REF_DATA.
18731         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
18732         Print SYMBOL_REF_FLAGS at the same time.
18733         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
18735 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18737         * rtl.def (VAR_LOCATION): Remove "i" field.
18738         * rtl.h (rtx_def): Add u2.var_location_status.
18739         (PAT_VAR_LOCATION_STATUS): Use it.
18740         (gen_rtx_VAR_LOCATION): Declare.
18741         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
18742         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
18743         * var-tracking.c (emit_note_insn_var_location): Remove casts.
18745 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18747         * rtl.def (scratch): Fix outdated comment and remove "0" field.
18748         * gengtype.c (adjust_field_rtx_def): Update accordingly.
18750 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18752         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
18753         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
18754         * rtl.h (rtx_def): Add insn_uid to u2 field.
18755         (RTX_FLAG_CHECK8): Delete in favor of...
18756         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
18757         (INSN_DELETED_P): Update accordingly.
18758         (INSN_UID): Use u2.insn_uid.
18759         (INSN_CHAIN_CODE_P): Define.
18760         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
18761         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
18762         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
18763         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
18764         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
18765         indices accordingly.
18766         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
18767         Update indices for insn-chain rtxes.
18768         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
18769         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
18770         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
18771         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
18772         * combine.c (try_combine): Likewise.
18773         * ira.c (setup_prohibited_mode_move_regs): Likewise.
18775 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18777         * rtl.def (REG): Remove middle field.
18778         * rtl.h (rtx_def): Add orignal_regno to u2.
18779         (ORIGINAL_REGNO): Use it instead of field 1.
18780         (REG_ATTRS): Lower field index accordingly.
18781         * gengtype.c (adjust_field_rtx_def): Remove handling of
18782         ORIGINAL_REGNO.  Move REG_ATTRS index down.
18783         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
18784         code that prints the REGNO.
18786 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18788         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
18789         GENERATOR_FILE.
18791 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
18793         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
18795 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
18797         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
18798         (alloc_iv): Lower base expressions containing ADDR_EXPR.
18800 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
18802         * config/aarch64/aarch64-protos.h
18803         (aarch64_hard_regno_caller_save_mode): New prototype.
18804         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
18805         New function.
18806         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
18808 2014-05-13  Christian Bruel  <christian.bruel@st.com>
18810         * target.def (mode_switching): New hook vector.
18811         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
18812         (mode_exit, modepriority_to_mode): Likewise.
18813         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
18814         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18815         * target.h: Include tm.h and hard-reg-set.h.
18816         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
18817         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
18818         * doc/tm.texi Regenerate.
18819         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18820         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18821         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
18822         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
18823         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
18824         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18825         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
18826         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
18827         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
18828         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
18829         (ix86_emit_mode_set): Hookify.
18830         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
18831         Delete.
18832         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
18833         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
18834         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
18835         (epiphany_mode_priority_to_mode): Remove declaration.
18836         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
18837         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
18838         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
18839         Likewise.
18840         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
18841         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
18842         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
18844 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
18846         PR target/61060
18847         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
18848         is const0_rtx, return immediately.  Don't test count == 0 when
18849         it is always true.
18851 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18853         * Makefile.in: add shrink-wrap.o.
18854         * config/i386/i386.c: include "shrink-wrap.h"
18855         * function.c: Likewise.
18856         (requires_stack_frame_p, next_block_for_reg,
18857         move_insn_for_shrink_wrap, prepare_shrink_wrap,
18858         dup_block_and_redirect): Move to shrink-wrap.c
18859         (thread_prologue_and_epilogue_insns): Extract three code segments
18860         as functions in shrink-wrap.c
18861         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
18862         shrink-wrap.h
18863         * shrink-wrap.c: New file.
18864         * shrink-wrap.h: New file.
18866 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
18868         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
18869         reference to Solaris.
18871 2014-05-12  Mike Stump  <mikestump@comcast.net>
18873         PR other/31778
18874         * genattrtab.c (filename): Add.
18875         (convert_set_attr_alternative): Improve error message.
18876         (check_defs): Restore read_md_filename for error messages.
18877         (gen_insn): Save filename.
18879 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
18881         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
18882         -fno-local-ivars and -fivar-visibility.
18883         * c-family/c.opt: Make -Wshadow also implicitly enable
18884         -Wshadow-ivar.
18886 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
18888         * doc/tm.texi: Remove reference to deleted macro.
18889         * doc/tm.texi.in: Likewise.
18891 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18893         PR target/60991
18894         * config/avr/avr.c (avr_out_store_psi): Use correct constant
18895         to restore Y.
18897 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
18899         PR libgcc/61152
18900         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
18901         * config/arm/aout.h (License): Same.
18902         * config/arm/bpabi.h (License): Same.
18903         * config/arm/elf.h (License): Same.
18904         * config/arm/linux-elf.h (License): Same.
18905         * config/arm/linux-gas.h (License): Same.
18906         * config/arm/netbsd-elf.h (License): Same.
18907         * config/arm/uclinux-eabi.h (License): Same.
18908         * config/arm/uclinux-elf.h (License): Same.
18909         * config/arm/vxworks.h (License): Same.
18911 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
18913         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
18914         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
18915         number of operands to 3.
18916         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
18917         * tree-nested.c (convert_nonlocal_omp_clauses,
18918         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
18919         * gimplify.c (gimplify_scan_omp_clauses): Handle
18920         OMP_CLAUSE_LINEAR_STMT.
18921         * omp-low.c (lower_rec_input_clauses): Fix typo.
18922         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
18923         cast between Fortran boolean_type_node and C _Bool if
18924         needed.
18926 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
18928         PR tree-optimization/61136
18929         * wide-int.h (multiple_of_p): Define a version that doesn't return
18930         the quotient.
18931         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
18932         integer_zerop/const_binop pair.
18933         (multiple_of_p): Likewise, converting both operands to widest_int
18934         precision.
18936 2014-05-09  Teresa Johnson  <tejohnson@google.com>
18938         * cgraphunit.c (analyze_functions): Use correct dump file.
18940 2014-05-09  Florian Weimer  <fweimer@redhat.com>
18942         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
18943         expand_used_vars.
18944         (stack_protect_return_slot_p): New function.
18945         (expand_used_vars): Call stack_protect_decl_p and
18946         stack_protect_return_slot_p for -fstack-protector-strong.
18948 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
18949         Andrew Haley <aph@redhat.com>
18950         Richard Sandiford <rdsandiford@googlemail.com>
18952         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
18953         pages.
18955 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
18957         PR middle-end/61111
18958         * fold-const.c (fold_binary_loc): Changed width of mask.
18960 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
18962         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
18963         unsigned int initializers for regno_in, regno_out.
18965 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
18967         PR target/61055
18968         * config/avr/avr.md (cc): Add new attribute set_vzn.
18969         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
18970         Set cc insn attribute to set_vzn instead of set_zn for alternatives
18971         with INC, DEC or NEG.
18972         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
18973         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
18974         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
18976 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18978         Revert:
18979         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18981         * wide-int.cc (UTItype): Define.
18982         (UDWtype): Define for appropriate W_TYPE_SIZE.
18984 2014-05-09  Richard Biener  <rguenther@suse.de>
18986         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
18987         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
18988         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
18989         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
18990         ssa_propagate): Adjust.
18992 2014-05-08  Jeff Law  <law@redhat.com>
18994         PR tree-optimization/61009
18995         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
18996         tri-state rather than a boolean.  When a block is too big to
18997         thread through, inform caller via negative return value.
18998         (thread_across_edge): If a block was too big for normal threading,
18999         then it's too big for a joiner too, so remove temporary equivalences
19000         and return immediately.
19002 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19003             Matthias Klose  <doko@ubuntu.com>
19005         PR driver/61106
19006         * optc-gen.awk: Fix option handling for -Wunused-parameter.
19008 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
19010         PR target/59952
19011         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
19013 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
19015         PR target/61092
19016         * config/alpha/alpha.c: Include gimple-iterator.h.
19017         (alpha_gimple_fold_builtin): New function.  Move
19018         ALPHA_BUILTIN_UMULH folding from ...
19019         (alpha_fold_builtin): ... here.
19020         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
19022 2014-05-08  Wei Mi  <wmi@google.com>
19024         PR target/58066
19025         * config/i386/i386.c (ix86_compute_frame_layout): Update
19026         preferred_stack_boundary for call, expanded from tls descriptor.
19027         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
19028         to depend on SP register.
19029         (*tls_local_dynamic_base_32_gnu): Ditto.
19030         (*tls_local_dynamic_32_once): Ditto.
19031         (tls_global_dynamic_64_<mode>): Set
19032         ix86_tls_descriptor_calls_expanded_in_cfun.
19033         (tls_local_dynamic_base_64_<mode>): Ditto.
19034         (tls_global_dynamic_32): Set
19035         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
19036         to depend on SP register.
19037         (tls_local_dynamic_base_32): Ditto.
19039 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19041         * config/arm/arm_neon.h: Update comment.
19042         * config/arm/neon-docgen.ml: Delete.
19043         * config/arm/neon-gen.ml: Delete.
19044         * doc/arm-neon-intrinsics.texi: Update comment.
19046 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19048         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
19049         and v4sf versions.
19050         (vand, vorr, veor, vorn, vbic): Remove.
19051         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
19052         iterator.
19053         (neon_vsub_unspec): Likewise.
19054         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
19056 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19058         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
19059         (vadd_s16): Likewise.
19060         (vadd_s32): Likewise.
19061         (vadd_f32): Likewise.
19062         (vadd_u8): Likewise.
19063         (vadd_u16): Likewise.
19064         (vadd_u32): Likewise.
19065         (vadd_s64): Likewise.
19066         (vadd_u64): Likewise.
19067         (vaddq_s8): Likewise.
19068         (vaddq_s16): Likewise.
19069         (vaddq_s32): Likewise.
19070         (vaddq_s64): Likewise.
19071         (vaddq_f32): Likewise.
19072         (vaddq_u8): Likewise.
19073         (vaddq_u16): Likewise.
19074         (vaddq_u32): Likewise.
19075         (vaddq_u64): Likewise.
19076         (vmul_s8): Likewise.
19077         (vmul_s16): Likewise.
19078         (vmul_s32): Likewise.
19079         (vmul_f32): Likewise.
19080         (vmul_u8): Likewise.
19081         (vmul_u16): Likewise.
19082         (vmul_u32): Likewise.
19083         (vmul_p8): Likewise.
19084         (vmulq_s8): Likewise.
19085         (vmulq_s16): Likewise.
19086         (vmulq_s32): Likewise.
19087         (vmulq_f32): Likewise.
19088         (vmulq_u8): Likewise.
19089         (vmulq_u16): Likewise.
19090         (vmulq_u32): Likewise.
19091         (vsub_s8): Likewise.
19092         (vsub_s16): Likewise.
19093         (vsub_s32): Likewise.
19094         (vsub_f32): Likewise.
19095         (vsub_u8): Likewise.
19096         (vsub_u16): Likewise.
19097         (vsub_u32): Likewise.
19098         (vsub_s64): Likewise.
19099         (vsub_u64): Likewise.
19100         (vsubq_s8): Likewise.
19101         (vsubq_s16): Likewise.
19102         (vsubq_s32): Likewise.
19103         (vsubq_s64): Likewise.
19104         (vsubq_f32): Likewise.
19105         (vsubq_u8): Likewise.
19106         (vsubq_u16): Likewise.
19107         (vsubq_u32): Likewise.
19108         (vsubq_u64): Likewise.
19109         (vand_s8): Likewise.
19110         (vand_s16): Likewise.
19111         (vand_s32): Likewise.
19112         (vand_u8): Likewise.
19113         (vand_u16): Likewise.
19114         (vand_u32): Likewise.
19115         (vand_s64): Likewise.
19116         (vand_u64): Likewise.
19117         (vandq_s8): Likewise.
19118         (vandq_s16): Likewise.
19119         (vandq_s32): Likewise.
19120         (vandq_s64): Likewise.
19121         (vandq_u8): Likewise.
19122         (vandq_u16): Likewise.
19123         (vandq_u32): Likewise.
19124         (vandq_u64): Likewise.
19125         (vorr_s8): Likewise.
19126         (vorr_s16): Likewise.
19127         (vorr_s32): Likewise.
19128         (vorr_u8): Likewise.
19129         (vorr_u16): Likewise.
19130         (vorr_u32): Likewise.
19131         (vorr_s64): Likewise.
19132         (vorr_u64): Likewise.
19133         (vorrq_s8): Likewise.
19134         (vorrq_s16): Likewise.
19135         (vorrq_s32): Likewise.
19136         (vorrq_s64): Likewise.
19137         (vorrq_u8): Likewise.
19138         (vorrq_u16): Likewise.
19139         (vorrq_u32): Likewise.
19140         (vorrq_u64): Likewise.
19141         (veor_s8): Likewise.
19142         (veor_s16): Likewise.
19143         (veor_s32): Likewise.
19144         (veor_u8): Likewise.
19145         (veor_u16): Likewise.
19146         (veor_u32): Likewise.
19147         (veor_s64): Likewise.
19148         (veor_u64): Likewise.
19149         (veorq_s8): Likewise.
19150         (veorq_s16): Likewise.
19151         (veorq_s32): Likewise.
19152         (veorq_s64): Likewise.
19153         (veorq_u8): Likewise.
19154         (veorq_u16): Likewise.
19155         (veorq_u32): Likewise.
19156         (veorq_u64): Likewise.
19157         (vbic_s8): Likewise.
19158         (vbic_s16): Likewise.
19159         (vbic_s32): Likewise.
19160         (vbic_u8): Likewise.
19161         (vbic_u16): Likewise.
19162         (vbic_u32): Likewise.
19163         (vbic_s64): Likewise.
19164         (vbic_u64): Likewise.
19165         (vbicq_s8): Likewise.
19166         (vbicq_s16): Likewise.
19167         (vbicq_s32): Likewise.
19168         (vbicq_s64): Likewise.
19169         (vbicq_u8): Likewise.
19170         (vbicq_u16): Likewise.
19171         (vbicq_u32): Likewise.
19172         (vbicq_u64): Likewise.
19173         (vorn_s8): Likewise.
19174         (vorn_s16): Likewise.
19175         (vorn_s32): Likewise.
19176         (vorn_u8): Likewise.
19177         (vorn_u16): Likewise.
19178         (vorn_u32): Likewise.
19179         (vorn_s64): Likewise.
19180         (vorn_u64): Likewise.
19181         (vornq_s8): Likewise.
19182         (vornq_s16): Likewise.
19183         (vornq_s32): Likewise.
19184         (vornq_s64): Likewise.
19185         (vornq_u8): Likewise.
19186         (vornq_u16): Likewise.
19187         (vornq_u32): Likewise.
19188         (vornq_u64): Likewise.
19190 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19192         * wide-int.cc (UTItype): Define.
19193         (UDWtype): Define for appropriate W_TYPE_SIZE.
19195 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
19197         PR tree-optimization/59100
19198         * tree-ssa-phiopt.c: Include tree-inline.h.
19199         (neutral_element_p, absorbing_element_p): New functions.
19200         (value_replacement): Handle conditional binary operations with a
19201         neutral or absorbing element.
19203 2014-05-08  Richard Biener  <rguenther@suse.de>
19205         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
19206         folding the expression.
19207         (valueize_expr): Remove.
19208         (visit_reference_op_load): Do not valueize the result of
19209         vn_get_expr_for.
19210         (simplify_binary_expression): Likewise.
19211         (simplify_unary_expression): Likewise.
19213 2014-05-08  Richard Biener  <rguenther@suse.de>
19215         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
19216         looking at TYPE_ARG_TYPES.
19218 2014-05-08  Richard Biener  <rguenther@suse.de>
19220         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19221         pointer propagation special-case.
19223 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
19225         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
19226         core part of address expressions.
19228 2014-05-08  Alan Modra  <amodra@gmail.com>
19230         PR target/60737
19231         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
19232         loads and stores when -mno-strict-align at any alignment.
19233         (expand_block_clear): Similarly.  Also correct calculation of
19234         instruction count.
19236 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19238         PR middle-end/39246
19239         * tree-complex.c (expand_complex_move): Keep line info when expanding
19240         complex move.
19241         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
19242         of complex expression. Use new argument to display correct location
19243         for values coming from phi statement.
19244         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
19245         (warn_uninitialized_phi): Pass location of phi argument to
19246         warn_uninit.
19247         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
19248         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
19250 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
19252         * config/rs6000/predicates.md (indexed_address_mem): New.
19253         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
19254         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
19255         fpstore_ux, fpstore_u.
19256         (sign_extend, indexed, update): New.
19257         (cell_micro): Adjust.
19258         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
19259         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
19260         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
19261         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
19262         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
19263         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
19264         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
19265         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
19266         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
19267         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
19268         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
19269         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
19270         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
19271         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
19272         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
19274         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
19275         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
19276         *vsx_extract_<mode>_store): Adjust.
19277         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
19278         is_cracked_insn, insn_must_be_first_in_group,
19279         insn_must_be_last_in_group): Adjust.
19281         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
19282         Adjust.
19283         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
19284         ppc440-fpstore): Adjust.
19285         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
19286         ppc476-fpstore): Adjust.
19287         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
19288         ppc601-fpstore): Adjust.
19289         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
19290         Adjust.
19291         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
19292         Adjust.
19293         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
19294         ppc7450-fpstore): Adjust.
19295         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
19296         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
19297         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
19298         Adjust.
19299         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
19300         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
19301         cell-fpstore, cell-fpstore-update): Adjust.
19302         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
19303         ppce300c3_store, ppce300c3_fpstore): Adjust.
19304         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
19305         e500mc_fpstore): Adjust.
19306         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
19307         e500mc64_store, e500mc64_fpstore): Adjust.
19308         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
19309         e5500_fpstore): Adjust.
19310         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
19311         e6500_fpstore): Adjust.
19312         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
19313         Adjust.
19314         * config/rs6000/power4.md (power4-load, power4-load-ext,
19315         power4-load-ext-update, power4-load-ext-update-indexed,
19316         power4-load-update-indexed, power4-load-update, power4-fpload,
19317         power4-fpload-update, power4-store, power4-store-update,
19318         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
19319         Adjust.
19320         * config/rs6000/power5.md (power5-load, power5-load-ext,
19321         power5-load-ext-update, power5-load-ext-update-indexed,
19322         power5-load-update-indexed, power5-load-update, power5-fpload,
19323         power5-fpload-update, power5-store, power5-store-update,
19324         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
19325         Adjust.
19326         * config/rs6000/power6.md (power6-load, power6-load-ext,
19327         power6-load-update, power6-load-update-indexed,
19328         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
19329         power6-fpload-update, power6-store, power6-store-update,
19330         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
19331         Adjust.
19332         * config/rs6000/power7.md (power7-load, power7-load-ext,
19333         power7-load-update, power7-load-update-indexed,
19334         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
19335         power7-fpload-update, power7-store, power7-store-update,
19336         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
19337         Adjust.
19338         * config/rs6000/power8.md (power8-load, power8-load-update,
19339         power8-load-ext, power8-load-ext-update, power8-fpload,
19340         power8-fpload-update, power8-store, power8-store-update-indexed,
19341         power8-fpstore, power8-fpstore-update): Adjust.
19342         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
19343         Adjust.
19344         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
19345         titan_lsu_store, titan_lsu_fpstore): Adjust.
19346         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
19348 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
19350         PR target/60884
19351         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
19352         unrolled byte insns.  Emit address increments after move insns.
19354 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
19356         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
19357         const_gimple, rather than a gimple.
19358         (gimple_call_builtin_p): Likewise, for the three variants.
19360         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
19361         (gimple_call_builtin_p): Likewise, for the three variants.
19363 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
19365         PR tree-optimization/61095
19366         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
19368 2014-05-07  Richard Biener  <rguenther@suse.de>
19370         PR tree-optimization/61034
19371         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
19372         (maybe_skip_until): Use translate to take into account
19373         lattices when trying to do disambiguations.
19374         (get_continuation_for_phi_1): Likewise.
19375         (get_continuation_for_phi): Adjust for added translate arguments.
19376         (walk_non_aliased_vuses): Likewise.
19377         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
19378         (walk_non_aliased_vuses): Likewise.
19379         (call_may_clobber_ref_p_1): Declare.
19380         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
19381         calls.  Stop early if we are only supposed to disambiguate.
19382         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
19384 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
19386         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
19387         Emit an error when the function has arguments.
19389 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
19391         * cfgloop.h (unswitch_loops): Remove.
19392         * doc/passes.texi: Remove references to loop-unswitch.c
19393         * timevar.def (TV_LOOP_UNSWITCH): Remove.
19395 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
19397         * tree-vect-data-refs.c (vect_grouped_load_supported): New
19398         check for loads group of length 3.
19399         (vect_permute_load_chain): New permutations for loads group of
19400         length 3.
19401         * tree-vect-stmts.c (vect_model_load_cost): Change cost
19402         of vec_perm_shuffle for the new permutations.
19404 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
19406         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
19407         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
19408         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
19409         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
19410         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
19411         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
19412         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
19413         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
19415 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
19417         * loop-unswitch.c: Delete.
19419 2014-05-07  Richard Biener  <rguenther@suse.de>
19421         * config.gcc: Always set need_64bit_hwint to yes.
19423 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
19425         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
19426         of using optimize_size.
19428 2014-05-06  Mike Stump  <mikestump@comcast.net>
19430         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
19432 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
19434         * config/i386/sse.md (*mov<mode>_internal)
19435         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
19436         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
19437         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
19438         (*<code><mode>3, *andnot<mode>3<mask_name>)
19439         (<mask_codefor><code><mode>3<mask_name>): Only consider
19440         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
19442 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
19444         Revert:
19445         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
19447         * lra-constraints.c (valid_address_p): Move earlier in file.
19448         Add a constraint argument to the address_info version.
19449         (satisfies_memory_constraint_p): New function.
19450         (satisfies_address_constraint_p): Likewise.
19451         (process_alt_operands, curr_insn_transform): Use them.
19452         (process_address): Pass the constraint to valid_address_p when
19453         checking address operands.
19455 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
19457         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
19458         to their respective blocks.  Fix inadvertent use of "node".
19460 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
19462         * emit-rtl.c (init_derived_machine_modes): New functionm, split
19463         out from...
19464         (init_emit_once): ...here.
19465         * rtl.h (init_derived_machine_modes): Declare.
19466         * toplev.c (do_compile): Call it even if no_backend.
19468 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
19469             Mike Stump  <mikestump@comcast.net>
19470             Richard Sandiford  <rdsandiford@googlemail.com>
19471             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19473         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
19474         (rtx_equal_for_memref_p): Update comment.
19475         (adjust_offset_for_component_ref): Use wide-int interfaces.
19476         * builtins.c (get_object_alignment_2): Likewise.
19477         (c_readstr): Likewise.
19478         (target_char_cast): Add comment.
19479         (determine_block_size): Use wide-int interfaces.
19480         (expand_builtin_signbit): Likewise.
19481         (fold_builtin_int_roundingfn): Likewise.
19482         (fold_builtin_bitop): Likewise.
19483         (fold_builtin_bswap): Likewise.
19484         (fold_builtin_logarithm): Use signop.
19485         (fold_builtin_pow): Likewise.
19486         (fold_builtin_memory_op): Use wide-int interfaces.
19487         (fold_builtin_object_size): Likewise.
19488         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
19489         nb_iterations_estimate.
19490         (record_niter_bound): Use wide-int interfaces.
19491         (get_estimated_loop_iterations_int): Likewise.
19492         (get_estimated_loop_iterations): Likewise.
19493         (get_max_loop_iterations): Likewise.
19494         * cfgloop.h: Include wide-int.h.
19495         (struct nb_iter_bound): Change bound to widest_int.
19496         (struct loop): Change nb_iterations_upper_bound and
19497         nb_iterations_estimate to widest_int.
19498         (record_niter_bound): Switch to use widest_int.
19499         (get_estimated_loop_iterations): Likewise.
19500         (get_max_loop_iterations): Likewise.
19501         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
19502         update for wide-int.
19503         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
19504         * combine.c (try_combine): Likewise.
19505         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
19506         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
19507         interfaces.
19508         (aarch64_float_const_representable_p): Likewise.
19509         * config/arc/arc.c: Include wide-int.h.
19510         (arc_can_use_doloop_p): Use wide-int interfaces.
19511         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
19512         (vfp3_const_double_index): Likewise.
19513         * config/avr/avr.c (avr_out_round): Likewise.
19514         (avr_fold_builtin): Likewise.
19515         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
19516         (bfin_can_use_doloop_p): Likewise.
19517         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
19518         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
19519         * config/i386/i386.c: Include wide-int.h.
19520         (ix86_data_alignment): Use wide-int interfaces.
19521         (ix86_local_alignment): Likewise.
19522         (ix86_emit_swsqrtsf): Update real_from_integer.
19523         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
19524         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
19525         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
19526         (zero_constant): Likewise.
19527         (input_operand): Likewise.
19528         (splat_input_operand): Likewise.
19529         (non_logical_cint_operand): Change const_double to const_wide_int.
19530         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
19531         (easy_altivec_constant): Remove comment.
19532         (paired_expand_vector_init): Use CONSTANT_P.
19533         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
19534         (rs6000_emit_move): Update checks.
19535         (rs6000_aggregate_candidate): Use wide-int interfaces.
19536         (rs6000_expand_ternop_builtin): Likewise.
19537         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
19538         (rs6000_assemble_integer): Likewise.
19539         (rs6000_hash_constant): Likewise.
19540         (output_toc): Likewise.
19541         (rs6000_rtx_costs): Likewise.
19542         (rs6000_emit_swrsqrt); Update call to real_from_integer.
19543         * config/rs6000/rs6000-c.c: Include wide-int.h.
19544         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
19545         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
19546         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
19547         Handle CONST_WIDE_INT.
19548         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
19549         Use tree_fits_uhwi_p.
19550         * config/sparc/sparc.c: Include wide-int.h.
19551         (sparc_fold_builtin): Use wide-int interfaces.
19552         * config/vax/vax.c: Include wide-int.h.
19553         (vax_float_literal): Use real_from_integer.
19554         * coretypes.h (struct hwivec_def): New.
19555         (hwivec): New.
19556         (const_hwivec): New.
19557         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
19558         (equiv_constant): Handle CONST_WIDE_INT.
19559         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
19560         (cselib_hash_rtx): Handle CONST_WIDE_INT.
19561         * dbxout.c (stabstr_U): Use wide-int interfaces.
19562         (dbxout_type): Update to use cst_fits_shwi_p.
19563         * defaults.h (LOG2_BITS_PER_UNIT): Define.
19564         (TARGET_SUPPORTS_WIDE_INT): Add default.
19565         * dfp.c: Include wide-int.h.
19566         (decimal_real_to_integer2): Use wide-int interfaces and rename to
19567         decimal_real_to_integer.
19568         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
19569         decimal_real_to_integer.
19570         * doc/generic.texi (Constant expressions): Update for wide_int.
19571         * doc/rtl.texi (const_double): Likewise.
19572         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
19573         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
19574         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
19575         (REAL_VALUE_FROM_INT): Remove.
19576         (TARGET_SUPPORTS_WIDE_INT): New.
19577         * doc/tm.texi: Regenerate.
19578         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
19579         * double-int.h: Include wide-int.h.
19580         (struct wi::int_traits): New.
19581         * dwarf2out.c (get_full_len): New.
19582         (dw_val_equal_p): Add case dw_val_class_wide_int.
19583         (size_of_loc_descr): Likewise.
19584         (output_loc_operands): Likewise.
19585         (insert_double): Remove.
19586         (insert_wide_int): New.
19587         (add_AT_wide): New.
19588         (print_die): Add case dw_val_class_wide_int.
19589         (attr_checksum): Likewise.
19590         (attr_checksum_ordered): Likewise.
19591         (same_dw_val_p): Likewise.
19592         (size_of_die): Likewise.
19593         (value_format): Likewise.
19594         (output_die): Likewise.
19595         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
19596         Use wide-int.
19597         (clz_loc_descriptor): Use wide-int interfaces.
19598         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
19599         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
19600         (round_up_to_align): Use wide-int interfaces.
19601         (field_byte_offset): Likewise.
19602         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
19603         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
19604         CONST_DOUBLE handling.  Use wide-int interfaces.
19605         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
19606         (gen_enumeration_type_die): Use add_AT_wide.
19607         (hash_loc_operands): Add case dw_val_class_wide_int.
19608         (compare_loc_operands): Likewise.
19609         * dwarf2out.h: Include wide-int.h.
19610         (wide_int_ptr): New.
19611         (enum dw_val_class): Add dw_val_class_wide_int.
19612         (struct dw_val_struct): Add val_wide.
19613         * emit-rtl.c (const_wide_int_htab): New.
19614         (const_wide_int_htab_hash): New.
19615         (const_wide_int_htab_eq): New.
19616         (lookup_const_wide_int): New.
19617         (const_double_htab_hash): Use wide-int interfaces.
19618         (const_double_htab_eq): Likewise.
19619         (rtx_to_double_int): Conditionally compile for wide-int.
19620         (immed_double_int_const): Rename to immed_wide_int_const and
19621         update for wide-int.
19622         (immed_double_const): Conditionally compile for wide-int.
19623         (init_emit_once): Use wide-int interfaces.
19624         * explow.c (plus_constant): Likewise.
19625         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
19626         (lshift_value): Use wide-int interfaces.
19627         (expand_mult): Likewise.
19628         (choose_multiplier): Likewise.
19629         (expand_smod_pow2): Likewise.
19630         (make_tree): Likewise.
19631         * expr.c (convert_modes): Consolidate handling of constants.
19632         Use wide-int interfaces.
19633         (emit_group_load_1): Add note.
19634         (store_expr): Update comment.
19635         (get_inner_reference): Use wide-int interfaces.
19636         (expand_constructor): Update comment.
19637         (expand_expr_real_2): Use wide-int interfaces.
19638         (expand_expr_real_1): Likewise.
19639         (reduce_to_bit_field_precision): Likewise.
19640         (const_vector_from_tree): Likewise.
19641         * final.c: Include wide-int-print.h.
19642         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
19643         * fixed-value.c: Include wide-int.h.
19644         (fixed_from_string): Use wide-int interfaces.
19645         (fixed_to_decimal): Likewise.
19646         (fixed_convert_from_real): Likewise.
19647         (real_convert_from_fixed): Likewise.
19648         * fold-const.h (mem_ref_offset): Return an offset_int.
19649         (div_if_zero_remainder): Remove code parameter.
19650         * fold-const.c (div_if_zero_remainder): Remove code parameter.
19651         Use wide-int interfaces.
19652         (may_negate_without_overflow_p): Use wide-int interfaces.
19653         (negate_expr_p): Likewise.
19654         (fold_negate_expr): Likewise.
19655         (int_const_binop_1): Likewise.
19656         (const_binop): Likewise.
19657         (fold_convert_const_int_from_int): Likewise.
19658         (fold_convert_const_int_from_real): Likewise.
19659         (fold_convert_const_int_from_fixed): Likewise.
19660         (fold_convert_const_fixed_from_int): Likewise.
19661         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
19662         (sign_bit_p): Use wide-int interfaces.
19663         (make_range_step): Likewise.
19664         (build_range_check): Likewise.  Pass an integer of the correct type
19665         instead of using integer_one_node.
19666         (range_predecessor): Pass an integer of the correct type instead
19667         of using integer_one_node.
19668         (range_successor): Likewise.
19669         (merge_ranges): Likewise.
19670         (unextend): Use wide-int interfaces.
19671         (extract_muldiv_1): Likewise.
19672         (fold_div_compare): Likewise.
19673         (fold_single_bit_test): Likewise.
19674         (fold_sign_changed_comparison): Likewise.
19675         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
19676         (fold_plusminus_mult_expr): Use wide-int interfaces.
19677         (native_encode_int): Likewise.
19678         (native_interpret_int): Likewise.
19679         (fold_unary_loc): Likewise.
19680         (pointer_may_wrap_p): Likewise.
19681         (size_low_cst): Likewise.
19682         (mask_with_tz): Likewise.
19683         (fold_binary_loc): Likewise.
19684         (fold_ternary_loc): Likewise.
19685         (multiple_of_p): Likewise.
19686         (tree_call_nonnegative_warnv_p): Update calls to
19687         tree_int_cst_min_precision and real_from_integer.
19688         (fold_negate_const): Use wide-int interfaces.
19689         (fold_abs_const): Likewise.
19690         (fold_relational_const): Use tree_int_cst_lt.
19691         (round_up_loc): Use wide-int interfaces.
19692         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
19693         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
19694         * gengtype.c: Remove include of double-int.h.
19695         (do_typedef): Use wide-int interfaces.
19696         (open_base_files): Add wide-int.h.
19697         (main): Add offset_int and widest_int typedefs.
19698         * gengtype-lex.l: Handle "^".
19699         (CXX_KEYWORD): Add "static".
19700         * gengtype-parse.c (require3): New.
19701         (require_template_declaration): Handle constant template arguments
19702         and nested templates.
19703         * gengtype-state.c: Don't include "double-int.h".
19704         * genpreds.c (write_one_predicate_function): Update comment.
19705         (write_tm_constrs_h): Add check for hval and lval use in
19706         CONST_WIDE_INT.
19707         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
19708         (add_to_sequence): Likewise.
19709         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
19710         and const_double_operand.
19711         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
19712         interfaces.
19713         * gimple-fold.c (get_base_constructor): Likewise.
19714         (fold_array_ctor_reference): Likewise.
19715         (fold_nonarray_ctor_reference): Likewise.
19716         (fold_const_aggregate_ref_1): Likewise.
19717         (gimple_val_nonnegative_real_p): Likewise.
19718         (gimple_fold_indirect_ref): Likewise.
19719         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
19720         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
19721         (struct slsr_cand_d): Change index to be widest_int.
19722         (struct incr_info_d): Change incr to be widest_int.
19723         (alloc_cand_and_find_basis): Use wide-int interfaces.
19724         (slsr_process_phi): Likewise.
19725         (backtrace_base_for_ref): Likewise.  Return a widest_int.
19726         (restructure_reference): Take a widest_int instead of a double_int.
19727         (slsr_process_ref): Use wide-int interfaces.
19728         (create_mul_ssa_cand): Likewise.
19729         (create_mul_imm_cand): Likewise.
19730         (create_add_ssa_cand): Likewise.
19731         (create_add_imm_cand): Take a widest_int instead of a double_int.
19732         (slsr_process_add): Use wide-int interfaces.
19733         (slsr_process_cast): Likewise.
19734         (slsr_process_copy): Likewise.
19735         (dump_candidate): Likewise.
19736         (dump_incr_vec): Likewise.
19737         (replace_ref): Likewise.
19738         (cand_increment): Likewise.  Return a widest_int.
19739         (cand_abs_increment): Likewise.
19740         (replace_mult_candidate): Take a widest_int instead of a double_int.
19741         (replace_unconditional_candidate): Use wide-int interfaces.
19742         (incr_vec_index): Take a widest_int instead of a double_int.
19743         (create_add_on_incoming_edge): Likewise.
19744         (create_phi_basis): Use wide-int interfaces.
19745         (replace_conditional_candidate): Likewise.
19746         (record_increment): Take a widest_int instead of a double_int.
19747         (record_phi_increments): Use wide-int interfaces.
19748         (phi_incr_cost): Take a widest_int instead of a double_int.
19749         (lowest_cost_path): Likewise.
19750         (total_savings): Likewise.
19751         (analyze_increments): Use wide-int interfaces.
19752         (ncd_with_phi): Take a widest_int instead of a double_int.
19753         (ncd_of_cand_and_phis): Likewise.
19754         (nearest_common_dominator_for_cands): Likewise.
19755         (insert_initializers): Use wide-int interfaces.
19756         (all_phi_incrs_profitable): Likewise.
19757         (replace_one_candidate): Likewise.
19758         (replace_profitable_candidates): Likewise.
19759         * godump.c: Include wide-int-print.h.
19760         (go_output_typedef): Use wide-int interfaces.
19761         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
19762         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
19763         (build_loop_iteration_domains): Likewise.
19764         * hooks.h: Include wide-int.h rather than double-int.h.
19765         (hook_bool_dint_dint_uint_bool_true): Delete.
19766         (hook_bool_wint_wint_uint_bool_true): Declare.
19767         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
19768         (hook_bool_wint_wint_uint_bool_true): New.
19769         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
19770         interfaces.
19771         (ubsan_expand_si_overflow_mul_check): Likewise.
19772         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
19773         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
19774         (get_ancestor_addr_info): Likewise.
19775         (ipa_modify_call_arguments): Likewise.
19776         * loop-doloop.c (doloop_modify): Likewise.
19777         (doloop_optimize): Likewise.
19778         * loop-iv.c (iv_number_of_iterations): Likewise.
19779         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
19780         (unroll_loop_constant_iterations): Likewise.
19781         (decide_unroll_runtime_iterations): Likewise.
19782         (unroll_loop_runtime_iterations): Likewise.
19783         (decide_peel_simple): Likewise.
19784         (decide_unroll_stupid): Likewise.
19785         * lto-streamer-in.c (streamer_read_wi): Add.
19786         (input_cfg): Use wide-int interfaces.
19787         (lto_input_tree_1): Likewise.
19788         * lto-streamer-out.c (streamer_write_wi): Add.
19789         (hash_tree): Use wide-int interfaces.
19790         (output_cfg): Likewise.
19791         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
19792         (GTFILES): Add wide-int.h and signop.h.
19793         (TAGS): Look for .cc files too.
19794         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
19795         * optabs.c (expand_subword_shift): Likewise.
19796         (expand_doubleword_shift): Likewise.
19797         (expand_absneg_bit): Likewise.
19798         (expand_copysign_absneg): Likewise.
19799         (expand_copysign_bit): Likewise.
19800         * postreload.c (reload_cse_simplify_set): Likewise.
19801         * predict.c (predict_iv_comparison): Likewise.
19802         * pretty-print.h: Include wide-int-print.h.
19803         (pp_wide_int) New.
19804         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
19805         * print-tree.c: Include wide-int-print.h.
19806         (print_node_brief): Use wide-int interfaces.
19807         (print_node): Likewise.
19808         * read-rtl.c (validate_const_wide_int): New.
19809         (read_rtx_code): Add CONST_WIDE_INT case.
19810         * real.c: Include wide-int.h.
19811         (real_to_integer2): Delete.
19812         (real_to_integer): New function, returning a wide_int.
19813         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19814         (ten_to_ptwo): Update call to real_from_integer.
19815         (real_digit): Likewise.
19816         * real.h: Include signop.h, wide-int.h and insn-modes.h.
19817         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
19818         (REAL_VALUE_TO_INT): Delete.
19819         (real_to_integer): Declare a wide-int form.
19820         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
19821         * recog.c (const_int_operand): Improve comment.
19822         (const_scalar_int_operand): New.
19823         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
19824         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
19825         (split_double): Likewise.
19826         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
19827         (rtx_size): Likewise.
19828         (rtx_alloc_stat_v): New.
19829         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
19830         (cwi_output_hex): New.
19831         (iterative_hash_rtx): Handle CONST_WIDE_INT.
19832         (cwi_check_failed_bounds): New.
19833         * rtl.def (CONST_WIDE_INT): New.
19834         * rtl.h: Include <utility> and wide-int.h.
19835         (struct hwivec_def): New.
19836         (CWI_GET_NUM_ELEM): New.
19837         (CWI_PUT_NUM_ELEM): New.
19838         (struct rtx_def): Add num_elem and hwiv.
19839         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
19840         (CASE_CONST_UNIQUE): Likewise.
19841         (CASE_CONST_ANY): Likewise.
19842         (CONST_SCALAR_INT_P): Likewise.
19843         (CONST_WIDE_INT_P): New.
19844         (CWI_ELT): New.
19845         (HWIVEC_CHECK): New.
19846         (cwi_check_failed_bounds): New.
19847         (CWI_ELT): New.
19848         (HWIVEC_CHECK): New.
19849         (CONST_WIDE_INT_VEC) New.
19850         (CONST_WIDE_INT_NUNITS) New.
19851         (CONST_WIDE_INT_ELT) New.
19852         (rtx_mode_t): New type.
19853         (wi::int_traits <rtx_mode_t>): New.
19854         (wi::shwi): New.
19855         (wi::min_value): New.
19856         (wi::max_value): New.
19857         (rtx_alloc_v) New.
19858         (const_wide_int_alloc): New.
19859         (immed_wide_int_const): New.
19860         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
19861         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
19862         * signop.h: New file.
19863         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
19864         (simplify_const_unary_operation): Use wide-int interfaces.
19865         (simplify_binary_operation_1): Likewise.
19866         (simplify_const_binary_operation): Likewise.
19867         (simplify_const_relational_operation): Likewise.
19868         (simplify_immed_subreg): Likewise.
19869         * stmt.c (expand_case): Likewise.
19870         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
19871         signop rather than a bool.
19872         * stor-layout.c (layout_type): Use wide-int interfaces.
19873         (initialize_sizetypes): Update calls to
19874         set_min_and_max_values_for_integral_type.
19875         (set_min_and_max_values_for_integral_type): Take a signop rather
19876         than a bool.  Use wide-int interfaces.
19877         (fixup_signed_type): Update accordingly.  Remove
19878         HOST_BITS_PER_DOUBLE_INT limit.
19879         (fixup_unsigned_type): Likewise.
19880         * system.h (STATIC_CONSTANT_P): New.
19881         (STATIC_ASSERT): New.
19882         * target.def (can_use_doloop_p): Take widest_ints rather than
19883         double_ints.
19884         * target.h: Include wide-int.h rather than double-int.h.
19885         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
19886         than double_ints.
19887         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
19888         rather than INT_CST_LT_UNSIGNED.
19889         (can_use_doloop_if_innermost): Take widest_ints rather than
19890         double_ints.
19891         * tree-affine.c: Include wide-int-print.h.
19892         (double_int_ext_for_comb): Delete.
19893         (wide_int_ext_for_comb): New.
19894         (aff_combination_zero): Use wide-int interfaces.
19895         (aff_combination_const): Take a widest_int instead of a double_int.
19896         (aff_combination_elt): Use wide-int interfaces.
19897         (aff_combination_scale): Take a widest_int instead of a double_int.
19898         (aff_combination_add_elt): Likewise.
19899         (aff_combination_add_cst): Likewise.
19900         (aff_combination_add): Use wide-int interfaces.
19901         (aff_combination_convert): Likewise.
19902         (tree_to_aff_combination): Likewise.
19903         (add_elt_to_tree): Take a widest_int instead of a double_int.
19904         (aff_combination_to_tree): Use wide-int interfaces.
19905         (aff_combination_remove_elt): Likewise.
19906         (aff_combination_add_product): Take a widest_int instead of
19907         a double_int.
19908         (aff_combination_mult): Use wide-int interfaces.
19909         (aff_combination_expand): Likewise.
19910         (double_int_constant_multiple_p): Delete.
19911         (wide_int_constant_multiple_p): New.
19912         (aff_combination_constant_multiple_p): Take a widest_int pointer
19913         instead of a double_int pointer.
19914         (print_aff): Use wide-int interfaces.
19915         (get_inner_reference_aff): Take a widest_int pointer
19916         instead of a double_int pointer.
19917         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
19918         * tree-affine.h: Include wide-int.h.
19919         (struct aff_comb_elt): Change type of coef to widest_int.
19920         (struct affine_tree_combination): Change type of offset to widest_int.
19921         (double_int_ext_for_comb): Delete.
19922         (wide_int_ext_for_comb): New.
19923         (aff_combination_const): Use widest_int instead of double_int.
19924         (aff_combination_scale): Likewise.
19925         (aff_combination_add_elt): Likewise.
19926         (aff_combination_constant_multiple_p): Likewise.
19927         (get_inner_reference_aff): Likewise.
19928         (aff_comb_cannot_overlap_p): Likewise.
19929         (aff_combination_zero_p): Use wide-int interfaces.
19930         * tree.c: Include tree.h.
19931         (init_ttree): Use make_int_cst.
19932         (tree_code_size): Removed code for INTEGER_CST case.
19933         (tree_size): Add INTEGER_CST case.
19934         (make_node_stat): Update comment.
19935         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
19936         (build_int_cst_type): Use wide-int interfaces.
19937         (double_int_to_tree): Likewise.
19938         (double_int_fits_to_tree_p): Delete.
19939         (force_fit_type_double): Delete.
19940         (force_fit_type): New.
19941         (int_cst_hash_hash): Use wide-int interfaces.
19942         (int_cst_hash_eq): Likewise.
19943         (build_int_cst_wide): Delete.
19944         (wide_int_to_tree): New.
19945         (cache_integer_cst): Use wide-int interfaces.
19946         (build_low_bits_mask): Likewise.
19947         (cst_and_fits_in_hwi): Likewise.
19948         (real_value_from_int_cst): Likewise.
19949         (make_int_cst_stat): New.
19950         (integer_zerop): Use wide_int interfaces.
19951         (integer_onep): Likewise.
19952         (integer_all_onesp): Likewise.
19953         (integer_pow2p): Likewise.
19954         (integer_nonzerop): Likewise.
19955         (tree_log2): Likewise.
19956         (tree_floor_log2): Likewise.
19957         (tree_ctz): Likewise.
19958         (int_size_in_bytes): Likewise.
19959         (mem_ref_offset): Return an offset_int rather than a double_int.
19960         (build_type_attribute_qual_variant): Use wide_int interfaces.
19961         (type_hash_eq): Likewise
19962         (tree_int_cst_equal): Likewise.
19963         (tree_int_cst_lt): Delete.
19964         (tree_int_cst_compare): Likewise.
19965         (tree_fits_shwi_p): Use wide_int interfaces.
19966         (tree_fits_uhwi_p): Likewise.
19967         (tree_int_cst_sign_bit): Likewise.
19968         (tree_int_cst_sgn): Likewise.
19969         (tree_int_cst_min_precision): Take a signop rather than a bool.
19970         (simple_cst_equal): Use wide_int interfaces.
19971         (compare_tree_int): Likewise.
19972         (iterative_hash_expr): Likewise.
19973         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
19974         INT_CST_LT.
19975         (get_type_static_bounds): Use wide_int interfaces.
19976         (tree_int_cst_elt_check_failed): New.
19977         (build_common_tree_nodes): Reordered to set prec before filling in
19978         value.
19979         (int_cst_value): Check cst_and_fits_in_hwi.
19980         (widest_int_cst_value): Use wide_int interfaces.
19981         (upper_bound_in_type): Likewise.
19982         (lower_bound_in_type): Likewise.
19983         (num_ending_zeros): Likewise.
19984         (drop_tree_overflow): Likewise.
19985         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
19986         (gen_conditions_for_pow_cst_base): Likewise.
19987         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
19988         (group_case_labels_stmt): Use wide-int interfaces.
19989         (verify_gimple_assign_binary): Likewise.
19990         (print_loop): Likewise.
19991         * tree-chrec.c (tree_fold_binomial): Likewise.
19992         * tree-core.h (struct tree_base): Add int_length.
19993         (struct tree_int_cst): Change rep of value.
19994         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
19995         (dr_may_alias_p): Likewise.
19996         (max_stmt_executions_tree): Likewise.
19997         * tree.def (INTEGER_CST): Update comment.
19998         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
19999         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
20000         * tree-dump.c: Include wide-int.h and wide-int-print.h.
20001         (dequeue_and_dump): Use wide-int interfaces.
20002         * tree.h: Include wide-int.h.
20003         (NULL_TREE): Moved to earlier loc in file.
20004         (TREE_INT_CST_ELT_CHECK): New.
20005         (tree_int_cst_elt_check_failed): New.
20006         (TYPE_SIGN): New.
20007         (TREE_INT_CST): Delete.
20008         (TREE_INT_CST_LOW): Use wide-int interfaces.
20009         (TREE_INT_CST_HIGH): Delete.
20010         (TREE_INT_CST_NUNITS): New.
20011         (TREE_INT_CST_EXT_NUNITS): Likewise.
20012         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
20013         (TREE_INT_CST_ELT): Likewise.
20014         (INT_CST_LT): Delete.
20015         (tree_int_cst_elt_check): New (two forms).
20016         (type_code_size): Update comment.
20017         (make_int_cst_stat, make_int_cst): New.
20018         (tree_to_double_int): Delete.
20019         (double_int_fits_to_tree_p): Delete.
20020         (force_fit_type_double): Delete.
20021         (build_int_cstu): Replace with out-of-line function.
20022         (build_int_cst_wide): Delete.
20023         (tree_int_cst_lt): Define inline.
20024         (tree_int_cst_le): New.
20025         (tree_int_cst_compare): Define inline.
20026         (tree_int_cst_min_precision): Take a signop rather than a bool.
20027         (wi::int_traits <const_tree>): New.
20028         (wi::int_traits <tree>): New.
20029         (wi::extended_tree): New.
20030         (wi::int_traits <wi::extended_tree>): New.
20031         (wi::to_widest): New.
20032         (wi::to_offset): New.
20033         (wi::fits_to_tree_p): New.
20034         (wi::min_value): New.
20035         (wi::max_value): New.
20036         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
20037         (copy_tree_body_r): Likewise.
20038         * tree-object-size.c (compute_object_offset): Likewise.
20039         (addr_object_size): Likewise.
20040         * tree-predcom.c: Include wide-int-print.h.
20041         (struct dref_d): Change type of offset to widest_int.
20042         (dump_dref): Call wide-int printer.
20043         (aff_combination_dr_offset): Use wide-int interfaces.
20044         (determine_offset): Take a widest_int pointer rather than a
20045         double_int pointer.
20046         (split_data_refs_to_components): Use wide-int interfaces.
20047         (suitable_component_p): Likewise.
20048         (order_drefs): Likewise.
20049         (add_ref_to_chain): Likewise.
20050         (valid_initializer_p): Likewise.
20051         (determine_roots_comp): Likewise.
20052         * tree-pretty-print.c: Include wide-int-print.h.
20053         (dump_generic_node): Use wide-int interfaces.
20054         * tree-sra.c (sra_ipa_modify_expr): Likewise.
20055         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
20056         (move_fixed_address_to_symbol): Likewise.
20057         (move_hint_to_base): Likewise.
20058         (move_pointer_to_base): Likewise.
20059         (move_variant_to_index): Likewise.
20060         (most_expensive_mult_to_index): Likewise.
20061         (addr_to_parts): Likewise.
20062         (copy_ref_info): Likewise.
20063         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
20064         (indirect_refs_may_alias_p): Likewise.
20065         (stmt_kills_ref_p_1): Likewise.
20066         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
20067         * tree-ssa-ccp.c: Update comment at top of file.  Include
20068         wide-int-print.h.
20069         (struct prop_value_d): Change type of mask to widest_int.
20070         (extend_mask): New function.
20071         (dump_lattice_value): Use wide-int interfaces.
20072         (get_default_value): Likewise.
20073         (set_constant_value): Likewise.
20074         (set_value_varying): Likewise.
20075         (valid_lattice_transition): Likewise.
20076         (set_lattice_value): Likewise.
20077         (value_to_double_int): Delete.
20078         (value_to_wide_int): New.
20079         (get_value_from_alignment): Use wide-int interfaces.
20080         (get_value_for_expr): Likewise.
20081         (do_dbg_cnt): Likewise.
20082         (ccp_finalize): Likewise.
20083         (ccp_lattice_meet): Likewise.
20084         (bit_value_unop_1): Use widest_ints rather than double_ints.
20085         (bit_value_binop_1): Likewise.
20086         (bit_value_unop): Use wide-int interfaces.
20087         (bit_value_binop): Likewise.
20088         (bit_value_assume_aligned): Likewise.
20089         (evaluate_stmt): Likewise.
20090         (ccp_fold_stmt): Likewise.
20091         (visit_cond_stmt): Likewise.
20092         (ccp_visit_stmt): Likewise.
20093         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
20094         (constant_pointer_difference): Likewise.
20095         (associate_pointerplus): Likewise.
20096         (combine_conversions): Likewise.
20097         * tree-ssa-loop.h: Include wide-int.h.
20098         (struct tree_niter_desc): Change type of max to widest_int.
20099         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
20100         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
20101         (remove_redundant_iv_tests): Likewise.
20102         (canonicalize_loop_induction_variables): Likewise.
20103         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
20104         (constant_multiple_of): Take a widest_int pointer instead of
20105         a double_int pointer.
20106         (get_computation_aff): Use wide-int interfaces.
20107         (ptr_difference_cost): Likewise.
20108         (difference_cost): Likewise.
20109         (get_loop_invariant_expr_id): Likewise.
20110         (get_computation_cost_at): Likewise.
20111         (iv_elimination_compare_lt): Likewise.
20112         (may_eliminate_iv): Likewise.
20113         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
20114         instead of double_int.
20115         (max_loop_iterations): Likewise.
20116         (max_stmt_executions): Likewise.
20117         (estimated_stmt_executions): Likewise.
20118         * tree-ssa-loop-niter.c: Include wide-int-print.h.
20119         (split_to_var_and_offset): Use wide-int interfaces.
20120         (determine_value_range): Likewise.
20121         (bound_difference_of_offsetted_base): Likewise.
20122         (bounds_add): Take a widest_int instead of a double_int.
20123         (number_of_iterations_ne_max): Use wide-int interfaces.
20124         (number_of_iterations_ne): Likewise.
20125         (number_of_iterations_lt_to_ne): Likewise.
20126         (assert_loop_rolls_lt): Likewise.
20127         (number_of_iterations_lt): Likewise.
20128         (number_of_iterations_le): Likewise.
20129         (number_of_iterations_cond): Likewise.
20130         (number_of_iterations_exit): Likewise.
20131         (finite_loop_p): Likewise.
20132         (derive_constant_upper_bound_assign): Likewise.
20133         (derive_constant_upper_bound): Return a widest_int.
20134         (derive_constant_upper_bound_ops): Likewise.
20135         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
20136         (record_estimate): Take a widest_int rather than a double_int.
20137         (record_nonwrapping_iv): Use wide-int interfaces.
20138         (double_int_cmp): Delete.
20139         (wide_int_cmp): New.
20140         (bound_index): Take a widest_int rather than a double_int.
20141         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
20142         (maybe_lower_iteration_bound): Likewise.
20143         (estimate_numbers_of_iterations_loop): Likewise.
20144         (estimated_loop_iterations): Take a widest_int pointer than than
20145         a double_int pointer.
20146         (estimated_loop_iterations_int): Use wide-int interfaces.
20147         (max_loop_iterations): Take a widest_int pointer than than
20148         a double_int pointer.
20149         (max_loop_iterations_int): Use wide-int interfaces.
20150         (max_stmt_executions): Take a widest_int pointer than than
20151         a double_int pointer.
20152         (estimated_stmt_executions): Likewise.
20153         (n_of_executions_at_most): Use wide-int interfaces.
20154         (scev_probably_wraps_p): Likewise.
20155         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
20156         to real_to_integer.
20157         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
20158         interfaces.
20159         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
20160         double_ints.  Adjust for trailing_wide_ints <3> representation.
20161         (set_nonzero_bits): Likewise.
20162         (get_range_info): Return wide_ints rather than double_ints.
20163         Adjust for trailing_wide_ints <3> representation.
20164         (get_nonzero_bits): Likewise.
20165         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
20166         representation.
20167         * tree-ssanames.h (struct range_info_def): Replace min, max and
20168         nonzero_bits with a trailing_wide_ints <3>.
20169         (set_range_info): Use wide_int_refs rather than double_ints.
20170         (set_nonzero_bits): Likewise.
20171         (get_range_info): Return wide_ints rather than double_ints.
20172         (get_nonzero_bits): Likewise.
20173         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
20174         * tree-ssa-pre.c (phi_translate_1): Likewise.
20175         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
20176         (acceptable_pow_call): Likewise.
20177         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
20178         interfaces.
20179         (vn_reference_fold_indirect): Likewise.
20180         (vn_reference_maybe_forwprop_address): Likewise.
20181         (valueize_refs_1): Likewise.
20182         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
20183         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
20184         tree_int_cst_lt and tree_int_cst_le.
20185         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
20186         interfaces.
20187         (streamer_alloc_tree): Likewise.
20188         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
20189         (streamer_write_tree_header): Likewise.
20190         (streamer_write_integer_cst): Likewise.
20191         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
20192         (build_constructors): Likewise.
20193         (array_value_type): Likewise.
20194         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
20195         (vect_check_gather): Likewise.
20196         * tree-vect-generic.c (build_replicated_const): Likewise.
20197         (expand_vector_divmod): Likewise.
20198         * tree-vect-loop.c (vect_transform_loop): Likewise.
20199         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
20200         (vect_do_peeling_for_alignment): Likewise.
20201         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
20202         * tree-vrp.c: Include wide-int.h.
20203         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
20204         (extract_range_from_assert): Use wide-int interfaces.
20205         (vrp_int_const_binop): Likewise.
20206         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
20207         double_int pointers.
20208         (ranges_from_anti_range): Use wide-int interfaces.
20209         (quad_int_cmp): Delete.
20210         (quad_int_pair_sort): Likewise.
20211         (extract_range_from_binary_expr_1): Use wide-int interfaces.
20212         (extract_range_from_unary_expr_1): Likewise.
20213         (adjust_range_with_scev): Likewise.
20214         (masked_increment): Take and return wide_ints rather than double_ints.
20215         (register_edge_assert_for_2): Use wide-int interfaces.
20216         (check_array_ref): Likewise.
20217         (search_for_addr_array): Likewise.
20218         (maybe_set_nonzero_bits): Likewise.
20219         (union_ranges): Pass an integer of the correct type instead of
20220         using integer_one_node.
20221         (intersect_ranges): Likewise.
20222         (simplify_truth_ops_using_ranges): Likewise.
20223         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
20224         (range_fits_type_p): Likewise.
20225         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
20226         a bool.
20227         (simplify_conversion_using_ranges): Use wide-int interfaces.
20228         (simplify_float_conversion_using_ranges): Likewise.
20229         (vrp_finalize): Likewise.
20230         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
20231         (gimple_stringops_transform): Likewise.
20232         * varasm.c (decode_addr_const): Likewise.
20233         (const_hash_1): Likewise.
20234         (const_rtx_hash_1): Likewise
20235         (output_constant): Likewise.
20236         (array_size_for_constructor): Likewise.
20237         (output_constructor_regular_field): Likewise.
20238         (output_constructor_bitfield): Likewise.
20239         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
20240         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
20241         GENERATOR_FILEs.
20242         * gencheck.c: Define BITS_PER_UNIT.
20243         * wide-int.cc: New.
20244         * wide-int.h: New.
20245         * wide-int-print.cc: New.
20246         * wide-int-print.h: New.
20248 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20250         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
20252 2014-05-06  Richard Biener  <rguenther@suse.de>
20254         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
20255         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
20256         (TODO_verify_all): Adjust.
20257         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
20258         TODO_verify_stmts and TODO_verify_rtl_sharing.
20259         * bb-reorder.c: Likewise.
20260         * cfgexpand.c: Likewise.
20261         * cprop.c: Likewise.
20262         * cse.c: Likewise.
20263         * function.c: Likewise.
20264         * fwprop.c: Likewise.
20265         * gcse.c: Likewise.
20266         * gimple-ssa-isolate-paths.c: Likewise.
20267         * gimple-ssa-strength-reduction.c: Likewise.
20268         * ipa-split.c: Likewise.
20269         * loop-init.c: Likewise.
20270         * loop-unroll.c: Likewise.
20271         * lower-subreg.c: Likewise.
20272         * modulo-sched.c: Likewise.
20273         * postreload-gcse.c: Likewise.
20274         * predict.c: Likewise.
20275         * recog.c: Likewise.
20276         * sched-rgn.c: Likewise.
20277         * store-motion.c: Likewise.
20278         * tracer.c: Likewise.
20279         * trans-mem.c: Likewise.
20280         * tree-call-cdce.c: Likewise.
20281         * tree-cfg.c: Likewise.
20282         * tree-cfgcleanup.c: Likewise.
20283         * tree-complex.c: Likewise.
20284         * tree-eh.c: Likewise.
20285         * tree-emutls.c: Likewise.
20286         * tree-if-conv.c: Likewise.
20287         * tree-into-ssa.c: Likewise.
20288         * tree-loop-distribution.c: Likewise.
20289         * tree-object-size.c: Likewise.
20290         * tree-parloops.c: Likewise.
20291         * tree-pass.h: Likewise.
20292         * tree-sra.c: Likewise.
20293         * tree-ssa-ccp.c: Likewise.
20294         * tree-ssa-copy.c: Likewise.
20295         * tree-ssa-copyrename.c: Likewise.
20296         * tree-ssa-dce.c: Likewise.
20297         * tree-ssa-dom.c: Likewise.
20298         * tree-ssa-dse.c: Likewise.
20299         * tree-ssa-forwprop.c: Likewise.
20300         * tree-ssa-ifcombine.c: Likewise.
20301         * tree-ssa-loop-ch.c: Likewise.
20302         * tree-ssa-loop-ivcanon.c: Likewise.
20303         * tree-ssa-loop.c: Likewise.
20304         * tree-ssa-math-opts.c: Likewise.
20305         * tree-ssa-phiopt.c: Likewise.
20306         * tree-ssa-phiprop.c: Likewise.
20307         * tree-ssa-pre.c: Likewise.
20308         * tree-ssa-reassoc.c: Likewise.
20309         * tree-ssa-sink.c: Likewise.
20310         * tree-ssa-strlen.c: Likewise.
20311         * tree-ssa-tail-merge.c: Likewise.
20312         * tree-ssa-uncprop.c: Likewise.
20313         * tree-switch-conversion.c: Likewise.
20314         * tree-tailcall.c: Likewise.
20315         * tree-vect-generic.c: Likewise.
20316         * tree-vectorizer.c: Likewise.
20317         * tree-vrp.c: Likewise.
20318         * tsan.c: Likewise.
20319         * var-tracking.c: Likewise.
20320         * bt-load.c: Likewise.
20321         * cfgcleanup.c: Likewise.
20322         * combine-stack-adj.c: Likewise.
20323         * combine.c: Likewise.
20324         * compare-elim.c: Likewise.
20325         * config/epiphany/resolve-sw-modes.c: Likewise.
20326         * config/i386/i386.c: Likewise.
20327         * config/mips/mips.c: Likewise.
20328         * config/s390/s390.c: Likewise.
20329         * config/sh/sh_treg_combine.cc: Likewise.
20330         * config/sparc/sparc.c: Likewise.
20331         * dce.c: Likewise.
20332         * dse.c: Likewise.
20333         * final.c: Likewise.
20334         * ifcvt.c: Likewise.
20335         * mode-switching.c: Likewise.
20336         * passes.c: Likewise.
20337         * postreload.c: Likewise.
20338         * ree.c: Likewise.
20339         * reg-stack.c: Likewise.
20340         * regcprop.c: Likewise.
20341         * regrename.c: Likewise.
20342         * web.c: Likewise.
20344 2014-05-06  Richard Biener  <rguenther@suse.de>
20346         PR middle-end/61070
20347         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
20348         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
20350 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
20352         PR ipa/60965
20353         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
20355 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
20356             Tom de Vries  <tom@codesourcery.com>
20358         * target.def (call_fusage_contains_non_callee_clobbers): New
20359         DEFHOOKPOD.
20360         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
20361         Hooks to @menu.
20362         (@node Miscellaneous Register Hooks): New node.
20363         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
20364         * doc/tm.texi: Regenerate.
20366 2014-05-05  Marek Polacek  <polacek@redhat.com>
20368         PR driver/61065
20369         * opts.c (common_handle_option): Call error_at instead of warning_at.
20371 2014-05-05  Richard Biener  <rguenther@suse.de>
20373         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
20374         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
20375         under the TODO_verify_il umbrella.
20377 2014-05-05  Richard Biener  <rguenther@suse.de>
20379         * passes.c (execute_function_todo): Move TODO_verify_flow under
20380         the TODO_verify_ul umbrella.
20382 2014-05-05  Richard Biener  <rguenther@suse.de>
20384         PR middle-end/61010
20385         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
20386         X & CST away from a CST that is the mask of a mode.
20388 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20390         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
20391         int argument to enum machine_mode.
20392         (picochip_class_max_nregs): Ditto.
20393         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
20394         (picochip_class_max_nregs): Ditto.
20396 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20398         * target.def: Add new target hook.
20399         * doc/tm.texi: Regenerate.
20400         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
20401         * targhooks.c (default_keep_leaf_when_profiled): New function.
20403         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
20404         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
20406 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
20408         PR tree-optimization/60363
20409         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
20410         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
20411         (update_destination_phis): New parameter.
20412         (create_edge_and_update_destination_phis): Ditto.
20413         (ssa_fix_duplicate_block_edges): Pass new arguments.
20414         (thread_single_edge): Ditto.
20416 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
20418         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
20419         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
20420         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
20421         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
20422         Use RS6000_BTM_HARD_FLOAT.
20423         (BU_MISC_2): Likewise.
20424         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20425         RS6000_BTM_HARD_FLOAT.
20426         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
20427         is explicitly used.
20428         (rs6000_invalid_builtin): Add hard floating builtin support.
20429         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
20430         hard float builtins.
20431         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
20433 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20435         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
20436         Add missing function* argument.
20438 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
20440         * lra-constraints.c (valid_address_p): Move earlier in file.
20441         Add a constraint argument to the address_info version.
20442         (satisfies_memory_constraint_p): New function.
20443         (satisfies_address_constraint_p): Likewise.
20444         (process_alt_operands, curr_insn_transform): Use them.
20445         (process_address): Pass the constraint to valid_address_p when
20446         checking address operands.
20448 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
20450         * config/mips/mips.c (mips_isa_rev): New variable.
20451         (mips_set_architecture): Set it.
20452         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
20453         from mips_isa_rev.
20454         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
20455         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
20456         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
20457         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
20458         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
20459         conditions in terms of mips_isa_rev.
20460         (mips_isa_rev): Declare.
20462 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20464         * config/sh/sh-mem.cc: Use tabs instead of spaces.
20465         (prob_unlikely, prob_likely): Make variables const.
20467 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
20469         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
20471 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20473         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
20475 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20477         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
20478         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
20479         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
20480         functions.
20481         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
20482         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
20483         sh_pass_in_reg_p.
20484         Replace usage of ROUND_REG with sh_round_reg.
20485         Use CEIL instead of ROUND_ADVANCE.
20487 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
20489         PR target/61026
20490         * config/sh/sh.c: Include stdlib headers before everything else.
20492 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
20494         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
20495         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
20496         (gimplify_adjust_omp_clauses): Simd region is never
20497         directly nested in combined parallel.  Instead, for linear
20498         with copyin/copyout, if in combined for simd loop, make decl
20499         firstprivate/lastprivate on OMP_FOR.
20500         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
20501         expand_omp_for_static_chunk): When setting endvar, also set
20502         fd->loop.v to the same value.
20504 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
20506         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
20508 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
20510         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
20511         expression.
20513 2014-05-02  Marek Polacek  <polacek@redhat.com>
20515         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
20517 2014-05-02  Kito Cheng  <kito@0xlab.org>
20519         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
20520         to a C expression marco.
20521         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
20522         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
20523         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
20524         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
20525         HONOR_REG_ALLOC_ORDER.
20526         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
20528 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20530         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
20532 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20534         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
20536 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
20538         * tree-if-conv.c (is_cond_scalar_reduction): New function.
20539         (convert_scalar_cond_reduction): Likewise.
20540         (predicate_scalar_phi): Add recognition and transformation
20541         of simple conditioanl reduction to be vectorizable.
20543 2014-05-01  Marek Polacek  <polacek@redhat.com>
20545         PR c/43245
20546         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
20548 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
20550         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
20551         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
20552         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
20553         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
20554         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
20555         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
20556         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
20557         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
20559 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
20561         * config/arc/arc.opt (mlra): Move comment above option name
20562         to avoid mis-parsing as language options.
20564 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20566         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
20567         * config/sol2.h: ... here.
20568         * config/sol2-10.h: Remove.
20570         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
20571         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
20572         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
20573         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
20574         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
20575         * config/sol2.h: ... here.
20576         (SECTION_NAME_FORMAT): Don't redefine.
20577         (STARTFILE_ARCH32_SPEC): Rename to ...
20578         (STARTFILE_ARCH_SPEC): ... this.
20579         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
20580         * config/sparc/sol2.h: ... here.
20581         (SECTION_NAME_FORMAT): Don't undef.
20582         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
20583         (SUBTARGET_EXTRA_SPECS): Remove.
20584         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
20586         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
20587         (MD_STARTFILE_PREFIX): Remove.
20588         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
20589         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
20590         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
20591         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
20592         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
20593         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
20594         * config/i386/sol2.h: ... here.
20595         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
20596         * config/i386/sol2-bi.h: Remove.
20597         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
20598         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
20600         * config/i386/t-sol2-64: Rename to ...
20601         * config/i386/t-sol2: ... this.
20602         * config/sparc/t-sol2-64: Rename to ...
20603         * config/sparc/t-sol2: ... this.
20605         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
20606         sol2_tm_file_head, sol2_tm_file_tail.
20607         Include ${cpu_type}/sol2.h before sol2.h.
20608         Remove sol2-10.h.
20609         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
20610         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
20611         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
20612         Reflect i386/t-sol2-64 renaming.
20613         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
20614         Reflect sparc/t-sol2-64 renaming.
20616 2014-04-30  Richard Biener  <rguenther@suse.de>
20618         * passes.c (execute_function_todo): Move TODO_verify_stmts
20619         and TODO_verify_ssa under the TODO_verify_il umbrella.
20620         * tree-ssa.h (verify_ssa): Adjust prototype.
20621         * tree-ssa.c (verify_ssa): Add parameter to tell whether
20622         we should verify SSA operands.
20623         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
20624         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
20625         whether we should verify whether not throwing stmts have EH info.
20626         * graphite-scop-detection.c (create_sese_edges): Adjust.
20627         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
20628         * tree-eh.c (lower_try_finally_switch): Do not add the
20629         default case label twice.
20631 2014-04-30  Marek Polacek  <polacek@redhat.com>
20633         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
20634         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
20635         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
20636         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
20638 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
20640         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
20641         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
20642         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
20643         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
20644         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
20645         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
20646         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
20647         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
20649 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
20651         * tree-cfg.c (dump_function_to_file): Dump the return type of
20652         functions, in a line to itself before the function body, mimicking
20653         the layout of a C function.
20655 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
20657         PR tree-optimization/60971
20658         * tree-tailcall.c (process_assignment): Reject conversions which
20659         reduce precision.
20661 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
20663         * calls.c (initialize_argument_information): Always treat
20664         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
20665         (expand_call): Likewise.
20666         (emit_library_call_calue_1): Likewise.
20667         * expr.c (PUSH_ARGS_REVERSED): Do not define.
20668         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
20669         code accordingly.
20671 2014-04-29  Nick Clifton  <nickc@redhat.com>
20673         * config/msp430/msp430.md (umulsidi): Fix typo.
20674         (mulhisi3): Enable even inside interrupt handlers.
20675         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
20676         bigger return address pushed in large mode.
20678 2014-04-29  Nick Clifton  <nickc@redhat.com>
20680         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
20681         (arc_init_reg_tables): Use a machine_mode enum to iterate over
20682         available modes.
20683         * config/m32r/m32r.c (init_reg_tables): Likewise.
20684         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
20685         enum to hold the modes.
20687 2014-04-29  Richard Biener  <rguenther@suse.de>
20689         * dominance.c (free_dominance_info): Add overload with
20690         function parameter.
20691         (dom_info_state): Likewise.
20692         (dom_info_available_p): Likewise.
20693         * basic-block.h (free_dominance_info, dom_info_state,
20694         dom_info_available_p): Declare overloads.
20695         * passes.c (execute_function_todo): Verify that verifiers
20696         don't change dominator info state.  Drop dominator info
20697         for IPA pass invocations.
20698         * cgraph.c (release_function_body): Restore asserts that
20699         dominator information is released.
20701 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
20703         * doc/invoke.texi: Fix typo.
20704         * tree-vrp.c: Fix typos.
20705         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
20707 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20709         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
20711 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
20713         * config/aarch64/aarch64-builtins.c
20714         (aarch64_types_storestruct_lane_qualifiers): New.
20715         (TYPES_STORESTRUCT_LANE): Likewise.
20716         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
20717         (st3_lane): Likewise.
20718         (st4_lane): Likewise.
20719         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
20720         (vec_store_lanesci_lane<mode>): Likewise.
20721         (vec_store_lanesxi_lane<mode>): Likewise.
20722         (aarch64_st2_lane<VQ:mode>): Likewise.
20723         (aarch64_st3_lane<VQ:mode>): Likewise.
20724         (aarch64_st4_lane<VQ:mode>): Likewise.
20725         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
20726         * config/aarch64/arm_neon.h
20727         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
20728         use new macro arguments.
20729         (__ST3_LANE_FUNC): Likewise.
20730         (__ST4_LANE_FUNC): Likewise.
20731         * config/aarch64/iterators.md (V_TWO_ELEM): New.
20732         (V_THREE_ELEM): Likewise.
20733         (V_FOUR_ELEM): Likewise.
20735 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
20737         * doc/gimple.texi: Replace the description of the now-defunct
20738         union gimple_statement_d with a diagram showing the
20739         gimple_statement_base class hierarchy and its relationships to
20740         the GSS_ and GIMPLE_ enums.
20742 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
20744         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
20745         * config/aarch64/aarch64.c
20746         (aarch64_cannot_change_mode_class): Weaken conditions.
20747         (aarch64_modes_tieable_p): New.
20748         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
20750 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
20752         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20753         (loadsync_<mode>): Change mode.
20754         (load_quadpti, store_quadpti): New.
20755         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20756         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20758 2014-04-28  Martin Jambor  <mjambor@suse.cz>
20760         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
20761         same alias type as the original statement.
20762         (subreplacement_assignment_data): New type.
20763         (handle_unscalarized_data_in_subtree): New type of parameter,
20764         generate new memory accesses with same alias type as the original
20765         statement.
20766         (load_assign_lhs_subreplacements): Likewise.
20767         (sra_modify_constructor_assign): Generate new memory accesses with
20768         same alias type as the original statement.
20770 2014-04-28  Richard Biener  <rguenther@suse.de>
20772         * tree-pass.h (TODO_verify_il): Define.
20773         (TODO_verify_all): Complete properly.
20774         * passes.c (execute_function_todo): Move existing loop-closed
20775         SSA verification under TODO_verify_il.
20776         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
20777         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
20778         Fix tree sharing issue.
20780 2014-04-28  Richard Biener  <rguenther@suse.de>
20782         PR middle-end/60092
20783         * builtins.def (DEF_C11_BUILTIN): Add.
20784         (BUILT_IN_ALIGNED_ALLOC): Likewise.
20785         * coretypes.h (enum function_class): Add function_c11_misc.
20786         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
20787         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
20788         (call_may_clobber_ref_p_1): Likewise.
20789         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20790         (mark_all_reaching_defs_necessary_1): Likewise.
20791         (propagate_necessity): Likewise.
20792         (eliminate_unnecessary_stmts): Likewise.
20793         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
20795 2014-04-28  Richard Biener  <rguenther@suse.de>
20797         * tree-vrp.c (vrp_var_may_overflow): Remove.
20798         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
20799         with overflow immediately bump to one before that value and
20800         let iteration figure out overflow status.
20802 2014-04-28  Richard Biener  <rguenther@suse.de>
20804         * configure.ac: Do valgrind header checks unconditionally.
20805         Add --enable-valgrind-annotations.
20806         * system.h: Guard valgrind header inclusion with
20807         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
20808         * alloc-pool.c (pool_alloc, pool_free): Use
20809         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
20810         to guard possibly dead code.
20811         * config.in: Regenerated.
20812         * configure: Likewise.
20814 2014-04-28  Jeff Law  <law@redhat.com>
20816         PR tree-optimization/60902
20817         * tree-ssa-threadedge.c
20818         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
20819         over real defs when invalidating outputs from statements that do not
20820         produce useful outputs for threading.
20822 2014-04-28  Richard Biener  <rguenther@suse.de>
20824         PR tree-optimization/60979
20825         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
20826         SCOPs that end in a block with a successor with abnormal
20827         predecessors.
20829 2014-04-28  Richard Biener  <rguenther@suse.de>
20831         * tree-pass.h (execute_pass_list): Adjust prototype.
20832         * passes.c (pass_manager::execute_early_local_passes): Adjust.
20833         (do_per_function): Change callback signature, push all actual
20834         work to the callbals.
20835         (do_per_function_toporder): Likewise.
20836         (execute_function_dump): Adjust.
20837         (execute_function_todo): Likewise.
20838         (clear_last_verified): Likewise.
20839         (verify_curr_properties): Likewise.
20840         (update_properties_after_pass): Likewise.
20841         (execute_pass_list_1): Split out from ...
20842         (execute_pass_list): ... here.  Adjust.
20843         (execute_ipa_pass_list): Likewise.
20844         * cgraphunit.c (cgraph_add_new_function): Adjust.
20845         (analyze_function): Likewise.
20846         (expand_function): Likewise.
20847         * cgraph.c (release_function_body): Free dominance info
20848         here instead of asserting it was magically freed elsewhere.
20850 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
20852         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
20853         * configure: Regenerate.
20854         * config/sparc/sparc.opt (muser-mode): New option.
20855         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
20856         for LEON3.
20857         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
20858         * doc/invoke.texi (SPARC options): Document -muser-mode.
20860 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
20862         * cselib.c (find_slot_memmode): Delete.
20863         (cselib_hasher): Change compare_type to a struct.
20864         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
20865         constants.
20866         (preserve_constants_and_equivs): Adjust for new compare_type.
20867         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
20868         (wrap_constant): Delete.
20869         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
20871 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
20873         * doc/install.texi (Building with profile feedback): Remove
20874         outdated sentence.
20876 2014-04-26  Tom de Vries  <tom@codesourcery.com>
20878         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
20879         array accesses.
20881 2014-04-25  Cary Coutant  <ccoutant@google.com>
20883         PR debug/60929
20884         * dwarf2out.c (should_move_die_to_comdat): A type definition
20885         can contain a subprogram definition, but don't move it to a
20886         comdat unit.
20887         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
20888         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
20889         from original DIE.
20890         (clone_tree_hash): Rename to...
20891         (clone_tree_partial): ...this; change callers.  Copy
20892         DW_TAG_subprogram DIEs as declarations.
20893         (copy_decls_walk): Don't copy children of a declaration into a
20894         type unit.
20896 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
20898         PR target/60969
20899         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
20900         alternative 12.
20902 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
20904         * config/arm/predicates.md (call_insn_operand): Add long_call check.
20905         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
20906         reg for long_call.
20907         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
20908         restriction.
20910 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20912         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
20914 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20916         PR tree-optimization/60930
20917         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
20918         creating a multiply candidate by folding two constant
20919         multiplicands when the result overflows.
20921 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
20923         PR tree-optimization/60960
20924         * tree-vect-generic.c (expand_vector_operation): Only call
20925         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
20927 2014-04-25  Tom de Vries  <tom@codesourcery.com>
20929         * expr.c (clobber_reg_mode): New function.
20930         * expr.h (clobber_reg): New function.
20932 2014-04-25  Tom de Vries  <tom@codesourcery.com>
20934         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
20935         clobbers.
20937 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
20938             Tom de Vries  <tom@codesourcery.com>
20940         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
20941         handle.
20942         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
20943         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
20944         new argument to find_all_hard_reg_sets call.
20946 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20948         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
20949         Use HOST_WIDE_INT_C for mask literal.
20950         (aarch_rev16_shleft_mask_imm_p): Likewise.
20952 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
20954         PR target/60941
20955         * config/sparc/sparc.md (ashlsi3_extend): Delete.
20957 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
20959         PR preprocessor/56540
20960         * config/i386/i386-c.c (ix86_target_macros): Define
20961         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
20963 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20965         * configure.ac (tga_func): Remove.
20966         (LIB_TLS_SPEC): Remove.
20967         * configure: Regenerate.
20968         * config.in: Regenerate.
20969         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
20971 2014-04-25  Richard Biener  <rguenther@suse.de>
20973         PR ipa/60912
20974         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
20975         call stmt use/clobber sets during stmt walk instead of
20976         walking the possibly incomplete set of caller edges.
20978 2014-04-25  Richard Biener  <rguenther@suse.de>
20980         PR ipa/60911
20981         * passes.c (apply_ipa_transforms): Inline into only caller ...
20982         (execute_one_pass): ... here.  Properly bring in function
20983         bodies for nodes we want to apply IPA transforms to.
20985 2014-04-24  Cong Hou  <congh@google.com>
20987         PR tree-optimization/60896
20988         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
20989         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
20990         (vect_mark_pattern_stmts): Set the def type of all statements in
20991         PATTERN_DEF_SEQ as vect_internal_def.
20993 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20995         * doc/extend.texi (PowerPC Built-in Functions): Document new
20996         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
20997         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
20999         * config/rs6000/predicates.md (const_0_to_3_operand): New
21000         predicate to match 0..3 integer constants.
21002         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
21003         to support adding miscellaneous builtin functions.
21004         (BU_DFP_MISC_2): Likewise.
21005         (BU_P7_MISC_1): Likewise.
21006         (BU_P7_MISC_2): Likewise.
21007         (BU_P8V_MISC_3): Likewise.
21008         (BU_MISC_1): Likewise.
21009         (BU_MISC_2): Likewise.
21010         (DIVWE): Add extended divide builtin functions.
21011         (DIVWEO): Likewise.
21012         (DIVWEU): Likewise.
21013         (DIVWEUO): Likewise.
21014         (DIVDE): Likewise.
21015         (DIVDEO): Likewise.
21016         (DIVDEU): Likewise.
21017         (DIVDEUO): Likewise.
21018         (DXEX): Add decimal floating-point builtin functions.
21019         (DXEXQ): Likewise.
21020         (DDEDPD): Likewise.
21021         (DDEDPDQ): Likewise.
21022         (DENBCD): Likewise.
21023         (DENBCDQ): Likewise.
21024         (DIEX): Likewise.
21025         (DIEXQ): Likewise.
21026         (DSCLI): Likewise.
21027         (DSCLIQ): Likewise.
21028         (DSCRI): Likewise.
21029         (DSCRIQ): Likewise.
21030         (CDTBCD): Add new BCD builtin functions.
21031         (CBCDTD): Likewise.
21032         (ADDG6S): Likewise.
21033         (BCDADD): Likewise.
21034         (BCDADD_LT): Likewise.
21035         (BCDADD_EQ): Likewise.
21036         (BCDADD_GT): Likewise.
21037         (BCDADD_OV): Likewise.
21038         (BCDSUB): Likewise.
21039         (BCDSUB_LT): Likewise.
21040         (BCDSUB_EQ): Likewise.
21041         (BCDSUB_GT): Likewise.
21042         (BCDSUB_OV): Likewise.
21043         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
21044         (UNPACK_TD): Likewise.
21045         (PACK_TF): Likewise.
21046         (UNPACK_TF): Likewise.
21047         (UNPACK_TF_0): Likewise.
21048         (UNPACK_TF_1): Likewise.
21049         (PACK_V1TI): Likewise.
21050         (UNPACK_V1TI): Likewise.
21052         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
21053         support for decimal floating point builtin functions.
21054         (rs6000_expand_ternop_builtin): Add checks for the new builtin
21055         functions that take constant arguments.
21056         (rs6000_invalid_builtin): Add decimal floating point builtin support.
21057         (rs6000_init_builtins): Setup long double, _Decimal64, and
21058         _Decimal128 types for new builtin functions.
21059         (builtin_function_type): Set the unsigned flags appropriately for
21060         the new builtin functions.
21061         (rs6000_opt_masks): Add support for decimal floating point builtin
21062         functions.
21064         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
21065         floating point builtin functions.
21066         (RS6000_BTM_COMMON): Likewise.
21067         (RS6000_BTI_long_double): Likewise.
21068         (RS6000_BTI_dfloat64): Likewise.
21069         (RS6000_BTI_dfloat128): Likewise.
21070         (long_double_type_internal_node): Likewise.
21071         (dfloat64_type_internal_node): Likewise.
21072         (dfloat128_type_internal_node): Likewise.
21074         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
21075         2.07 bcd arithmetic instructions.
21076         (UNSPEC_BCDSUB): Likewise.
21077         (UNSPEC_BCD_OVERFLOW): Likewise.
21078         (UNSPEC_BCD_ADD_SUB): Likewise.
21079         (bcd_add_sub): Likewise.
21080         (BCD_TEST): Likewise.
21081         (bcd<bcd_add_sub>): Likewise.
21082         (bcd<bcd_add_sub>_test): Likewise.
21083         (bcd<bcd_add_sub>_test2): Likewise.
21084         (bcd<bcd_add_sub>_<code>): Likewise.
21085         (peephole2 for combined bcd ops): Likewise.
21087         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
21088         decimal floating point builtin functions.
21089         (UNSPEC_DENBCD): Likewise.
21090         (UNSPEC_DXEX): Likewise.
21091         (UNSPEC_DIEX): Likewise.
21092         (UNSPEC_DSCLI): Likewise.
21093         (UNSPEC_DSCRI): Likewise.
21094         (D64_D128): Likewise.
21095         (dfp_suffix): Likewise.
21096         (dfp_ddedpd_<mode>): Likewise.
21097         (dfp_denbcd_<mode>): Likewise.
21098         (dfp_dxex_<mode>): Likewise.
21099         (dfp_diex_<mode>): Likewise.
21100         (dfp_dscli_<mode>): Likewise.
21101         (dfp_dscri_<mode>): Likewise.
21103         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
21104         builtin functions.
21105         (UNSPEC_CDTBCD): Likewise.
21106         (UNSPEC_CBCDTD): Likewise.
21107         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
21108         (UNSPEC_DIVEO): Likewise.
21109         (UNSPEC_DIVEU): Likewise.
21110         (UNSPEC_DIVEUO): Likewise.
21111         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
21112         pack/unpack 128-bit types.
21113         (UNSPEC_PACK_128BIT): Likewise.
21114         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
21115         (udiv<mode>3): Use idiv_ldiv mode attribute.
21116         (div<mode>3): Likewise.
21117         (addg6s): Add new BCD builtin functions.
21118         (cdtbcd): Likewise.
21119         (cbcdtd): Likewise.
21120         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
21121         (div_extend): Likewise.
21122         (div<div_extend>_<mode>"): Likewise.
21123         (FP128_64): Add support for new builtin functions to pack/unpack
21124         128-bit types.
21125         (unpack<mode>): Likewise.
21126         (unpacktf_0): Likewise.
21127         (unpacktf_1): Likewise.
21128         (unpack<mode>_dm): Likewise.
21129         (unpack<mode>_nodm): Likewise.
21130         (pack<mode>): Likewise.
21131         (unpackv1ti): Likewise.
21132         (packv1ti): Likewise.
21134 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
21136         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
21137         is disabled.
21139 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
21141         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
21142         * gimplify.c (omp_is_private): Change last argument's type to int.
21143         Only diagnose lastprivate if the simd argument is 1, only diagnose
21144         linear if the simd argument is 2.
21145         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
21146         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
21147         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
21148         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
21149         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
21150         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21151         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
21152         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
21153         * tree-nested.c (convert_nonlocal_omp_clauses,
21154         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
21156 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
21158         PR target/60822
21159         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
21160         operand 1.
21162 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
21164         * flag-types.h (enum ivar_visibility): Add.
21166 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
21168         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
21169         function * argument.
21171 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
21173         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
21175 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
21176             Tom de Vries  <tom@codesourcery.com>
21178         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
21179         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
21180         reg-note.
21181         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
21182         * emit-rtl.c (try_split): Same.
21184 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
21185             Tom de Vries  <tom@codesourcery.com>
21187         * common.opt (fuse-caller-save): New option.
21189 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
21191         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
21192         elements for big-endian.
21194 2014-04-24  Richard Biener  <rguenther@suse.de>
21196         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
21197         during TER and instead use the sepops interface for expanding
21198         non-GIMPLE_SINGLE_RHS.
21200 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21202         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
21203         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
21205 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21207         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
21208         assembler 64-bit option.
21209         * configure: Regenerate.
21211 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21213         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
21214         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
21215         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
21216         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
21217         (TARGET_CRYPTO): Take TARGET_SIMD into account.
21219 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21221         * config/aarch64/aarch64-builtins.c
21222         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
21223         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
21224         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
21225         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
21226         builtins.
21227         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
21228         (Vrevsuff): New mode attribute.
21230 2014-04-24  Terry Guo  <terry.guo@arm.com>
21232         * config/arm/arm.h (machine_function): Define variable
21233         after_arm_reorg here.
21234         * config/arm/arm.c (after_arm_reorg): Remove the definition.
21235         (arm_split_constant): Update the way to access variable
21236         after_arm_reorg.
21237         (arm_reorg): Ditto.
21238         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
21240 2014-04-23  Tom de Vries  <tom@codesourcery.com>
21242         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
21244 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
21246         * is-a.h: Update comments to reflect the following changes to the
21247         "pointerness" of the API, making the template parameter match the
21248         return type, allowing use of is-a.h with typedefs of pointers.
21249         (is_a_helper::cast): Return a T rather then a pointer to a T, so
21250         that the return type matches the parameter to the is_a_helper.
21251         (as_a): Likewise.
21252         (dyn_cast): Likewise.
21254         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
21255         pointer from the is-a.h API.
21257         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
21258         (is_a_helper <cgraph_node *>::test): ...this, matching change to
21259         is-a.h API.
21260         (is_a_helper <varpool_node>::test): Likewise, convert to...
21261         (is_a_helper <varpool_node *>::test): ...this.
21263         (varpool_first_variable): Update for removal of implicit pointer
21264         from the is-a.h API.
21265         (varpool_next_variable): Likewise.
21266         (varpool_first_static_initializer): Likewise.
21267         (varpool_next_static_initializer): Likewise.
21268         (varpool_first_defined_variable): Likewise.
21269         (varpool_next_defined_variable): Likewise.
21270         (cgraph_first_defined_function): Likewise.
21271         (cgraph_next_defined_function): Likewise.
21272         (cgraph_first_function): Likewise.
21273         (cgraph_next_function): Likewise.
21274         (cgraph_first_function_with_gimple_body): Likewise.
21275         (cgraph_next_function_with_gimple_body): Likewise.
21276         (cgraph_alias_target): Likewise.
21277         (varpool_alias_target): Likewise.
21278         (cgraph_function_or_thunk_node): Likewise.
21279         (varpool_variable_node): Likewise.
21280         (symtab_real_symbol_p): Likewise.
21281         * cgraphunit.c (referred_to_p): Likewise.
21282         (analyze_functions): Likewise.
21283         (handle_alias_pairs): Likewise.
21284         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
21285         * gimple-ssa.h (gimple_vuse_op): Likewise.
21286         (gimple_vdef_op): Likewise.
21287         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
21288         * gimple.c (gimple_build_asm_1): Likewise.
21289         (gimple_build_try): Likewise.
21290         (gimple_build_resx): Likewise.
21291         (gimple_build_eh_dispatch): Likewise.
21292         (gimple_build_omp_for): Likewise.
21293         (gimple_omp_for_set_clauses): Likewise.
21295         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
21296         (is_a_helper <gimple_statement_asm *>::test): ...this.
21297         (is_a_helper <gimple_statement_bind>::test): Convert to...
21298         (is_a_helper <gimple_statement_bind *>::test): ...this.
21299         (is_a_helper <gimple_statement_call>::test): Convert to...
21300         (is_a_helper <gimple_statement_call *>::test): ...this.
21301         (is_a_helper <gimple_statement_catch>::test): Convert to...
21302         (is_a_helper <gimple_statement_catch *>::test): ...this.
21303         (is_a_helper <gimple_statement_resx>::test): Convert to...
21304         (is_a_helper <gimple_statement_resx *>::test): ...this.
21305         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
21306         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
21307         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
21308         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
21309         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
21310         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
21311         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
21312         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
21313         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
21314         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
21315         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
21316         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
21317         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
21318         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
21319         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
21320         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
21321         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
21322         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
21323         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
21324         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
21325         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
21326         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
21327         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
21328         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
21329         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
21330         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
21331         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
21332         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
21333         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
21334         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
21335         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
21336         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
21337         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
21338         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
21339         (is_a_helper <gimple_statement_phi>::test): Convert to...
21340         (is_a_helper <gimple_statement_phi *>::test): ...this.
21341         (is_a_helper <gimple_statement_transaction>::test): Convert to...
21342         (is_a_helper <gimple_statement_transaction *>::test): ...this.
21343         (is_a_helper <gimple_statement_try>::test): Convert to...
21344         (is_a_helper <gimple_statement_try *>::test): ...this.
21345         (is_a_helper <gimple_statement_wce>::test): Convert to...
21346         (is_a_helper <gimple_statement_wce *>::test): ...this.
21347         (is_a_helper <const gimple_statement_asm>::test): Convert to...
21348         (is_a_helper <const gimple_statement_asm *>::test): ...this.
21349         (is_a_helper <const gimple_statement_bind>::test): Convert to...
21350         (is_a_helper <const gimple_statement_bind *>::test): ...this.
21351         (is_a_helper <const gimple_statement_call>::test): Convert to...
21352         (is_a_helper <const gimple_statement_call *>::test): ...this.
21353         (is_a_helper <const gimple_statement_catch>::test): Convert to...
21354         (is_a_helper <const gimple_statement_catch *>::test): ...this.
21355         (is_a_helper <const gimple_statement_resx>::test): Convert to...
21356         (is_a_helper <const gimple_statement_resx *>::test): ...this.
21357         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
21358         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
21359         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
21360         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
21361         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
21362         Convert to...
21363         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
21364         ...this.
21365         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
21366         Convert to...
21367         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
21368         ...this.
21369         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
21370         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
21371         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
21372         to...
21373         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
21374         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
21375         to...
21376         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
21377         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
21378         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
21379         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
21380         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
21381         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
21382         to...
21383         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
21384         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
21385         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
21386         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
21387         to...
21388         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
21389         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
21390         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
21391         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
21392         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
21393         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
21394         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
21395         (is_a_helper <const gimple_statement_phi>::test): Convert to...
21396         (is_a_helper <const gimple_statement_phi *>::test): ...this.
21397         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
21398         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
21399         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
21400         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
21401         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
21402         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
21403         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
21404         to...
21405         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
21406         ...this.
21407         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
21408         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
21410         (gimple_use_ops): Update for removal of implicit pointer from the
21411         is-a.h API.
21412         (gimple_set_use_ops): Likewise.
21413         (gimple_vuse): Likewise.
21414         (gimple_vdef): Likewise.
21415         (gimple_vuse_ptr): Likewise.
21416         (gimple_vdef_ptr): Likewise.
21417         (gimple_set_vuse): Likewise.
21418         (gimple_set_vdef): Likewise.
21419         (gimple_omp_return_set_lhs): Likewise.
21420         (gimple_omp_return_lhs): Likewise.
21421         (gimple_omp_return_lhs_ptr): Likewise.
21422         (gimple_call_fntype): Likewise.
21423         (gimple_call_set_fntype): Likewise.
21424         (gimple_call_set_internal_fn): Likewise.
21425         (gimple_call_use_set): Likewise.
21426         (gimple_call_clobber_set): Likewise.
21427         (gimple_bind_vars): Likewise.
21428         (gimple_bind_set_vars): Likewise.
21429         (gimple_bind_body_ptr): Likewise.
21430         (gimple_bind_set_body): Likewise.
21431         (gimple_bind_add_stmt): Likewise.
21432         (gimple_bind_block): Likewise.
21433         (gimple_bind_set_block): Likewise.
21434         (gimple_asm_ninputs): Likewise.
21435         (gimple_asm_noutputs): Likewise.
21436         (gimple_asm_nclobbers): Likewise.
21437         (gimple_asm_nlabels): Likewise.
21438         (gimple_asm_input_op): Likewise.
21439         (gimple_asm_input_op_ptr): Likewise.
21440         (gimple_asm_output_op): Likewise.
21441         (gimple_asm_output_op_ptr): Likewise.
21442         (gimple_asm_set_output_op): Likewise.
21443         (gimple_asm_clobber_op): Likewise.
21444         (gimple_asm_set_clobber_op): Likewise.
21445         (gimple_asm_label_op): Likewise.
21446         (gimple_asm_set_label_op): Likewise.
21447         (gimple_asm_string): Likewise.
21448         (gimple_catch_types): Likewise.
21449         (gimple_catch_types_ptr): Likewise.
21450         (gimple_catch_handler_ptr): Likewise.
21451         (gimple_catch_set_types): Likewise.
21452         (gimple_catch_set_handler): Likewise.
21453         (gimple_eh_filter_types): Likewise.
21454         (gimple_eh_filter_types_ptr): Likewise.
21455         (gimple_eh_filter_failure_ptr): Likewise.
21456         (gimple_eh_filter_set_types): Likewise.
21457         (gimple_eh_filter_set_failure): Likewise.
21458         (gimple_eh_must_not_throw_fndecl): Likewise.
21459         (gimple_eh_must_not_throw_set_fndecl): Likewise.
21460         (gimple_eh_else_n_body_ptr): Likewise.
21461         (gimple_eh_else_e_body_ptr): Likewise.
21462         (gimple_eh_else_set_n_body): Likewise.
21463         (gimple_eh_else_set_e_body): Likewise.
21464         (gimple_try_eval_ptr): Likewise.
21465         (gimple_try_cleanup_ptr): Likewise.
21466         (gimple_try_set_eval): Likewise.
21467         (gimple_try_set_cleanup): Likewise.
21468         (gimple_wce_cleanup_ptr): Likewise.
21469         (gimple_wce_set_cleanup): Likewise.
21470         (gimple_phi_capacity): Likewise.
21471         (gimple_phi_num_args): Likewise.
21472         (gimple_phi_result): Likewise.
21473         (gimple_phi_result_ptr): Likewise.
21474         (gimple_phi_set_result): Likewise.
21475         (gimple_phi_arg): Likewise.
21476         (gimple_phi_set_arg): Likewise.
21477         (gimple_resx_region): Likewise.
21478         (gimple_resx_set_region): Likewise.
21479         (gimple_eh_dispatch_region): Likewise.
21480         (gimple_eh_dispatch_set_region): Likewise.
21481         (gimple_omp_critical_name): Likewise.
21482         (gimple_omp_critical_name_ptr): Likewise.
21483         (gimple_omp_critical_set_name): Likewise.
21484         (gimple_omp_for_clauses): Likewise.
21485         (gimple_omp_for_clauses_ptr): Likewise.
21486         (gimple_omp_for_set_clauses): Likewise.
21487         (gimple_omp_for_collapse): Likewise.
21488         (gimple_omp_for_index): Likewise.
21489         (gimple_omp_for_index_ptr): Likewise.
21490         (gimple_omp_for_set_index): Likewise.
21491         (gimple_omp_for_initial): Likewise.
21492         (gimple_omp_for_initial_ptr): Likewise.
21493         (gimple_omp_for_set_initial): Likewise.
21494         (gimple_omp_for_final): Likewise.
21495         (gimple_omp_for_final_ptr): Likewise.
21496         (gimple_omp_for_set_final): Likewise.
21497         (gimple_omp_for_incr): Likewise.
21498         (gimple_omp_for_incr_ptr): Likewise.
21499         (gimple_omp_for_set_incr): Likewise.
21500         (gimple_omp_for_pre_body_ptr): Likewise.
21501         (gimple_omp_for_set_pre_body): Likewise.
21502         (gimple_omp_parallel_clauses): Likewise.
21503         (gimple_omp_parallel_clauses_ptr): Likewise.
21504         (gimple_omp_parallel_set_clauses): Likewise.
21505         (gimple_omp_parallel_child_fn): Likewise.
21506         (gimple_omp_parallel_child_fn_ptr): Likewise.
21507         (gimple_omp_parallel_set_child_fn): Likewise.
21508         (gimple_omp_parallel_data_arg): Likewise.
21509         (gimple_omp_parallel_data_arg_ptr): Likewise.
21510         (gimple_omp_parallel_set_data_arg): Likewise.
21511         (gimple_omp_task_clauses): Likewise.
21512         (gimple_omp_task_clauses_ptr): Likewise.
21513         (gimple_omp_task_set_clauses): Likewise.
21514         (gimple_omp_task_child_fn): Likewise.
21515         (gimple_omp_task_child_fn_ptr): Likewise.
21516         (gimple_omp_task_set_child_fn): Likewise.
21517         (gimple_omp_task_data_arg): Likewise.
21518         (gimple_omp_task_data_arg_ptr): Likewise.
21519         (gimple_omp_task_set_data_arg): Likewise.
21520         (gimple_omp_taskreg_clauses): Likewise.
21521         (gimple_omp_taskreg_clauses_ptr): Likewise.
21522         (gimple_omp_taskreg_set_clauses): Likewise.
21523         (gimple_omp_taskreg_child_fn): Likewise.
21524         (gimple_omp_taskreg_child_fn_ptr): Likewise.
21525         (gimple_omp_taskreg_set_child_fn): Likewise.
21526         (gimple_omp_taskreg_data_arg): Likewise.
21527         (gimple_omp_taskreg_data_arg_ptr): Likewise.
21528         (gimple_omp_taskreg_set_data_arg): Likewise.
21529         (gimple_omp_task_copy_fn): Likewise.
21530         (gimple_omp_task_copy_fn_ptr): Likewise.
21531         (gimple_omp_task_set_copy_fn): Likewise.
21532         (gimple_omp_task_arg_size): Likewise.
21533         (gimple_omp_task_arg_size_ptr): Likewise.
21534         (gimple_omp_task_set_arg_size): Likewise.
21535         (gimple_omp_task_arg_align): Likewise.
21536         (gimple_omp_task_arg_align_ptr): Likewise.
21537         (gimple_omp_task_set_arg_align): Likewise.
21538         (gimple_omp_single_clauses): Likewise.
21539         (gimple_omp_single_clauses_ptr): Likewise.
21540         (gimple_omp_single_set_clauses): Likewise.
21541         (gimple_omp_target_clauses): Likewise.
21542         (gimple_omp_target_clauses_ptr): Likewise.
21543         (gimple_omp_target_set_clauses): Likewise.
21544         (gimple_omp_target_child_fn): Likewise.
21545         (gimple_omp_target_child_fn_ptr): Likewise.
21546         (gimple_omp_target_set_child_fn): Likewise.
21547         (gimple_omp_target_data_arg): Likewise.
21548         (gimple_omp_target_data_arg_ptr): Likewise.
21549         (gimple_omp_target_set_data_arg): Likewise.
21550         (gimple_omp_teams_clauses): Likewise.
21551         (gimple_omp_teams_clauses_ptr): Likewise.
21552         (gimple_omp_teams_set_clauses): Likewise.
21553         (gimple_omp_sections_clauses): Likewise.
21554         (gimple_omp_sections_clauses_ptr): Likewise.
21555         (gimple_omp_sections_set_clauses): Likewise.
21556         (gimple_omp_sections_control): Likewise.
21557         (gimple_omp_sections_control_ptr): Likewise.
21558         (gimple_omp_sections_set_control): Likewise.
21559         (gimple_omp_for_set_cond): Likewise.
21560         (gimple_omp_for_cond): Likewise.
21561         (gimple_omp_atomic_store_set_val): Likewise.
21562         (gimple_omp_atomic_store_val): Likewise.
21563         (gimple_omp_atomic_store_val_ptr): Likewise.
21564         (gimple_omp_atomic_load_set_lhs): Likewise.
21565         (gimple_omp_atomic_load_lhs): Likewise.
21566         (gimple_omp_atomic_load_lhs_ptr): Likewise.
21567         (gimple_omp_atomic_load_set_rhs): Likewise.
21568         (gimple_omp_atomic_load_rhs): Likewise.
21569         (gimple_omp_atomic_load_rhs_ptr): Likewise.
21570         (gimple_omp_continue_control_def): Likewise.
21571         (gimple_omp_continue_control_def_ptr): Likewise.
21572         (gimple_omp_continue_set_control_def): Likewise.
21573         (gimple_omp_continue_control_use): Likewise.
21574         (gimple_omp_continue_control_use_ptr): Likewise.
21575         (gimple_omp_continue_set_control_use): Likewise.
21576         (gimple_transaction_body_ptr): Likewise.
21577         (gimple_transaction_label): Likewise.
21578         (gimple_transaction_label_ptr): Likewise.
21579         (gimple_transaction_set_body): Likewise.
21580         (gimple_transaction_set_label): Likewise.
21582         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
21583         * ipa-inline-analysis.c (inline_write_summary): Likewise.
21584         * ipa-ref.c (ipa_record_reference): Likewise.
21585         * ipa-reference.c (analyze_function): Likewise.
21586         (ipa_reference_write_optimization_summary): Likewise.
21587         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
21588         (address_taken_from_non_vtable_p): Likewise.
21589         (comdat_can_be_unshared_p_1): Likewise.
21590         * lto-cgraph.c (lto_output_ref): Likewise.
21591         (add_references): Likewise.
21592         (compute_ltrans_boundary): Likewise.
21593         (output_symtab): Likewise.
21594         (input_ref): Likewise.
21595         (input_cgraph_1): Likewise.
21596         (output_cgraph_opt_summary): Likewise.
21597         * lto-streamer-out.c (lto_output): Likewise.
21598         (output_symbol_p): Likewise.
21599         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
21600         (lsei_start_function_in_partition): Likewise.
21601         (lsei_next_variable_in_partition): Likewise.
21602         (lsei_start_variable_in_partition): Likewise.
21603         * symtab.c (insert_to_assembler_name_hash): Likewise.
21604         (unlink_from_assembler_name_hash): Likewise.
21605         (symtab_unregister_node): Likewise.
21606         (symtab_remove_node): Likewise.
21607         (dump_symtab_node): Likewise.
21608         (verify_symtab_base): Likewise.
21609         (verify_symtab_node): Likewise.
21610         (symtab_make_decl_local): Likewise.
21611         (symtab_alias_ultimate_target): Likewise.
21612         (symtab_resolve_alias): Likewise.
21613         (symtab_get_symbol_partitioning_class): Likewise.
21614         * tree-phinodes.c (allocate_phi_node): Likewise.
21615         (reserve_phi_args_for_new_edge): Likewise.
21616         (remove_phi_args): Likewise.
21617         * varpool.c (varpool_node_for_asm): Likewise.
21618         (varpool_remove_unreferenced_decls): Likewise.
21620 2014-04-23  Jeff Law  <law@redhat.com>
21622         PR tree-optimization/60902
21623         * tree-ssa-threadedge.c
21624         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
21625         invalidate outputs from statements that do not produce useful
21626         outputs for threading.
21628 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
21630         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
21631         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
21632         machine descriptions for Stack Smashing Protector.
21634 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
21636         * aarch64.md (<optab>_rol<mode>3): New pattern.
21637         (<optab>_rolsi3_uxtw): Likewise.
21638         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
21640 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
21642         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
21643         (arm_cortex_a12_tune): Likewise.
21645 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21647         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
21649 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21651         * config/arm/arm.md (arm_rev16si2): New pattern.
21652         (arm_rev16si2_alt): Likewise.
21653         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
21655 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21657         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
21658         (rev16<mode>2_alt): Likewise.
21659         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
21660         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
21661         (aarch_rev16_shleft_mask_imm_p): Likewise.
21662         (aarch_rev16_p_1): Likewise.
21663         (aarch_rev16_p): Likewise.
21664         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
21665         (aarch_rev16_shright_mask_imm_p): Likewise.
21666         (aarch_rev16_shleft_mask_imm_p): Likewise.
21668 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21670         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
21671         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
21672         rev cost.
21673         (cortex_a53_extra_costs): Likewise.
21674         (cortex_a57_extra_costs): Likewise.
21675         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
21676         (cortexa7_extra_costs): Likewise.
21677         (cortexa8_extra_costs): Likewise.
21678         (cortexa12_extra_costs): Likewise.
21679         (cortexa15_extra_costs): Likewise.
21680         (v7m_extra_costs): Likewise.
21681         (arm_new_rtx_costs): Handle BSWAP.
21683 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21685         * config/arm/arm.c (cortexa8_extra_costs): New table.
21686         (arm_cortex_a8_tune): New tuning struct.
21687         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
21689 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21691         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
21693 2014-04-23  Richard Biener  <rguenther@suse.de>
21695         * Makefile.in (OBJS): Remove loop-unswitch.o.
21696         * tree-pass.h (make_pass_rtl_unswitch): Remove.
21697         * passes.def (pass_rtl_unswitch): Likewise.
21698         * loop-init.c (gate_rtl_unswitch): Likewise.
21699         (rtl_unswitch): Likewise.
21700         (pass_data_rtl_unswitch): Likewise.
21701         (pass_rtl_unswitch): Likewise.
21702         (make_pass_rtl_unswitch): Likewise.
21703         * rtl.h (reversed_condition): Likewise.
21704         (compare_and_jump_seq): Likewise.
21705         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
21706         and make static.
21707         * loop-unroll.c (compare_and_jump_seq): Likewise.
21709 2014-04-23  Richard Biener  <rguenther@suse.de>
21711         PR tree-optimization/60903
21712         * tree-ssa-loop-im.c (analyze_memory_references): Remove
21713         commented code block.
21714         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
21715         loop flags to newly created BBs and edges.
21717 2014-04-23  Nick Clifton  <nickc@redhat.com>
21719         * config/msp430/msp430.c (msp430_handle_option): Move function
21720         to msp430-common.c
21721         (msp430_option_override): Simplify mcu and mcpu option handling.
21722         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
21723         support for -mhwmult command line option.
21724         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
21725         -mhwmult command line option.
21726         (msp430_hwmult_enabled): Delete.
21727         (msp43o_output_labelref): Add support for -mhwmult command line option.
21728         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
21729         (umulsidi3): Likewise.
21730         * config/msp430/msp430.opt (mmcu): Add Report attribute.
21731         (mcpu, mlarge, msmall): Likewise.
21732         (mhwmult): New option.
21733         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
21734         prototype.
21735         (msp430_is_f5_mcu): Remove prototype.
21736         (msp430_use_f5_series_hwmult): Add prototype.
21737         * config/msp430/msp430-opts.h: New file.
21738         * common/config/msp430: New directory.
21739         * common/config/msp430/msp430-common.c: New file.
21740         * config.gcc (msp430): Remove target_has_targetm_common.
21741         * doc/invoke.texi: Document -mhwmult command line option.
21743 2014-04-23  Nick Clifton  <nickc@redhat.com>
21745         * config/i386/cygwin.h (ENDFILE_SPEC): Include
21746         default-manifest.o if it can be found in the search path.
21747         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21749 2014-04-23  Terry Guo  <terry.guo@arm.com>
21751         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
21753 2014-04-23  Richard Biener  <rguenther@suse.de>
21755         PR middle-end/60895
21756         * tree-inline.c (declare_return_variable): Use mark_addressable.
21758 2014-04-23  Richard Biener  <rguenther@suse.de>
21760         PR middle-end/60891
21761         * loop-init.c (loop_optimizer_init): Make sure to apply
21762         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
21764 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
21766         PR sanitizer/60275
21767         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
21768         New options.
21769         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
21770         if flag_sanitize_undefined_trap_on_error.
21771         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
21772         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
21773         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
21774         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
21775         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
21776         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
21777         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
21778         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
21779         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
21780         * ubsan.c (ubsan_instrument_unreachable): Return
21781         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
21782         (ubsan_expand_null_ifn): Emit __builtin_trap ()
21783         if flag_sanitize_undefined_trap_on_error and
21784         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
21785         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
21786         instrument_bool_enum_load): Emit __builtin_trap () if
21787         flag_sanitize_undefined_trap_on_error and
21788         __builtin_handle_*_abort () if !flag_sanitize_recover.
21789         * doc/invoke.texi (-fsanitize-recover,
21790         -fsanitize-undefined-trap-on-error): Document.
21792 2014-04-22  Christian Bruel  <christian.bruel@st.com>
21794         * config/sh/sh.md (mov<mode>): Replace movQIHI.
21795          Force immediates to SImode.
21797 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
21799         * config/nios2/nios2.md (UNSPEC_ROUND): New.
21800         (lroundsfsi2): New.
21801         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
21802         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
21803         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
21804         (nios2_fpu_insn): Add entry for round.
21805         (N2FPU_NO_ERRNO_P): Define.
21806         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
21807         flag_errno_math.
21808         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
21810 2014-04-22  Richard Henderson  <rth@redhat.com>
21812         * config/aarch64/aarch64 (addti3, subti3): New expanders.
21813         (add<GPI>3_compare0): Remove leading * from name.
21814         (add<GPI>3_carryin): Likewise.
21815         (sub<GPI>3_compare0): Likewise.
21816         (sub<GPI>3_carryin): Likewise.
21817         (<su_optab>mulditi3): New expander.
21818         (multi3): New expander.
21819         (madd<GPI>): Remove leading * from name.
21821 2014-04-22  Martin Jambor  <mjambor@suse.cz>
21823         * cgraphclones.c (cgraph_function_versioning): Copy
21824         ipa_transforms_to_apply instead of asserting it is empty.
21826 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
21828         PR target/60868
21829         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
21830         on count_exp to get mode.
21832 2014-04-22  Andrew Pinski  <apinski@cavium.com>
21834         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21835         Handle TLS for ILP32.
21836         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
21837         (tlsie_small_<mode>): this and handle PTR.
21838         (tlsie_small_sidi): New pattern.
21839         (tlsle_small): Change to an expand to handle ILP32.
21840         (tlsle_small_<mode>): New pattern.
21841         (tlsdesc_small): Rename to ...
21842         (tlsdesc_small_<mode>): this and handle PTR.
21844 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21846         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
21848 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21850         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21851         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
21852         (aarch64_types_signed_poly_qualifiers): Likewise.
21853         (aarch64_types_unsigned_signed_qualifiers): Likewise.
21854         (aarch64_types_poly_signed_qualifiers): Likewise.
21855         (TYPES_REINTERP_SS): Type macro added.
21856         (TYPES_REINTERP_SU): Likewise.
21857         (TYPES_REINTERP_SP): Likewise.
21858         (TYPES_REINTERP_US): Likewise.
21859         (TYPES_REINTERP_PS): Likewise.
21860         (aarch64_fold_builtin): New expression folding added.
21861         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
21862         Declarations removed.
21863         (REINTERP_SS): Declarations added.
21864         (REINTERP_US): Likewise.
21865         (REINTERP_PS): Likewise.
21866         (REINTERP_SU): Likewise.
21867         (REINTERP_SP): Likewise.
21868         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
21869         (vreinterpretq_p8_f64): Likewise.
21870         (vreinterpret_p16_f64): Likewise.
21871         (vreinterpretq_p16_f64): Likewise.
21872         (vreinterpret_f32_f64): Likewise.
21873         (vreinterpretq_f32_f64): Likewise.
21874         (vreinterpret_f64_f32): Likewise.
21875         (vreinterpret_f64_p8): Likewise.
21876         (vreinterpret_f64_p16): Likewise.
21877         (vreinterpret_f64_s8): Likewise.
21878         (vreinterpret_f64_s16): Likewise.
21879         (vreinterpret_f64_s32): Likewise.
21880         (vreinterpret_f64_s64): Likewise.
21881         (vreinterpret_f64_u8): Likewise.
21882         (vreinterpret_f64_u16): Likewise.
21883         (vreinterpret_f64_u32): Likewise.
21884         (vreinterpret_f64_u64): Likewise.
21885         (vreinterpretq_f64_f32): Likewise.
21886         (vreinterpretq_f64_p8): Likewise.
21887         (vreinterpretq_f64_p16): Likewise.
21888         (vreinterpretq_f64_s8): Likewise.
21889         (vreinterpretq_f64_s16): Likewise.
21890         (vreinterpretq_f64_s32): Likewise.
21891         (vreinterpretq_f64_s64): Likewise.
21892         (vreinterpretq_f64_u8): Likewise.
21893         (vreinterpretq_f64_u16): Likewise.
21894         (vreinterpretq_f64_u32): Likewise.
21895         (vreinterpretq_f64_u64): Likewise.
21896         (vreinterpret_s64_f64): Likewise.
21897         (vreinterpretq_s64_f64): Likewise.
21898         (vreinterpret_u64_f64): Likewise.
21899         (vreinterpretq_u64_f64): Likewise.
21900         (vreinterpret_s8_f64): Likewise.
21901         (vreinterpretq_s8_f64): Likewise.
21902         (vreinterpret_s16_f64): Likewise.
21903         (vreinterpretq_s16_f64): Likewise.
21904         (vreinterpret_s32_f64): Likewise.
21905         (vreinterpretq_s32_f64): Likewise.
21906         (vreinterpret_u8_f64): Likewise.
21907         (vreinterpretq_u8_f64): Likewise.
21908         (vreinterpret_u16_f64): Likewise.
21909         (vreinterpretq_u16_f64): Likewise.
21910         (vreinterpret_u32_f64): Likewise.
21911         (vreinterpretq_u32_f64): Likewise.
21913 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
21915         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
21916         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
21917         (vreinterpret_p8_s8): Likewise.
21918         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
21919         (vreinterpret_p8_s16): Likewise.
21920         (vreinterpret_p8_s32): Likewise.
21921         (vreinterpret_p8_s64): Likewise.
21922         (vreinterpret_p8_f32): Likewise.
21923         (vreinterpret_p8_u8): Likewise.
21924         (vreinterpret_p8_u16): Likewise.
21925         (vreinterpret_p8_u32): Likewise.
21926         (vreinterpret_p8_u64): Likewise.
21927         (vreinterpret_p8_p16): Likewise.
21928         (vreinterpretq_p8_s8): Likewise.
21929         (vreinterpretq_p8_s16): Likewise.
21930         (vreinterpretq_p8_s32): Likewise.
21931         (vreinterpretq_p8_s64): Likewise.
21932         (vreinterpretq_p8_f32): Likewise.
21933         (vreinterpretq_p8_u8): Likewise.
21934         (vreinterpretq_p8_u16): Likewise.
21935         (vreinterpretq_p8_u32): Likewise.
21936         (vreinterpretq_p8_u64): Likewise.
21937         (vreinterpretq_p8_p16): Likewise.
21938         (vreinterpret_p16_s8): Likewise.
21939         (vreinterpret_p16_s16): Likewise.
21940         (vreinterpret_p16_s32): Likewise.
21941         (vreinterpret_p16_s64): Likewise.
21942         (vreinterpret_p16_f32): Likewise.
21943         (vreinterpret_p16_u8): Likewise.
21944         (vreinterpret_p16_u16): Likewise.
21945         (vreinterpret_p16_u32): Likewise.
21946         (vreinterpret_p16_u64): Likewise.
21947         (vreinterpret_p16_p8): Likewise.
21948         (vreinterpretq_p16_s8): Likewise.
21949         (vreinterpretq_p16_s16): Likewise.
21950         (vreinterpretq_p16_s32): Likewise.
21951         (vreinterpretq_p16_s64): Likewise.
21952         (vreinterpretq_p16_f32): Likewise.
21953         (vreinterpretq_p16_u8): Likewise.
21954         (vreinterpretq_p16_u16): Likewise.
21955         (vreinterpretq_p16_u32): Likewise.
21956         (vreinterpretq_p16_u64): Likewise.
21957         (vreinterpretq_p16_p8): Likewise.
21958         (vreinterpret_f32_s8): Likewise.
21959         (vreinterpret_f32_s16): Likewise.
21960         (vreinterpret_f32_s32): Likewise.
21961         (vreinterpret_f32_s64): Likewise.
21962         (vreinterpret_f32_u8): Likewise.
21963         (vreinterpret_f32_u16): Likewise.
21964         (vreinterpret_f32_u32): Likewise.
21965         (vreinterpret_f32_u64): Likewise.
21966         (vreinterpret_f32_p8): Likewise.
21967         (vreinterpret_f32_p16): Likewise.
21968         (vreinterpretq_f32_s8): Likewise.
21969         (vreinterpretq_f32_s16): Likewise.
21970         (vreinterpretq_f32_s32): Likewise.
21971         (vreinterpretq_f32_s64): Likewise.
21972         (vreinterpretq_f32_u8): Likewise.
21973         (vreinterpretq_f32_u16): Likewise.
21974         (vreinterpretq_f32_u32): Likewise.
21975         (vreinterpretq_f32_u64): Likewise.
21976         (vreinterpretq_f32_p8): Likewise.
21977         (vreinterpretq_f32_p16): Likewise.
21978         (vreinterpret_s64_s8): Likewise.
21979         (vreinterpret_s64_s16): Likewise.
21980         (vreinterpret_s64_s32): Likewise.
21981         (vreinterpret_s64_f32): Likewise.
21982         (vreinterpret_s64_u8): Likewise.
21983         (vreinterpret_s64_u16): Likewise.
21984         (vreinterpret_s64_u32): Likewise.
21985         (vreinterpret_s64_u64): Likewise.
21986         (vreinterpret_s64_p8): Likewise.
21987         (vreinterpret_s64_p16): Likewise.
21988         (vreinterpretq_s64_s8): Likewise.
21989         (vreinterpretq_s64_s16): Likewise.
21990         (vreinterpretq_s64_s32): Likewise.
21991         (vreinterpretq_s64_f32): Likewise.
21992         (vreinterpretq_s64_u8): Likewise.
21993         (vreinterpretq_s64_u16): Likewise.
21994         (vreinterpretq_s64_u32): Likewise.
21995         (vreinterpretq_s64_u64): Likewise.
21996         (vreinterpretq_s64_p8): Likewise.
21997         (vreinterpretq_s64_p16): Likewise.
21998         (vreinterpret_u64_s8): Likewise.
21999         (vreinterpret_u64_s16): Likewise.
22000         (vreinterpret_u64_s32): Likewise.
22001         (vreinterpret_u64_s64): Likewise.
22002         (vreinterpret_u64_f32): Likewise.
22003         (vreinterpret_u64_u8): Likewise.
22004         (vreinterpret_u64_u16): Likewise.
22005         (vreinterpret_u64_u32): Likewise.
22006         (vreinterpret_u64_p8): Likewise.
22007         (vreinterpret_u64_p16): Likewise.
22008         (vreinterpretq_u64_s8): Likewise.
22009         (vreinterpretq_u64_s16): Likewise.
22010         (vreinterpretq_u64_s32): Likewise.
22011         (vreinterpretq_u64_s64): Likewise.
22012         (vreinterpretq_u64_f32): Likewise.
22013         (vreinterpretq_u64_u8): Likewise.
22014         (vreinterpretq_u64_u16): Likewise.
22015         (vreinterpretq_u64_u32): Likewise.
22016         (vreinterpretq_u64_p8): Likewise.
22017         (vreinterpretq_u64_p16): Likewise.
22018         (vreinterpret_s8_s16): Likewise.
22019         (vreinterpret_s8_s32): Likewise.
22020         (vreinterpret_s8_s64): Likewise.
22021         (vreinterpret_s8_f32): Likewise.
22022         (vreinterpret_s8_u8): Likewise.
22023         (vreinterpret_s8_u16): Likewise.
22024         (vreinterpret_s8_u32): Likewise.
22025         (vreinterpret_s8_u64): Likewise.
22026         (vreinterpret_s8_p8): Likewise.
22027         (vreinterpret_s8_p16): Likewise.
22028         (vreinterpretq_s8_s16): Likewise.
22029         (vreinterpretq_s8_s32): Likewise.
22030         (vreinterpretq_s8_s64): Likewise.
22031         (vreinterpretq_s8_f32): Likewise.
22032         (vreinterpretq_s8_u8): Likewise.
22033         (vreinterpretq_s8_u16): Likewise.
22034         (vreinterpretq_s8_u32): Likewise.
22035         (vreinterpretq_s8_u64): Likewise.
22036         (vreinterpretq_s8_p8): Likewise.
22037         (vreinterpretq_s8_p16): Likewise.
22038         (vreinterpret_s16_s8): Likewise.
22039         (vreinterpret_s16_s32): Likewise.
22040         (vreinterpret_s16_s64): Likewise.
22041         (vreinterpret_s16_f32): Likewise.
22042         (vreinterpret_s16_u8): Likewise.
22043         (vreinterpret_s16_u16): Likewise.
22044         (vreinterpret_s16_u32): Likewise.
22045         (vreinterpret_s16_u64): Likewise.
22046         (vreinterpret_s16_p8): Likewise.
22047         (vreinterpret_s16_p16): Likewise.
22048         (vreinterpretq_s16_s8): Likewise.
22049         (vreinterpretq_s16_s32): Likewise.
22050         (vreinterpretq_s16_s64): Likewise.
22051         (vreinterpretq_s16_f32): Likewise.
22052         (vreinterpretq_s16_u8): Likewise.
22053         (vreinterpretq_s16_u16): Likewise.
22054         (vreinterpretq_s16_u32): Likewise.
22055         (vreinterpretq_s16_u64): Likewise.
22056         (vreinterpretq_s16_p8): Likewise.
22057         (vreinterpretq_s16_p16): Likewise.
22058         (vreinterpret_s32_s8): Likewise.
22059         (vreinterpret_s32_s16): Likewise.
22060         (vreinterpret_s32_s64): Likewise.
22061         (vreinterpret_s32_f32): Likewise.
22062         (vreinterpret_s32_u8): Likewise.
22063         (vreinterpret_s32_u16): Likewise.
22064         (vreinterpret_s32_u32): Likewise.
22065         (vreinterpret_s32_u64): Likewise.
22066         (vreinterpret_s32_p8): Likewise.
22067         (vreinterpret_s32_p16): Likewise.
22068         (vreinterpretq_s32_s8): Likewise.
22069         (vreinterpretq_s32_s16): Likewise.
22070         (vreinterpretq_s32_s64): Likewise.
22071         (vreinterpretq_s32_f32): Likewise.
22072         (vreinterpretq_s32_u8): Likewise.
22073         (vreinterpretq_s32_u16): Likewise.
22074         (vreinterpretq_s32_u32): Likewise.
22075         (vreinterpretq_s32_u64): Likewise.
22076         (vreinterpretq_s32_p8): Likewise.
22077         (vreinterpretq_s32_p16): Likewise.
22078         (vreinterpret_u8_s8): Likewise.
22079         (vreinterpret_u8_s16): Likewise.
22080         (vreinterpret_u8_s32): Likewise.
22081         (vreinterpret_u8_s64): Likewise.
22082         (vreinterpret_u8_f32): Likewise.
22083         (vreinterpret_u8_u16): Likewise.
22084         (vreinterpret_u8_u32): Likewise.
22085         (vreinterpret_u8_u64): Likewise.
22086         (vreinterpret_u8_p8): Likewise.
22087         (vreinterpret_u8_p16): Likewise.
22088         (vreinterpretq_u8_s8): Likewise.
22089         (vreinterpretq_u8_s16): Likewise.
22090         (vreinterpretq_u8_s32): Likewise.
22091         (vreinterpretq_u8_s64): Likewise.
22092         (vreinterpretq_u8_f32): Likewise.
22093         (vreinterpretq_u8_u16): Likewise.
22094         (vreinterpretq_u8_u32): Likewise.
22095         (vreinterpretq_u8_u64): Likewise.
22096         (vreinterpretq_u8_p8): Likewise.
22097         (vreinterpretq_u8_p16): Likewise.
22098         (vreinterpret_u16_s8): Likewise.
22099         (vreinterpret_u16_s16): Likewise.
22100         (vreinterpret_u16_s32): Likewise.
22101         (vreinterpret_u16_s64): Likewise.
22102         (vreinterpret_u16_f32): Likewise.
22103         (vreinterpret_u16_u8): Likewise.
22104         (vreinterpret_u16_u32): Likewise.
22105         (vreinterpret_u16_u64): Likewise.
22106         (vreinterpret_u16_p8): Likewise.
22107         (vreinterpret_u16_p16): Likewise.
22108         (vreinterpretq_u16_s8): Likewise.
22109         (vreinterpretq_u16_s16): Likewise.
22110         (vreinterpretq_u16_s32): Likewise.
22111         (vreinterpretq_u16_s64): Likewise.
22112         (vreinterpretq_u16_f32): Likewise.
22113         (vreinterpretq_u16_u8): Likewise.
22114         (vreinterpretq_u16_u32): Likewise.
22115         (vreinterpretq_u16_u64): Likewise.
22116         (vreinterpretq_u16_p8): Likewise.
22117         (vreinterpretq_u16_p16): Likewise.
22118         (vreinterpret_u32_s8): Likewise.
22119         (vreinterpret_u32_s16): Likewise.
22120         (vreinterpret_u32_s32): Likewise.
22121         (vreinterpret_u32_s64): Likewise.
22122         (vreinterpret_u32_f32): Likewise.
22123         (vreinterpret_u32_u8): Likewise.
22124         (vreinterpret_u32_u16): Likewise.
22125         (vreinterpret_u32_u64): Likewise.
22126         (vreinterpret_u32_p8): Likewise.
22127         (vreinterpret_u32_p16): Likewise.
22128         (vreinterpretq_u32_s8): Likewise.
22129         (vreinterpretq_u32_s16): Likewise.
22130         (vreinterpretq_u32_s32): Likewise.
22131         (vreinterpretq_u32_s64): Likewise.
22132         (vreinterpretq_u32_f32): Likewise.
22133         (vreinterpretq_u32_u8): Likewise.
22134         (vreinterpretq_u32_u16): Likewise.
22135         (vreinterpretq_u32_u64): Likewise.
22136         (vreinterpretq_u32_p8): Likewise.
22137         (vreinterpretq_u32_p16): Likewise.
22139 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
22141         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
22142         Pattern extended.
22143         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
22144         (sqabs): Likewise.
22145         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
22146         (vqnegd_s64): Likewise.
22147         (vqabs_s64): Likewise.
22148         (vqabsd_s64): Likewise.
22150 2014-04-22  Richard Henderson  <rth@redhat.com>
22152         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
22153         computation to the top of the loop.
22155 2014-04-22  Renlin  <renlin.li@arm.com>
22156             Jiong Wang  <jiong.wang@arm.com>
22158         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
22159         * config/aarch64/aarch64.c (aarch64_layout_frame)
22160         (aarch64_initial_elimination_offset): Likewise.
22162 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22164         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
22165         Fix indentation.
22167 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
22169         * machmode.h (bitwise_mode_for_mode): Declare.
22170         * stor-layout.h (bitwise_type_for_mode): Likewise.
22171         * stor-layout.c (bitwise_mode_for_mode): New function.
22172         (bitwise_type_for_mode): Likewise.
22173         * builtins.c (fold_builtin_memory_op): Use it instead of
22174         int_mode_for_mode and build_nonstandard_integer_type.
22176 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22178         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
22179         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
22180         (*-*-solaris2*): Simplify.
22181         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
22182         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
22183         *-*-solaris2.9* handling.
22185         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
22186         as bug.
22187         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
22188         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
22189         handling, simplify.
22190         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
22191         * configure: Regenerate.
22193         * config/i386/sol2-9.h: Remove.
22195         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
22196         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
22197         Remove Solaris 9 references.
22199 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
22201         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
22202         (floatuns<GPI:mode><GPF:mode>2): Remove.
22203         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
22204         and floatuns conversions.
22205         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
22206         and floatuns conversions.
22207         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
22208         (w1,w2): New mode attributes for inequal width conversions.
22210 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
22212         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
22213         the output asm format.
22215 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
22217         * config/aarch64/aarch64-simd.md
22218         (aarch64_cm<optab>di): Always split.
22219         (*aarch64_cm<optab>di): New.
22220         (aarch64_cmtstdi): Always split.
22221         (*aarch64_cmtstdi): New.
22223 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
22225         PR tree-optimization/60823
22226         * omp-low.c (ipa_simd_modify_function_body): Go through
22227         all SSA_NAMEs and for those refering to vector arguments
22228         which are going to be replaced adjust SSA_NAME_VAR and,
22229         if it is a default definition, change it into a non-default
22230         definition assigned at the beginning of function from new_decl.
22231         (ipa_simd_modify_stmt_ops): Rewritten.
22232         * tree-dfa.c (set_ssa_default_def): When removing default def,
22233         check for NULL loc instead of NULL *loc.
22235 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22237         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
22238         restrictions on core registers for DImode values in Thumb2.
22240 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
22242         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
22243         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
22245 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
22247         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
22248         (*iordi_notzesidi_di): Likewise.
22249         (*iordi_notsesidi_di): Likewise.
22251 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
22253         * config/arm/arm-protos.h (tune_params): New struct members.
22254         * config/arm/arm.c: Initialise tune_params per processor.
22255         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
22256         for speed, based on new tune_params.
22258 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
22260         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
22261         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
22262         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
22263         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
22264         * config/aarch64/arm_neon.h (vrnd_f64): Added.
22265         (vrnda_f64): Likewise.
22266         (vrndi_f64): Likewise.
22267         (vrndm_f64): Likewise.
22268         (vrndn_f64): Likewise.
22269         (vrndp_f64): Likewise.
22270         (vrndx_f64): Likewise.
22272 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
22274         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
22275         GET_MODE_SIZE argument is enum machine_mode.
22277 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
22279         PR target/60910
22280         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
22281         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
22283 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
22285         PR middle-end/60281
22286         * asan.c (asan_emit_stack_protection): Force the base to align to
22287         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
22288         appropriate bits if STRICT_ALIGNMENT.
22289         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
22290         when asan is on.
22291         (expand_used_vars): Leave a space in the stack frame for alignment
22292         if STRICT_ALIGNMENT.
22294 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
22296         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
22297         than a gimple.
22298         (gimple_store_p): Likewise.
22299         (gimple_assign_load_p): Likewise.
22300         (gimple_assign_cast_p): Likewise.
22301         (gimple_clobber_p): Likewise.
22303         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
22304         rather than a gimple.
22305         (gimple_assign_cast_p): Likewise.
22307 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
22309         PR target/60735
22310         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
22311         If mode is DDmode and TARGET_E500_DOUBLE allow move.
22313         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
22314         more debug information for E500 if -mdebug=reg.
22316 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
22318         PR target/60909
22319         * config/i386/i386.c (ix86_expand_builtin)
22320         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
22321         register for target RTX.
22322         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
22324 2014-04-18  Cong Hou  <congh@google.com>
22326         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
22327         the widen-mult pattern by handling two operands with different sizes,
22328         and operands whose size is smaller than half of the result type.
22330 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
22332         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
22333         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
22334         (do_estimate_edge_time): Compute it.
22335         * ipa-inline.c (want_inline_small_function_p): Bypass
22336         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
22338 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
22340         * ipa-inline.c (spec_rem): New static variable.
22341         (dump_overall_stats): New function.
22342         (dump_inline_stats): New function.
22344 2014-04-18  Richard Henderson  <rth@redhat.com>
22346         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
22347         to GET_MODE_SIZE, not a reg_class_t.
22349 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22351         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
22352         (vsx_xxmrglw_<mode>): Likewise.
22354 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
22356         PR target/60876
22357         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
22358         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
22359         (rs6000_init_hard_regno_mode_ok): Likewise.
22361 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
22363         * ipa-inline.c (inline_small_functions): Account only non-cold
22364         functions.
22365         * doc/invoke.texi (inline-unit-growth): Update documentation.
22367 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
22369         * config/rs6000/rs6000.md (addti3, subti3): New.
22371 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
22373         PR target/60863
22374         * config/i386/i386.c (ix86_expand_clear): Remove outdated
22375         comment.  Check optimize_insn_for_size_p instead of
22376         optimize_insn_for_speed_p.
22378 2014-04-17  Martin Jambor  <mjambor@suse.cz>
22380         * gimple-iterator.c (gsi_start_edge): New function.
22381         * gimple-iterator.h (gsi_start_edge): Declare.
22382         * tree-sra.c (single_non_eh_succ): New function.
22383         (disqualify_ops_if_throwing_stmt): Renamed to
22384         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
22385         having one non-EH successor BB.
22386         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
22387         generate loads into replacements.
22388         (sra_modify_assign): Likewise and and also use the simple path for
22389         such statements.
22390         (sra_modify_function_body): Commit statements on edges.
22392 2014-04-17  Richard Biener  <rguenther@suse.de>
22394         PR middle-end/60849
22395         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
22396         comparison results and add clarifying comment.
22398 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
22400         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
22401         (blank_mode): Initialize it.
22402         (emit_mode_size_inline, emit_mode_nunits_inline,
22403         emit_mode_inner_inline): New functions.
22404         (emit_insn_modes_h): Call them and surround their output with
22405         #if GCC_VERSION >= 4001 ... #endif.
22406         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
22407         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
22408         mode_* arrays if the argument is __builtin_constant_p.
22409         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
22410         is enum machine_mode.
22412 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22414         * passes.c (opt_pass::execute): Adjust.
22415         (pass_manager::execute_pass_mode_switching): Likewise.
22416         (early_local_passes::execute): Likewise.
22417         (execute_one_pass): Pass cfun to the pass's execute method.
22418         * tree-pass.h (opt_pass::execute): Add function * argument.
22419         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22420         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22421         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22422         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22423         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22424         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
22425         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
22426         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22427         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22428         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
22429         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
22430         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
22431         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
22432         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
22433         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22434         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22435         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22436         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
22437         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
22438         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22439         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22440         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22441         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22442         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22443         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22444         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22445         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22446         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22447         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
22448         Adjust.
22450 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22452         * passes.c (opt_pass::gate): Take function * argument.
22453         (gate_all_early_local_passes): Merge into
22454         (early_local_passes::gate): this.
22455         (gate_all_early_optimizations): Merge into
22456         (all_early_optimizations::gate): this.
22457         (gate_all_optimizations): Mege into
22458         (all_optimizations::gate): this.
22459         (gate_all_optimizations_g): Merge into
22460         (all_optimizations_g::gate): this.
22461         (gate_rest_of_compilation): Mege into
22462         (rest_of_compilation::gate): this.
22463         (gate_postreload): Merge into
22464         (postreload::gate): this.
22465         (dump_one_pass): Pass cfun to the pass's gate method.
22466         (execute_ipa_summary_passes): Likewise.
22467         (execute_one_pass): Likewise.
22468         (ipa_write_summaries_2): Likewise.
22469         (ipa_write_optimization_summaries_1): Likewise.
22470         (ipa_read_summaries_1): Likewise.
22471         (ipa_read_optimization_summaries_1): Likewise.
22472         (execute_ipa_stmt_fixups): Likewise.
22473         * tree-pass.h (opt_pass::gate): Add function * argument.
22474         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
22475         combine-stack-adj.c, combine.c, compare-elim.c,
22476         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22477         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
22478         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
22479         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
22480         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
22481         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
22482         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22483         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
22484         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
22485         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
22486         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
22487         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
22488         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
22489         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22490         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22491         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22492         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22493         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22494         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22495         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22496         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22497         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22498         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
22499         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
22500         var-tracking.c, vtable-verify.c, web.c: Adjust.
22502 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22504         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
22505         * configure: Regenerate.
22507 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22509         * passes.c (dump_one_pass): don't check pass->has_gate.
22510         (execute_ipa_summary_passes): Likewise.
22511         (execute_one_pass): Likewise.
22512         (ipa_write_summaries_2): Likewise.
22513         (ipa_write_optimization_summaries_1): Likewise.
22514         (ipa_read_optimization_summaries_1): Likewise.
22515         (execute_ipa_stmt_fixups): Likewise.
22516         * tree-pass.h (pass_data::has_gate): Remove.
22517         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
22518         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
22519         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
22520         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
22521         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
22522         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
22523         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
22524         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
22525         gimple-low.c, gimple-ssa-isolate-paths.c,
22526         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
22527         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
22528         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
22529         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
22530         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
22531         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
22532         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
22533         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
22534         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
22535         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
22536         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
22537         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
22538         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
22539         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
22540         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
22541         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
22542         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
22543         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
22544         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
22545         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
22546         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
22547         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
22548         Adjust.
22550 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22552         * pass_manager.h (pass_manager::register_dump_files_1): Remove
22553         declaration.
22554         * passes.c (pass_manager::register_dump_files_1): Merge into
22555         (pass_manager::register_dump_files): this, and remove its handling of
22556         properties since the pass always has the properties anyway.
22557         (pass_manager::pass_manager): Adjust.
22559 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
22561         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
22562         * passes.c (pass_manager::register_dump_files_1): Remove dead code
22563         dealing with properties.
22564         (pass_manager::register_dump_files): Adjust.
22566 2014-03-20  Mark Wielaard  <mjw@redhat.com>
22568         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
22569         then represent the bound as normal constant value.
22571 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
22573         PR target/60847
22574         Forward port from 4.8 branch
22575         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
22577         * config/i386/bmiintrin.h (_blsi_u32): New.
22578         (_blsi_u64): Ditto.
22579         (_blsr_u32): Ditto.
22580         (_blsr_u64): Ditto.
22581         (_blsmsk_u32): Ditto.
22582         (_blsmsk_u64): Ditto.
22583         (_tzcnt_u32): Ditto.
22584         (_tzcnt_u64): Ditto.
22586 2014-04-17  Kito Cheng  <kito@0xlab.org>
22588         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
22590 2014-04-17  Richard Biener  <rguenther@suse.de>
22592         PR middle-end/60849
22593         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
22594         boolean results for comparisons.
22596 2014-04-17  Richard Biener  <rguenther@suse.de>
22598         PR tree-optimization/60836
22599         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
22600         initial PHI args to be gimple values.
22602 2014-04-17  Richard Biener  <rguenther@suse.de>
22604         PR tree-optimization/60841
22605         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
22606         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
22607         of stmts to SLP build.
22608         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
22609         (vect_analyze_slp): Likewise.
22610         (vect_analyze_slp_instance): Likewise.
22611         (vect_build_slp_tree): Limit overall SLP tree growth.
22612         * tree-vectorizer.h (vect_analyze_data_refs,
22613         vect_analyze_slp): Adjust prototypes.
22615 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
22617         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
22618         Silvermont.
22620 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
22622         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
22623         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
22624         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
22625         for TARGET_SLOW_PSHUFB
22627 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
22629         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
22630         * config/i386/i386.c (intel_cost): Ditto.
22632 2014-04-17  Joey Ye  <joey.ye@arm.com>
22634         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
22636 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
22638         * opts.c (common_handle_option): Disable -fipa-reference coorectly
22639         with -fuse-profile.
22641 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
22643         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
22644         (type_all_derivations_known_p): New predicate.
22645         (type_all_ctors_visible_p): New predicate.
22646         (type_possibly_instantiated_p): New predicate.
22647         (get_odr_type): Compute all_derivations_known.
22648         (dump_odr_type): Dump the flag.
22649         (maybe_record_type): Cleanup.
22650         (record_target_from_binfo): Add bases_to_consider array;
22651         record bases for types w/o instances and skip CXX destructor.
22652         (possible_polymorphic_call_targets_1): Add bases_to_consider
22653         and consider_construction parameters; check if type may have instance.
22654         (get_polymorphic_call_info): Set maybe_in_construction to true
22655         when we know nothing.
22656         (record_targets_from_bases): Skip CXX destructors; they are
22657         never called for types in construction.
22658         (possible_polymorphic_call_targets): Do not record target when
22659         type may not have instance.
22661 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
22663         PR ipa/60854
22664         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
22665         external aliases alive, too.
22667 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
22669         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
22670         definition.
22672 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
22674         * final.c (compute_alignments): Do not apply loop alignment to a block
22675         falling through to the exit.
22677 2014-04-16  Catherine Moore  <clm@codesourcery.com>
22679         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
22680         Adjust constraints for microMIPS store patterns.
22682 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
22684         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
22686 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
22688         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
22689         (append_use): Run at -O0.
22690         (append_vdef): Likewise.
22691         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
22692         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
22694 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
22696         PR tree-optimization/60844
22697         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
22698         (propagate_op_to_single_use, remove_visited_stmt_chain,
22699         linearize_expr, repropagate_negates, reassociate_bb): Use it
22700         instead of gsi_remove.
22702 2014-04-16  Martin Jambor  <mjambor@suse.cz>
22704         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
22705         ipa_transforms_to_apply.
22706         (cgraph_function_versioning): Assert that old_node has empty
22707         ipa_transforms_to_apply.
22708         * trans-mem.c (ipa_tm_create_version): Likewise.
22709         * tree-inline.c (tree_function_versioning): Do not duplicate
22710         ipa_transforms_to_apply.
22712 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22714         PR target/60817
22715         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
22716         x86_64-*-* cases.
22717         Pass necessary as flags on 64-bit Solaris/x86.
22718         Use lowercase relocs for x86_64-*-*.
22719         * configure: Regenerate.
22721 2014-04-15  Jan Hubicka  <jh@suse.cz>
22723         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
22724         (maybe_record_node, likely_target_p): Use it.
22726 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22728         PR target/60839
22729         Revert following patch
22731         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22733         PR target/60735
22734         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
22735         software floating point or no floating point registers, do not
22736         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
22737         in GPRs that occurs after we tested for GPRs that would never be
22738         true.
22740         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
22741         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
22742         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
22743         specifically allow DDmode, since that does not use the SPE SIMD
22744         instructions.
22746 2014-03-21  Mark Wielaard  <mjw@redhat.com>
22748         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
22749         as unsigned or int depending on type and value used.
22751 2014-04-15  Richard Biener  <rguenther@suse.de>
22753         PR rtl-optimization/56965
22754         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
22755         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
22756         ... here.
22757         * alias.c (true_dependence_1): Do not call
22758         nonoverlapping_component_refs_p.
22759         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
22760         nonoverlapping_component_refs_p.
22761         (indirect_refs_may_alias_p): Likewise.
22763 2014-04-15  Teresa Johnson  <tejohnson@google.com>
22765         * cfg.c (dump_bb_info): Fix flags check.
22766         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
22768 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22770         PR rtl-optimization/60663
22771         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
22772         avoid 0 cost.
22774 2014-04-15  Richard Biener  <rguenther@suse.de>
22776         * lto-streamer.h (LTO_major_version): Bump to 4.
22778 2014-04-15  Richard Biener  <rguenther@suse.de>
22780         * common.opt (lto_partition_model): New enum.
22781         (flto-partition=): Merge separate options with a single with argument,
22782         add -flto-partition=one support.
22783         * flag-types.h (enum lto_partition_model): Declare.
22784         * opts.c (finish_options): Remove duplicate -flto-partition=
22785         option check.
22786         * lto-wrapper.c (run_gcc): Adjust.
22788 2014-04-15  Richard Biener  <rguenther@suse.de>
22790         * alias.c (ncr_compar): New function.
22791         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
22793 2014-04-15  Richard Biener  <rguenther@suse.de>
22795         * alias.c (record_component_aliases): Do not walk BINFOs.
22797 2014-04-15  Richard Biener  <rguenther@suse.de>
22799         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
22800         Add struct function argument and adjust.
22801         (find_func_aliases_for_call): Likewise.
22802         (find_func_aliases): Likewise.
22803         (find_func_clobbers): Likewise.
22804         (intra_create_variable_infos): Likewise.
22805         (compute_points_to_sets): Likewise.
22806         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
22808 2014-04-15  Richard Biener  <rguenther@suse.de>
22810         * tree.c (iterative_hash_expr): Use enum tree_code_class
22811         to store TREE_CODE_CLASS.
22812         (tree_block): Likewise.
22813         (tree_set_block): Likewise.
22814         * tree.h (fold_build_pointer_plus_loc): Use
22815         convert_to_ptrofftype_loc.
22817 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
22819         PR plugins/59335
22820         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
22821         added in 4.9.
22823 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
22825         * cfgloop.h (struct loop): Move force_vectorize down.
22826         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
22827         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
22828         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
22829         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
22830         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
22831         * tree-core.h (enum annot_expr_kind): Add new kind values.
22832         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
22833         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
22834         kinds.
22835         * tree.def (ANNOTATE_EXPR): Tweak comment.
22837 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
22839         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
22840         cxa_pure_virtual).
22842 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
22844         * tree.h (TYPE_IDENTIFIER): Declare.
22845         * tree.c (subrange_type_for_debug_p): Use it.
22846         * godump.c (go_format_type): Likewise.
22847         * dwarf2out.c (is_cxx_auto, modified_type_die,
22848         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
22849         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
22851 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
22853         PR lto/60820
22854         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
22856 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
22858         * config/i386/i386.c (examine_argument): Return bool.  Return true if
22859         parameter should be passed in memory.
22860         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
22861         (construct_container): Update calls to examine_argument.
22862         (function_arg_advance_64): Ditto.
22863         (return_in_memory_32): Merge with ix86_return_in_memory.
22864         (return_in_memory_64): Ditto.
22865         (return_in_memory_ms_64): Ditto.
22867 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
22869         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
22870         * coverage.c (coverage_compute_profile_id): Handle externally visible
22871         symbols.
22873 2014-04-14  Martin Jambor  <mjambor@suse.cz>
22875         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
22876         DECL_DISREGARD_INLINE_LIMITS functions.
22878 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
22880         PR target/60827
22881         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
22883 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
22885         PR target/60827
22886         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
22887         optimize_insn_for_speed_p instead of
22888         optimize_function_for_speed_p.
22890 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
22892         * doc/invoke.texi (free): Document AArch64.
22894 2014-04-14  Richard Biener  <rguenther@suse.de>
22896         PR tree-optimization/60042
22897         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
22898         (insert_into_preds_of_block): Do not prevent PHI insertion
22899         for REFERENCE exprs here ...
22900         (eliminate_dom_walker::before_dom_children): ... but prevent
22901         their use here under similar conditions when applied to the
22902         IL after PRE optimizations.
22904 2014-04-14  Richard Biener  <rguenther@suse.de>
22906         * passes.def: Move early points-to after early SRA.
22908 2014-04-14  Richard Biener  <rguenther@suse.de>
22910         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
22911         check for which sign-changes we allow when forwarding
22912         a converted value into a switch.
22914 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
22916         * stor-layout.c (place_field): Finalize non-constant offset for the
22917         field, if any.
22919 2014-04-14  Richard Biener  <rguenther@suse.de>
22921         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
22922         as argument.
22923         (expand_switch_using_bit_tests_p): Likewise.
22924         (process_switch): Compute and pass on speed_p based on the
22925         switch stmt.
22926         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
22927         optimize_bb_for_speed_p.
22929 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
22931         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
22932         * function.h (struct function): Rename has_force_vect_loops into
22933         has_force_vectorize_loops.
22934         * lto-streamer-in.c (input_cfg): Adjust for renaming.
22935         (input_struct_function_base): Likewise.
22936         * lto-streamer-out.c (output_cfg): Likewise.
22937         (output_struct_function_base): Likewise.
22938         * omp-low.c (expand_omp_simd): Likewise.
22939         * tree-cfg.c (move_sese_region_to_fn): Likewise.
22940         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
22941         (version_loop_for_if_conversion): Likewise.
22942         (tree_if_conversion): Likewise.
22943         (main_tree_if_conversion): Likewise.
22944         (gate_tree_if_conversion): Likewise.
22945         * tree-inline.c (copy_loops): Likewise.
22946         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
22947         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
22948         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
22949         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
22950         * tree-vectorizer.c (vectorize_loops): Likewise.
22951         * tree-vectorizer.h (unlimited_cost_model): Likewise.
22953 2014-04-14  Richard Biener  <rguenther@suse.de>
22955         PR lto/60720
22956         * lto-streamer-out.c (wrap_refs): New function.
22957         (lto_output): Wrap symbol references in global initializes in
22958         type-preserving MEM_REFs.
22960 2014-04-14  Christian Bruel  <christian.bruel@st.com>
22962         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
22964 2014-04-14  Christian Bruel  <christian.bruel@st.com>
22966         * config/sh/sh.md (setmemqi): New expand pattern.
22967         * config/sh/sh.h (CLEAR_RATIO): Define.
22968         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
22969         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
22971 2014-04-14  Richard Biener  <rguenther@suse.de>
22973         PR middle-end/55022
22974         * fold-const.c (negate_expr_p): Don't negate directional rounding
22975         division.
22976         (fold_negate_expr): Likewise.
22978 2014-04-14  Richard Biener  <rguenther@suse.de>
22980         PR tree-optimization/59817
22981         PR tree-optimization/60453
22982         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
22983         recursion to catch all CHRECs in the scalar evolution and restrict
22984         the predicate for the remains appropriately.
22986 2014-04-12  Catherine Moore  <clm@codesourcery.com>
22988         * config/mips/constraints.md: Add new register constraint "kb".
22989         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
22990         (*movhi_internal): Likewise.
22991         (*movqi_internal): Likewise.
22992         * config/mips/mips.h (M16_STORE_REGS): New register class.
22993         (REG_CLASS_NAMES): Add M16_STORE_REGS.
22994         (REG_CLASS_CONTENTS): Likewise.
22995         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
22997 2014-04-11  Tobias Burnus  <burnus@net-b.de>
22999         PR c/60194
23000         * doc/invoke.texi (-Wformat-signedness): Document it.
23001         (Wformat=2): Mention that this enables -Wformat-signedness.
23003 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
23005         * common/config/epiphany/epiphany-common.c
23006         (epiphany_option_optimization_table): Enable section anchors by
23007         default at -O1 or higher.
23008         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
23009         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
23010         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
23011         carries no extra cost.
23012         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
23013         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
23014         * config/epiphany/predicates.md (memclob_operand): New predicate.
23015         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
23016         Use memclob_operand predicate and X constraint for operand 3.
23018 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
23020         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
23021         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
23022         its operands.
23024 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
23026         PR rtl-optimization/60651
23027         * mode-switching.c (optimize_mode_switching): Make sure to emit
23028         sets of a lower numbered entity before sets of a higher numbered
23029         entity to a mode of the same or lower priority.
23030         When creating a seginfo for a basic block that starts with a code
23031         label, move the insertion point past the code label.
23032         (new_seginfo): Document and enforce requirement that
23033         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
23034         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
23035         * doc/tm.texi: Regenerate.
23037 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
23039         PR target/60811
23040         * config/arc/arc.c (arc_save_restore): Fix assert typo.
23042 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
23044         * BASE-VER: Set to 4.10.0.
23046 2014-04-11  Tobias Burnus  <burnus@net-b.de>
23048         PR other/59055
23049         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
23050         * doc/gcc.texi (Service): Update description in the @menu
23051         * doc/invoke.texi (Option Summary): Remove misplaced and
23052         duplicated @menu.
23054 2014-04-11  Steve Ellcey  <sellcey@mips.com>
23055             Jakub Jelinek  <jakub@redhat.com>
23057         PR middle-end/60556
23058         * expr.c (convert_move): Use emit_store_flag_force instead of
23059         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
23060         argument to it.
23062 2014-04-11  Richard Biener  <rguenther@suse.de>
23064         PR middle-end/60797
23065         * varasm.c (assemble_alias): Avoid endless error reporting
23066         recursion by setting TREE_ASM_WRITTEN.
23068 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23070         * config/s390/s390.md: Add a splitter for NOT rtx.
23072 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
23074         PR rtl-optimization/60663
23075         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
23077 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
23078             Jakub Jelinek  <jakub@redhat.com>
23080         PR lto/60567
23081         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
23082         flag from decl_node to node.
23084 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23086         PR debug/60655
23087         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
23088         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
23089         ameliorating the cases where it can be.
23091 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
23093         Revert
23094         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
23096         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23097         (loadsync_<mode>): Change mode.
23098         (load_quadpti, store_quadpti): New.
23099         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23100         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23101         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
23103 2014-04-09  Cong Hou  <congh@google.com>
23105         PR testsuite/60773
23106         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
23107         documentation.
23109 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23111         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
23112         instead of vnor to exploit possible fusion opportunity in the
23113         future.
23114         (altivec_expand_vec_perm_const_le): Likewise.
23116 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
23118         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
23119         (loadsync_<mode>): Change mode.
23120         (load_quadpti, store_quadpti): New.
23121         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
23122         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
23124 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
23126         PR target/60763
23127         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
23128         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
23129         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
23131 2014-04-08  Richard Biener  <rguenther@suse.de>
23133         PR middle-end/60706
23134         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
23135         a 64bit widest int print double-int similar to on HWI64 hosts.
23137 2014-04-08  Richard Biener  <rguenther@suse.de>
23139         PR tree-optimization/60785
23140         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
23141         default defs properly.
23143 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
23145         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
23146         (Weffc++): Likewise.
23148 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
23150         * ipa-devirt.c (maybe_record_node): When node is not recorded,
23151         set completep to false rather than true.
23153 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
23155         PR target/60504
23156         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
23157         ARM_TARGET2_DWARF_FORMAT.
23159 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
23161         PR target/60609
23162         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
23163         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
23164         ADDR_DIFF_VEC.
23166 2014-04-07  Richard Biener  <rguenther@suse.de>
23168         PR tree-optimization/60766
23169         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
23170         (may_eliminate_iv): Convert cand_value_at result to desired type.
23172 2014-04-07  Jason Merrill  <jason@redhat.com>
23174         PR c++/60731
23175         * common.opt (-fno-gnu-unique): Add.
23176         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
23178 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23180         * haifa-sched.c: Fix outdated function reference and minor
23181         grammar errors in introductory comment.
23183 2014-04-07  Richard Biener  <rguenther@suse.de>
23185         PR middle-end/60750
23186         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
23187         for noreturn calls.
23188         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
23190 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
23192         PR debug/55794
23193         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
23194         size accounting for thunks.
23195         (pa_asm_output_mi_thunk): Use final_start_function() and
23196         final_end_function() to output function start and end directives.
23198 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
23200         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
23201         device specific ISA/ feature information. Remove short_sp and
23202         errata_skip ds.  Add avr_device_specific_features enum to have device
23203         specific info.
23204         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
23205         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
23206         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
23207         updated device specific info.
23208         * config/avr/avr-mcus.def: Merge device specific details to
23209         dev_attribute field.
23210         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
23211         errata_skip.
23212         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
23213         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
23214         assembler if RMW isa supported by current device.
23215         * config/avr/genmultilib.awk: Update as device info structure changed.
23216         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
23218 2014-04-04  Cong Hou  <congh@google.com>
23220         PR tree-optimization/60656
23221         * tree-vect-stmts.c (supportable_widening_operation):
23222         Fix a bug that elements in a vector with vect_used_by_reduction
23223         property are incorrectly reordered when the operation on it is not
23224         consistant with the one in reduction operation.
23226 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
23228         PR rtl-optimization/60155
23229         * gcse.c (record_set_data): New function.
23230         (single_set_gcse): New function.
23231         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
23232         (hoist_code): Likewise.
23233         (get_pressure_class_and_nregs): Likewise.
23235 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
23237         * explow.c (probe_stack_range): Emit a final optimization blockage.
23239 2014-04-04  Anthony Green  <green@moxielogic.com>
23241         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
23242         typos.
23244 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
23246         PR ipa/59626
23247         * lto-cgraph.c (input_overwrite_node): Check that partitioning
23248         flags are set only during streaming.
23249         * ipa.c (process_references, walk_polymorphic_call_targets,
23250         symtab_remove_unreachable_nodes): Drop bodies of always inline
23251         after early inlining.
23252         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
23254 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
23255         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23257         PR debug/60655
23258         * dwarf2out.c (const_ok_for_output_1): Reject expressions
23259         containing a NOT.
23261 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23263         PR bootstrap/60743
23264         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
23265         duration.
23266         (cortex_a53_fdivd): Likewise.
23268 2014-04-04  Martin Jambor  <mjambor@suse.cz>
23270         PR ipa/60640
23271         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
23272         Adjust all callers.
23273         * cgraph.c (clone_of_p): Also return true if thunks match.
23274         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
23275         cgraph_function_or_thunk_node and an obsolete comment.
23276         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
23277         file.
23278         (build_function_decl_skip_args): Likewise.
23279         (set_new_clone_decl_and_node_flags): New function.
23280         (duplicate_thunk_for_node): Likewise.
23281         (redirect_edge_duplicating_thunks): Likewise.
23282         (cgraph_clone_node): New parameter args_to_skip, pass it to
23283         redirect_edge_duplicating_thunks which is called instead of
23284         cgraph_redirect_edge_callee.
23285         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
23286         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
23288 2014-04-04  Jeff Law  <law@redhat.com>
23290         PR target/60657
23291         * config/arm/predicates.md (const_int_I_operand): New predicate.
23292         (const_int_M_operand): Similarly.
23293         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
23294         const_int_operand.
23295         (insv_t2, extv_reg, extzv_t2): Likewise.
23296         (load_multiple_with_writeback): Similarly for const_int_I_operand.
23297         (pop_multiple_with_writeback_and_return): Likewise.
23298         (vfp_pop_multiple_with_writeback): Likewise
23300 2014-04-04  Richard Biener  <rguenther@suse.de>
23302         PR ipa/60746
23303         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
23304         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
23305         non-GIMPLE_LABELs.
23306         * gimplify.h (gimple_add_tmp_var_fn): Declare.
23307         * gimplify.c (gimple_add_tmp_var_fn): New function.
23308         * gimple-expr.h (create_tmp_reg_fn): Declare.
23309         * gimple-expr.c (create_tmp_reg_fn): New function.
23310         * gimple-low.c (record_vars_into): Don't change cfun.
23311         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
23312         code generation without cfun.
23314 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
23316         PR bootstrap/60719
23317         * Makefile.in (install-driver): Fix shell scripting.
23319 2014-04-03  Cong Hou  <congh@google.com>
23321         PR tree-optimization/60505
23322         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
23323         threshold of number of iterations below which no vectorization
23324         will be done.
23325         * tree-vect-loop.c (new_loop_vec_info):
23326         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
23327         * tree-vect-loop.c (vect_analyze_loop_operations):
23328         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
23329         * tree-vect-loop.c (vect_transform_loop):
23330         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
23331         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
23332         of iterations of the loop and see if we should build the epilogue.
23334 2014-04-03  Richard Biener  <rguenther@suse.de>
23336         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
23337         (streamer_tree_cache_create): Adjust.
23338         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
23339         to allow optional nodes array.
23340         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
23341         (streamer_tree_cache_append): Likewise.
23342         (streamer_tree_cache_create): Create nodes array optionally
23343         as specified by parameter.
23344         * lto-streamer-out.c (create_output_block): Avoid maintaining
23345         the node array in the writer cache.
23346         (DFS_write_tree): Remove assertion.
23347         (produce_asm_for_decls): Free the out decl state hash table early.
23348         * lto-streamer-in.c (lto_data_in_create): Adjust for
23349         streamer_tree_cache_create prototype change.
23351 2014-04-03  Richard Biener  <rguenther@suse.de>
23353         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
23354         set TREE_CHAIN to NULL_TREE.
23356 2014-04-03  Richard Biener  <rguenther@suse.de>
23358         PR tree-optimization/60740
23359         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
23360         over all GIMPLE_COND operands.
23362 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
23364         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
23365         (Weffc++): Remove Scott's numbering, merge lists and reference
23366         Wnon-virtual-dtor.
23368 2014-04-03  Nick Clifton  <nickc@redhat.com>
23370         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
23371         properly.
23373 2014-04-03  Martin Jambor  <mjambor@suse.cz>
23375         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
23376         mention gcc_unreachable before failing.
23377         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
23378         removed symbols.
23380 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
23382         PR ipa/60659
23383         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
23384         inconsistent code and instead mark the context inconsistent.
23385         (possible_polymorphic_call_targets): For inconsistent contexts
23386         return empty complete list.
23388 2014-04-02  Anthony Green  <green@moxielogic.com>
23390         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
23391         (extendqisi2, extendhisi2): Define.
23392         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
23393         (WCHAR_TYPE): Change to unsigned int.
23395 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23397         PR tree-optimization/60733
23398         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
23399         insertion point for PHI candidates to be the end of the feeding
23400         block for the PHI argument.
23402 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
23404         PR rtl-optimization/60650
23405         * lra-constraints.c (process_alt_operands): Decrease reject for
23406         earlyclobber matching.
23408 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23410         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
23412 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23414         * config/spu/spu.c (pad_bb): Do not crash when the last
23415         insn is CODE_FOR_blockage.
23417 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23419         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
23420         lies outside the target mode.
23422 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23424         PR target/60735
23425         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
23426         software floating point or no floating point registers, do not
23427         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
23428         in GPRs that occurs after we tested for GPRs that would never be
23429         true.
23431         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
23432         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
23433         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
23434         specifically allow DDmode, since that does not use the SPE SIMD
23435         instructions.
23437 2014-04-02  Richard Biener  <rguenther@suse.de>
23439         PR middle-end/60729
23440         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
23441         MODE_INTs.  Properly use negv_optab.
23442         (expand_abs): Likewise.
23444 2014-04-02  Richard Biener  <rguenther@suse.de>
23446         PR bootstrap/60719
23447         * Makefile.in (install-driver): Guard extra installs with special
23448         names properly.
23450 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
23452         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23453         Document vec_vgbbd.
23455 2014-04-01  Richard Henderson  <rth@redhat.com>
23457         PR target/60704
23458         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
23459         alternative enabled before register allocation.
23461 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
23463         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
23464         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
23465         typo.
23466         (nios2_large_got_address): Remove unneeded 'sym' parameter.
23467         (nios2_got_address): Update nios2_large_got_address call site.
23468         (nios2_delegitimize_address): New function.
23469         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
23470         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
23471         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
23473 2014-04-01  Martin Husemann  <martin@duskware.de>
23475         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
23476         for -mabi=32.
23478 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
23480         PR rtl-optimization/60604
23481         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
23482         check from register_operand.
23483         (register_operand): Redefine in terms of general_operand.
23484         (nonmemory_operand): Use register_operand for the non-constant cases.
23486 2014-04-01  Richard Biener  <rguenther@suse.de>
23488         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
23490 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23492         * doc/invoke.texi (mapp-regs): Clarify.
23494 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
23496         * config/i386/avx512fintrin.h (__v32hi): Define type.
23497         (__v64qi): Likewise.
23498         (_mm512_set1_epi8): Define.
23499         (_mm512_set1_epi16): Define.
23500         (_mm512_set4_epi32): Define.
23501         (_mm512_set4_epi64): Define.
23502         (_mm512_set4_pd): Define.
23503         (_mm512_set4_ps): Define.
23504         (_mm512_setr4_epi64): Define.
23505         (_mm512_setr4_epi32): Define.
23506         (_mm512_setr4_pd): Define.
23507         (_mm512_setr4_ps): Define.
23508         (_mm512_setzero_epi32): Define.
23510 2014-03-31  Martin Jambor  <mjambor@suse.cz>
23512         PR middle-end/60647
23513         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
23514         callsite_arguments_match_p.  Updated all callers.  Also check types of
23515         corresponding formal parameters and actual arguments.
23516         (not_all_callers_have_enough_arguments_p) Renamed to
23517         some_callers_have_mismatched_arguments_p.
23519 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
23521         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
23523 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
23525         PR target/60034
23526         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
23527         section anchor.
23529 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
23531         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
23532         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
23533         Split out
23534         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
23535         Use FMAMODE_NOVF512 mode iterator.
23536         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
23537         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
23538         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
23539         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
23540         Split out
23541         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
23542         Use VF_128_256 mode iterator.
23543         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
23544         Ditto.
23546 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
23548         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
23549         static chain if needed.
23551 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
23553         PR target/60697
23554         * lra-constraints.c (index_part_to_reg): New.
23555         (process_address): Use it.
23557 2014-03-27  Jeff Law  <law@redhat.com>
23558             Jakub Jelinek  <jakub@redhat.com>
23560         PR target/60648
23561         * expr.c (do_tablejump): Use simplify_gen_binary rather than
23562         gen_rtx_{PLUS,MULT} to build up the address expression.
23564         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
23565         creating non-canonical RTL.
23567 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
23569         PR ipa/60243
23570         * ipa-inline.c (want_inline_small_function_p): Short circuit large
23571         functions; reorganize to make cheap checks first.
23572         (inline_small_functions): Do not estimate growth when dumping;
23573         it is expensive.
23574         * ipa-inline.h (inline_summary): Add min_size.
23575         (growth_likely_positive): New function.
23576         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
23577         (set_cond_stmt_execution_predicate): Cleanup.
23578         (estimate_edge_size_and_time): Compute min_size.
23579         (estimate_calls_size_and_time): Likewise.
23580         (estimate_node_size_and_time): Likewise.
23581         (inline_update_overall_summary): Update min_size.
23582         (do_estimate_edge_time): Likewise.
23583         (do_estimate_edge_size): Update.
23584         (do_estimate_edge_hints): Update.
23585         (growth_likely_positive): New function.
23587 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
23589         PR target/60693
23590         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
23591         also if addr has VOIDmode.
23593 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23595         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
23596         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
23597         Declare extern.
23598         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
23599         instructions as well as AdvancedSIMD loads.
23601 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23603         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
23604         Use crypto_aese type.
23605         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
23606         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
23607         crypto_aese, crypto_aesmc.  Move to types.md.
23608         * config/arm/types.md (crypto_aes): Split into crypto_aese,
23609         crypto_aesmc.
23610         * config/arm/iterators.md (crypto_type): Likewise.
23612 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
23614         * cgraph.c: Include expr.h and tree-dfa.h.
23615         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
23616         remove LHS.
23618 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
23620         PR target/60675
23621         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
23622         regs from checking multi-reg pseudos.
23624 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23626         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
23628 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23630         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
23631         if it would clobber the stack pointer, even temporarily.
23633 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
23635         * mode-switching.c: Make small adjustments to the top comment.
23637 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
23639         * config/rs6000/constraints.md (wD constraint): New constraint to
23640         match the constant integer to get the top DImode/DFmode out of a
23641         vector in a VSX register.
23643         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
23644         match the constant integer to get the top DImode/DFmode out of a
23645         vector in a VSX register.
23647         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
23648         for ISA 2.07.
23650         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23651         vbpermq builtins.
23653         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
23654         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
23656         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
23657         Optimize vec_extract of 64-bit values, where the value being
23658         extracted is in the top word, where we can use scalar
23659         instructions.  Add direct move and store support.  Combine the big
23660         endian/little endian vector select load support into a single insn.
23661         (vsx_extract_<mode>_internal1): Likewise.
23662         (vsx_extract_<mode>_internal2): Likewise.
23663         (vsx_extract_<mode>_load): Likewise.
23664         (vsx_extract_<mode>_store): Likewise.
23665         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
23666         combined into vsx_extract_<mode>_load.
23667         (vsx_extract_<mode>_one_le): Likewise.
23669         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
23670         define the top 64-bit vector element.
23672         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
23673         constraint.
23675         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23676         Document vec_vbpermq builtin.
23678         PR target/60672
23679         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
23680         enable use of xxsldwi and xxpermdi builtin functions.
23681         (vec_xxpermdi): Likewise.
23683         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23684         Document use of vec_xxsldwi and vec_xxpermdi builtins.
23686 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
23688         PR rtl-optimization/60650
23689         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
23690         first_p.  Use it.
23691         (find_spills_for): New.
23692         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
23693         Spill all pseudos on the second iteration.
23695 2014-03-27  Marek Polacek  <polacek@redhat.com>
23697         PR c/50347
23698         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
23699         types.
23701 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23703         * config/s390/s390.c (s390_can_use_return_insn): Check for
23704         call-saved FPRs on 31 bit.
23706 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
23708         PR middle-end/60682
23709         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
23710         if they need regimplification, just drop them instead of
23711         calling gimple_regimplify_operands on them.
23713 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23715         PR target/60580
23716         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
23717         (aarch64_frame_pointer_required): Adjust logic.
23718         (aarch64_can_eliminate): Adjust logic.
23719         (aarch64_override_options_after_change): Adjust logic.
23721 2014-03-27  Dehao Chen  <dehao@google.com>
23723         * ipa-inline.c (early_inliner): Update node's inline info.
23725 2014-03-26  Dehao Chen  <dehao@google.com>
23727         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
23728         compiler inserted conditional jumps for NAN float check.
23730 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
23732         * ubsan.h (ubsan_create_data): Change second argument's type
23733         to const location_t *.
23734         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
23735         _("<unknown>").
23736         (ubsan_create_data): Change second argument to const location_t *PLOC.
23737         Create Loc field whenever PLOC is non-NULL.
23738         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
23739         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
23740         callers.
23742         PR other/59545
23743         * real.c (real_to_integer2): Change type of low to UHWI.
23745 2014-03-26  Tobias Burnus  <burnus@net-b.de>
23747         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
23748         (CILK_SELF_SPECS): New define.
23749         (driver_self_specs): Use it.
23751 2014-03-26  Richard Biener  <rguenther@suse.de>
23753         * tree-pretty-print.c (percent_K_format): Implement special
23754         case for LTO and its stripped down BLOCK tree.
23756 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
23758         PR sanitizer/60636
23759         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
23761         * tree-vrp.c (simplify_internal_call_using_ranges): If only
23762         one range is range_int_cst_p, but not both, at least optimize
23763         addition/subtraction of 0 and multiplication by 0 or 1.
23764         * gimple-fold.c (gimple_fold_call): Fold
23765         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
23766         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
23767         INTEGER_CSTs, try to fold at least x * 0 and y - y.
23769 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
23771         PR rtl-optimization/60452
23772         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
23773         <case REG>: Return 1 for invalid offsets from the frame pointer.
23775 2014-03-26  Marek Polacek  <polacek@redhat.com>
23777         PR c/37428
23778         * doc/extend.texi (C Extensions): Mention variable-length arrays in
23779         a structure/union.
23781 2014-03-26  Marek Polacek  <polacek@redhat.com>
23783         PR c/39525
23784         * doc/extend.texi (Designated Inits): Describe what happens to omitted
23785         field members.
23787 2014-03-26  Marek Polacek  <polacek@redhat.com>
23789         PR other/59545
23790         * ira-color.c (update_conflict_hard_regno_costs): Perform the
23791         multiplication in unsigned type.
23793 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
23795         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
23797 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
23799         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
23801 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
23803         PR ipa/60315
23804         * cif-code.def (UNREACHABLE) New code.
23805         * ipa-inline.c (inline_small_functions): Skip edges to
23806         __builtlin_unreachable.
23807         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
23808         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
23809         predicate to __bulitin_unreachable.
23810         (set_cond_stmt_execution_predicate): Fix issue when
23811         invert_tree_comparison returns ERROR_MARK.
23812         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
23813         propagate to inline clones.
23814         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
23815         to unreachable.
23816         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
23817         * cgraphclones.c (cgraph_clone_node): If call destination is already
23818         ureachable, do not redirect it back.
23819         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
23820         unreachable.
23822 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
23824         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
23825         Do not modify inline clones.
23827 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
23829         * config/i386/i386.md (general_sext_operand): New mode attr.
23830         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
23831         don't generate (sign_extend (const_int)).
23832         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
23833         operands[2].  Use We constraint instead of <i> and
23834         <general_sext_operand> predicate instead of <general_operand>.
23835         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
23836         * config/i386/constraints.md (We): New constraint.
23837         * config/i386/predicates.md (x86_64_sext_operand,
23838         sext_operand): New predicates.
23840 2014-03-25  Martin Jambor  <mjambor@suse.cz>
23842         PR ipa/60600
23843         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
23844         inconsistent devirtualizations to __builtin_unreachable.
23846 2014-03-25  Marek Polacek  <polacek@redhat.com>
23848         PR c/35449
23849         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
23851 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
23853         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
23854         order of elements for big-endian.
23856 2014-03-25  Richard Biener  <rguenther@suse.de>
23858         PR middle-end/60635
23859         * gimplify-me.c (gimple_regimplify_operands): Update the
23860         re-gimplifed stmt.
23862 2014-03-25  Martin Jambor  <mjambor@suse.cz>
23864         PR ipa/59176
23865         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
23866         (lto_output_varpool_node): Likewise.
23867         (input_overwrite_node): Likewise.
23868         (input_varpool_node): Likewise.
23870 2014-03-25  Richard Biener  <rguenther@suse.de>
23872         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
23873         (run_gcc): Likewise.
23875 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
23877         * combine.c (simplify_compare_const): Add MODE argument.
23878         Handle mode_width 0 as very large mode_width.
23879         (try_combine, simplify_comparison): Adjust callers.
23881         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
23882         type to avoid signed integer overflow.
23883         * explow.c (plus_constant): Likewise.
23885 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23887         * doc/generic.texi: Correct typos.
23889 2014-03-24  Tobias Burnus  <burnus@net-b.de>
23891         * doc/invoke.texi (-flto): Expand section about
23892         using static libraries with LTO.
23894 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23896         PR rtl-optimization/60501
23897         * optabs.def (addptr3_optab): New optab.
23898         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
23899         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
23900         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
23902         * lra.c (emit_add3_insn): Use the addptr pattern if available.
23904         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
23906 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
23908         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
23909         _mm512_set1_pd.
23911         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
23912         (_mm256_undefined_ps): Define.
23913         (_mm256_undefined_pd): Define.
23914         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
23915         (_mm_undefined_pd): Define.
23916         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
23917         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
23918         (_mm512_undefined_ps): Define.
23919         (_mm512_undefined_pd): Define.
23920         Use _mm*_undefined_*.
23921         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
23923 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
23925         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
23926         (lshr_simd): DI mode added.
23927         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
23928         (aarch64_ushr_simddi): Likewise.
23929         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
23930         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
23931         (vshrd_n_u64): Likewise.
23933 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23935         * Makefile.in (s-macro_list): Depend on cc1.
23937 2014-03-23  Teresa Johnson  <tejohnson@google.com>
23939         * ipa-utils.c (ipa_print_order): Use specified dump file.
23941 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
23943         PR rtl-optimization/60601
23944         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
23946         * gcc.c (eval_spec_function): Initialize save_growing_value.
23948 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
23950         PR sanitizer/60613
23951         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
23952         code == MINUS_EXPR, never swap op0 with op1.
23954         * toplev.c (init_local_tick): Avoid signed integer multiplication
23955         overflow.
23956         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
23957         shift by first operand's bitsize.
23959 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
23961         PR target/60610
23962         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
23963         redefine to 1 or 0.
23964         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
23965         TARGET_ISA_64BIT_P(x).
23967 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23969         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
23970         pattern for vector nor instead of subtract from splat(-1).
23971         (altivec_expand_vec_perm_const_le): Likewise.
23973 2014-03-21  Richard Henderson  <rth@twiddle.net>
23975         PR target/60598
23976         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
23977         related insns after epilogue_completed.
23979 2014-03-21  Martin Jambor  <mjambor@suse.cz>
23981         PR ipa/59176
23982         * cgraph.h (symtab_node): New flag body_removed.
23983         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
23984         when removing bodies.
23985         * symtab.c (dump_symtab_base): Dump body_removed flag.
23986         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
23987         had their bodies removed.
23989 2014-03-21  Martin Jambor  <mjambor@suse.cz>
23991         PR ipa/60419
23992         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
23993         in the border.
23995 2014-03-21  Richard Biener  <rguenther@suse.de>
23997         PR tree-optimization/60577
23998         * tree-core.h (struct tree_base): Document nothrow_flag use
23999         in DECL_NONALIASED.
24000         * tree.h (DECL_NONALIASED): New.
24001         (may_be_aliased): Adjust.
24002         * coverage.c (build_var): Set DECL_NONALIASED.
24004 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
24006         * expr.c (expand_expr_real_1): Remove outdated comment.
24008 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
24010         PR middle-end/60597
24011         * ira.c (adjust_cleared_regs): Call copy_rtx on
24012         *reg_equiv[REGNO (loc)].src_p before passing it to
24013         simplify_replace_fn_rtx.
24015         PR target/60568
24016         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
24017         into CONST, put pic register as first operand of PLUS.  Use
24018         gen_const_mem for both 32-bit and 64-bit PIC got loads.
24020 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24022         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
24024 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
24026         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
24027         around for store forwarding issue in the FPU on the UT699.
24028         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
24029         loads and operations if -mfix-ut699 is specified.
24030         (divtf3_hq): Tweak attribute.
24031         (sqrttf2_hq): Likewise.
24033 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
24035         * calls.c (store_one_arg): Remove incorrect const qualification on the
24036         type of the temporary.
24037         * cfgexpand.c (expand_return): Likewise.
24038         * expr.c (expand_constructor): Likewise.
24039         (expand_expr_real_1): Likewise.
24041 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24043         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
24044         of parts.
24046 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
24048         PR target/60039
24049         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
24051 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
24053         * config/arm/aarch-common-protos.h
24054         (alu_cost_table): Fix spelling of "extend".
24055         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
24057 2014-03-19  Richard Biener  <rguenther@suse.de>
24059         PR middle-end/60553
24060         * tree-core.h (tree_type_common): Re-order pointer members
24061         to reduce recursion depth during GC walks.
24063 2014-03-19  Marek Polacek  <polacek@redhat.com>
24065         PR sanitizer/60569
24066         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
24067         before accessing it.
24069 2014-03-19  Richard Biener  <rguenther@suse.de>
24071         PR lto/59543
24072         * lto-streamer-in.c (input_function): In WPA stage do not drop
24073         debug stmts.
24075 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
24077         PR tree-optimization/60559
24078         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
24079         with build_zero_cst assignment.
24081 2014-03-18  Kai Tietz  <ktietz@redhat.com>
24083         PR rtl-optimization/56356
24084         * sdbout.c (sdbout_parms): Verify that parms'
24085         incoming argument is valid.
24086         (sdbout_reg_parms): Likewise.
24088 2014-03-18  Richard Henderson  <rth@redhat.com>
24090         PR target/60562
24091         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
24092         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
24093         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
24095 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
24097         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
24098         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
24099         Italicize plugin event names in description.  Explain that
24100         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
24101         Remind that no GCC functions should be called after PLUGIN_FINISH.
24102         Explain what pragmas with expansion are.
24104 2014-03-18  Martin Liska  <mliska@suse.cz>
24106         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
24107         gimple call statement is update.
24108         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
24109         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
24111 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
24113         PR sanitizer/60557
24114         * ubsan.c (ubsan_instrument_unreachable): Call
24115         initialize_sanitizer_builtins.
24116         (ubsan_pass): Likewise.
24118         PR sanitizer/60535
24119         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
24120         varpool_finalize_decl instead of rest_of_decl_compilation.
24122 2014-03-18  Richard Biener  <rguenther@suse.de>
24124         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
24125         by using bitmap_and_compl instead of bitmap_and_compl_into.
24126         (df_rd_transfer_function): Likewise.
24128 2014-03-18  Richard Biener  <rguenther@suse.de>
24130         * doc/lto.texi (fresolution): Fix typo.
24132 2014-03-18  Richard Biener  <rguenther@suse.de>
24134         * doc/invoke.texi (flto): Update for changes in 4.9.
24136 2014-03-18  Richard Biener  <rguenther@suse.de>
24138         * doc/loop.texi: Remove section on the removed lambda framework.
24139         Update loop docs with recent changes in preserving loop structure.
24141 2014-03-18  Richard Biener  <rguenther@suse.de>
24143         * doc/lto.texi (-fresolution): Document.
24145 2014-03-18  Richard Biener  <rguenther@suse.de>
24147         * doc/contrib.texi: Adjust my name.
24149 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
24151         PR ipa/58721
24152         * internal-fn.c: Include diagnostic-core.h.
24153         (expand_BUILTIN_EXPECT): New function.
24154         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
24155         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
24156         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
24157         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
24158         IFN_BUILTIN_EXPECT.
24159         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
24160         Revert 3 argument __builtin_expect code.
24161         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
24162         * gimple-fold.c (gimple_fold_call): Likewise.
24163         * tree.h (fold_builtin_expect): New prototype.
24164         * builtins.c (build_builtin_expect_predicate): Add predictor
24165         argument, if non-NULL, create 3 argument __builtin_expect.
24166         (fold_builtin_expect): No longer static.  Add ARG2 argument,
24167         pass it through to build_builtin_expect_predicate.
24168         (fold_builtin_2): Adjust caller.
24169         (fold_builtin_3): Handle BUILT_IN_EXPECT.
24170         * internal-fn.def (BUILTIN_EXPECT): New.
24172 2014-03-18  Tobias Burnus  <burnus@net-b.de>
24174         PR ipa/58721
24175         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
24176         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
24177         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
24179 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
24181         PR ipa/58721
24182         * predict.c (combine_predictions_for_bb): Fix up formatting.
24183         (expr_expected_value_1, expr_expected_value): Add predictor argument,
24184         fill what it points to if non-NULL.
24185         (tree_predict_by_opcode): Adjust caller, use the predictor.
24186         * predict.def (PRED_COMPARE_AND_SWAP): Add.
24188 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
24190         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
24191         proper constant for the store mode.
24193 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
24195         * symtab.c (change_decl_assembler_name): Fix transparent alias
24196         chain construction.
24198 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
24200         * config/aarch64/aarch64.c: Correct the comments about the
24201         aarch64 stack layout.
24203 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
24205         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
24206         check for GF_OMP_FOR_KIND_FOR.
24208 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
24210         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
24211         ymm and zmm register names.
24213 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
24215         PR target/60516
24216         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
24217         note creation for the 2010-08-31 changes.
24219 2014-03-17  Marek Polacek  <polacek@redhat.com>
24221         PR middle-end/60534
24222         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
24223         as -fno-tree-loop-vectorize.
24224         (expand_omp_simd): Likewise.
24226 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
24228         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
24229         (eligible_for_call_delay): New prototype.
24230         * config/sparc/sparc.c (tls_call_delay): Rename into...
24231         (eligible_for_call_delay): ...this.  Return false if the instruction
24232         cannot be put in the delay slot of a branch.
24233         (eligible_for_restore_insn): Simplify.
24234         (eligible_for_return_delay): Return false if the instruction cannot be
24235         put in the delay slot of a branch and simplify.
24236         (eligible_for_sibcall_delay): Return false if the instruction cannot be
24237         put in the delay slot of a branch.
24238         * config/sparc/sparc.md (fix_ut699): New attribute.
24239         (tls_call_delay): Delete.
24240         (in_call_delay): Reimplement.
24241         (eligible_for_sibcall_delay): Rename into...
24242         (in_sibcall_delay): ...this.
24243         (eligible_for_return_delay): Rename into...
24244         (in_return_delay): ...this.
24245         (in_branch_delay): Reimplement.
24246         (in_uncond_branch_delay): Delete.
24247         (in_annul_branch_delay): Delete.
24249 2014-03-14  Richard Henderson  <rth@redhat.com>
24251         PR target/60525
24252         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
24253         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
24254         (*floathi<X87MODEF>2_i387_with_temp): Remove.
24255         (floathi splitters): Remove.
24256         (float<SWI48x>xf2): New pattern.
24257         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
24258         code that tried to handle DImode for 32-bit, but which was excluded
24259         by the pattern's condition.  Drop allocation of stack temporary.
24260         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
24261         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
24262         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
24263         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
24264         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
24265         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
24266         (*float<SWI48><MODEF>2_sse_interunit): Remove.
24267         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
24268         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
24269         (*float<SWI48x><X87MODEF>2_i387): Remove.
24270         (all float _with_temp splitters): Remove.
24271         (*float<SWI48x><MODEF>2_i387): New pattern.
24272         (*float<SWI48><MODEF>2_sse): New pattern.
24273         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
24274         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
24276 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
24277             Marek Polacek  <polacek@redhat.com>
24279         PR middle-end/60484
24280         * common.opt (dump_base_name_prefixed): New Variable.
24281         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
24282         if x_dump_base_name_prefixed is already set, set it at the end.
24284 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
24286         PR rtl-optimization/60508
24287         * lra-constraints.c (get_reload_reg): Add new parameter
24288         in_subreg_p.
24289         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
24290         Pass the new parameter values.
24292 2014-03-14  Richard Biener  <rguenther@suse.de>
24294         * common.opt: Revert unintented changes from r205065.
24295         * opts.c: Likewise.
24297 2014-03-14  Richard Biener  <rguenther@suse.de>
24299         PR middle-end/60518
24300         * cfghooks.c (split_block): Properly adjust all loops the
24301         block was a latch of.
24303 2014-03-14  Martin Jambor  <mjambor@suse.cz>
24305         PR lto/60461
24306         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
24307         and simplify it.
24309 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
24311         PR target/59396
24312         * config/avr/avr.c (avr_set_current_function): Pass function name
24313         through default_strip_name_encoding before sanity checking instead
24314         of skipping the first char of the assembler name.
24316 2014-03-13  Richard Henderson  <rth@redhat.com>
24318         PR debug/60438
24319         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
24320         (ix86_force_to_memory, ix86_free_from_memory): Remove.
24321         * config/i386/i386-protos.h: Likewise.
24322         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
24323         in the expander instead of a splitter.
24324         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
24325         any possibility of requiring a memory.
24326         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
24327         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
24328         (fp branch splitters): Update for ix86_split_fp_branch.
24329         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
24330         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
24331         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
24332         (*fop_<MODEF>_2_i387): Remove f/r alternative.
24333         (*fop_<MODEF>_3_i387): Likewise.
24334         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
24335         (splitters for the fop_* register patterns): Remove.
24336         (fscalexf4_i387): Rename from *fscalexf4_i387.
24337         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
24339 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
24341         PR tree-optimization/59779
24342         * tree-dfa.c (get_ref_base_and_extent): Use double_int
24343         type for bitsize and maxsize instead of HOST_WIDE_INT.
24345 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
24347         PR rtl-optimization/57320
24348         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
24349         the CFG after thread_prologue_and_epilogue_insns.
24351 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
24353         PR rtl-optimization/57189
24354         * lra-constraints.c (process_alt_operands): Disfavor spilling
24355         vector pseudos.
24357 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
24359         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
24361 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
24363         PR tree-optimization/59025
24364         PR middle-end/60418
24365         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
24366         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
24368 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
24370         PR target/60486
24371         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
24372         calls of avr_out_plus_1.
24374 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
24376         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
24377         BB's single pred and update the father loop's latch info later.
24379 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
24381         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
24382         (VEC_M): Likewise.
24383         (VEC_N): Likewise.
24384         (VEC_R): Likewise.
24385         (VEC_base): Likewise.
24386         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
24387         registers, we need to swap double words in little endian mode.
24389         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
24390         to be a container mode for 128-bit integer operations added in ISA
24391         2.07.  Unlike TImode and PTImode, the preferred register set is
24392         the Altivec/VMX registers for the 128-bit operations.
24394         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
24395         declarations.
24396         (rs6000_split_128bit_ok_p): Likewise.
24398         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
24399         macros for creating ISA 2.07 normal and overloaded builtin
24400         functions with 3 arguments.
24401         (BU_P8V_OVERLOAD_3): Likewise.
24402         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
24403         for use as overloaded functions.
24404         (VPERM_1TI_UNS): Likewise.
24405         (VSEL_1TI): Likewise.
24406         (VSEL_1TI_UNS): Likewise.
24407         (ST_INTERNAL_1ti): Likewise.
24408         (LD_INTERNAL_1ti): Likewise.
24409         (XXSEL_1TI): Likewise.
24410         (XXSEL_1TI_UNS): Likewise.
24411         (VPERM_1TI): Likewise.
24412         (VPERM_1TI_UNS): Likewise.
24413         (XXPERMDI_1TI): Likewise.
24414         (SET_1TI): Likewise.
24415         (LXVD2X_V1TI): Likewise.
24416         (STXVD2X_V1TI): Likewise.
24417         (VEC_INIT_V1TI): Likewise.
24418         (VEC_SET_V1TI): Likewise.
24419         (VEC_EXT_V1TI): Likewise.
24420         (EQV_V1TI): Likewise.
24421         (NAND_V1TI): Likewise.
24422         (ORC_V1TI): Likewise.
24423         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
24424         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
24425         overloaded builtin.
24426         (VADDUQM): Likewise.
24427         (VSUBCUQ): Likewise.
24428         (VADDEUQM): Likewise.
24429         (VADDECUQ): Likewise.
24430         (VSUBEUQM): Likewise.
24431         (VSUBECUQ): Likewise.
24433         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
24434         __int128_t and __uint128_t types.
24435         (__uint128_type): Likewise.
24436         (altivec_categorize_keyword): Add support for vector __int128_t,
24437         vector __uint128_t, vector __int128, and vector unsigned __int128
24438         as a container type for TImode operations that need to be done in
24439         VSX/Altivec registers.
24440         (rs6000_macro_to_expand): Likewise.
24441         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
24442         to support 128-bit integer instructions vaddcuq, vadduqm,
24443         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
24444         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
24446         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
24447         for V1TImode, and set up preferences to use VSX/Altivec registers.
24448         Setup VSX reload handlers.
24449         (rs6000_debug_reg_global): Likewise.
24450         (rs6000_init_hard_regno_mode_ok): Likewise.
24451         (rs6000_preferred_simd_mode): Likewise.
24452         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
24453         (easy_altivec_constant): Likewise.
24454         (output_vec_const_move): Likewise.
24455         (rs6000_expand_vector_set): Convert V1TImode set and extract to
24456         simple move.
24457         (rs6000_expand_vector_extract): Likewise.
24458         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
24459         addressing.
24460         (rs6000_const_vec): Add support for V1TImode.
24461         (rs6000_emit_le_vsx_load): Swap double words when loading or
24462         storing TImode/V1TImode.
24463         (rs6000_emit_le_vsx_store): Likewise.
24464         (rs6000_emit_le_vsx_move): Likewise.
24465         (rs6000_emit_move): Add support for V1TImode.
24466         (altivec_expand_ld_builtin): Likewise.
24467         (altivec_expand_st_builtin): Likewise.
24468         (altivec_expand_vec_init_builtin): Likewise.
24469         (altivec_expand_builtin): Likewise.
24470         (rs6000_init_builtins): Add support for V1TImode type.  Add
24471         support for ISA 2.07 128-bit integer builtins.  Define type names
24472         for the VSX/Altivec vector types.
24473         (altivec_init_builtins): Add support for overloaded vector
24474         functions with V1TImode type.
24475         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
24476         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
24477         external function.
24478         (rs6000_split_128bit_ok_p): Likewise.
24479         (rs6000_handle_altivec_attribute): Create V1TImode from vector
24480         __int128_t and vector __uint128_t.
24482         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
24483         and mode attributes.
24484         (VSX_M): Likewise.
24485         (VSX_M2): Likewise.
24486         (VSm): Likewise.
24487         (VSs): Likewise.
24488         (VSr): Likewise.
24489         (VSv): Likewise.
24490         (VS_scalar): Likewise.
24491         (VS_double): Likewise.
24492         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
24494         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
24495         we support the ISA 2.07 128-bit integer arithmetic instructions.
24496         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
24497         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
24498         and TImode types for use with the builtin functions.
24499         (V1TI_type_node): Likewise.
24500         (unsigned_V1TI_type_node): Likewise.
24501         (intTI_type_internal_node): Likewise.
24502         (uintTI_type_internal_node): Likewise.
24504         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
24505         128-bit builtin functions.
24506         (UNSPEC_VADDEUQM): Likewise.
24507         (UNSPEC_VADDECUQ): Likewise.
24508         (UNSPEC_VSUBCUQ): Likewise.
24509         (UNSPEC_VSUBEUQM): Likewise.
24510         (UNSPEC_VSUBECUQ): Likewise.
24511         (VM): Add V1TImode to vector mode iterators.
24512         (VM2): Likewise.
24513         (VI_unit): Likewise.
24514         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
24515         (altivec_vaddcuq): Likewise.
24516         (altivec_vsubuqm): Likewise.
24517         (altivec_vsubcuq): Likewise.
24518         (altivec_vaddeuqm): Likewise.
24519         (altivec_vaddecuq): Likewise.
24520         (altivec_vsubeuqm): Likewise.
24521         (altivec_vsubecuq): Likewise.
24523         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
24524         mode iterators.
24525         (BOOL_128): Likewise.
24526         (BOOL_REGS_OUTPUT): Likewise.
24527         (BOOL_REGS_OP1): Likewise.
24528         (BOOL_REGS_OP2): Likewise.
24529         (BOOL_REGS_UNARY): Likewise.
24530         (BOOL_REGS_AND_CR0): Likewise.
24532         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
24533         128-bit integer builtin support.
24534         (vec_vadduqm): Likewise.
24535         (vec_vaddecuq): Likewise.
24536         (vec_vaddeuqm): Likewise.
24537         (vec_vsubecuq): Likewise.
24538         (vec_vsubeuqm): Likewise.
24539         (vec_vsubcuq): Likewise.
24540         (vec_vsubuqm): Likewise.
24542         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24543         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
24544         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
24545         128-bit integer add/subtract to ISA 2.07.
24547 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
24549         * config/arc/arc.c (arc_predicate_delay_insns):
24550         Fix third argument passed to conditionalize_nonjump.
24552 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
24554         * config/aarch64/aarch64-builtins.c
24555         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
24556         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
24557         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
24558         instead of __builtin_lfloor.
24559         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
24561 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
24563         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
24564         (tree_ssa_ifcombine_bb_1): New function.
24565         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
24566         is an empty forwarder block to then_bb or vice versa and then_bb
24567         and else_bb are effectively swapped.
24569 2014-03-12  Christian Bruel  <christian.bruel@st.com>
24571         PR target/60264
24572         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
24573         REG_CFA_DEF_CFA note.
24574         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
24575         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
24577 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24579         PR tree-optimization/60454
24580         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
24582 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24584         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
24585         Do not define target_cpu_default2 to generic.
24586         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
24587         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
24588         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
24590 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
24591             Marc Glisse  <marc.glisse@inria.fr>
24593         PR tree-optimization/60502
24594         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
24595         instead of build_low_bits_mask.
24597 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
24599         PR middle-end/60482
24600         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
24601         if there are multiple uses, but op doesn't live on E edge.
24602         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
24603         clobber stmts before __builtin_unreachable.
24605 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
24607         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
24608         hard_frame_pointer_rtx.
24609         * cse.c (cse_insn): Remove volatile check.
24610         * cselib.c (cselib_process_insn): Likewise.
24611         * dse.c (scan_insn): Likewise.
24613 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24615         * config/arc/arc.c (conditionalize_nonjump): New function,
24616         broken out of ...
24617         (arc_ifcvt): ... this.
24618         (arc_predicate_delay_insns): Use it.
24620 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
24622         * config/arc/predicates.md (extend_operand): During/after reload,
24623         allow const_int_operand.
24624         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
24625         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
24626         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
24627         to "i".
24628         (umulsi3_highpart_i): Likewise.
24630 2014-03-11  Richard Biener  <rguenther@suse.de>
24632         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
24633         Add asserts to guard possible wrong-code bugs.
24635 2014-03-11  Richard Biener  <rguenther@suse.de>
24637         PR tree-optimization/60429
24638         PR tree-optimization/60485
24639         * tree-ssa-structalias.c (set_union_with_increment): Properly
24640         take into account all fields that overlap the shifted vars.
24641         (do_sd_constraint): Likewise.
24642         (do_ds_constraint): Likewise.
24643         (get_constraint_for_ptr_offset): Likewise.
24645 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
24647         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
24648         (nios2_compute_frame_layout):
24649         Add calculation of cfun->machine->fp_save_offset.
24650         (nios2_expand_prologue): Correct setting of frame pointer register
24651         in prologue.
24652         (nios2_expand_epilogue): Update recovery of stack pointer from
24653         frame pointer accordingly.
24654         (nios2_initial_elimination_offset): Update calculation of offset
24655         for eliminating to HARD_FRAME_POINTER_REGNUM.
24657 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
24659         PR ipa/60457
24660         * ipa.c (symtab_remove_unreachable_nodes): Don't call
24661         cgraph_get_create_node on VAR_DECLs.
24663 2014-03-10  Richard Biener  <rguenther@suse.de>
24665         PR middle-end/60474
24666         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
24668 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
24670         * config/vms/vms.opt (vms_float_format): New variable.
24672 2014-03-08  Tobias Burnus  <burnus@net-b.de>
24674         * doc/invoke.texi (-fcilkplus): Update implementation status.
24676 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
24677             Richard Biener  <rguenther@suse.de>
24679         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
24680         consistently accross all TUs.
24681         (run_gcc): Enable -fshort-double automatically at link at link-time
24682         and disallow override.
24684 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
24686         PR target/58271
24687         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
24688         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
24689         if they can't be used.
24691 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24693         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
24694         for Solaris 11/x86 ld.
24695         * configure: Regenerate.
24697 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24699         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
24700         (LIB_TLS_SPEC): Save as ld_tls_libs.
24701         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
24702         (HAVE_AS_IX86_TLSLDM): New test.
24703         * configure, config.in: Regenerate.
24704         * config/i386/i386.c (legitimize_tls_address): Fall back to
24705         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
24706         cannot support TLS_MODEL_LOCAL_DYNAMIC.
24707         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
24708         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
24710 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
24712         * common.opt (fira-loop-pressure): Mark as optimization.
24714 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
24716         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
24717         an OpenMP mappable type.
24719 2014-03-06  Matthias Klose  <doko@ubuntu.com>
24721         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
24722         MULTILIB_OSDIRNAMES is not defined.
24724 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
24725             Meador Inge  <meadori@codesourcery.com>
24727         PR target/58595
24728         * config/arm/arm.c (arm_tls_symbol_p): Remove.
24729         (arm_legitimize_address): Call legitimize_tls_address for any
24730         arm_tls_referenced_p expression, handle constant addend.  Call it
24731         before testing for !TARGET_ARM.
24732         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
24734 2014-03-06  Richard Biener  <rguenther@suse.de>
24736         PR middle-end/60445
24737         PR lto/60424
24738         PR lto/60427
24739         Revert
24740         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
24742         * tree-streamer.c (record_common_node): Assert we don't record
24743         nodes with type double.
24744         (preload_common_node): Skip type double, complex double and double
24745         pointer since it is now frontend dependent due to fshort-double option.
24747 2014-03-06  Richard Biener  <rguenther@suse.de>
24749         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
24750         or -fno-lto is specified and the linker has full plugin support.
24751         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
24752         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
24753         * lto-wrapper.c (merge_and_complain): Merge compile-time
24754         optimization levels.
24755         (run_gcc): And pass it through to the link options.
24757 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
24759         PR debug/60381
24760         Revert:
24761         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24762         PR debug/59992
24763         * cselib.c (remove_useless_values): Skip to avoid quadratic
24764         behavior if the condition moved from...
24765         (cselib_process_insn): ... here holds.
24767 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
24769         PR plugins/59335
24770         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
24771         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
24773         PR plugins/59335
24774         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
24775         (TM_H): Add x86-tune.def.
24777 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24779         * config/aarch64/aarch64.c (generic_tunings):
24780         Use cortexa57_extra_costs.
24782 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
24784         PR lto/60404
24785         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
24786         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
24787         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
24788         cost for in_lto_p.
24790 2014-03-04  Heiher  <r@hev.cc>
24792         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
24793         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
24795 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
24797         * config/i386/predicates.md (const2356_operand): Change to ...
24798         (const2367_operand): ... this.
24799         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
24800         const2367_operand.
24801         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24802         (*avx512pf_scatterpf<mode>sf): Ditto.
24803         (avx512pf_scatterpf<mode>df): Ditto.
24804         (*avx512pf_scatterpf<mode>df_mask): Ditto.
24805         (*avx512pf_scatterpf<mode>df): Ditto.
24806         * config/i386/i386.c (ix86_expand_builtin): Update
24807         incorrect hint operand error message.
24809 2014-03-04  Richard Biener  <rguenther@suse.de>
24811         * lto-section-in.c (lto_get_section_data): Fix const cast.
24813 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
24815         * tree-streamer.c (record_common_node): Assert we don't record
24816         nodes with type double.
24817         (preload_common_node): Skip type double, complex double and double
24818         pointer since it is now frontend dependent due to fshort-double option.
24820 2014-03-04  Richard Biener  <rguenther@suse.de>
24822         PR lto/60405
24823         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
24824         (lto_input_toplevel_asms): Likewise.
24825         * lto-section-in.c (lto_get_section_data): Instead do it here
24826         for every section.
24828 2014-03-04  Richard Biener  <rguenther@suse.de>
24830         PR tree-optimization/60382
24831         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
24832         dead PHIs a reduction.
24834 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
24836         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
24837         hint value.
24838         (_mm_prefetch): Move out of GCC target("sse") pragma.
24839         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
24840         GCC target("prfchw") pragma.
24841         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
24842         for locality <= 2.
24843         * config/i386/i386.c (ix86_option_override_internal): Enable
24844         -mprfchw with -mprefetchwt1.
24846 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
24848         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
24849         Mark as varying.
24851 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
24853         * opts.h (CL_PCH_IGNORE): Define.
24854         * targhooks.c (option_affects_pch_p):
24855         Return false for options that have CL_PCH_IGNORE set.
24856         * opt-functions.awk: Process PchIgnore.
24857         * doc/options.texi: Document PchIgnore.
24859         * config/arc/arc.opt (misize): Add PchIgnore property.
24861 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24863         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
24864         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
24865         constraint on constants to permit them being loaded into
24866         GENERAL_REGS or BASE_REGS.
24868 2014-03-03  Nick Clifton  <nickc@redhat.com>
24870         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
24871         anti-cacnonical alternatives.
24872         (negandhi3_real): New pattern.
24873         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
24875 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
24877         * config/avr/avr-mcus.def: Remove atxmega16x1.
24878         * config/avr/avr-tables.opt: Regenerate.
24879         * config/avr/t-multilib: Regenerate.
24880         * doc/avr-mmcu.texi: Regenerate.
24882 2014-03-03  Tobias Grosser  <tobias@grosser.es>
24883             Mircea Namolaru  <mircea.namolaru@inria.fr>
24885         PR tree-optimization/58028
24886         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
24887         scalar dimensions.
24889 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24891         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
24892         not handled by recognizers.
24894 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
24896         PR middle-end/60175
24897         * function.c (expand_function_end): Don't emit
24898         clobber_return_register sequence if clobber_after is a BARRIER.
24899         * cfgexpand.c (construct_exit_block): Append instructions before
24900         return_label to prev_bb.
24902 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24904         * config/rs6000/constraints.md: Document reserved use of "wc".
24906 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
24908         PR ipa/60150
24909         * ipa.c (function_and_variable_visibility): When dissolving comdat
24910         group, also set all symbols to local.
24912 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
24914         PR ipa/60306
24916         Revert:
24917         2013-12-14  Jan Hubicka  <jh@suse.cz>
24918         PR middle-end/58477
24919         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
24921 2014-03-02  Jon Beniston  <jon@beniston.com>
24923         PR bootstrap/48230
24924         PR bootstrap/50927
24925         PR bootstrap/52466
24926         PR target/46898
24927         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
24928           (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
24929         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
24930         (simple_return, *simple_return): New patterns
24931         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
24932         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
24934 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
24936         * dwarf2out.c (gen_subprogram_die): Tidy.
24938 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
24940         PR target/60071
24941         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
24942         (*mov_t_msb_neg_negc): ... this new insn.
24944 2014-02-28  Jason Merrill  <jason@redhat.com>
24946         PR c++/58678
24947         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
24948         function.
24950 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
24952         PR c++/60314
24953         * dwarf2out.c (decltype_auto_die): New static.
24954         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
24955         (gen_type_die_with_usage): Handle 'decltype(auto)'.
24956         (is_cxx_auto): Likewise.
24958 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
24960         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
24961         we are not using general regs only.
24963 2014-02-28  Richard Biener  <rguenther@suse.de>
24965         PR target/60280
24966         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
24967         previous fix and only allow to remove trivial pre-headers
24968         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
24969         (remove_forwarder_block): Properly update the latch of a loop.
24971 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24973         PR debug/59992
24974         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
24975         (cselib_preserved_hash_table): New.
24976         (preserve_constants_and_equivs): Move preserved vals to it.
24977         (cselib_find_slot): Look it up first.
24978         (cselib_init): Initialize it.
24979         (cselib_finish): Release it.
24980         (dump_cselib_table): Dump it.
24982 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24984         PR debug/59992
24985         * cselib.c (remove_useless_values): Skip to avoid quadratic
24986         behavior if the condition moved from...
24987         (cselib_process_insn): ... here holds.
24989 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
24991         PR debug/57232
24992         * var-tracking.c (vt_initialize): Apply the same condition to
24993         preserve the CFA base value.
24995 2014-02-28  Joey Ye  <joey.ye@arm.com>
24997         PR target/PR60169
24998         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
24999         if reload in progress or completed.
25001 2014-02-28  Tobias Burnus  <burnus@net-b.de>
25003         PR middle-end/60147
25004         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
25005         NAMELIST_DECL.
25007 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
25009         * doc/tm.texi.in (Condition Code Status): Update documention for
25010         relative locations of cc0-setter and cc0-user.
25012 2014-02-27  Jeff Law  <law@redhat.com>
25014         PR rtl-optimization/52714
25015         * combine.c (try_combine): When splitting an unrecognized PARALLEL
25016         into two independent simple sets, if I3 is a jump, ensure the
25017         pattern we place into I3 is a (set (pc) ...).
25019 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
25020             Jeff Law  <law@redhat.com>
25022         PR rtl-optimization/49847
25023         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
25024         are in different blocks.
25025         * doc/tm.texi (Condition Code Status): Update documention for
25026         relative locations of cc0-setter and cc0-user.
25028 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
25030         PR target/59222
25031         * lra.c (lra_emit_add): Check SUBREG too.
25033 2014-02-27  Andreas Schwab  <schwab@suse.de>
25035         * config/m68k/m68k.c (m68k_option_override): Disable
25036         -flive-range-shrinkage for classic m68k.
25037         (m68k_override_options_after_change): Likewise.
25039 2014-02-27  Marek Polacek  <polacek@redhat.com>
25041         PR middle-end/59223
25042         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
25043         -Wmaybe-uninitialized.
25045 2014-02-27  Alan Modra  <amodra@gmail.com>
25047         PR target/57936
25048         * reload1.c (emit_input_reload_insns): When reload_override_in,
25049         set old to rl->in_reg when rl->in_reg is a subreg.
25051 2014-02-26  Richard Biener  <rguenther@suse.de>
25053         PR bootstrap/60343
25054         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
25056 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
25058         * common/config/i386/predicates.md (const1256_operand): Remove.
25059         (const2356_operand): New.
25060         (const_1_to_2_operand): Remove.
25061         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
25062         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25063         (*avx512pf_gatherpf<mode>sf): Ditto.
25064         (avx512pf_gatherpf<mode>df): Ditto.
25065         (*avx512pf_gatherpf<mode>df_mask): Ditto.
25066         (*avx512pf_gatherpf<mode>df): Ditto.
25067         (avx512pf_scatterpf<mode>sf): Ditto.
25068         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25069         (*avx512pf_scatterpf<mode>sf): Ditto.
25070         (avx512pf_scatterpf<mode>df): Ditto.
25071         (*avx512pf_scatterpf<mode>df_mask): Ditto.
25072         (*avx512pf_scatterpf<mode>df): Ditto.
25073         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
25075 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
25077         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
25078         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
25079         (_mm512_mask_testn_epi64_mask): Move to ...
25080         * config/i386/avx512cdintrin.h: Here.
25081         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
25082         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
25083         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
25084         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
25085         TARGET_AVX512F from TARGET_AVX512CD.
25087 2014-02-26  Richard Biener  <rguenther@suse.de>
25089         PR ipa/60327
25090         * ipa.c (walk_polymorphic_call_targets): Properly guard
25091         call to inline_update_overall_summary.
25093 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
25095         PR target/60280
25096         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
25097         and latches only if requested.  Fix latch if it is removed.
25098         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
25099         LOOPS_HAVE_PREHEADERS.
25101 2014-02-25  Andrew Pinski  <apinski@cavium.com>
25103         * builtins.c (expand_builtin_thread_pointer): Create a new target
25104         when the target is NULL.
25106 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
25108         PR rtl-optimization/60317
25109         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
25110         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
25111         * lra-assigns.c: Include params.h.
25112         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
25113         other reload pseudos considerations.
25115 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25117         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
25118         to use canonical form for nor<mode>3.
25120 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25122         PR target/55426
25123         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
25124         conversions.
25126 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
25128         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
25129         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
25130         (ix86_handle_option): Handle OPT_mprefetchwt1.
25131         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
25132         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25133         PREFETCHWT1 CPUID.
25134         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25135         OPTION_MASK_ISA_PREFETCHWT1.
25136         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
25137         (PTA_PREFETCHWT1): New.
25138         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
25139         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
25140         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
25141         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
25142         (*prefetch_avx512pf_<mode>_: Change into ...
25143         (*prefetch_prefetchwt1_<mode>: This.
25144         * config/i386/i386.opt (mprefetchwt1): New.
25145         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
25146         (_mm_prefetch): Handle intent to write.
25147         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
25149 2014-02-25  Richard Biener  <rguenther@suse.de>
25151         PR middle-end/60291
25152         * emit-rtl.c (mem_attrs_htab): Remove.
25153         (mem_attrs_htab_hash): Likewise.
25154         (mem_attrs_htab_eq): Likewise.
25155         (set_mem_attrs): Always allocate new mem-attrs when something changed.
25156         (init_emit_once): Do not allocate mem_attrs_htab.
25158 2014-02-25  Richard Biener  <rguenther@suse.de>
25160         PR lto/60319
25161         * lto-opts.c (lto_write_options): Output non-explicit conservative
25162         -fwrapv, -fno-trapv and -fno-strict-overflow.
25163         * lto-wrapper.c (merge_and_complain): Handle merging those options.
25164         (run_gcc): And pass them through.
25166 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
25168         * sel-sched.c (calculate_new_fences): New parameter ptime.
25169         Calculate it as a maximum over all fence cycles.
25170         (sel_sched_region_2): Adjust the call to calculate_new_fences.
25171         Print the final schedule timing when sched_verbose.
25173 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
25175         PR rtl-optimization/60292
25176         * sel-sched.c (fill_vec_av_set): Do not reset target availability
25177         bit fot the fence instruction.
25179 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
25181         * calls.h: Fix typo in comment.
25183 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
25185         * config/pa/pa.c (pa_output_move_double): Don't valididate when
25186         adjusting offsetable addresses.
25188 2014-02-24  Guozhi Wei  <carrot@google.com>
25190         * sparseset.h (sparseset_pop): Fix the wrong index.
25192 2014-02-24  Walter Lee  <walt@tilera.com>
25194         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
25195         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
25196         triplet.
25197         * common/config/tilegx/tilegx-common.c
25198         (TARGET_DEFAULT_TARGET_FLAGS): Define.
25199         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
25200         (LINK_SPEC): Ditto.
25201         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
25202         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
25203         (tilegx_gimplify_va_arg_expr): Handle big endian.
25204         (tilegx_expand_unaligned_load): Ditto.
25205         (tilegx_expand_unaligned_store): Ditto.
25206         (TARGET_RETURN_IN_MSB): New.
25207         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
25208         (TARGET_ENDIAN_DEFAULT): New.
25209         (TARGET_BIG_ENDIAN): Handle big endian.
25210         (BYTES_BIG_ENDIAN): Ditto.
25211         (WORDS_BIG_ENDIAN): Ditto.
25212         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
25213         (ENDIAN_SPEC): New.
25214         (EXTRA_SPECS): New.
25215         * config/tilegx/tilegx.md (extv): Handle big endian.
25216         (extzv): Ditto.
25217         (insn_st<n>): Ditto.
25218         (insn_st<n>_add<bitsuffix>): Ditto.
25219         (insn_stnt<n>): Ditto.
25220         (insn_stnt<n>_add<bitsuffix>):Ditto.
25221         (vec_interleave_highv8qi): Handle big endian.
25222         (vec_interleave_highv8qi_be): New.
25223         (vec_interleave_highv8qi_le): New.
25224         (insn_v1int_h): Handle big endian.
25225         (vec_interleave_lowv8qi): Handle big endian.
25226         (vec_interleave_lowv8qi_be): New.
25227         (vec_interleave_lowv8qi_le): New.
25228         (insn_v1int_l): Handle big endian.
25229         (vec_interleave_highv4hi): Handle big endian.
25230         (vec_interleave_highv4hi_be): New.
25231         (vec_interleave_highv4hi_le): New.
25232         (insn_v2int_h): Handle big endian.
25233         (vec_interleave_lowv4hi): Handle big endian.
25234         (vec_interleave_lowv4hi_be): New.
25235         (vec_interleave_lowv4hi_le): New.
25236         (insn_v2int_l): Handle big endian.
25237         (vec_interleave_highv2si): Handle big endian.
25238         (vec_interleave_highv2si_be): New.
25239         (vec_interleave_highv2si_le): New.
25240         (insn_v4int_h): Handle big endian.
25241         (vec_interleave_lowv2si): Handle big endian.
25242         (vec_interleave_lowv2si_be): New.
25243         (vec_interleave_lowv2si_le): New.
25244         (insn_v4int_l): Handle big endian.
25245         * config/tilegx/tilegx.opt (mbig-endian): New option.
25246         (mlittle-endian): New option.
25247         * doc/install.texi: Document tilegxbe-linux.
25248         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
25250 2014-02-24  Martin Jambor  <mjambor@suse.cz>
25252         PR ipa/60266
25253         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
25254         there are no parameter descriptors.
25256 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
25258         PR rtl-optimization/60268
25259         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
25260         initialization to ...
25261         (sched_rgn_init): ... here.
25262         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
25264 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
25266         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
25267         names.
25269 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
25271         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
25272         definition.
25274 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
25276         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
25277         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
25279 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
25281         * config/microblaze/predicates.md: Add cmp_op predicate.
25282         * config/microblaze/microblaze.md: Add branch_compare instruction
25283         which uses cmp_op predicate and emits cmp insn before branch.
25284         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
25285         to microblaze_expand_conditional_branch and consolidate logic.
25286         (microblaze_expand_conditional_branch): emit branch_compare
25287         insn instead of handling cmp op separate from branch insn.
25289 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25291         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
25292         to permit subregs.
25294 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25296         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
25297         define_insn with define_expand and new define_insn
25298         *altivec_lve<VI_char>x_internal.
25299         (altivec_stve<VI_char>x): Replace define_insn with define_expand
25300         and new define_insn *altivec_stve<VI_char>x_internal.
25301         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
25302         prototype.
25303         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
25304         lve*x built-ins.
25305         (altivec_expand_stvex_be): New function.
25307 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
25309         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
25310         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
25311         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
25312         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
25314 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
25316         PR target/60298
25317         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
25318         instead of emit_move_insn.
25320 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25322         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
25323         vspltw with vsldoi.
25324         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
25325         gen_altivec_vsumsws.
25327 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25329         * config/rs6000/altivec.md (altivec_lvxl): Rename as
25330         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
25331         (altivec_lvxl_<mode>): New define_expand incorporating
25332         -maltivec=be semantics where needed.
25333         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
25334         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
25335         semantics where needed.
25336         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
25337         (altivec_stvx_<mode>): New define_expand incorporating
25338         -maltivec=be semantics where needed.
25339         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
25340         VM2 iterator instead of V4SI.
25341         (altivec_stvxl_<mode>): New define_expand incorporating
25342         -maltivec=be semantics where needed.
25343         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
25344         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
25345         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
25346         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
25347         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
25348         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
25349         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
25350         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
25351         ALTIVEC_BUILTIN_STVXL.
25352         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
25353         (altivec_expand_stvx_be): Likewise.
25354         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
25355         (altivec_expand_lvx_be): Likewise.
25356         (altivec_expand_stvx_be): Likewise.
25357         (altivec_expand_builtin): Add cases for
25358         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
25359         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
25360         (altivec_init_builtins): Add definitions for
25361         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
25362         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
25364 2014-02-21  Catherine Moore  <clm@codesourcery.com>
25366         * doc/invoke.texi (mvirt, mno-virt): Document.
25367         * config/mips/mips.opt (mvirt): New option.
25368         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
25370 2014-02-21  Richard Biener  <rguenther@suse.de>
25372         PR tree-optimization/60276
25373         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
25374         (STMT_VINFO_MIN_NEG_DIST): New macro.
25375         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
25376         STMT_VINFO_MIN_NEG_DIST.
25377         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
25378         made for negative dependence distances still hold.
25380 2014-02-21  Richard Biener  <rguenther@suse.de>
25382         PR middle-end/60291
25383         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
25384         DECL_INITIAL for globals not in the current function context.
25386 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
25388         PR tree-optimization/56490
25389         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
25390         * tree-ssa-uninit.c: Include params.h.
25391         (compute_control_dep_chain): Add num_calls argument, return false
25392         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
25393         num_calls to recursive call.
25394         (find_predicates): Change dep_chain into normal array,
25395         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
25396         variable and adjust compute_control_dep_chain caller.
25397         (find_def_preds): Likewise.
25399 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
25401         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
25402         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
25404 2014-02-21  Nick Clifton  <nickc@redhat.com>
25406         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
25407         (pushhi1): Likewise.
25408         (popqi1): Add mode to pre_dec.
25409         (pophi1): Likewise.
25411 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
25413         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
25414         mode for mask of V8SFmode permutation.
25416 2014-02-20  Richard Henderson  <rth@redhat.com>
25418         PR c++/60272
25419         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
25420         a new pseudo for OLDVAL.
25422 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
25424         PR target/57896
25425         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
25426         gen_reg_rtx if d->testing_p.
25427         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
25428         if d->testing_p and we will certainly return true.
25429         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
25430         if d->testing_p.
25432 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
25434         * emit-rtl.c (gen_reg_rtx): Assert that
25435         crtl->emit.regno_pointer_align_length is non-zero.
25437 2014-02-20  Richard Henderson  <rth@redhat.com>
25439         PR c++/60272
25440         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
25441         on failure the store back into EXPECT.
25443 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
25444             Sandra Loosemore  <sandra@codesourcery.com>
25446         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
25447         * config/nios2/nios2.c (nios2_function_profiler): Add
25448         -fPIC (flag_pic == 2) support.
25449         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
25450         (nios2_large_offset_p): New function.
25451         (nios2_unspec_reloc_p): Move up position, update to use
25452         nios2_large_offset_p.
25453         (nios2_unspec_address): Remove function.
25454         (nios2_unspec_offset): New function.
25455         (nios2_large_got_address): New function.
25456         (nios2_got_address): Add large offset support.
25457         (nios2_legitimize_tls_address): Update usage of removed and new
25458         functions.
25459         (nios2_symbol_binds_local_p): New function.
25460         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
25461         (nios2_legitimize_address): Update to use nios2_large_offset_p.
25462         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
25463         (nios2_print_operand): Merge H/L processing, add hiadj/lo
25464         processing for (const (unspec ...)).
25465         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
25467 2014-02-20  Richard Biener  <rguenther@suse.de>
25469         * tree-cfg.c (replace_uses_by): Mark altered BBs before
25470         doing the substitution.
25471         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
25473 2014-02-20  Martin Jambor  <mjambor@suse.cz>
25475         PR ipa/55260
25476         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
25477         info when checking whether lattices are bottom.
25479 2014-02-20  Richard Biener  <rguenther@suse.de>
25481         PR middle-end/60221
25482         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
25483         regions at -O0.
25485 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
25487         PR ipa/58555
25488         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
25489         parameter specifying the scaling.
25490         (inline_call): Update.
25491         (want_inline_recursively): Guard division by zero.
25492         (recursive_inlining): Update.
25493         * ipa-inline.h (clone_inlined_nodes): Update.
25495 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
25497         PR target/60204
25498         * config/i386/i386.c (classify_argument): Pass structures of size
25499         64 bytes or less in register.
25501 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
25502             Kirill Yukhin  <kirill.yukhin@intel.com>
25504         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
25505         (_mm_rcp28_round_ss): Ditto.
25506         (_mm_rsqrt28_round_sd): Ditto.
25507         (_mm_rsqrt28_round_ss): Ditto.
25508         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
25509         (_mm_rcp14_round_ss): Ditto.
25510         (_mm_rsqrt14_round_sd): Ditto.
25511         (_mm_rsqrt14_round_ss): Ditto.
25512         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
25513         the first input operand, get rid of match_dup.
25514         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
25515         attribute to sse.
25516         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
25517         Ditto.
25518         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
25519         operand as the first input operand, set type attribute.
25520         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
25521         Set type attribute.
25522         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
25523         operand as the first input operand, set type attribute.
25525 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25527         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
25528         bit of zero.
25530 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
25532         PR target/60207
25533         * config/i386/i386.c (construct_container): Remove TFmode check
25534         for X86_64_INTEGER_CLASS.
25536 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
25538         PR target/59794
25539         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
25540         only when -Wpsabi is enabled.
25542 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
25544          PR target/59799
25545         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
25546         passing arrays in registers are the same as for structs, so remove the
25547         special case for them.
25549 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
25551         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
25552         destination type, extract only the valid bits if the source type is not
25553         integral and has a different mode.
25555 2014-02-19  Richard Biener  <rguenther@suse.de>
25557         PR ipa/60243
25558         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
25559         for all calls.
25561 2014-02-19  Richard Biener  <rguenther@suse.de>
25563         PR ipa/60243
25564         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
25565         (ipa_modify_call_arguments): Emit an argument load explicitely and
25566         preserve virtual SSA form there and for the replacement call.
25567         Do not update SSA form nor free dominance info.
25569 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
25571         * ipa.c (function_and_variable_visibility): Also clear WEAK
25572         flag when disolving COMDAT_GROUP.
25574 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
25576         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
25577         * ipa-prop.c (ipa_set_jf_known_type): Return early when
25578         not devirtualizing.
25579         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
25580         do more sanity checks.
25581         (detect_type_change): Return true when giving up early.
25582         (compute_complex_assign_jump_func): Fix type parameter of
25583         ipa_set_ancestor_jf.
25584         (compute_complex_ancestor_jump_func): Likewise.
25585         (update_jump_functions_after_inlining): Fix updating of
25586         ancestor function.
25587         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
25589 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
25591         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
25592         inline clones when edge disappears.
25594 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
25596         PR target/60203
25597         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
25598         Split 64-bit moves into 2 patterns.  Do not allow the use of
25599         direct move for TDmode in little endian, since the decimal value
25600         has little endian bytes within a word, but the 64-bit pieces are
25601         ordered in a big endian fashion, and normal subreg's of TDmode are
25602         not allowed.
25603         (mov<mode>_64bit_dm): Likewise.
25604         (movtd_64bit_nodm): Likewise.
25606 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
25608         PR tree-optimization/60174
25609         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
25610         statement of an SSA_NAME that occurs in an abnormal PHI node.
25612 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
25614         PR sanitizer/60142
25615         * final.c (SEEN_BB): Remove.
25616         (SEEN_NOTE, SEEN_EMITTED): Renumber.
25617         (final_scan_insn): Don't force_source_line on second
25618         NOTE_INSN_BASIC_BLOCK.
25620 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
25622         PR target/60205
25623         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
25624         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
25625         (type_natural_mode): Warn ABI change when %zmm register is not
25626         available for AVX512F vector value passing.
25628 2014-02-18  Kai Tietz  <ktietz@redhat.com>
25630         PR target/60193
25631         * config/i386/i386.c (ix86_expand_prologue): Use value in
25632         rax register as displacement when restoring %r10 or %rax.
25633         Fix wrong offset when restoring both registers.
25635 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
25637         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
25638         assertion with conditional return.
25640 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
25641             Uros Bizjak  <ubizjak@gmail.com>
25643         PR driver/60233
25644         * config/i386/driver-i386.c (host_detect_local_cpu): If
25645         YMM state is not saved by the OS, also clear has_f16c.  Move
25646         CPUID 0x80000001 handling before YMM state saving checking.
25648 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
25650         PR rtl-optimization/58960
25651         * haifa-sched.c (alloc_global_sched_pressure_data): New,
25652         factored out from ...
25653         (sched_init): ... here.
25654         (free_global_sched_pressure_data): New, factored out from ...
25655         (sched_finish): ... here.
25656         * sched-int.h (free_global_sched_pressure_data): Declare.
25657         * sched-rgn.c (nr_regions_initial): New static global.
25658         (haifa_find_rgns): Initialize it.
25659         (schedule_region): Disable sched-pressure for the newly
25660         generated regions.
25662 2014-02-17  Richard Biener  <rguenther@suse.de>
25664         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
25665         release SSA defs of pattern stmts.
25667 2014-02-17  Richard Biener  <rguenther@suse.de>
25669         * tree-inline.c (expand_call_inline): Release the virtual
25670         operand defined by the call we are about to inline.
25672 2014-02-17  Richard Biener  <rguenther@suse.de>
25674         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
25676 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
25677             Ilya Tocar  <ilya.tocar@intel.com>
25679         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
25680         arguments order in builtin.
25681         (_mm512_permutexvar_epi64): Ditto.
25682         (_mm512_mask_permutexvar_epi64): Ditto
25683         (_mm512_maskz_permutexvar_epi32): Ditto
25684         (_mm512_permutexvar_epi32): Ditto
25685         (_mm512_mask_permutexvar_epi32): Ditto
25687 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25689         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
25690         (p8_vmrgow): Likewise.
25692 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25694         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
25695         endian targets.
25697 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
25699         PR target/60203
25700         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
25701         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
25702         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
25703         using direct move instructions on ISA 2.07.  Also adjust
25704         instruction length for 64-bit.
25705         (mov<mode>_64bit, TFmode/TDmode): Likewise.
25706         (mov<mode>_32bit, TFmode/TDmode): Likewise.
25708 2014-02-15  Alan Modra  <amodra@gmail.com>
25710         PR target/58675
25711         PR target/57935
25712         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
25713         find_replacement on parts of insn rtl that might be reloaded.
25715 2014-02-15  Richard Biener  <rguenther@suse.de>
25717         PR tree-optimization/60183
25718         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
25719         (tree_ssa_phiprop): Calculate and free post-dominators.
25721 2014-02-14  Jeff Law  <law@redhat.com>
25723         PR rtl-optimization/60131
25724         * ree.c (get_extended_src_reg): New function.
25725         (combine_reaching_defs): Use it rather than assuming location of REG.
25726         (find_and_remove_re): Verify first operand of extension is
25727         a REG before adding the insns to the copy list.
25729 2014-02-14  Roland McGrath  <mcgrathr@google.com>
25731         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
25732         * configure: Regenerated.
25733         * config.in: Regenerated.
25734         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
25735         instead of ASM_SHORT.
25737 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
25738             Richard Earnshaw  <rearnsha@arm.com>
25740         PR rtl-optimization/59535
25741         * lra-constraints.c (process_alt_operands): Encourage alternative
25742         when unassigned pseudo class is superset of the alternative class.
25743         (inherit_reload_reg): Don't inherit when optimizing for code size.
25744         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
25745         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
25746         modes not less than 4 for Thumb1.
25748 2014-02-14  Kyle McMartin  <kyle@redhat.com>
25750         PR pch/60010
25751         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
25753 2014-02-14  Richard Biener  <rguenther@suse.de>
25755         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
25756         (get_frame_arg): Drop the assert with langhook types_compatible_p.
25757         Do not strip INDIRECT_REFs.
25759 2014-02-14  Richard Biener  <rguenther@suse.de>
25761         PR lto/60179
25762         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
25763         DECL_FUNCTION_SPECIFIC_TARGET.
25764         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
25765         * tree-streamer-out.c (pack_ts_target_option): Remove.
25766         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
25767         (write_ts_function_decl_tree_pointers): Do not stream
25768         DECL_FUNCTION_SPECIFIC_TARGET.
25769         * tree-streamer-in.c (unpack_ts_target_option): Remove.
25770         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
25771         (lto_input_ts_function_decl_tree_pointers): Do not stream
25772         DECL_FUNCTION_SPECIFIC_TARGET.
25774 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
25776         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
25777         (get_initial_def_for_induction, vectorizable_induction): Ignore
25778         debug stmts when looking for exit_phi.
25779         (vectorizable_live_operation): Fix up condition.
25781 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25783         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
25784         nreverse() because it changes the content of original tree list.
25786 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25788         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
25789         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
25791 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
25793         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
25794         GNU coding standards.
25796 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
25798         PR debug/60152
25799         * dwarf2out.c (gen_subprogram_die): Don't call
25800         add_calling_convention_attribute if subr_die is old_die.
25802 2014-02-13  Sharad Singhai  <singhai@google.com>
25804         * doc/optinfo.texi: Fix order of nodes.
25806 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
25808         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
25809         operands[2], not operands[3].
25811 2014-02-13  Richard Biener  <rguenther@suse.de>
25813         PR bootstrap/59878
25814         * doc/install.texi (ISL): Update recommended version to 0.12.2,
25815         mention the possibility of an in-tree build.
25816         (CLooG): Update recommended version to 0.18.1, mention the
25817         possibility of an in-tree build and clarify that the ISL
25818         bundled with CLooG does not work.
25820 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
25822         PR target/43546
25823         * expr.c (compress_float_constant): If x is a hard register,
25824         extend into a pseudo and then move to x.
25826 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25828         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
25829         caused by bad second argument to warning_at() with -mhotpatch and
25830         nested functions (e.g. with gfortran).
25832 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
25834         * opts.c (option_name): Remove "enabled by default" rider.
25836 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
25838         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
25840 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
25841             Uros Bizjak  <ubizjak@gmail.com>
25843         PR target/60151
25844         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
25845         * configure: Regenerated.
25847 2014-02-12  Richard Biener  <rguenther@suse.de>
25849         * vec.c (vec_prefix::calculate_allocation): Move as
25850         inline variant to vec.h.
25851         (vec_prefix::calculate_allocation_1): New out-of-line version.
25852         * vec.h (vec_prefix::calculate_allocation_1): Declare.
25853         (vec_prefix::m_has_auto_buf): Rename to ...
25854         (vec_prefix::m_using_auto_storage): ... this.
25855         (vec_prefix::calculate_allocation): Inline the easy cases
25856         and dispatch to calculate_allocation_1 which doesn't need the
25857         prefix address.
25858         (va_heap::reserve): Use gcc_checking_assert.
25859         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
25860         m_using_auto_storage.
25861         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
25862         member and adjust.
25863         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
25864         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
25865         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
25867 2014-02-12  Richard Biener  <rguenther@suse.de>
25869         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
25870         when we found a dependence.
25872 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
25874         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
25875         common code...
25876         (maybe_fold_stmt): ... into this new function.
25877         * omp-low.c (lower_omp): Update comment.
25879         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
25880         last use.
25882         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
25883         dereference.
25885 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
25887         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
25888         identifiers in comments.
25889         (cortexa53_extra_costs): Likewise.
25890         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
25891         (cortexa7_extra_costs): Likewise.
25892         (cortexa12_extra_costs): Likewise.
25893         (cortexa15_extra_costs): Likewise.
25894         (v7m_extra_costs): Likewise.
25896 2014-02-12  Richard Biener  <rguenther@suse.de>
25898         PR middle-end/60092
25899         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
25900         of posix_memalign being successful.
25901         (lower_stmt): Restrict lowering of posix_memalign to when
25902         -ftree-bit-ccp is enabled.
25904 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
25906         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
25907         arg_loc.
25908         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
25910 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
25912         PR rtl-optimization/60116
25913         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
25914         other_insn once the combination has been validated.
25916 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
25918         PR lto/59468
25919         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
25920         and wrapper.
25921         * ipa-devirt.c: Include demangle.h
25922         (odr_violation_reported): New static variable.
25923         (add_type_duplicate): Update odr_violations.
25924         (maybe_record_node): Add completep parameter; update it.
25925         (record_target_from_binfo): Add COMPLETEP parameter;
25926         update it as needed.
25927         (possible_polymorphic_call_targets_1): Likewise.
25928         (struct polymorphic_call_target_d): Add nonconstruction_targets;
25929         rename FINAL to COMPLETE.
25930         (record_targets_from_bases): Sanity check we found the binfo;
25931         fix COMPLETEP updating.
25932         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
25933         parameter, fix computing of COMPLETEP.
25934         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
25935         at LTO time do demangling.
25936         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
25937         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
25938         parameter.
25939         (gimple_get_virt_method_for_binfo): Likewise.
25940         * gimple-fold.h (gimple_get_virt_method_for_binfo,
25941         gimple_get_virt_method_for_vtable): Update prototypes.
25943 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
25945         PR target/49008
25946         * genautomata.c (add_presence_absence): Fix typo with
25947         {final_}presence_list.
25949 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
25951         PR target/60137
25952         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
25953         for VSX/Altivec vectors that land in GPR registers.
25955 2014-02-11  Richard Henderson  <rth@redhat.com>
25956             Jakub Jelinek  <jakub@redhat.com>
25958         PR debug/59776
25959         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
25960         around drhs if type conversion to lacc->type is not useless.
25962 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25964         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
25965         tuning struct.
25966         (cortex-a57.cortex-a53): Likewise.
25967         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
25969 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25971         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
25972         arm_restrict_it.
25974 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
25976         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
25977         add_options_for_arm_vfp3.
25979 2014-02-11  Jeff Law  <law@redhat.com>
25981         PR middle-end/54041
25982         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
25983         object with an undesirable mode.
25985 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25987         PR libgomp/60107
25988         * config/i386/sol2-9.h: New file.
25989         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
25990         *-*-solaris2.9*): Use it.
25992 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
25994         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
25995         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
25997 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
25999         * config/microblaze/microblaze.c: Extend mcpu version format
26001 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
26003         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
26005 2014-02-10  Richard Henderson  <rth@redhat.com>
26007         PR target/59927
26008         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
26009         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
26010         ms-abi vs -mno-accumulate-outgoing-args.
26011         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
26012         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
26013         respect to ms-abi.
26015 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26017         PR middle-end/60080
26018         * cfgexpand.c (expand_asm_operands): Attach source location to
26019         ASM_INPUT rtx objects.
26020         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
26022 2014-02-10  Nick Clifton  <nickc@redhat.com>
26024         * config/mn10300/mn10300.c (popcount): New function.
26025         (mn10300_expand_prologue): Include saved registers in stack usage
26026         count.
26028 2014-02-10  Jeff Law  <law@redhat.com>
26030         PR middle-end/52306
26031         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
26032         when changing the SET_DEST of a prior insn to avoid an input reload.
26034 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26036         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
26037         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
26038         -mcall-openbsd, or -mcall-linux.
26039         (CC1_ENDIAN_BIG_SPEC): Remove.
26040         (CC1_ENDIAN_LITTLE_SPEC): Remove.
26041         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
26042         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
26043         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
26044         and %cc1_endian_default.
26045         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
26047 2014-02-10  Richard Biener  <rguenther@suse.de>
26049         PR tree-optimization/60115
26050         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
26051         MEM_REF handling.  Properly verify that the accesses are not
26052         out of the objects bound.
26054 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26056         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
26057         coretex to cortex.
26059 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
26061         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
26062         proper constants and fix formatting.
26063         (possible_polymorphic_call_targets): Fix formatting.
26065 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
26066             Ilya Tocar  <ilya.tocar@intel.com>
26068         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
26069         (_mm512_loadu_epi32): Renamed into...
26070         (_mm512_loadu_si512): This.
26071         (_mm512_storeu_epi32): Renamed into...
26072         (_mm512_storeu_si512): This.
26073         (_mm512_maskz_ceil_ps): Removed.
26074         (_mm512_maskz_ceil_pd): Ditto.
26075         (_mm512_maskz_floor_ps): Ditto.
26076         (_mm512_maskz_floor_pd): Ditto.
26077         (_mm512_floor_round_ps): Ditto.
26078         (_mm512_floor_round_pd): Ditto.
26079         (_mm512_ceil_round_ps): Ditto.
26080         (_mm512_ceil_round_pd): Ditto.
26081         (_mm512_mask_floor_round_ps): Ditto.
26082         (_mm512_mask_floor_round_pd): Ditto.
26083         (_mm512_mask_ceil_round_ps): Ditto.
26084         (_mm512_mask_ceil_round_pd): Ditto.
26085         (_mm512_maskz_floor_round_ps): Ditto.
26086         (_mm512_maskz_floor_round_pd): Ditto.
26087         (_mm512_maskz_ceil_round_ps): Ditto.
26088         (_mm512_maskz_ceil_round_pd): Ditto.
26089         (_mm512_expand_pd): Ditto.
26090         (_mm512_expand_ps): Ditto.
26091         * config/i386/i386.c (ix86_builtins): Remove
26092         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
26093         (bdesc_args): Ditto.
26094         * config/i386/predicates.md (const1256_operand): New.
26095         (const_1_to_2_operand): Ditto.
26096         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26097         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26098         (*avx512pf_gatherpf<mode>sf): Ditto.
26099         (avx512pf_gatherpf<mode>df): Ditto.
26100         (*avx512pf_gatherpf<mode>df_mask): Ditto.
26101         (*avx512pf_gatherpf<mode>df): Ditto.
26102         (avx512pf_scatterpf<mode>sf): Ditto.
26103         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26104         (*avx512pf_scatterpf<mode>sf): Ditto.
26105         (avx512pf_scatterpf<mode>df): Ditto.
26106         (*avx512pf_scatterpf<mode>df_mask): Ditto.
26107         (*avx512pf_scatterpf<mode>df): Ditto.
26108         (avx512f_expand<mode>): Removed.
26109         (<shift_insn><mode>3<mask_name>): Change predicate type.
26111 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
26113         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
26114         not at the end of datarefs vector use ordered_remove to avoid
26115         reordering datarefs vector.
26117         PR c/59984
26118         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
26119         mark local addressable non-static vars as GOVD_PRIVATE
26120         instead of GOVD_LOCAL.
26121         * omp-low.c (lower_omp_for): Move gimple_bind_vars
26122         and BLOCK_VARS of gimple_bind_block to new_stmt rather
26123         than copying them.
26125         PR middle-end/60092
26126         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
26127         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
26128         assume_aligned or alloc_align attributes.
26129         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
26130         arguments.  Handle also assume_aligned and alloc_align attributes.
26131         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
26132         calls to functions with assume_aligned or alloc_align attributes.
26133         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
26135 2014-02-08  Terry Guo  <terry.guo@arm.com>
26137         * doc/invoke.texi: Document ARM -march=armv7e-m.
26139 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
26141         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
26142         flag on __cilkrts_rethrow builtin.
26144         PR ipa/60026
26145         * ipa-cp.c (determine_versionability): Fail at -O0
26146         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
26147         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
26149         Revert:
26150         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
26152         PR ipa/60026
26153         * tree-inline.c (copy_forbidden): Fail for
26154         __attribute__((optimize (0))) functions.
26156 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
26158         * varpool.c: Include pointer-set.h.
26159         (varpool_remove_unreferenced_decls): Variables in other partitions
26160         will not be output; be however careful to not lose information
26161         about partitioning.
26163 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
26165         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
26166         lookup in the vtable constructor.
26168 2014-02-07  Jeff Law  <law@redhat.com>
26170         PR target/40977
26171         * config/m68k/m68k.md (ashldi_extsi): Turn into a
26172         define_insn_and_split.
26174         * ipa-inline.c (inline_small_functions): Fix typos.
26176 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26178         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
26179         (s390_can_use_return_insn): Declare.
26180         * config/s390/s390.h (EPILOGUE_USES): Define.
26181         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
26182         instructions.
26183         (s390_chunkify_start): Handle return JUMP_LABELs.
26184         (s390_early_mach): Emit a main_pool instruction on the entry edge.
26185         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
26186         (s390_can_use_return_insn): New functions.
26187         (s390_fix_long_loop_prediction): Handle conditional returns.
26188         (TARGET_SET_UP_BY_PROLOGUE): Define.
26189         * config/s390/s390.md (ANY_RETURN): New code iterator.
26190         (*creturn, *csimple_return, return, simple_return): New patterns.
26192 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26194         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
26195         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
26196         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
26197         REG_CFA_RESTORE list when deciding not to restore a register.
26199 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26201         * config/s390/s390.c: Include tree-pass.h and context.h.
26202         (s390_early_mach): New function, split out from...
26203         (s390_emit_prologue): ...here.
26204         (pass_data_s390_early_mach): New pass structure.
26205         (pass_s390_early_mach): New class.
26206         (s390_option_override): Create and register early_mach pass.
26207         Move to end of file.
26209 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26211         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
26212         to match for the exit block.
26214 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26216         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
26217         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
26218         Reject misaligned operands.
26220 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26222         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
26224 2014-02-07  Richard Biener  <rguenther@suse.de>
26226         PR middle-end/60092
26227         * gimple-low.c (lower_builtin_posix_memalign): New function.
26228         (lower_stmt): Call it to lower posix_memalign in a way
26229         to make alignment info accessible.
26231 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
26233         PR c++/60082
26234         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
26235         __builtin_setjmp_receiver.
26237 2014-02-07  Richard Biener  <rguenther@suse.de>
26239         PR middle-end/60092
26240         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
26241         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
26242         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26243         Handle BUILT_IN_POSIX_MEMALIGN.
26244         (find_func_clobbers): Likewise.
26245         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
26246         (call_may_clobber_ref_p_1): Likewise.
26248 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
26250         PR ipa/59918
26251         * ipa-devirt.c (record_target_from_binfo): Remove overactive
26252         sanity check.
26254 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
26256         PR ipa/59469
26257         * lto-cgraph.c (lto_output_node): Use
26258         symtab_get_symbol_partitioning_class.
26259         (lto_output_varpool_node): likewise.
26260         (symtab_get_symbol_partitioning_class): Move here from
26261         lto/lto-partition.c
26262         * cgraph.h (symbol_partitioning_class): Likewise.
26263         (symtab_get_symbol_partitioning_class): Declare.
26265 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
26267         * ggc.h (ggc_internal_cleared_alloc): New macro.
26268         * vec.h (vec_safe_copy): Handle memory stats.
26269         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
26270         * target-globals.c (save_target_globals): Likewise.
26272 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
26274         PR target/60077
26275         * expr.c (emit_move_resolve_push): Export; be bit more selective
26276         on when to clear alias set.
26277         * expr.h (emit_move_resolve_push): Declare.
26278         * function.h (struct function): Add tail_call_marked.
26279         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
26280         * config/i386/i386-protos.h (ix86_expand_push): Remove.
26281         * config/i386/i386.md (TImode move expander): De not call
26282         ix86_expand_push.
26283         (FP push expanders): Preserve memory attributes.
26284         * config/i386/sse.md (push<mode>1): Remove.
26285         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
26286         (ix86_expand_push): Remove.
26287         * config/i386/mmx.md (push<mode>1): Remove.
26289 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
26291         PR rtl-optimization/60030
26292         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
26293         lopart with paradoxical subreg before shifting it up by hprec.
26295 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26297         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
26298         Remove extra newline at end of file.
26299         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
26300         (arm_issue_rate): Handle cortexa57.
26301         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
26302         (cortex-a57.cortex-a53): Likewise.
26304 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
26306         PR target/59575
26307         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
26308         don't record in REG_FRAME_RELATED_EXPR registers not set in that
26309         bitmask.
26310         (arm_expand_prologue): Adjust all callers.
26311         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
26312         info, registers also at the lowest numbered registers side.  Use
26313         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
26314         XEXP.
26316         PR debug/59992
26317         * var-tracking.c (adjust_mems): Before adding a SET to
26318         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
26320 2014-02-06  Alan Modra  <amodra@gmail.com>
26322         PR target/60032
26323         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
26324         change SDmode to DDmode when lra_in_progress.
26326 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
26328         PR middle-end/59150
26329         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
26330         free_data_ref on the dr first, and before goto again also set dr
26331         to the next dr.  For simd_lane_access, free old datarefs[i] before
26332         overwriting it.  For get_vectype_for_scalar_type failure, don't
26333         free_data_ref if simd_lane_access.
26335         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
26337         PR target/60062
26338         * tree.h (opts_for_fn): New inline function.
26339         (opt_for_fn): Define.
26340         * config/i386/i386.c (ix86_function_regparm): Use
26341         opt_for_fn (decl, optimize) instead of optimize.
26343 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
26345         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
26346         for SYMBOL_REF in large memory model.
26348 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26350         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
26351         and crypto support.
26352         (cortex-a57): Likewise.
26353         (cortex-a57.cortex-a53): Likewise.
26355 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
26356             Kugan Vivekanandarajah  <kuganv@linaro.org>
26358         * config/arm/arm.c (arm_vector_alignment_reachable): Check
26359         unaligned_access.
26360         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
26362 2014-02-06  Richard Biener  <rguenther@suse.de>
26364         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
26365         set_loop_copy and initialize_original_copy_tables.
26367 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
26369         * config/aarch64/aarch64-simd.md
26370         (aarch64_ashr_simddi): Change QI to SI.
26372 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
26373             Jakub Jelinek  <jakub@redhat.com>
26375         PR middle-end/60013
26376         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
26377         of the dataflow.
26379 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26381         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
26382         CODE_FOR_altivec_vpku[hw]um to
26383         CODE_FOR_altivec_vpku[hw]um_direct.
26384         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
26385         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
26386         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
26387         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
26389 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26391         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
26392         generation for -maltivec=be.
26393         (altivec_vsumsws): Simplify redundant test.
26395 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26397         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
26398         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
26399         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
26400         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
26401         gen_altivec_vpkuwum.
26402         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
26403         BYTES_BIG_ENDIAN.
26404         (altivec_vpks<VI_char>ss): Likewise.
26405         (altivec_vpks<VI_char>us): Likewise.
26406         (altivec_vpku<VI_char>us): Likewise.
26407         (altivec_vpku<VI_char>um): Likewise.
26408         (altivec_vpku<VI_char>um_direct): New (copy of
26409         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
26410         internal use).
26411         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
26412         target is little endian and -maltivec=be is not specified.
26413         (*altivec_vupkhs<VU_char>_direct): New (copy of
26414         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
26415         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
26416         target is little endian and -maltivec=be is not specified.
26417         (*altivec_vupkls<VU_char>_direct): New (copy of
26418         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
26419         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
26420         little endian and -maltivec=be is not specified.
26421         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
26422         little endian and -maltivec=be is not specified.
26424 2014-02-05  Richard Henderson  <rth@redhat.com>
26426         PR debug/52727
26427         * combine-stack-adj.c: Revert r206943.
26428         * sched-int.h (struct deps_desc): Add last_args_size.
26429         * sched-deps.c (init_deps): Initialize it.
26430         (sched_analyze_insn): Add OUTPUT dependencies between insns that
26431         contain REG_ARGS_SIZE notes.
26433 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
26435         * lto-cgraph.c (asm_nodes_output): Make global.
26436         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
26437         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
26438         (driver_handle_option): Handle OPT_fwpa.
26440 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
26442         PR ipa/59947
26443         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
26444         a comment typo and formatting issue.  If odr_hash hasn't been
26445         created, return vNULL and set *completep to false.
26447         PR middle-end/57499
26448         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
26449         bb with no successors.
26451 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
26453         PR target/59718
26454         * doc/invoke.texi (-march): Clarify documentation for ARM.
26455         (-mtune): Likewise.
26456         (-mcpu): Likewise.
26458 2014-02-05  Richard Biener  <rguenther@suse.de>
26460         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
26461         when not vectorizing because of too many alias checks.
26462         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
26463         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
26465 2014-02-05  Nick Clifton  <nickc@redhat.com>
26467         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
26468         accept extended registers in any mode when compiling for the MN10300.
26470 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
26472         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
26473         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
26474         sanitization attributes.
26475         (can_inline_edge_p): Likewise.
26476         (sanitize_attrs_match_for_inline_p): New function.
26478 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
26480         * ipa-prop.c (detect_type_change): Shor circuit testing of
26481         type changes on THIS pointer.
26483 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
26485         PR target/59777
26486         * config/pa/pa.c (legitimize_tls_address): Return original address
26487         if not passed a SYMBOL_REF rtx.
26488         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
26489         addresses.
26490         (pa_emit_move_sequence): Simplify TLS source operands.
26491         (pa_legitimate_constant_p): Reject all TLS constants.
26492         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
26493         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
26495 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
26497         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
26498         groups when we know they are controlled by LTO.
26499         * varasm.c (default_binds_local_p_1): If object is in other partition,
26500         it will be resolved locally.
26502 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26504         * config/host-linux.c (linux_gt_pch_use_address): Don't
26505         use SSIZE_MAX because it is not always defined.
26507 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
26509         PR bootstrap/59913
26510         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
26511         threshold for pseudo splitting.
26512         (update_ebb_live_info): Process call argument hard registers and
26513         hard registers from insn definition too.
26514         (max_small_class_regs_num): New constant.
26515         (inherit_in_ebb): Update live hard regs through EBBs.  Update
26516         reloads_num only for small register classes.  Don't split for
26517         outputs of jumps.
26519 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
26521         PR ipa/60058
26522         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
26523         is non-null.
26525 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
26527         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
26528         visibility is safe.
26530 2014-02-04  Marek Polacek  <polacek@redhat.com>
26532         * gdbinit.in (pel): Define.
26534 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26536         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
26537         behavior.
26539 2014-02-04  Richard Biener  <rguenther@suse.de>
26541         PR lto/59723
26542         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
26543         in function context local.
26544         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
26545         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
26546         similar to LTO_imported_decl_ref.
26548 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
26550         PR tree-optimization/60002
26551         * cgraphclones.c (build_function_decl_skip_args): Clear
26552         DECL_LANG_SPECIFIC.
26554         PR tree-optimization/60023
26555         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
26556         false to gsi_replace.
26557         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
26558         has been in some EH region and vec_stmt could throw, add
26559         vec_stmt into the same EH region.
26560         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
26561         has no lhs, ignore it.
26562         * internal-fn.c (expand_MASK_LOAD): Likewise.
26564         PR ipa/60026
26565         * tree-inline.c (copy_forbidden): Fail for
26566         __attribute__((optimize (0))) functions.
26568         PR other/58712
26569         * omp-low.c (simd_clone_struct_copy): If from->inbranch
26570         is set, copy one less argument.
26571         (expand_simd_clones): Don't subtract clone_info->inbranch
26572         from simd_clone_struct_alloc argument.
26574         PR rtl-optimization/57915
26575         * recog.c (simplify_while_replacing): If all unary/binary/relational
26576         operation arguments are constant, attempt to simplify those.
26578         PR middle-end/59261
26579         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
26580         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
26582 2014-02-04  Richard Biener  <rguenther@suse.de>
26584         PR tree-optimization/60012
26585         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
26586         TBAA disambiguation to all DDRs.
26588 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26590         PR target/59788
26591         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
26592         (LINK_SPEC): Use it for -shared, -shared-libgcc.
26594 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26596         PR ipa/59882
26597         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
26599 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26601         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
26602         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
26604 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26606         PR ipa/59831
26607         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
26608         to figure out targets of polymorphic calls with known decl.
26609         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26610         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
26611         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
26612         (get_polymorphic_call_info): ... here.
26613         (get_polymorphic_call_info_from_invariant): New function.
26615 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26617         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
26618         lookup via vtable pointer; check for type consistency
26619         and turn inconsitent facts into UNREACHABLE.
26620         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26621         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
26622         type inconsistent querries; return UNREACHABLE instead.
26624 2014-02-03  Richard Henderson  <rth@twiddle.net>
26626         PR tree-opt/59924
26627         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
26628         already processed this node.
26629         (normalize_one_pred_1): Pass along mark_set.
26630         (normalize_one_pred): Create and destroy a pointer_set_t.
26631         (normalize_one_pred_chain): Likewise.
26633 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
26635         PR gcov-profile/58602
26636         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
26638 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
26640         PR ipa/59831
26641         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
26642         -fno-devirtualize; try to devirtualize by the knowledge of
26643         virtual table pointer given by aggregate propagation.
26644         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
26645         (ipa_print_node_jump_functions): Dump also offset that
26646         is relevant for polymorphic calls.
26647         (determine_known_aggregate_parts): Add arg_type parameter; use it
26648         instead of determining the type from pointer type.
26649         (ipa_compute_jump_functions_for_edge): Update call of
26650         determine_known_aggregate_parts.
26651         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
26652         (gimple_get_virt_method_for_binfo): ... here; simplify using
26653         vtable_pointer_value_to_vtable.
26654         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
26655         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
26656         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
26657         (vtable_pointer_value_to_vtable): Break out from ...; handle also
26658         POINTER_PLUS_EXPR.
26659         (vtable_pointer_value_to_binfo): ... here.
26660         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
26662 2014-02-03  Teresa Johnson  <tejohnson@google.com>
26664         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
26665         redef of outer loop index variable.
26667 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
26669         PR c++/53017
26670         PR c++/59211
26671         * doc/extend.texi (Function Attributes): Typo.
26673 2014-02-03  Cong Hou  <congh@google.com>
26675         PR tree-optimization/60000
26676         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
26677         if the vectorized statement is a store.  A store statement can only
26678         appear at the end of pattern statements.
26680 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
26682         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
26683         (ix86_option_override_internal): Default long double to 64-bit for
26684         32-bit Bionic and to 128-bit for 64-bit Bionic.
26686         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
26687         TARGET_LONG_DOUBLE_128 is true.
26688         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
26690         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
26691         (mlong-double-64): Negate -mlong-double-128.
26692         (mlong-double-128): New option.
26694         * config/i386/i386-c.c (ix86_target_macros): Define
26695         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
26697         * doc/invoke.texi: Document -mlong-double-128.
26699 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
26701         PR rtl-optimization/60024
26702         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
26704 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
26706         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
26708 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
26710         PR rtl-optimization/57662
26711         * sel-sched.c (code_motion_path_driver): Do not mark already not
26712         existing blocks in the visiting bitmap.
26714 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
26716         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
26717         on the insn being emitted.
26719 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
26720             Will Deacon  <will.deacon@arm.com>
26722         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
26724 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26726         * config/arm/arm-tables.opt: Regenerate.
26728 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26730         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
26731         for vector types other than V16QImode.
26732         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
26733         define_expand, and call altivec_expand_vec_perm_le when producing
26734         code with little endian element order.
26735         (*altivec_vperm_<mode>_internal): New insn having previous
26736         behavior of altivec_vperm_<mode>.
26737         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
26738         altivec_expand_vec_perm_le when producing code with little endian
26739         element order.
26740         (*altivec_vperm_<mode>_uns_internal): New insn having previous
26741         behavior of altivec_vperm_<mode>_uns.
26743 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26745         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
26746         (altivec_vsumsws): Add handling for -maltivec=be with a little
26747         endian target.
26748         (altivec_vsumsws_direct): New.
26749         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
26750         gen_altivec_vsumsws.
26752 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
26754         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
26755         vtable_pointer_value_to_binfo): New functions.
26756         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
26757         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
26759 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
26761         * config/nios2/nios2.md (load_got_register): Initialize GOT
26762         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
26763         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
26765 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
26767         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
26768         preserverd by passthrough, do not propagate the type.
26770 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26772         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
26773         (mips_atomic_assign_expand_fenv): New function.
26774         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
26776 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26778         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
26779         (__builtin_mips_set_fcsr): Likewise.
26780         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
26781         MIPS_USI_FTYPE_VOID.
26782         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
26783         (mips16_expand_set_fcsr): Likewise.
26784         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
26785         (mips16_set_fcsr_stub): Likewise.
26786         (mips16_get_fcsr_one_only_stub): New class.
26787         (mips16_set_fcsr_one_only_stub): Likewise.
26788         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
26789         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
26790         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
26791         (hard_float): New availability predicate.
26792         (mips_builtins): Add get_fcsr and set_fcsr.
26793         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
26794         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
26795         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
26796         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
26797         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
26798         patterns.
26800 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26802         * config/mips/mips.c (mips_one_only_stub): New class.
26803         (mips_need_mips16_rdhwr_p): Replace with...
26804         (mips16_rdhwr_stub): ...this new variable.
26805         (mips16_stub_call_address): New function.
26806         (mips16_rdhwr_one_only_stub): New class.
26807         (mips_expand_thread_pointer): Use mips16_stub_call_address.
26808         (mips_output_mips16_rdhwr): Delete.
26809         (mips_finish_stub): New function.
26810         (mips_code_end): Use it to handle rdhwr stubs.
26812 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
26814         PR target/60017
26815         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
26816         when calculating size of integer atomic types.
26818 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
26820         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
26822 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
26824         PR tree-optimization/60003
26825         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
26826         * profile.c (branch_prob): Use gimple_call_builtin_p
26827         to check for BUILT_IN_SETJMP_RECEIVER.
26828         * tree-inline.c (copy_bb): Call notice_special_calls.
26830 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
26832         PR bootstrap/59985
26833         * lra-constraints.c (process_alt_operands): Update reload_sum only
26834         on the first pass.
26836 2014-01-31  Richard Henderson  <rth@redhat.com>
26838         PR middle-end/60004
26839         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
26840         until after else_eh is processed.
26842 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
26844         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
26845         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
26846         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
26847         in smmintrin.h, remove them.
26848         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
26849         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
26850         * config/i386/i386.md (ROUND_SAE): Fix value.
26851         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
26852         (const48_operand): New.
26853         * config/i386/subst.md (round), (round_expand): Use
26854         const_4_or_8_to_11_operand.
26855         (round_saeonly), (round_saeonly_expand): Use const48_operand.
26857 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
26859         * config/i386/constraints.md (Yk): Swap meaning with k.
26860         * config/i386/i386.md (movhi_internal): Change Yk to k.
26861         (movqi_internal): Ditto.
26862         (*k<logic><mode>): Ditto.
26863         (*andhi_1): Ditto.
26864         (*andqi_1): Ditto.
26865         (kandn<mode>): Ditto.
26866         (*<code>hi_1): Ditto.
26867         (*<code>qi_1): Ditto.
26868         (kxnor<mode>): Ditto.
26869         (kortestzhi): Ditto.
26870         (kortestchi): Ditto.
26871         (kunpckhi): Ditto.
26872         (*one_cmplhi2_1): Ditto.
26873         (*one_cmplqi2_1): Ditto.
26874         * config/i386/sse.md (): Change k to Yk.
26875         (avx512f_load<mode>_mask): Ditto.
26876         (avx512f_blendm<mode>): Ditto.
26877         (avx512f_store<mode>_mask): Ditto.
26878         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
26879         (avx512f_storedqu<mode>_mask): Ditto.
26880         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
26881         Ditto.
26882         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
26883         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
26884         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
26885         (avx512f_maskcmp<mode>3): Ditto.
26886         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
26887         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
26888         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
26889         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
26890         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
26891         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
26892         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
26893         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
26894         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
26895         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
26896         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
26897         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
26898         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
26899         (vec_extract_lo_<mode>_maskm): Ditto.
26900         (vec_extract_hi_<mode>_maskm): Ditto.
26901         (avx512f_vternlog<mode>_mask): Ditto.
26902         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
26903         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
26904         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
26905         (avx512f_<code>v8div16qi2_mask): Ditto.
26906         (avx512f_<code>v8div16qi2_mask_store): Ditto.
26907         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
26908         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
26909         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
26910         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
26911         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26912         (*avx512pf_gatherpf<mode>df_mask): Ditto.
26913         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26914         (*avx512pf_scatterpf<mode>df_mask): Ditto.
26915         (avx512cd_maskb_vec_dupv8di): Ditto.
26916         (avx512cd_maskw_vec_dupv16si): Ditto.
26917         (avx512f_vpermi2var<mode>3_maskz): Ditto.
26918         (avx512f_vpermi2var<mode>3_mask): Ditto.
26919         (avx512f_vpermi2var<mode>3_mask): Ditto.
26920         (avx512f_vpermt2var<mode>3_maskz): Ditto.
26921         (*avx512f_gathersi<mode>): Ditto.
26922         (*avx512f_gathersi<mode>_2): Ditto.
26923         (*avx512f_gatherdi<mode>): Ditto.
26924         (*avx512f_gatherdi<mode>_2): Ditto.
26925         (*avx512f_scattersi<mode>): Ditto.
26926         (*avx512f_scatterdi<mode>): Ditto.
26927         (avx512f_compress<mode>_mask): Ditto.
26928         (avx512f_compressstore<mode>_mask): Ditto.
26929         (avx512f_expand<mode>_mask): Ditto.
26930         * config/i386/subst.md (mask): Change k to Yk.
26931         (mask_scalar_merge): Ditto.
26932         (sd): Ditto.
26934 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
26936         * doc/extend.texi (Vector Extensions): Document ?: in C++.
26938 2014-01-31  Richard Biener  <rguenther@suse.de>
26940         PR middle-end/59990
26941         * builtins.c (fold_builtin_memory_op): Make sure to not
26942         use a floating-point mode or a boolean or enumeral type for
26943         the copy operation.
26945 2014-01-30  DJ Delorie  <dj@redhat.com>
26947         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
26948         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
26949         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
26950         whenever main() has an epilogue.
26952 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26954         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
26955         unused variable "field".
26956         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
26957         (vsx_mergeh_<mode>): Likewise.
26958         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
26959         (altivec_vmrghh): Likewise.
26960         (altivec_vmrghw): Likewise.
26961         (altivec_vmrglb): Likewise.
26962         (altivec_vmrglh): Likewise.
26963         (altivec_vmrglw): Likewise.
26964         (altivec_vspltb): Add missing uses.
26965         (altivec_vsplth): Likewise.
26966         (altivec_vspltw): Likewise.
26967         (altivec_vspltsf): Likewise.
26969 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
26971         PR target/59923
26972         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
26973         frame related instructions.
26975 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
26977         PR rtl-optimization/59959
26978         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
26979         any reload of register whose subreg is invalid.
26981 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
26983         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
26984         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
26985         Add missing return type - void.
26987 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26989         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
26990         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
26991         remove element index adjustment for endian (now handled in vsx.md
26992         and altivec.md).
26993         (altivec_expand_vec_perm_const): Use
26994         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
26995         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
26996         (vsx_xxspltw_<mode>): Adjust element index for little endian.
26997         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
26998         define_expand and a new define_insn *altivec_vspltb_internal;
26999         adjust for -maltivec=be on a little endian target.
27000         (altivec_vspltb_direct): New.
27001         (altivec_vsplth): Divide into a define_expand and a new
27002         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
27003         little endian target.
27004         (altivec_vsplth_direct): New.
27005         (altivec_vspltw): Divide into a define_expand and a new
27006         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
27007         little endian target.
27008         (altivec_vspltw_direct): New.
27009         (altivec_vspltsf): Divide into a define_expand and a new
27010         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
27011         a little endian target.
27013 2014-01-30  Richard Biener  <rguenther@suse.de>
27015         PR tree-optimization/59993
27016         * tree-ssa-forwprop.c (associate_pointerplus): Check we
27017         can propagate form the earlier stmt and avoid the transform
27018         when the intermediate result is needed.
27020 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
27022         * README.Portability: Fix typo.
27024 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
27026         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
27027         comparison_operator with ordered_comparison_operator.
27029 2014-01-30  Nick Clifton  <nickc@redhat.com>
27031         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
27032         Rename to mn10300_store_multiple_regs.
27033         * config/mn10300/mn10300.c: Likewise.
27034         * config/mn10300/mn10300.md (store_movm): Fix typo: call
27035         store_multiple_regs.
27036         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
27037         Call mn10300_store_multiple_regs.
27039 2014-01-30  Nick Clifton  <nickc@redhat.com>
27040             DJ Delorie  <dj@redhat.com>
27042         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
27043         %fp 2 to keep registers after it properly word-aligned.
27044         (rl78_alloc_physical_registers_umul): Handle the case where both
27045         input operands are the same.
27047 2014-01-30  Richard Biener  <rguenther@suse.de>
27049         PR tree-optimization/59903
27050         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
27051         check properly.
27053 2014-01-30  Jason Merrill  <jason@redhat.com>
27055         PR c++/59633
27056         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
27058         PR c++/59645
27059         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
27061 2014-01-30  Richard Biener  <rguenther@suse.de>
27063         PR tree-optimization/59951
27064         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
27066 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
27068         PR target/59784
27069         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
27070         SFmode to DFmode case.
27072 2014-01-29  DJ Delorie  <dj@redhat.com>
27074         * config/msp430/msp430.opt (-minrt): New.
27075         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
27076         if -minrt given.
27077         (ENDFILE_SPEC): Likewise.
27079 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
27081         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
27082         (estimate_function_body_sizes): Use it.
27084 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
27086         PR c++/58561
27087         * dwarf2out.c (is_cxx_auto): New.
27088         (is_base_type): Use it.
27089         (gen_type_die_with_usage): Likewise.
27091 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27093         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
27094         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
27095         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
27096         -maltivec=be with LE targets.
27097         (vsx_mergeh_<mode>): Likewise.
27098         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
27099         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
27100         (altivec_vmrghb): Replace with define_expand and new
27101         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
27102         (altivec_vmrghb_direct): New define_insn.
27103         (altivec_vmrghh): Replace with define_expand and new
27104         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
27105         (altivec_vmrghh_direct): New define_insn.
27106         (altivec_vmrghw): Replace with define_expand and new
27107         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
27108         (altivec_vmrghw_direct): New define_insn.
27109         (*altivec_vmrghsf): Adjust for endianness.
27110         (altivec_vmrglb): Replace with define_expand and new
27111         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
27112         (altivec_vmrglb_direct): New define_insn.
27113         (altivec_vmrglh): Replace with define_expand and new
27114         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
27115         (altivec_vmrglh_direct): New define_insn.
27116         (altivec_vmrglw): Replace with define_expand and new
27117         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
27118         (altivec_vmrglw_direct): New define_insn.
27119         (*altivec_vmrglsf): Adjust for endianness.
27120         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
27121         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
27122         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
27123         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
27124         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
27125         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
27126         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
27127         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
27129 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27131         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
27132         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
27133         whitespace.
27135 2014-01-29  Richard Biener  <rguenther@suse.de>
27137         PR tree-optimization/58742
27138         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
27139         associate_pointerplus_align.
27140         (associate_pointerplus_diff): New function.
27141         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
27142         and associate_pointerplus_diff.
27144 2014-01-29  Richard Biener  <rguenther@suse.de>
27146         * lto-streamer.h (LTO_major_version): Bump to 3.
27147         (LTO_minor_version): Reset to 0.
27149 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
27151         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
27152         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
27153         (arm_file_start): Generate correct asm header for armv7ve.
27154         * config/arm/bpabi.h: Add multilib support for armv7ve.
27155         * config/arm/driver-arm.c: Change the architectures of cortex-a7
27156         and cortex-a15 to armv7ve.
27157         * config/arm/t-aprofile: Add multilib support for armv7ve.
27158         * doc/invoke.texi: Document -march=armv7ve.
27160 2014-01-29  Richard Biener  <rguenther@suse.de>
27162         PR tree-optimization/58742
27163         * tree-ssa-forwprop.c (associate_plusminus): Return true
27164         if we changed sth, defer EH cleanup to ...
27165         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
27166         (simplify_mult): New function.
27168 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
27170         PR middle-end/59917
27171         PR tree-optimization/59920
27172         * tree.c (build_common_builtin_nodes): Remove
27173         __builtin_setjmp_dispatcher initialization.
27174         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
27175         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
27176         instead of gsi_after_labels + manually skipping debug stmts.
27177         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
27178         ignore bbs with IFN_ABNORMAL_DISPATCHER.
27179         * tree-inline.c (copy_edges_for_bb): Remove
27180         can_make_abnormal_goto argument, instead add abnormal_goto_dest
27181         argument.  Ignore computed_goto_p stmts.  Don't call
27182         make_abnormal_goto_edges.  If a call might need abnormal edges
27183         for non-local gotos, see if it already has an edge to
27184         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
27185         with true argument, don't do anything then, otherwise add
27186         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
27187         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
27188         caller.
27189         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
27190         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
27191         (lower_stmt): Don't set data->calls_builtin_setjmp.
27192         (lower_builtin_setjmp): Adjust comment.
27193         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
27194         * tree-cfg.c (found_computed_goto): Remove.
27195         (factor_computed_gotos): Remove.
27196         (make_goto_expr_edges): Return bool, true for computed gotos.
27197         Don't call make_abnormal_goto_edges.
27198         (build_gimple_cfg): Don't set found_computed_goto, don't call
27199         factor_computed_gotos.
27200         (computed_goto_p): No longer static.
27201         (make_blocks): Don't set found_computed_goto.
27202         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
27203         (make_edges): If make_goto_expr_edges returns true, push bb
27204         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
27205         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
27206         vector.  Record mapping between bbs and OpenMP regions if there
27207         are any, adjust make_gimple_omp_edges caller.  Call
27208         handle_abnormal_edges.
27209         (make_abnormal_goto_edges): Remove.
27210         * tree-cfg.h (make_abnormal_goto_edges): Remove.
27211         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
27212         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
27213         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
27214         * internal-fn.def (ABNORMAL_DISPATCHER): New.
27215         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
27216         filling *region also set *region_idx to (*region)->entry->index.
27218         PR other/58712
27219         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
27220         For REGs set ORIGINAL_REGNO.
27222 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
27224         * doc/md.texi: Mention that a target shouldn't implement
27225         vec_widen_(s|u)mul_even/odd pair if it is less efficient
27226         than hi/lo pair.
27228 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
27230         PR tree-optimization/59594
27231         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
27232         a copy of the datarefs vector rather than the vector itself.
27234 2014-01-28  Jason Merrill  <jason@redhat.com>
27236         PR c++/53756
27237         * dwarf2out.c (auto_die): New static.
27238         (gen_type_die_with_usage): Handle C++1y 'auto'.
27239         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
27240         on definition.
27242 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
27244         PR target/59672
27245         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
27246         (SPEC_X32): Likewise.
27247         (SPEC_64): Likewise.
27248         * config/i386/i386.c (ix86_option_override_internal): Turn off
27249         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
27250         for TARGET_16BIT.
27251         (x86_file_start): Output .code16gcc for TARGET_16BIT.
27252         * config/i386/i386.h (TARGET_16BIT): New macro.
27253         (TARGET_16BIT_P): Likewise.
27254         * config/i386/i386.opt: Add m16.
27255         * doc/invoke.texi: Document -m16.
27257 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
27259         PR preprocessor/59935
27260         * input.c (location_get_source_line): Bail out on when line number
27261         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
27263 2014-01-28  Richard Biener  <rguenther@suse.de>
27265         PR tree-optimization/58742
27266         * tree-ssa-forwprop.c (associate_plusminus): Handle
27267         pointer subtraction of the form (T)(P + A) - (T)P.
27269 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27271         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
27272         at const_int_cost.
27274 2014-01-28  Richard Biener  <rguenther@suse.de>
27276         Revert
27277         2014-01-28  Richard Biener  <rguenther@suse.de>
27279         PR rtl-optimization/45364
27280         PR rtl-optimization/59890
27281         * var-tracking.c (local_get_addr_clear_given_value): Handle
27282         already cleared slot.
27283         (val_reset): Handle not allocated local_get_addr_cache.
27284         (vt_find_locations): Use post-order on the inverted CFG.
27286 2014-01-28  Richard Biener  <rguenther@suse.de>
27288         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
27290 2014-01-28  Richard Biener  <rguenther@suse.de>
27292         PR rtl-optimization/45364
27293         PR rtl-optimization/59890
27294         * var-tracking.c (local_get_addr_clear_given_value): Handle
27295         already cleared slot.
27296         (val_reset): Handle not allocated local_get_addr_cache.
27297         (vt_find_locations): Use post-order on the inverted CFG.
27299 2014-01-28  Alan Modra  <amodra@gmail.com>
27301         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
27302         * configure.ac <recursive call for build != host>: Define
27303         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
27304         and LD_FOR_BUILD too.
27305         * configure: Regenerate.
27307 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
27309         * config/i386/i386.c (get_builtin_code_for_version): Separate
27310         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
27311         Broadwell from Haswell.
27313 2014-01-27  Steve Ellcey  <sellcey@mips.com>
27315         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27316         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
27317         * config/mips/mips.c (mips_option_override): Change setting
27318         of TARGET_DSP.
27319         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
27320         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
27321         Change from Mask to Var.
27323 2014-01-27  Jeff Law  <law@redhat.com>
27325         * ipa-inline.c (inline_small_functions): Fix typo.
27327 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
27329         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
27330         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
27331         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
27332         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
27333         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
27334         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
27335         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
27336         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
27337         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
27338         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
27339         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
27340         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
27341         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
27342         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
27343         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
27344         (_mm512_storeu_epi64): Ditto.
27345         (_mm512_cmpge_epi32_mask): Ditto.
27346         (_mm512_cmpge_epu32_mask): Ditto.
27347         (_mm512_cmpge_epi64_mask): Ditto.
27348         (_mm512_cmpge_epu64_mask): Ditto.
27349         (_mm512_cmple_epi32_mask): Ditto.
27350         (_mm512_cmple_epu32_mask): Ditto.
27351         (_mm512_cmple_epi64_mask): Ditto.
27352         (_mm512_cmple_epu64_mask): Ditto.
27353         (_mm512_cmplt_epi32_mask): Ditto.
27354         (_mm512_cmplt_epu32_mask): Ditto.
27355         (_mm512_cmplt_epi64_mask): Ditto.
27356         (_mm512_cmplt_epu64_mask): Ditto.
27357         (_mm512_cmpneq_epi32_mask): Ditto.
27358         (_mm512_cmpneq_epu32_mask): Ditto.
27359         (_mm512_cmpneq_epi64_mask): Ditto.
27360         (_mm512_cmpneq_epu64_mask): Ditto.
27361         (_mm512_expand_pd): Ditto.
27362         (_mm512_expand_ps): Ditto.
27363         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
27364         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
27365         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
27366         * config/i386/i386.c (ix86_builtins): Add
27367         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
27368         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
27369         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
27370         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
27371         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
27372         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
27373         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
27374         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
27375         IX86_BUILTIN_PMOVUSQW512_MEM.
27376         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
27377         __builtin_ia32_pmovsqd512mem_mask,
27378         __builtin_ia32_pmovqd512mem_mask,
27379         __builtin_ia32_pmovusqw512mem_mask,
27380         __builtin_ia32_pmovsqw512mem_mask,
27381         __builtin_ia32_pmovqw512mem_mask,
27382         __builtin_ia32_pmovusdw512mem_mask,
27383         __builtin_ia32_pmovsdw512mem_mask,
27384         __builtin_ia32_pmovdw512mem_mask,
27385         __builtin_ia32_pmovqb512mem_mask,
27386         __builtin_ia32_pmovusqb512mem_mask,
27387         __builtin_ia32_pmovsqb512mem_mask,
27388         __builtin_ia32_pmovusdb512mem_mask,
27389         __builtin_ia32_pmovsdb512mem_mask,
27390         __builtin_ia32_pmovdb512mem_mask.
27391         (bdesc_args): Add __builtin_ia32_expanddf512,
27392         __builtin_ia32_expandsf512.
27393         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
27394         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
27395         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
27396         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
27397         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
27398         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
27399         (avx512f_<code>v8div16qi2_mask_store): This.
27400         (avx512f_expand<mode>): New.
27402 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
27404         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
27405         New.
27406         (_mm512_mask_prefetch_i64gather_pd): Ditto.
27407         (_mm512_prefetch_i32scatter_pd): Ditto.
27408         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
27409         (_mm512_prefetch_i64scatter_pd): Ditto.
27410         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
27411         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
27412         (_mm512_mask_prefetch_i64gather_ps): Ditto.
27413         (_mm512_prefetch_i32scatter_ps): Ditto.
27414         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
27415         (_mm512_prefetch_i64scatter_ps): Ditto.
27416         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
27417         * config/i386/i386-builtin-types.def: Define
27418         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
27419         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
27420         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
27421         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
27422         IX86_BUILTIN_SCATTERPFQPD.
27423         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
27424         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
27425         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
27426         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
27427         __builtin_ia32_scatterpfqps.
27428         (ix86_expand_builtin): Expand new built-ins.
27429         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
27430         fix memory access data type.
27431         (*avx512pf_gatherpf<mode>_mask): Ditto.
27432         (*avx512pf_gatherpf<mode>): Ditto.
27433         (avx512pf_scatterpf<mode>): Ditto.
27434         (*avx512pf_scatterpf<mode>_mask): Ditto.
27435         (*avx512pf_scatterpf<mode>): Ditto.
27436         (GATHER_SCATTER_SF_MEM_MODE): New.
27437         (avx512pf_gatherpf<mode>df): Ditto.
27438         (*avx512pf_gatherpf<mode>df_mask): Ditto.
27439         (*avx512pf_scatterpf<mode>df): Ditto.
27441 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
27443         PR bootstrap/59934
27444         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
27445         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
27446         reached.
27448 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
27450         * common/config/arm/arm-common.c
27451         (arm_rewrite_mcpu): Handle multiple names.
27452         * config/arm/arm.h
27453         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
27455 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
27457         * gimple-builder.h (create_gimple_tmp): Delete.
27459 2014-01-27  Christian Bruel  <christian.bruel@st.com>
27461         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
27462         words comparisons.
27464 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
27466         * config/pa/pa.md (call): Generate indirect long calls to non-local
27467         functions when outputing 32-bit code.
27468         (call_value): Likewise except for special call to buggy powf function.
27470         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
27471         portable runtime and PIC indirect calls.
27472         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
27473         and PIC call sequences.  Use ldo instead of blr to set return register
27474         in PIC call sequence.
27476 2014-01-25  Walter Lee  <walt@tilera.com>
27478         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
27479         avoid clobbering a live register.
27481 2014-01-25  Walter Lee  <walt@tilera.com>
27483         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
27484         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
27485         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
27486         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
27488 2014-01-25  Walter Lee  <walt@tilera.com>
27490         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
27491         arguments on even registers.
27492         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
27493         STACK_BOUNDARY.
27494         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
27495         (BIGGEST_ALIGNMENT): Ditto.
27496         (BIGGEST_FIELD_ALIGNMENT): Ditto.
27498 2014-01-25  Walter Lee  <walt@tilera.com>
27500         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
27501         insns before bundling.
27502         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
27504 2014-01-25  Walter Lee  <walt@tilera.com>
27506         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
27507         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
27508         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
27510 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
27512         * config/mips/constraints.md (kl): Delete.
27513         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
27514         define expands, using...
27515         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
27516         instructions for MIPS16.
27517         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
27518         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
27520 2014-01-25  Walter Lee  <walt@tilera.com>
27522         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
27523         (clzdi2): Ditto.
27524         (ffsdi2): Ditto.
27526 2014-01-25  Walter Lee  <walt@tilera.com>
27528         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
27529         (TARGET_EXPAND_TO_RTL_HOOK): Define.
27531 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
27533         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
27534         Handle XOR.
27536 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
27538         * print-rtl.c (in_call_function_usage): New var.
27539         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
27540         EXPR_LIST mode as mode and not as reg note name.
27542         PR middle-end/59561
27543         * cfgloopmanip.c (copy_loop_info): If
27544         loop->warned_aggressive_loop_optimizations, make sure
27545         the flag is set in target loop too.
27547 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
27549         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
27550         flag_cilkplus.
27551         * builtins.def: Likewise.
27552         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
27553         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
27554         * ira.c (ira_setup_eliminable_regset): Likewise.
27555         * omp-low.c (gate_expand_omp): Likewise.
27556         (execute_lower_omp): Likewise.
27557         (diagnose_sb_0): Likewise.
27558         (gate_diagnose_omp_blocks): Likewise.
27559         (simd_clone_clauses_extract): Likewise.
27560         (gate): Likewise.
27562 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27564         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
27565         correction for little endian...
27566         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
27567         here.
27569 2014-01-24  Jeff Law  <law@redhat.com>
27571         PR tree-optimization/59919
27572         * tree-vrp.c (find_assert_locations_1): Do not register asserts
27573         for non-returning calls.
27575 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
27577         * common/config/aarch64/aarch64-common.c
27578         (aarch64_rewrite_mcpu): Handle multiple names.
27579         * config/aarch64/aarch64.h
27580         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
27582 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
27584         * input.c (add_file_to_cache_tab): Handle the case where fopen
27585         returns NULL.
27587 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
27589         PR target/59929
27590         * config/i386/i386.md (pushsf splitter): Get stack adjustment
27591         from push operand if code of push isn't PRE_DEC.
27593 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
27595         PR target/59909
27596         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
27597         -mquad-memory-atomic.  Update -mquad-memory documentation to say
27598         it is only used for non-atomic loads/stores.
27600         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
27601         -mquad-memory or -mquad-memory-atomic switches.
27603         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
27604         -mquad-memory-atomic to ISA 2.07 support.
27606         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
27607         to separate support of normal quad word memory operations (ldq, stq)
27608         from the atomic quad word memory operations.
27610         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
27611         support to separate non-atomic quad word operations from atomic
27612         quad word operations.  Disable non-atomic quad word operations in
27613         little endian mode so that we don't have to swap words after the
27614         load and before the store.
27615         (quad_load_store_p): Add comment about atomic quad word support.
27616         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
27617         options printed with -mdebug=reg.
27619         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
27620         -mquad-memory-atomic as the test for whether we have quad word
27621         atomic instructions.
27622         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
27623         or -mp8-vector are used, allow byte/half-word atomic operations.
27625         * config/rs6000/sync.md (load_lockedti): Insure that the address
27626         is a proper indexed or indirect address for the lqarx instruction.
27627         On little endian systems, swap the hi/lo registers after the lqarx
27628         instruction.
27629         (load_lockedpti): Use indexed_or_indirect_operand predicate to
27630         insure the address is valid for the lqarx instruction.
27631         (store_conditionalti): Insure that the address is a proper indexed
27632         or indirect address for the stqcrx. instruction.  On little endian
27633         systems, swap the hi/lo registers before doing the stqcrx.
27634         instruction.
27635         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
27636         insure the address is valid for the stqcrx. instruction.
27638         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
27639         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
27640         type of quad memory support is available.
27642 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
27644         PR regression/59915
27645         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
27646         there is a danger of looping.
27648 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
27650         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
27651         force flag_ira_loop_pressure if set via command line.
27653 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
27655         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
27656         (ashr_simd): New builtin handling DI mode.
27657         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
27658         (aarch64_sshr_simddi): New match pattern.
27659         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
27660         (vshrd_n_s64): Likewise.
27661         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
27663 2014-01-23  Nick Clifton  <nickc@redhat.com>
27665         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
27666         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
27667         favour of mcu specific scripts.
27668         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
27669         430x multilibs.
27671 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
27672             Alex Velenko  <Alex.Velenko@arm.com>
27674         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
27675         (vaddv_s16): Likewise.
27676         (vaddv_s32): Likewise.
27677         (vaddv_u8): Likewise.
27678         (vaddv_u16): Likewise.
27679         (vaddv_u32): Likewise.
27680         (vaddvq_s8): Likewise.
27681         (vaddvq_s16): Likewise.
27682         (vaddvq_s32): Likewise.
27683         (vaddvq_s64): Likewise.
27684         (vaddvq_u8): Likewise.
27685         (vaddvq_u16): Likewise.
27686         (vaddvq_u32): Likewise.
27687         (vaddvq_u64): Likewise.
27688         (vaddv_f32): Likewise.
27689         (vaddvq_f32): Likewise.
27690         (vaddvq_f64): Likewise.
27691         (vmaxv_f32): Likewise.
27692         (vmaxv_s8): Likewise.
27693         (vmaxv_s16): Likewise.
27694         (vmaxv_s32): Likewise.
27695         (vmaxv_u8): Likewise.
27696         (vmaxv_u16): Likewise.
27697         (vmaxv_u32): Likewise.
27698         (vmaxvq_f32): Likewise.
27699         (vmaxvq_f64): Likewise.
27700         (vmaxvq_s8): Likewise.
27701         (vmaxvq_s16): Likewise.
27702         (vmaxvq_s32): Likewise.
27703         (vmaxvq_u8): Likewise.
27704         (vmaxvq_u16): Likewise.
27705         (vmaxvq_u32): Likewise.
27706         (vmaxnmv_f32): Likewise.
27707         (vmaxnmvq_f32): Likewise.
27708         (vmaxnmvq_f64): Likewise.
27709         (vminv_f32): Likewise.
27710         (vminv_s8): Likewise.
27711         (vminv_s16): Likewise.
27712         (vminv_s32): Likewise.
27713         (vminv_u8): Likewise.
27714         (vminv_u16): Likewise.
27715         (vminv_u32): Likewise.
27716         (vminvq_f32): Likewise.
27717         (vminvq_f64): Likewise.
27718         (vminvq_s8): Likewise.
27719         (vminvq_s16): Likewise.
27720         (vminvq_s32): Likewise.
27721         (vminvq_u8): Likewise.
27722         (vminvq_u16): Likewise.
27723         (vminvq_u32): Likewise.
27724         (vminnmv_f32): Likewise.
27725         (vminnmvq_f32): Likewise.
27726         (vminnmvq_f64): Likewise.
27728 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
27730         * config/aarch64/aarch64-simd.md
27731         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
27732         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
27733         (*aarch64_mul3_elt<mode>): Likewise.
27734         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
27735         (*aarch64_mul3_elt_to_64v2df): Likewise.
27736         (*aarch64_mla_elt<mode>): Likewise.
27737         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
27738         (*aarch64_mls_elt<mode>): Likewise.
27739         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
27740         (*aarch64_fma4_elt<mode>): Likewise.
27741         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
27742         (*aarch64_fma4_elt_to_64v2df): Likewise.
27743         (*aarch64_fnma4_elt<mode>): Likewise.
27744         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
27745         (*aarch64_fnma4_elt_to_64v2df): Likewise.
27746         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
27747         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
27748         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
27749         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
27750         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
27751         (aarch64_sqdmull_lane<mode>_internal): Likewise.
27752         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
27754 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
27756         * config/aarch64/aarch64-simd.md
27757         (aarch64_be_checked_get_lane<mode>): New define_expand.
27758         * config/aarch64/aarch64-simd-builtins.def
27759         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
27760         New builtin definition.
27761         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
27762         Use new safe be builtin.
27764 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
27766         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
27767         New define_insn.
27768         (aarch64_be_st1<mode>): Likewise.
27769         (aarch_ld1<VALL:mode>): Define_expand modified.
27770         (aarch_st1<VALL:mode>): Likewise.
27771         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
27772         (UNSPEC_ST1): Likewise.
27774 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
27776         * config/microblaze/microblaze.md: Add trap insn and attribute
27778 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
27780         PR preprocessor/58580
27781         * input.h (location_get_source_line): Take an additional line_size
27782         parameter.
27783         (void diagnostics_file_cache_fini): Declare new function.
27784         * input.c (struct fcache): New type.
27785         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
27786         New static constants.
27787         (diagnostic_file_cache_init, total_lines_num)
27788         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
27789         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
27790         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
27791         (get_next_line, read_next_line, goto_next_line, read_line_num):
27792         New static function definitions.
27793         (diagnostic_file_cache_fini): New function.
27794         (location_get_source_line): Take an additional output line_len
27795         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
27796         read_line_num.
27797         * diagnostic.c (diagnostic_finish): Call
27798         diagnostic_file_cache_fini.
27799         (adjust_line): Take an additional input parameter for the length
27800         of the line, rather than calculating it with strlen.
27801         (diagnostic_show_locus): Adjust the use of
27802         location_get_source_line and adjust_line with respect to their new
27803         signature.  While displaying a line now, do not stop at the first
27804         null byte.  Rather, display the zero byte as a space and keep
27805         going until we reach the size of the line.
27806         * Makefile.in: Add vec.o to OBJS-libcommon
27808 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
27809             Ilya Tocar  <ilya.tocar@intel.com>
27811         * config/i386/avx512fintrin.h (_mm512_kmov): New.
27812         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
27813         (__builtin_ia32_kmov16): Ditto.
27814         * config/i386/i386.md (UNSPEC_KMOV): New.
27815         (kmovw): Ditto.
27817 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
27819         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
27820         (_mm512_storeu_si512): Ditto.
27822 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
27824         PR target/52125
27825         * rtl.h (get_referenced_operands): Declare.
27826         * recog.c (get_referenced_operands): New function.
27827         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
27828         operands have been referenced when recording LO_SUM references.
27830 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
27832         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
27834 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
27836         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
27837         Enable for generic and recent AMD targets.
27839 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
27841         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
27842         ARG_SIZE note when adjustment was eliminated.
27844 2014-01-22  Jeff Law  <law@redhat.com>
27846         PR tree-optimization/59597
27847         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
27848         in file.  Accept new argument REGISTERING and use it to modify
27849         dump output appropriately.
27850         (register_jump_thread): Corresponding changes.
27851         (mark_threaded_blocks): Reinstate code to cancel unprofitable
27852         thread paths involving joiner blocks.  Add code to dump cancelled
27853         jump threading paths.
27855 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
27857         PR rtl-optimization/59477
27858         * lra-constraints.c (inherit_in_ebb): Process call for living hard
27859         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
27861 2014-01-22  Tom Tromey  <tromey@redhat.com>
27863         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
27864         PARAMS.
27865         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
27867 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27869         PR rtl-optimization/59896
27870         * lra-constraints.c (process_alt_operands): Check unused note for
27871         matched operands of insn with no output reloads.
27873 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
27875         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
27876         (mips_move_from_gpr_cost): Likewise.
27878 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27880         PR rtl-optimization/59858
27881         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
27882         ira_class_hard_regs_num.
27883         (process_alt_operands): Increase reject for dying matched operand.
27885 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
27887         PR target/59003
27888         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
27889         smaller than size, perform several stores or loads and stores
27890         at dst + count - size to store or copy all of size bytes, rather
27891         than just last modesize bytes.
27893 2014-01-20  DJ Delorie  <dj@redhat.com>
27895         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
27896         that CLOBBERs are REGs before propogating their values.
27898 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
27900         PR middle-end/59789
27901         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
27902         (cgraph_inline_failed_type): New function.
27903         * cgraph.h (DEFCIFCODE): Add type.
27904         (cgraph_inline_failed_type_t): New enum.
27905         (cgraph_inline_failed_type): New prototype.
27906         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
27907         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
27908         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
27909         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
27910         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
27911         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
27912         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
27913         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
27914         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
27915         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
27916         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
27917         OPTIMIZATION_MISMATCH.
27918         * tree-inline.c (expand_call_inline): Emit errors during
27919         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
27921 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
27923         PR target/59685
27924         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
27925         mode attribute in insn output.
27927 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
27929         * output.h (output_constant): Delete.
27930         * varasm.c (output_constant): Make private.
27932 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
27934         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
27936 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
27938         PR middle-end/59860
27939         * tree.h (fold_builtin_strcat): New prototype.
27940         * builtins.c (fold_builtin_strcat): No longer static.  Add len
27941         argument, if non-NULL, don't call c_strlen.  Optimize
27942         directly into __builtin_memcpy instead of __builtin_strcpy.
27943         (fold_builtin_2): Adjust fold_builtin_strcat caller.
27944         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
27946 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
27948         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
27949         for SImode_address_operand operands, having only a REG argument.
27951 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
27953         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
27954         loader name using mbig-endian.
27955         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
27957 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
27959         * doc/invoke.texi (-march): Clarify documentation for AArch64.
27960         (-mtune): Likewise.
27961         (-mcpu): Likewise.
27963 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
27965         * config/aarch64/aarch64-protos.h
27966         (aarch64_cannot_change_mode_class_ptr): Declare.
27967         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
27968         aarch64_cannot_change_mode_class_ptr): New.
27969         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
27970         backend hook aarch64_cannot_change_mode_class.
27972 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
27974         * common/config/aarch64/aarch64-common.c
27975         (aarch64_handle_option): Don't handle any option order logic here.
27976         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
27977         selected_cpu, warn on architecture version mismatch.
27978         (aarch64_override_options): Fix parsing order for option strings.
27980 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27981             Iain Sandoe  <iain@codesourcery.com>
27983         PR bootstrap/59496
27984         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
27985         warning.  Amend comment to reflect current functionality.
27987 2014-01-20  Richard Biener  <rguenther@suse.de>
27989         PR middle-end/59860
27990         * builtins.c (fold_builtin_strcat): Remove case better handled
27991         by tree-ssa-strlen.c.
27993 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
27995         * config/aarch64/aarch64.opt
27996         (mcpu, march, mtune): Make case-insensitive.
27998 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
28000         PR target/59880
28001         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
28002         if operands[1] is a REG or ZERO_EXTEND of a REG.
28004 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
28006         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
28008 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
28010         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
28011         long non-pic millicode calls.
28013 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
28015         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
28017 2014-01-19  Kito Cheng  <kito@0xlab.org>
28019         * builtins.c (expand_movstr): Check movstr expand done or fail.
28021 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
28022             H.J. Lu  <hongjiu.lu@intel.com>
28024         PR target/59379
28025         * config/i386/i386.md (*lea<mode>): Zero-extend return register
28026         to DImode for zero-extended addresses.
28028 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
28030         PR rtl-optimization/57763
28031         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
28032         on the new indirect jump_insn and increment LABEL_NUSES (label).
28034 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
28036         PR bootstrap/59580
28037         PR bootstrap/59583
28038         * config.gcc (x86_archs): New variable.
28039         (x86_64_archs): Likewise.
28040         (x86_cpus): Likewise.
28041         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
28042         --with-arch/--with-cpu= options.
28043         Support --with-arch=/--with-cpu={nehalem,westmere,
28044         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
28046 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
28048         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
28049         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
28051 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
28053         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
28055 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
28057         PR target/58944
28058         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
28059         clear cpp_get_options (parse_in)->warn_unused_macros for
28060         ix86_target_macros_internal with cpp_define.
28062 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
28064         * jump.c (delete_related_insns): Keep (use (insn))s.
28065         * reorg.c (redundant_insn): Check for barriers too.
28067 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
28069         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
28071 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
28073         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
28074         call to $$dyncall when TARGET_LONG_CALLS is true.
28076 2014-01-17  Jeff Law  <law@redhat.com>
28078         * ree.c (combine_set_extension): Temporarily disable test for
28079         changing number of hard registers.
28081 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
28083         PR middle-end/58125
28084         * ipa-inline-analysis.c (inline_free_summary):
28085         Do not free summary of aliases.
28087 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
28089         PR middle-end/59706
28090         * gimplify.c (gimplify_expr): Use create_tmp_var
28091         instead of create_tmp_var_raw.  If cond doesn't have
28092         integral type, don't add the IFN_ANNOTATE builtin at all.
28094 2014-01-17  Martin Jambor  <mjambor@suse.cz>
28096         PR ipa/59736
28097         * ipa-cp.c (prev_edge_clone): New variable.
28098         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
28099         Also resize prev_edge_clone vector.
28100         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
28101         (ipcp_edge_removal_hook): New function.
28102         (ipcp_driver): Register ipcp_edge_removal_hook.
28104 2014-01-17  Andrew Pinski  <apinski@cavium.com>
28105             Steve Ellcey  <sellcey@mips.com>
28107         PR target/59462
28108         * config/mips/mips.c (mips_print_operand): Check operand mode instead
28109         of operator mode.
28111 2014-01-17  Jeff Law  <law@redhat.com>
28113         PR middle-end/57904
28114         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
28115         so that pass_ccp runs first.
28117 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
28119         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
28120         (ix86_adjust_cost): Use !TARGET_XXX.
28121         (do_reorder_for_imul): Likewise.
28122         (swap_top_of_ready_list): Likewise.
28123         (ix86_sched_reorder): Likewise.
28125 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
28127         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
28128         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
28129         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
28130         (intel_memset): New.  Duplicate slm_memset.
28131         (intel_cost): New.  Duplicate slm_cost.
28132         (m_INTEL): New macro.
28133         (processor_target_table): Add "intel".
28134         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
28135         with PROCESSOR_INTEL for "intel".
28136         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
28137         PROCESSOR_SILVERMONT.
28138         (ix86_issue_rate): Likewise.
28139         (ix86_adjust_cost): Likewise.
28140         (ia32_multipass_dfa_lookahead): Likewise.
28141         (swap_top_of_ready_list): Likewise.
28142         (ix86_sched_reorder): Likewise.
28143         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
28144         instead of TARGET_OPT_AGU.
28145         * config/i386/i386.h (TARGET_INTEL): New.
28146         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
28147         (processor_type): Add PROCESSOR_INTEL.
28148         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
28149         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
28151 2014-01-17  Marek Polacek  <polacek@redhat.com>
28153         PR c/58346
28154         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
28155         size is zero.
28157 2014-01-17  Richard Biener  <rguenther@suse.de>
28159         PR tree-optimization/46590
28160         * opts.c (default_options_table): Add entries for
28161         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
28162         all enabled at -O1 but not for -Og.
28163         * common.opt (fbranch-count-reg): Remove Init(1).
28164         (fmove-loop-invariants): Likewise.
28165         (ftree-pta): Likewise.
28167 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
28169         * config/i386/i386.c (ix86_data_alignment): For compatibility with
28170         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
28171         decls to at least the GCC 4.8 used alignments.
28173         PR fortran/59440
28174         * tree-nested.c (convert_nonlocal_reference_stmt,
28175         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
28176         of GIMPLE_BIND stmts, adjust associated decls.
28178 2014-01-17  Richard Biener  <rguenther@suse.de>
28180         PR tree-optimization/46590
28181         * vec.h (vec<>::bseach): New member function implementing
28182         binary search according to C89 bsearch.
28183         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
28184         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
28185         bitmap pointer again.  Make accesses_in_loop a flat array.
28186         (mem_ref_obstack): New global.
28187         (outermost_indep_loop): Adjust for mem_ref->stored changes.
28188         (mark_ref_stored): Likewise.
28189         (ref_indep_loop_p_2): Likewise.
28190         (set_ref_stored_in_loop): New helper function.
28191         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
28192         (memref_free): Adjust.
28193         (record_mem_ref_loc): Simplify.
28194         (gather_mem_refs_stmt): Adjust.
28195         (sort_locs_in_loop_postorder_cmp): New function.
28196         (analyze_memory_references): Sort accesses_in_loop after
28197         loop postorder number.
28198         (find_ref_loc_in_loop_cmp): New function.
28199         (for_all_locs_in_loop): Find relevant cluster of locs in
28200         accesses_in_loop and iterate without recursion.
28201         (execute_sm): Avoid uninit warning.
28202         (struct ref_always_accessed): Simplify.
28203         (ref_always_accessed::operator ()): Likewise.
28204         (ref_always_accessed_p): Likewise.
28205         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
28206         loop postorder numbers here.
28207         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
28208         numbers.
28210 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
28212         PR c++/57945
28213         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
28214         on decls for which assemble_alias has been called.
28216 2014-01-17  Nick Clifton  <nickc@redhat.com>
28218         * config/msp430/msp430.opt: (mcpu): New option.
28219         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
28220         (msp430_option_override): Parse target_cpu.  If the MCU name
28221         matches a generic string, clear target_mcu.
28222         (msp430_attr): Allow numeric interrupt values up to 63.
28223         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
28224         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
28225         option.
28226         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
28227         Add mcpu matches.
28228         * config/msp430/msp430.md (popm): Use %J rather than %I.
28229         (addsi3): Use msp430_nonimmediate_operand for operand 2.
28230         (addhi_cy_i): Use immediate_operand for operand 2.
28231         * doc/invoke.texi: Document -mcpu option.
28233 2014-01-17  Richard Biener  <rguenther@suse.de>
28235         PR rtl-optimization/38518
28236         * df.h (df_analyze_loop): Declare.
28237         * df-core.c: Include cfgloop.h.
28238         (df_analyze_1): Split out main part of df_analyze.
28239         (df_analyze): Adjust.
28240         (loop_inverted_post_order_compute): New function.
28241         (loop_post_order_compute): Likewise.
28242         (df_analyze_loop): New function avoiding whole-function
28243         postorder computes.
28244         * loop-invariant.c (find_defs): Use df_analyze_loop.
28245         (find_invariants): Adjust.
28246         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
28248 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
28250         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
28251         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
28253 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
28255         * ipa-ref.c (ipa_remove_stmt_references): Fix references
28256         traversal when removing references.
28258 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
28260         PR ipa/59775
28261         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
28263 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
28265         PR middle-end/56791
28266         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
28267         pushing a reload for an autoinc when we had previously reloaded an
28268         inner part of the address.
28270 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
28272         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
28273         field.
28274         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
28275         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
28276         when not giving up or versioning for alias only because of
28277         loop->safelen.
28278         (vect_analyze_data_ref_dependences): Set to true.
28279         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
28280         is a GIMPLE_PHI.
28281         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
28282         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
28283         to the condition.
28285         PR middle-end/58344
28286         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
28288         PR target/59839
28289         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
28290         operand 0 predicate for gathers, use a new pseudo as subtarget.
28292 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
28294         PR middle-end/59609
28295         * lra-constraints.c (process_alt_operands): Add printing debug info.
28296         Check absence of input/output reloads for matched operands too.
28298 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
28300         PR rtl-optimization/59835
28301         * ira.c (ira_init_register_move_cost): Increase cost for
28302         impossible modes.
28304 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
28306         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
28308 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
28310         PR target/59780
28311         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
28312         non-register objects.  Use gen_(high/low)part more consistently.
28313         Fix assertions.
28315 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
28317         PR target/59844
28318         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
28319         endian support, remove tests for WORDS_BIG_ENDIAN.
28320         (p8_mfvsrd_3_<mode>): Likewise.
28321         (reload_gpr_from_vsx<mode>): Likewise.
28322         (reload_gpr_from_vsxsf): Likewise.
28323         (p8_mfvsrd_4_disf): Likewise.
28325 2014-01-16  Richard Biener  <rguenther@suse.de>
28327         PR rtl-optimization/46590
28328         * lcm.c (compute_antinout_edge): Use postorder iteration.
28329         (compute_laterin): Use inverted postorder iteration.
28331 2014-01-16  Nick Clifton  <nickc@redhat.com>
28333         PR middle-end/28865
28334         * varasm.c (output_constant): Return the number of bytes actually
28335         emitted.
28336         (output_constructor_array_range): Update the field size with the
28337         number of bytes emitted by output_constant.
28338         (output_constructor_regular_field): Likewise.  Also do not
28339         complain if the total number of bytes emitted is now greater
28340         than the expected fieldpos.
28341         * output.h (output_constant): Update prototype and descriptive comment.
28343 2014-01-16  Marek Polacek  <polacek@redhat.com>
28345         PR middle-end/59827
28346         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
28347         it is error_mark_node.
28349 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
28351         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
28352         VALID_AVX256_REG_OR_OI_MODE.
28354 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
28356         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
28357         current procedure should be profiled.
28359 2014-01-15  Andrew Pinski  <apinski@cavium.com>
28361         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
28362         of moving from/to the STACK_REG register class.
28364 2014-01-15  Richard Henderson  <rth@redhat.com>
28366         PR debug/54694
28367         * reginfo.c (global_regs_decl): Globalize.
28368         * rtl.h (global_regs_decl): Declare.
28369         * ira.c (do_reload): Diagnose frame_pointer_needed and it
28370         reserved via global_regs.
28372 2014-01-15  Teresa Johnson  <tejohnson@google.com>
28374         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
28376 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
28378         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
28379         and vmulosh rather than call gen_vec_widen_smult_*.
28380         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
28381         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
28382         (vec_widen_smult_even_v16qi): Likewise.
28383         (vec_widen_umult_even_v8hi): Likewise.
28384         (vec_widen_smult_even_v8hi): Likewise.
28385         (vec_widen_umult_odd_v16qi): Likewise.
28386         (vec_widen_smult_odd_v16qi): Likewise.
28387         (vec_widen_umult_odd_v8hi): Likewise.
28388         (vec_widen_smult_odd_v8hi): Likewise.
28389         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
28390         vmuloub rather than call gen_vec_widen_umult_*.
28391         (vec_widen_umult_lo_v16qi): Likewise.
28392         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
28393         vmulosb rather than call gen_vec_widen_smult_*.
28394         (vec_widen_smult_lo_v16qi): Likewise.
28395         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
28396         rather than call gen_vec_widen_umult_*.
28397         (vec_widen_umult_lo_v8hi): Likewise.
28398         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
28399         rather than call gen_vec_widen_smult_*.
28400         (vec_widen_smult_lo_v8hi): Likewise.
28402 2014-01-15  Jeff Law  <law@redhat.com>
28404         PR tree-optimization/59747
28405         * ree.c (find_and_remove_re): Properly handle case where a second
28406         eliminated extension requires widening a copy created for elimination
28407         of a prior extension.
28408         (combine_set_extension): Ensure that the number of hard regs needed
28409         for a destination register does not change when we widen it.
28411 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
28413         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
28414         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
28415         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
28416         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
28417         (avr-*-rtems*): Likewise.
28418         (bfin*-rtems*): Likewise.
28419         (moxie-*-rtems*): Likewise.
28420         (h8300-*-rtems*): Likewise.
28421         (i[34567]86-*-rtems*): Likewise.
28422         (lm32-*-rtems*): Likewise.
28423         (m32r-*-rtems*): Likewise.
28424         (m68k-*-rtems*): Likewise.
28425         (microblaze*-*-rtems*): Likewise.
28426         (mips*-*-rtems*): Likewise.
28427         (powerpc-*-rtems*): Likewise.
28428         (sh-*-rtems*): Likewise.
28429         (sparc-*-rtems*): Likewise.
28430         (sparc64-*-rtems*): Likewise.
28431         (v850-*-rtems*): Likewise.
28432         (m32c-*-rtems*): Likewise.
28434 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
28436         PR rtl-optimization/59511
28437         * ira.c (ira_init_register_move_cost): Use memory costs for some
28438         cases of register move cost calculations.
28439         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
28440         instead of BB frequency.
28441         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
28442         * lra-assigns.c (find_hard_regno_for): Ditto.
28444 2014-01-15  Richard Biener  <rguenther@suse.de>
28446         PR tree-optimization/59822
28447         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
28448         (vectorizable_load): Use it to hoist defs of uses of invariant
28449         loads out of the loop.
28451 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
28452             Kugan Vivekanandarajah  <kuganv@linaro.org>
28454         PR target/59695
28455         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
28456         truncation.
28458 2014-01-15  Richard Biener  <rguenther@suse.de>
28460         PR rtl-optimization/59802
28461         * lcm.c (compute_available): Use inverted postorder to seed
28462         the initial worklist.
28464 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28466         PR target/59803
28467         * config/s390/s390.c (s390_preferred_reload_class): Don't return
28468         ADDR_REGS for invalid symrefs in non-PIC code.
28470 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
28472         PR other/58712
28473         * builtins.c (determine_block_size): Initialize *probable_max_size
28474         even if len_rtx is CONST_INT.
28476 2014-01-14  Andrew Pinski  <apinski@cavium.com>
28478         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
28479         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
28480         (cortexa53_tunings): Likewise.
28481         (aarch64_sched_issue_rate): New function.
28482         (TARGET_SCHED_ISSUE_RATE): Define.
28484 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
28486         * ira-costs.c (find_costs_and_classes): Add missed
28487         ira_init_register_move_cost_if_necessary.
28489 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
28491         PR target/59787
28492         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
28494 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
28496         PR target/59794
28497         * config/i386/i386.c (type_natural_mode): Add a bool parameter
28498         to indicate if type is used for function return value.  Warn ABI
28499         change if the vector mode isn't available for function return value.
28500         (ix86_function_arg_advance): Pass false to type_natural_mode.
28501         (ix86_function_arg): Likewise.
28502         (ix86_gimplify_va_arg): Likewise.
28503         (function_arg_32): Don't warn ABI change.
28504         (ix86_function_value): Pass true to type_natural_mode.
28505         (ix86_return_in_memory): Likewise.
28506         (ix86_struct_value_rtx): Removed.
28507         (TARGET_STRUCT_VALUE_RTX): Likewise.
28509 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
28511         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
28512         converting a conditional jump into a conditional return.
28514 2014-01-14  Richard Biener  <rguenther@suse.de>
28516         PR tree-optimization/58921
28517         PR tree-optimization/59006
28518         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
28519         hoisting invariant stmts.
28520         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
28521         invariant loads on the preheader edge if possible.
28523 2014-01-14  Joey Ye  <joey.ye@arm.com>
28525         * doc/plugin.texi (Building GCC plugins): Update to C++.
28527 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
28529         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
28530         (_mm_rcp28_round_ss): Ditto.
28531         (_mm_rsqrt28_round_sd): Ditto.
28532         (_mm_rsqrt28_round_ss): Ditto.
28533         (_mm_rcp28_sd): Ditto.
28534         (_mm_rcp28_ss): Ditto.
28535         (_mm_rsqrt28_sd): Ditto.
28536         (_mm_rsqrt28_ss): Ditto.
28537         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
28538         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
28539         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
28540         (IX86_BUILTIN_RCP28SD): Ditto.
28541         (IX86_BUILTIN_RCP28SS): Ditto.
28542         (IX86_BUILTIN_RSQRT28SD): Ditto.
28543         (IX86_BUILTIN_RSQRT28SS): Ditto.
28544         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
28545         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
28546         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
28547         (ix86_expand_special_args_builtin): Expand new FTYPE.
28548         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
28549         (srcp14<mode>): Make insn unary.
28550         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
28551         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
28552         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
28553         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
28554         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
28555         Fix rounding: make it SAE only.
28556         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
28557         Ditto.
28558         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
28559         Ditto.
28560         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
28561         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
28562         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
28563         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
28564         (round_saeonly_mask_scalar_operand4): Ditto.
28565         (round_saeonly_mask_scalar_op3): Ditto.
28566         (round_saeonly_mask_scalar_op4): Ditto.
28568 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28570         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28571         Implement -maltivec=be for vec_insert and vec_extract.
28573 2014-01-10  DJ Delorie  <dj@redhat.com>
28575         * config/msp430/msp430.md (call_internal): Don't allow memory
28576         references with SP as the base register.
28577         (call_value_internal): Likewise.
28578         * config/msp430/constraints.md (Yc): New.  For memory references
28579         that don't use SP as a base register.
28581         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
28582         "an integer without a # prefix"
28583         * config/msp430/msp430.md (epilogue_helper): Use it.
28585 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
28587         PR target/59617
28588         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
28589         AVX512F gather builtins.
28590         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
28591         on gather decls with INTEGER_TYPE masktype.
28592         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
28593         directly into the builtin rather than hoisting it before loop.
28595         PR tree-optimization/59387
28596         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
28597         (scev_const_prop): If folded_casts and type has undefined overflow,
28598         use force_gimple_operand instead of force_gimple_operand_gsi and
28599         for each added stmt if it is assign with
28600         arith_code_with_undefined_signed_overflow, call
28601         rewrite_to_defined_overflow.
28602         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
28603         gimple-fold.h instead.
28604         (arith_code_with_undefined_signed_overflow,
28605         rewrite_to_defined_overflow): Moved to ...
28606         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
28607         rewrite_to_defined_overflow): ... here.  No longer static.
28608         Include gimplify-me.h.
28609         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
28610         rewrite_to_defined_overflow): New prototypes.
28612 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28614         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
28616 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
28618         * builtins.c (get_object_alignment_2): Minor tweak.
28619         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
28621 2014-01-13  Christian Bruel  <christian.bruel@st.com>
28623         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
28624         optimized non constant lengths.
28626 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
28628         PR libgomp/59194
28629         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
28630         load as __atomic_load_N if possible.
28632 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
28634         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
28635         target parameter.
28636         (rs6000_expand_builtin): Adjust call.
28638 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
28640         PR target/58115
28641         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
28642         * config/rs6000/rs6000.c: Include target-globals.h.
28643         (rs6000_set_current_function): Instead of doing target_reinit
28644         unconditionally, use save_target_globals_default_opts and
28645         restore_target_globals.
28647         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
28648         FPSCR.
28649         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
28650         (rs6000_expand_builtin): Handle mffs and mtfsf.
28651         (rs6000_init_builtins): Define mffs and mtfsf.
28652         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
28653         (rs6000_mffs): New pattern.
28654         (rs6000_mtfsf): New pattern.
28656 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
28658         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
28659         Start narrowing with START.  Apply candidate-use pair
28660         and check overall cost in narrowing.
28661         (iv_ca_prune): Pass new argument.
28663 2014-01-10  Jeff Law  <law@redhat.com>
28665         PR middle-end/59743
28666         * ree.c (combine_reaching_defs): Ensure the defining statement
28667         occurs before the extension when optimizing extensions with
28668         different source and destination hard registers.
28670 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
28672         PR ipa/58585
28673         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
28674         vtables into the type inheritance graph.
28676 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
28678         PR rtl-optimization/59754
28679         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
28680         modes in the REGNO != REGNO case.
28682 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28684         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
28686 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
28688         PR tree-optimization/59745
28689         * tree-predcom.c (tree_predictive_commoning_loop): Call
28690         free_affine_expand_cache if giving up because components is NULL.
28692         * target-globals.c (save_target_globals): Allocate < 4KB structs using
28693         GC in payload of target_globals struct instead of allocating them on
28694         the heap and the larger structs separately using GC.
28695         * target-globals.h (struct target_globals): Make regs, hard_regs,
28696         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
28697         of GTY((skip)) and change type to void *.
28698         (reset_target_globals): Cast loads from those fields to corresponding
28699         types.
28701 2014-01-10  Steve Ellcey  <sellcey@mips.com>
28703         PR plugins/59335
28704         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
28705         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
28706         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
28708 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
28710         PR target/59744
28711         * aarch64-modes.def (CC_Zmode): New flags mode.
28712         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
28713         represents an equality.
28714         (aarch64_get_condition_code): Handle CC_Zmode.
28715         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
28717 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28719         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
28720         extraction in good case.
28722 2014-01-10  Richard Biener  <rguenther@suse.de>
28724         PR tree-optimization/59374
28725         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
28726         checking after SLP discovery.  Mark stmts not participating
28727         in any SLP instance properly.
28729 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28731         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
28732         when handling a SET rtx.
28734 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28736         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
28737         (cortex-a57): Likewise.
28738         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
28740 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28742         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
28743         non-iwmmxt builtins.
28745 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
28747         PR ipa/58252
28748         PR ipa/59226
28749         * ipa-devirt.c record_target_from_binfo): Take as argument
28750         stack of binfos and lookup matching one for virtual inheritance.
28751         (possible_polymorphic_call_targets_1): Update.
28753 2014-01-10  Huacai Chen  <chenhc@lemote.com>
28755         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
28756         kernel strings for Loongson-2E/2F/3A.
28758 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
28760         PR middle-end/59670
28761         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
28762         is_gimple_call before calling gimple_call_internal_p.
28764 2014-01-09  Steve Ellcey  <sellcey@mips.com>
28766         * Makefile.in (TREE_FLOW_H): Remove.
28767         (TREE_SSA_H): Add file names from tree-flow.h.
28768         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
28769         * tree.h: Remove tree-flow.h reference.
28770         * hash-table.h: Remove tree-flow.h reference.
28771         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
28772         reference with tree-ssa-loop.h.
28774 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28776         * doc/invoke.texi: Add -maltivec={be,le} options, and document
28777         default element-order behavior for -maltivec.
28778         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
28779         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
28780         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
28781         when targeting big endian, at least for now.
28782         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
28784 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
28786         PR middle-end/47735
28787         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
28788         var satisfies use_register_for_decl, just take into account type
28789         alignment, rather than decl alignment.
28791         PR tree-optimization/59622
28792         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
28793         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
28794         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
28795         Don't devirtualize for inplace at all.  For targets.length () == 1,
28796         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
28798 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
28800         * config/i386/i386.md (cpu): Remove the unused btver1.
28802 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
28804         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
28806 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
28808         PR target/58115
28809         * tree-core.h (struct target_globals): New forward declaration.
28810         (struct tree_target_option): Add globals field.
28811         * tree.h (TREE_TARGET_GLOBALS): Define.
28812         (prepare_target_option_nodes_for_pch): New prototype.
28813         * target-globals.h (struct target_globals): Define even if
28814         !SWITCHABLE_TARGET.
28815         * tree.c (prepare_target_option_node_for_pch,
28816         prepare_target_option_nodes_for_pch): New functions.
28817         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
28818         * config/i386/i386.c: Include target-globals.h.
28819         (ix86_set_current_function): Instead of doing target_reinit
28820         unconditionally, use save_target_globals_default_opts and
28821         restore_target_globals.
28823 2014-01-09  Richard Biener  <rguenther@suse.de>
28825         PR tree-optimization/59715
28826         * tree-cfg.h (split_critical_edges): Declare.
28827         * tree-cfg.c (split_critical_edges): Export.
28828         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
28830 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
28832         * cfgexpand.c (expand_stack_vars): Optionally disable
28833         asan stack protection.
28834         (expand_used_vars): Likewise.
28835         (partition_stack_vars): Likewise.
28836         * asan.c (asan_emit_stack_protection): Optionally disable
28837         after return stack usage.
28838         (instrument_derefs): Optionally disable memory access instrumentation.
28839         (instrument_builtin_call): Likewise.
28840         (instrument_strlen_call): Likewise.
28841         (asan_protect_global): Optionally disable global variables protection.
28842         * doc/invoke.texi: Added doc for new options.
28843         * params.def: Added new options.
28844         * params.h: Likewise.
28846 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
28848         PR rtl-optimization/59724
28849         * ifcvt.c (cond_exec_process_if_block): Don't call
28850         flow_find_head_matching_sequence with 0 longest_match.
28851         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
28852         non-active insns if !stop_after.
28853         (try_head_merge_bb): Revert 2014-01-07 changes.
28855 2014-01-08  Jeff Law  <law@redhat.com>
28857         * ree.c (get_sub_rtx): New function, extracted from...
28858         (merge_def_and_ext): Here.
28859         (combine_reaching_defs): Use get_sub_rtx.
28861 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
28863         * cgraph.h (varpool_variable_node): Do not choke on null node.
28865 2014-01-08  Catherine Moore  <clm@codesourcery.com>
28867         * config/mips/mips.md (simple_return): Attempt to use JRC
28868         for microMIPS.
28869         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
28871 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
28873         PR rtl-optimization/59137
28874         * reorg.c (steal_delay_list_from_target): Call update_block for
28875         elided insns.
28876         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
28878 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28880         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
28881         two duplicate entries.
28883 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
28885         Revert:
28886         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
28888         * config/mips/mips.c (mips_truncated_op_cost): New function.
28889         (mips_rtx_costs): Adjust test for BADDU.
28890         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
28892         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
28894         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
28895         (*baddu_si): ...this new pattern.
28897 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
28899         PR ipa/59722
28900         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
28902 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28904         PR middle-end/57748
28905         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
28906         inner_reference_p.
28907         (expand_expr, expand_normal): Adjust.
28908         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
28909         inner_reference_p. Use inner_reference_p to expand inner references.
28910         (store_expr): Adjust.
28911         * cfgexpand.c (expand_call_stmt): Adjust.
28913 2014-01-08  Rong Xu  <xur@google.com>
28915         * gcov-io.c (gcov_var): Move from gcov-io.h.
28916         (gcov_position): Ditto.
28917         (gcov_is_error): Ditto.
28918         (gcov_rewrite): Ditto.
28919         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
28920         only part to libgcc/libgcov.h.
28922 2014-01-08  Marek Polacek  <polacek@redhat.com>
28924         PR middle-end/59669
28925         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
28927 2014-01-08  Marek Polacek  <polacek@redhat.com>
28929         PR sanitizer/59667
28930         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
28932 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
28934         PR rtl-optimization/59649
28935         * stor-layout.c (get_mode_bounds): For BImode return
28936         0 and STORE_FLAG_VALUE.
28938 2014-01-08  Richard Biener  <rguenther@suse.de>
28940         PR middle-end/59630
28941         * gimple.h (is_gimple_builtin_call): Remove.
28942         (gimple_builtin_call_types_compatible_p): New.
28943         (gimple_call_builtin_p): New overload.
28944         * gimple.c (is_gimple_builtin_call): Remove.
28945         (validate_call): Rename to ...
28946         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
28947         check return types.
28948         (validate_type): New static function.
28949         (gimple_call_builtin_p): New overload and adjust.
28950         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
28951         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
28952         (gimple_fold_stmt_to_constant_1): Likewise.
28953         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
28955 2014-01-08  Richard Biener  <rguenther@suse.de>
28957         PR middle-end/59471
28958         * gimplify.c (gimplify_expr): Gimplify register-register type
28959         VIEW_CONVERT_EXPRs to separate stmts.
28961 2014-01-07  Jeff Law  <law@redhat.com>
28963         PR middle-end/53623
28964         * ree.c (combine_set_extension): Handle case where source
28965         and destination registers in an extension insn are different.
28966         (combine_reaching_defs): Allow source and destination registers
28967         in extension to be different under limited circumstances.
28968         (add_removable_extension): Remove restriction that the
28969         source and destination registers in the extension are the same.
28970         (find_and_remove_re): Emit a copy from the extension's
28971         destination to its source after the defining insn if
28972         the source and destination registers are different.
28974         PR middle-end/59285
28975         * ifcvt.c (merge_if_block): If we are merging a block with more than
28976         one successor with a block with no successors, remove any BARRIER
28977         after the second block.
28979 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
28981         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
28983 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
28985         PR target/59652
28986         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
28987         for 14-bit register offsets when INT14_OK_STRICT is false.
28989 2014-01-07  Roland Stigge  <stigge@antcom.de>
28990             Michael Meissner  <meissner@linux.vnet.ibm.com>
28992         PR 57386/target
28993         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
28994         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
28996 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
28998         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
28999         -mcpu.
29001 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
29003         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
29004         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
29005         rtx is const0_rtx or not.
29007 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
29009         PR target/58115
29010         * target-globals.c (save_target_globals): Remove this_fn_optab
29011         handling.
29012         * toplev.c: Include optabs.h.
29013         (target_reinit): Temporarily restore the global options if another
29014         set of options are in force.
29016 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
29018         PR rtl-optimization/58668
29019         * cfgcleanup.c (flow_find_cross_jump): Don't count
29020         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
29021         to determine what is counted.
29022         (flow_find_head_matching_sequence): Use active_insn_p to determine
29023         what is counted.
29024         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
29025         counting change.
29026         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
29027         determine what is counted.
29029         PR tree-optimization/59643
29030         * tree-predcom.c (split_data_refs_to_components): If one dr is
29031         read and one write, determine_offset fails and the write isn't
29032         in the bad component, just put the read into the bad component.
29034 2014-01-07  Mike Stump  <mikestump@comcast.net>
29035             Jakub Jelinek  <jakub@redhat.com>
29037         PR pch/59436
29038         * tree-core.h (struct tree_optimization_option): Change optabs
29039         type from unsigned char * to void *.
29040         * optabs.c (init_tree_optimization_optabs): Adjust
29041         TREE_OPTIMIZATION_OPTABS initialization.
29043 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
29045         PR target/59644
29046         * config/i386/i386.h (struct machine_function): Add
29047         no_drap_save_restore field.
29048         * config/i386/i386.c (ix86_save_reg): Use
29049         !cfun->machine->no_drap_save_restore instead of
29050         crtl->stack_realign_needed.
29051         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
29052         this function clears frame_pointer_needed.  Set
29053         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
29054         and DRAP reg is needed.
29056 2014-01-06  Marek Polacek  <polacek@redhat.com>
29058         PR c/57773
29059         * doc/implement-c.texi: Mention that other integer types are
29060         permitted as bit-field types in strictly conforming mode.
29062 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
29064         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
29065         is newly allocated.
29067 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
29069         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
29071 2014-01-06  Martin Jambor  <mjambor@suse.cz>
29073         PR ipa/59008
29074         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
29075         to int.
29076         * ipa-prop.c (ipa_print_node_params): Fix indentation.
29078 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
29080         PR debug/59350
29081         PR debug/59510
29082         * var-tracking.c (add_stores): Preserve the value of the source even if
29083         we don't record the store.
29085 2014-01-06  Terry Guo  <terry.guo@arm.com>
29087         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
29089 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
29091         PR bootstrap/59541
29092         * config/darwin.c (darwin_function_section): Adjust return values to
29093         correspond to optimisation changes made in r206070.
29095 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
29097         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
29098         from prefetch_block tune setting.
29099         (nocona_cost): Correct size of prefetch block to 64.
29101 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
29103         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
29104         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
29105         used to save the static chain register in the computation of the offset
29106         from which the FP registers need to be restored.
29108 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
29110         PR tree-optimization/59519
29111         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
29112         ICE if get_current_def (current_new_name) is already non-NULL, as long
29113         as it is a phi result of some other phi in *new_exit_bb that has
29114         the same argument.
29116         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
29117         or vmovdqu* for misaligned_operand.
29118         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
29119         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
29120         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
29121         aligned_mem for AVX512F masked aligned load and store builtins and for
29122         non-temporal moves.
29124 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
29126         PR tree-optimization/59651
29127         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
29128         Address range for negative step should be added by TYPE_SIZE_UNIT.
29130 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
29132         * config/m68k/m68k.c (handle_move_double): Handle pushes with
29133         overlapping registers also for registers other than the stack pointer.
29135 2014-01-03  Marek Polacek  <polacek@redhat.com>
29137         PR other/59661
29138         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
29139         __builtin_FILE.
29141 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
29143         PR target/59625
29144         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
29145         asm goto as jump.
29147         * config/i386/i386.md (MODE_SIZE): New mode attribute.
29148         (push splitter): Use <P:MODE_SIZE> instead of
29149         GET_MODE_SIZE (<P:MODE>mode).
29150         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
29151         (mov -1, reg peephole2): Likewise.
29152         * config/i386/sse.md (*mov<mode>_internal,
29153         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
29154         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
29155         *<code><mode>3, *andnot<mode>3<mask_name>,
29156         <mask_codefor><code><mode>3<mask_name>): Likewise.
29157         * config/i386/subst.md (mask_mode512bit_condition,
29158         sd_mask_mode512bit_condition): Likewise.
29160 2014-01-02  Xinliang David Li  <davidxl@google.com>
29162         PR tree-optimization/59303
29163         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
29164         (dump_predicates): Better output format.
29165         (pred_equal_p): New function.
29166         (is_neq_relop_p): Ditto.
29167         (is_neq_zero_form_p): Ditto.
29168         (pred_expr_equal_p): Ditto.
29169         (pred_neg_p): Ditto.
29170         (simplify_pred): Ditto.
29171         (simplify_preds_2): Ditto.
29172         (simplify_preds_3): Ditto.
29173         (simplify_preds_4): Ditto.
29174         (simplify_preds): Ditto.
29175         (push_pred): Ditto.
29176         (push_to_worklist): Ditto.
29177         (get_pred_info_from_cmp): Ditto.
29178         (is_degenerated_phi): Ditto.
29179         (normalize_one_pred_1): Ditto.
29180         (normalize_one_pred): Ditto.
29181         (normalize_one_pred_chain): Ditto.
29182         (normalize_preds): Ditto.
29183         (normalize_cond_1): Remove function.
29184         (normalize_cond): Ditto.
29185         (is_gcond_subset_of): Ditto.
29186         (is_subset_of_any): Ditto.
29187         (is_or_set_subset_of): Ditto.
29188         (is_and_set_subset_of): Ditto.
29189         (is_norm_cond_subset_of): Ditto.
29190         (pred_chain_length_cmp): Ditto.
29191         (convert_control_dep_chain_into_preds): Type change.
29192         (find_predicates): Ditto.
29193         (find_def_preds): Ditto.
29194         (destroy_predicates_vecs): Ditto.
29195         (find_matching_predicates_in_rest_chains): Ditto.
29196         (use_pred_not_overlap_with_undef_path_pred): Ditto.
29197         (is_pred_expr_subset): Ditto.
29198         (is_pred_chain_subset_of): Ditto.
29199         (is_included_in): Ditto.
29200         (is_superset_of): Ditto.
29202 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
29204         Update copyright years.
29206 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
29208         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
29209         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
29210         config/arc/arc.md, config/arc/arc.opt,
29211         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
29212         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
29213         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
29214         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
29215         config/linux-protos.h, config/linux.c, config/winnt-c.c,
29216         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
29217         vtable-verify.c, vtable-verify.h: Use the standard form for the
29218         copyright notice.
29220 2014-01-02  Tobias Burnus  <burnus@net-b.de>
29222         * gcc.c (process_command): Update copyright notice dates.
29223         * gcov-dump.c: Ditto.
29224         * gcov.c: Ditto.
29225         * doc/cpp.texi: Bump @copying's copyright year.
29226         * doc/cppinternals.texi: Ditto.
29227         * doc/gcc.texi: Ditto.
29228         * doc/gccint.texi: Ditto.
29229         * doc/gcov.texi: Ditto.
29230         * doc/install.texi: Ditto.
29231         * doc/invoke.texi: Ditto.
29233 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
29235         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
29237 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
29239         * config/i386/sse.md (*mov<mode>_internal): Guard
29240         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
29242         PR rtl-optimization/59647
29243         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
29244         new_rtx into UNSIGNED_FLOAT rtxes.
29246 Copyright (C) 2014 Free Software Foundation, Inc.
29248 Copying and distribution of this file, with or without modification,
29249 are permitted in any medium without royalty provided the copyright
29250 notice and this notice are preserved.